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

failure in calculation enthalpy for water #844

Closed
arnaudcretot opened this issue Oct 19, 2015 · 2 comments
Closed

failure in calculation enthalpy for water #844

arnaudcretot opened this issue Oct 19, 2015 · 2 comments
Milestone

Comments

@arnaudcretot
Copy link

Hello,

When I run this code :
Q = 0.02
T = 200. + 273.15
enthalpy = PropsSI('H', 'Q', Q, 'T', T, 'water') # J/kg
T2 = PropsSI('T', 'Q', Q, 'H', enthalpy, 'water') # K
print T, T2, enthalpy

I got this message :

ValueError: PropsSI failed ungracefully :: inputs were:"T","Q",2.0000000000000000e-02,"H",8.9106600902347546e+05,"water"; please file a ticket at https://github.com/CoolProp/CoolProp/issues

I think there is something not normal here.
Tank you for this great coolProp tool,

Arnaud

@ibell
Copy link
Contributor

ibell commented Oct 19, 2015

Yes, actually it should fail in a different way. Enthalpy and quality are
not supported inputs because you can get multiple solutions for some
fluids. You should get a message to that effect.
On Oct 19, 2015 4:51 PM, "arnaudcretot" notifications@github.com wrote:

Hello,

When I run this code :
Q = 0.02
T = 200. + 273.15
enthalpy = PropsSI('H', 'Q', Q, 'T', T, 'water') # J/kg
T2 = PropsSI('T', 'Q', Q, 'H', enthalpy, 'water') # K
print T, T2, enthalpy

I got this message :

ValueError: PropsSI failed ungracefully :: inputs
were:"T","Q",2.0000000000000000e-02,"H",8.9106600902347546e+05,"water";
please file a ticket at https://github.com/CoolProp/CoolProp/issues

I think there is something not normal here.
Tank you for this great coolProp tool,

Arnaud


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

@arnaudcretot
Copy link
Author

Ah ok I see,
I will solve my problem on another way,

Thanks a lot

@ibell ibell added this to the v5.1.2 milestone Oct 22, 2015
@ibell ibell closed this as completed in 74ddd42 Oct 22, 2015
ibell added a commit that referenced this issue Oct 22, 2015
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