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

Allow mixtures to have zero mole fractions #452

Closed
ibell opened this issue Feb 7, 2015 · 1 comment
Closed

Allow mixtures to have zero mole fractions #452

ibell opened this issue Feb 7, 2015 · 1 comment
Milestone

Comments

@ibell
Copy link
Contributor

ibell commented Feb 7, 2015

No description provided.

@ibell ibell added this to the v 5.1 milestone Feb 7, 2015
@ibell
Copy link
Contributor Author

ibell commented Feb 10, 2015

These should be the same

import CoolProp

print CoolProp.CoolProp.PropsSI('T','P',201325,'Q',0,'HEOS::Water[0.5]&Nitrogen[0.5]')
print CoolProp.CoolProp.PropsSI('T','P',201325,'Q',0,'HEOS::Water[0.5]&Nitrogen[0.5]&Argon[0.0]&CO2[0.0]')

but you get

90.895353356
Traceback (most recent call last):
  File "trash15.py", line 4, in <module>
    print CoolProp.CoolProp.PropsSI('T','P',201325,'Q',0,'HEOS::Water[0.5]&Nitrogen[0.5]&Argon[0.0]&CO2[0.0]')
  File "CoolProp.pyx", line 204, in CoolProp.CoolProp.PropsSI (CoolProp\CoolProp.cpp:16127)
  File "CoolProp.pyx", line 284, in CoolProp.CoolProp.PropsSI (CoolProp\CoolProp.cpp:15930)
  File "CoolProp.pyx", line 173, in CoolProp.CoolProp.__Props_err2 (CoolProp\CoolProp.cpp:14348)
ValueError: solver_rho_Tp was unable to find a solution for T=    91.271, p=    201325, with guess value    59057.9 : PropsSI("T","P",201325,"Q",0,"HEOS::Water[0.5]&Nitrogen[0.5]&Argon[0.0]&CO2[0.0]")

instead

@ibell ibell closed this as completed in a02d973 Feb 10, 2015
@ibell ibell modified the milestones: v5.0.7, v 5.1 Feb 10, 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

1 participant