IF97 icon indicating copy to clipboard operation
IF97 copied to clipboard

Meta-stable States

Open henningjp opened this issue 7 years ago • 5 comments

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 avatar Mar 20 '18 04:03 henningjp

Is there any interest in this?

henningjp avatar Jun 06 '19 23:06 henningjp

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.

hlucian avatar Oct 06 '21 14:10 hlucian

Have you experimented with the tabular backends in CoolProp core? They are not 100% perfect, but are pretty fast if they meet your needs

ibell avatar Oct 06 '21 16:10 ibell

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 avatar Oct 07 '21 07:10 hlucian

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.

hlucian avatar Oct 08 '21 05:10 hlucian