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
PropsSI call converges using CoolProp but diverges using REFPROP as the backend #2352
Comments
Are you sure both libraries are using the same reference states? That's the
most likely culprit.
|
@ibell Thank you for the reply. I checked the reference state for CoolProp and REFPROP, they were the same. But this problem continues, which is shown as follows for the water case:
|
Could just be a bug in Refprop. What version do you use?
|
REFPROP 10.0 |
Where are those inputs supposed to be in the phase diagram? |
I solved the problem by changing the codes to rely on CoolProp instead of REPROP. To be honest, I do not know where those inputs are supposed to be in the phase diagram. They are generated in a scipy.optimization.bisection procedure of seeking a solution for a nonlinear equation involving getting the thermodynamic states of a refrigerant. |
Description
The following PropsSI calls, which aim at getting the temperature of Toluene from its specified enthalpy and entropy, failed for the case of using REFPROP as the backend but can successfully get the value using CoolProp. Is there any way to fix the REFPROP case as I need to use the REFPROP backend in my main program?
Steps to Reproduce
PropsSI("T","H",195908.1014,"S",624.230099,"REFPROP::Toluene")
PropsSI("T","H",195908.1014,"S",624.230099,"Toluene")
Expected behavior: The temperature of the Toluene at this thermodynamic state
Actual behavior:
For the REFPROP case:
For the CoolProp case:
Versions
CoolProp Version: 6.4.3.post1
REFPROP version: 10.0
Operating System and Version: Windows 10
Access Method: Python wrapper
The text was updated successfully, but these errors were encountered: