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

Error surface tension in CoolProp v5.1.0 #636

Closed
abahman opened this issue Apr 29, 2015 · 8 comments
Closed

Error surface tension in CoolProp v5.1.0 #636

abahman opened this issue Apr 29, 2015 · 8 comments
Milestone

Comments

@abahman
Copy link

abahman commented Apr 29, 2015

Updating to CP v5.1.0, I got the following error:

ValueError: p is not a valid number : PropsSI("I","T",328.9778772,"Q",0.5,"R410A")

while CP v5.0.8 gives not error!

@jowr
Copy link
Member

jowr commented Apr 29, 2015

Is that a surprise? Please correct me if I am wrong, but I would not know how to calculate the surface tension of a mixture of gas and liquid.

@ibell
Copy link
Contributor

ibell commented Apr 29, 2015

There are correlations for the pseudo - pure though
On Apr 29, 2015 12:12 AM, "Jorrit Wronski" notifications@github.com wrote:

Is that a surprise? Please correct me if I am wrong, but I would not know
how to calculate the surface tension of a mixture of gas and liquid.


Reply to this email directly or view it on GitHub
#636 (comment).

@ibell ibell closed this as completed in e6f3acf Apr 30, 2015
@ibell
Copy link
Contributor

ibell commented Apr 30, 2015

This should be an error, but a different error than what you got.

If you want to get the surface tension directly, see #640, I'm fixing this.

@ibell
Copy link
Contributor

ibell commented May 1, 2015

Basically, 0 < Q < 1 is undefined behavior for pseudo-pure fluids since you don't know what is happening with the mole fractions of liquid and vapor in equilibrium.

@ibell
Copy link
Contributor

ibell commented May 1, 2015

You need to figure out how you want to handle it yourself.

@abahman
Copy link
Author

abahman commented May 1, 2015

Thank you. This was helpful.

@ibell
Copy link
Contributor

ibell commented May 1, 2015

Does that make sense to you?

@abahman
Copy link
Author

abahman commented May 1, 2015

Yes.
I thought the surface tension is a function of quality!

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

3 participants