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

Meta-stable States #30

Open
henningjp opened this issue Mar 20, 2018 · 5 comments
Open

Meta-stable States #30

henningjp opened this issue Mar 20, 2018 · 5 comments
Labels
beginner Great issue to start contributing to IF97 enhancement Request for an enhancement help-wanted Looking for a few good contributors wishlist Something for a future release

Comments

@henningjp
Copy link
Contributor

Formulas for the meta-stable states just inside the vapor dome are provided in IAPWS R7-97(2012), the "Revised Release on the IAPWS Industrial Formulation 1997 for the Thermodynamic Properties of Water and Steam, August 2007". These are not currently included in this IF97 implementation, but could be implemented to provide properties in the meta-stable region.

@henningjp henningjp added enhancement Request for an enhancement help-wanted Looking for a few good contributors beginner Great issue to start contributing to IF97 wishlist Something for a future release labels Mar 20, 2018
@henningjp
Copy link
Contributor Author

Is there any interest in this?

@hlucian
Copy link

hlucian commented Oct 6, 2021

I would be happy to have this ability. In Refprop, i can enforce metastable conditions using the </>.
I am currently running a in-house developed CFD code for two-phase analysis of steam turbines in
an Euler-Euler formulation. I get good results but since I am using the algebraic expressions of IF-97,
the simulations is really slow. We have started the integration of table lookup in the solver and
it would be nice if I could also add the metastable conditions into the lookup table.

@ibell
Copy link
Contributor

ibell commented Oct 6, 2021 via email

@hlucian
Copy link

hlucian commented Oct 7, 2021

No I haven't. I am quite new to Coolprop/Refprop and only have to deal
with it since I would like to update an existing refpropm routine that we
use to compute property tables. The issue is that refpropm does not allow me
to compute metastable conditions for water. Another issue was that Refprop 9
was not consistent when computing the metastable conditions based on T = f(h,p<)
while it worked for h = f(T,p<). As you suggested me in another post, in Refprop 10,
this issue is not present anymore. However, since I had to pay myself for the upgrade
I wanted to give Coolprop a try.

I have now purchased Refprop 10 and started to replace refpropm with the python matlab
wrapper. However, I have a problem now when trying to compute the critical pressure for water.
In Refprop guy and the outdated refpropm I get the value for PCrit = 2.2064MPa. However, using
the python wrapper in Matlab i get 2.237MPa.

I was using the following routine in Matlab

RP = py.ctREFPROP.ctREFPROP.REFPROPFunctionLibrary('C:\Program Files (x86)\REFPROP\REFPRP64.DLL');
MOLSI = RP.GETENUMdll(int8(0),'MASS BASE SI').iEnum;
iMass = int8(0); % 0: molar fractions; 1: mass fractions
iFlag = int8(1); % 0: don't call SATSPLN; 1: call SATSPLN
z = {1.0}; % mole fractions, here a pure fluid, so mole fraction of 1.0
r = RP.REFPROPdll('Water','CRIT','P',MOLSI,iMass,iFlag,0,0,z);
o = double(r.Output);
ZVal = o(1)

Can ou tell me what I am doing wrong? I also tried with different options for iFlag (SATSPLIN)

@hlucian
Copy link

hlucian commented Oct 8, 2021

I do not know what happend but now it is returning the expected values.
Sorry for the inconvenience, not sure if it was somehow using an older version in
the background.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beginner Great issue to start contributing to IF97 enhancement Request for an enhancement help-wanted Looking for a few good contributors wishlist Something for a future release
Projects
None yet
Development

No branches or pull requests

3 participants