-
Notifications
You must be signed in to change notification settings - Fork 13
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
Possible problem in Propyne EOS #557
Comments
For version 10 I did a huge study to try to find simple conditions that would always indicate that a state point was 2-phase, especially for fluids such as nitrogen where the behavior can be very interesting in the 2-phase, much of which bypasses normal tests that have been used for years to test for such states. Below are the conditions I found that indicate two phase states, with the negative ones being warnings instead of full errors because of such issues as the slope of Cv vs. T being positive for some of the bad fluids such as propyne, but the state is still single phase.
If I remember right, for pure fluids then these checks often work for metastable states, but mixtures are much more difficult and their metastable states often bypass these rules. The code in subroutine CheckState in the UTILITY.FOR file gives most of the details about the oddballs that don't obey these rules. I've pasted the comments from the top of the routine below, but there are numerous other comments spread throughout the code.
|
In the GUI (Version 10.0), I choose Propyne as the fluid, and then do Specified State Points, T=298.15 K and P = 1 MPa.
This should be a state easily in the liquid phase (the saturation pressure is something like .58 MPa at that pressure).
The GUI comes back with a Warning I've never seen before:
CHECKSTATE Warning -705] State appears to be two-phase: d(Cv)/dT is positive.
Other calculations, like saturation calculations and vapor-phase P/T points, seem to work OK, but a lot of T/P calculations in the liquid fail in this way or in other ways (sometimes for density out of range for what seem like they should be reasonable liquid states).
I did not try to evaluate the stated derivative in the message, but off the top of my head I can't think of any fundamental thermodynamic reason why d(Cv)/dT can't be positive in a liquid phase.
P.S. You have probably gotten this suggestion before, but it would be great if the "Error Status" box in the GUI allowed the user to copy the text of the error message so it could be pasted into reports like this.
The text was updated successfully, but these errors were encountered: