Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in entropy calculation with TH inputs #319

Closed
somniumAeternam opened this issue Dec 9, 2014 · 3 comments
Closed

Error in entropy calculation with TH inputs #319

somniumAeternam opened this issue Dec 9, 2014 · 3 comments
Milestone

Comments

@somniumAeternam
Copy link

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

@ibell
Copy link
Contributor

ibell commented Dec 9, 2014

Actually the error should be a different one. TH are not a valid set of
inputs for CoolProp. The reason for that is the presence of multiple
solutions. What sort of calculation gives you TH as inputs?
On Dec 9, 2014 4:47 AM, "somniumAeternam" notifications@github.com wrote:

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


Reply to this email directly or view it on GitHub
#319.

@ibell ibell closed this as completed in 61c2f88 Dec 9, 2014
@ibell ibell added this to the v5.0.4 milestone Dec 9, 2014
@somniumAeternam
Copy link
Author

You're right, there are two different solutions. I haven't thought about it. I'm using PH now. Thank you!

@ibell
Copy link
Contributor

ibell commented Dec 12, 2014

Yes it is counter-intuitive, and I don't know how to deal with it, so no TU
or TH.

On Thu, Dec 11, 2014 at 6:38 AM, somniumAeternam notifications@github.com
wrote:

You're right, there are two different solutions. I haven't thought about
it. I'm using PH now. Thank you!


Reply to this email directly or view it on GitHub
#319 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants