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

PropsSI ("D", "P", valueP, "T", valueT, "R407C") return bad result in L+V Phasis #459

Closed
pmanach opened this issue Feb 10, 2015 · 2 comments
Milestone

Comments

@pmanach
Copy link

pmanach commented Feb 10, 2015

Examples :
PropsSI("D","T",285.71,"P",787580,"R407C") = 1188.45
PropsSI("D","T",285.71,"P",787580,"REFPROP-R407C") = 81.40

@ibell
Copy link
Contributor

ibell commented Feb 11, 2015

Seems like it is not erroring out properly when inputs are two-phase.

In [1]: import CoolProp

In [2]: CoolProp.CoolProp.PropsSI("D","T",285.71,"P",787580,"R407C")
Out[2]: 1188.4479808551962

In [3]: CoolProp.CoolProp.PropsSI("D","Q",0,"P",787580,"R407C")
Out[3]: 1196.8777409588633

In [4]: CoolProp.CoolProp.PropsSI("D","Q",1,"P",787580,"R407C")
Out[4]: 33.56169650226702

In [5]: CoolProp.CoolProp.PropsSI("T","Q",0,"P",787580,"R407C")
Out[5]: 283.62553230284266

In [6]: CoolProp.CoolProp.PropsSI("T","Q",1,"P",787580,"R407C")
Out[6]: 289.48763809255865

so those inputs are two-phase

@ibell ibell closed this as completed in f2b31fa Feb 11, 2015
@ibell
Copy link
Contributor

ibell commented Feb 11, 2015

And now:

In [1]: import CoolProp

In [2]: CoolProp.CoolProp.PropsSI("D","T",285.71,"P",787580,"R407C")
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-2-3cce6ef856dc> in <module>()
----> 1 CoolProp.CoolProp.PropsSI("D","T",285.71,"P",787580,"R407C")

C:\Miniconda\lib\site-packages\coolprop-5.0.7dev-py2.7-win-amd64.egg\CoolProp\CoolProp.pyd in CoolProp.CoolProp.PropsSI (CoolProp\CoolProp.cpp:16127)()

C:\Miniconda\lib\site-packages\coolprop-5.0.7dev-py2.7-win-amd64.egg\CoolProp\CoolProp.pyd in CoolProp.CoolProp.PropsSI (CoolProp\CoolProp.cpp:15930)()

C:\Miniconda\lib\site-packages\coolprop-5.0.7dev-py2.7-win-amd64.egg\CoolProp\CoolProp.pyd in CoolProp.CoolProp.__Props_err2 (CoolProp\CoolProp.cpp:14348)()

ValueError: Two-phase inputs not supported for pseudo-pure for now : PropsSI("D","T",285.71,"P",787580,"R407C")

@ibell ibell added this to the v5.0.7 milestone Feb 11, 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