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 in saturation region #688

Closed
acuiko opened this issue Jun 2, 2015 · 5 comments
Closed

PropsSI in saturation region #688

acuiko opened this issue Jun 2, 2015 · 5 comments
Milestone

Comments

@acuiko
Copy link

acuiko commented Jun 2, 2015

Hi,
CoolProp.PropsSI("I", "T", 278.15, "P", CoolProp.PropsSI("P","T",278.15,"Q",1,"R410A"), "R410A") works fine, but
CoolProp.PropsSI("I", "T", 278.15, "P", CoolProp.PropsSI("P","T",278.15,"Q",1,"R22"), "R22") gives an error
Saturation pressure [584109 Pa] corresponding to T [278.15 K] is within 1e-4 % of given p [584109 Pa]

Why is not the problem in the first case?

@jowr
Copy link
Member

jowr commented Jun 2, 2015

My first guess is that it is related to R410A being pseudo-pure, but I agree that it looks like we could be more consistent here.

@paarfi
Copy link

paarfi commented Jun 2, 2015

R410 is a mixture with a glide. For a given pressure, the temperature on the vapor line of the saturation dome is higher than on the liquid line. R22 is a single molecule without a glide. For a given pressure, the temperature at the vapor and liquid lines of the saturation dome are the same. So specifying T and P is fine for defining your saturated liquid state for R410. But for R22, that same T and P could be saturated liquid, saturated vapor, or something in-between under the dome. Thus the error message.

@jowr
Copy link
Member

jowr commented Jun 2, 2015

Thank you for providing a proper description. I guess we can close this issue, can't we, @acuiko ?

@acuiko
Copy link
Author

acuiko commented Jun 2, 2015

of course. Thanks for the explanation.

@ibell
Copy link
Contributor

ibell commented Jun 2, 2015

Actually, the first one should be an error. With the full mixture model, T,P are valid inputs through the two-phase region. With the pseudo-pure, not so much. Pseudo-pure EOS are like pure fluid EOS, but not valid in the two-phase region (roughly).

@ibell ibell closed this as completed in 997fd0d Jun 5, 2015
@ibell ibell added this to the v5.1.1 milestone Jun 5, 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

4 participants