Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Error in entropy calculation with TH inputs #319

@somniumAeternam

Description

@somniumAeternam

I've just came across an error with the calculation of the entropy in CoolProp version 5.0.0:

PropsSI("S","T",328.7253337,"H",274517.1945,"R245fa")

This will return:

Traceback (most recent call last):
File "", line 1, in
File "CoolProp\CoolProp.pyx", line 204, in CoolProp.CoolProp.PropsSI (CoolProp\CoolProp.cpp:15824)
File "CoolProp\CoolProp.pyx", line 236, in CoolProp.CoolProp.PropsSI (CoolProp\CoolProp.cpp:15619)
File "CoolProp\CoolProp.pyx", line 173, in CoolProp.CoolProp.__Props_err2 (CoolProp\CoolProp.cpp:14440)
ValueError: Residual function in secant returned invalid number : PropsSI("S","T",328.7253337,"H",274517.1945,"R245fa")

When I use the Refprop fluid, the value ist calculated correctly:

PropsSI("S","T",328.7253337,"H",274517.1945,"REFPROP::R245fa")
1246.9529300392371

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions