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

HAPropsSI does not converge for T= 299.8 K #756

Closed
bachc opened this issue Jul 31, 2015 · 7 comments
Closed

HAPropsSI does not converge for T= 299.8 K #756

bachc opened this issue Jul 31, 2015 · 7 comments
Milestone

Comments

@bachc
Copy link

bachc commented Jul 31, 2015

Back for more software testing :)

HAPropsSI works great, except for 299.8 K, but works fine for other temperatures.
Version of CoolProp is the current one.

Added printout below, issue seems convergence in CoolProp.cpp.

import CoolProp as CP
CP.version
u'5.1.1'

HAPropsSI('W','T',299.1,'P',101325,'R',0.51)
0.01072579950552751
HAPropsSI('W','T',299.8,'P',101325,'R',0.51)

Traceback (most recent call last):
File "<pyshell#23>", line 1, in
HAPropsSI('W','T',299.8,'P',101325,'R',0.51)
File "CoolProp\HumidAirProp.pyx", line 3, in CoolProp.CoolProp.HAPropsSI (CoolProp\CoolProp.cpp:4112)
File "CoolProp\HumidAirProp.pyx", line 47, in CoolProp.CoolProp.HAPropsSI (CoolProp\CoolProp.cpp:2865)
ValueError: Maxwell solver did not converge after 30 iterations; rhoL: 55317.94333544713 rhoV: 1.404747498588554 error: 3.95539e-009 dvL/vL: -1.07605e-014 dvV/vV: -2.78591e-014 pL: 3495.44 pV: 3495.44
:: inputs were:"W","T",2.9980000000000001e+02,"P",1.0132500000000000e+05,"R",5.1000000000000001e-01

HAPropsSI('W','T',299.9,'P',101325,'R',0.51)
0.011253867557047863
import CoolProp as CP
CP.version
u'5.1.1'

@ibell ibell added this to the v5.1.2 milestone Aug 1, 2015
@ibell
Copy link
Contributor

ibell commented Aug 2, 2015

32-bit or 64-bit?

@ibell
Copy link
Contributor

ibell commented Aug 2, 2015

That works fine in C++ on OS X in 64-bit

@ibell
Copy link
Contributor

ibell commented Aug 2, 2015

Works fine for me:

>>> import CoolProp
>>> HA = CoolProp.CoolProp.HAPropsSI
>>> HA("W","T",2.9980000000000001e+02,"P",1.0132500000000000e+05,"R",5.1000000000000001e-01 )
0.011186615660923415

@ibell
Copy link
Contributor

ibell commented Aug 2, 2015

And for me on windows (python 2.7, 64-bit):

>>> import CoolProp
>>> HA = CoolProp.CoolProp.HAPropsSI
>>> HA("W","T",2.9980000000000001e+02,"P",1.0132500000000000e+05,"R",5.1000000000000001e-01 )
0.011186615660678806

ibell added a commit that referenced this issue Aug 2, 2015
@ibell
Copy link
Contributor

ibell commented Aug 2, 2015

Pushed a change - can you please try with the development version? http://www.coolprop.org/coolprop/wrappers/Python/index.html#automatic-installation

@ibell
Copy link
Contributor

ibell commented Aug 2, 2015

I'm thinking this should be fixed. Re-open if that is not the case. Please confirm.

@ibell ibell closed this as completed Aug 2, 2015
@bachc
Copy link
Author

bachc commented Aug 3, 2015

Works perfectly. Thanks for the quick fix!!

Side-note:
On http://www.coolprop.org/coolprop/wrappers/Python/index.html#automatic-installation, you could add '--trusted-host www.coolprop.dreamhosters.com', to the pip command for installing the development version. Otherwise pip just installs the current release.

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