12 #ifndef WATERPROPSIAPWS_H
13 #define WATERPROPSIAPWS_H
33 #define WATER_LIQUID 1
34 #define WATER_SUPERCRIT 2
35 #define WATER_UNSTABLELIQUID 3
36 #define WATER_UNSTABLEGAS 4
186 doublereal
Gibbs()
const;
200 doublereal
cv()
const;
204 doublereal
cp()
const;
247 doublereal
density(doublereal temperature, doublereal pressure,
248 int phase = -1, doublereal rhoguess = -1.0);
276 doublereal
density_const(doublereal pressure,
int phase = -1, doublereal rhoguess = -1.0)
const;
332 doublereal
dpdrho()
const;
344 doublereal
psat_est(doublereal temperature)
const;
364 doublereal
psat(doublereal temperature,
int waterState = WATER_LIQUID);
390 int phaseState(
bool checkState =
false)
const ;
422 void calcDim(doublereal temperature, doublereal rho);
434 void corr(doublereal temperature, doublereal pressure, doublereal& densLiq,
435 doublereal& densGas, doublereal& delGRT);
445 void corr1(doublereal temperature, doublereal pressure, doublereal& densLiq,
446 doublereal& densGas, doublereal& pcorr);
doublereal densSpinodalSteam() const
Return the value of the density at the water spinodal point (on the gas side) for the current tempera...
doublereal isothermalCompressibility() const
Returns the coefficient of isothermal compressibility for the state of the object.
doublereal psat_est(doublereal temperature) const
This function returns an estimated value for the saturation pressure.
doublereal delta
Dimensionless density.
doublereal Tcrit() const
Returns the critical temperature of water (Kelvin)
void setState_TR(doublereal temperature, doublereal rho)
Set the internal state of the object wrt temperature and density.
Header for Lowest level of the classes which support a real water model (see class WaterPropsIAPWS an...
doublereal cv() const
Calculate the constant volume heat capacity in mks units of J kmol-1 K-1 at the last temperature and ...
int phaseState(bool checkState=false) const
Returns the Phase State flag for the current state of the object.
Class for calculating the equation of state of water.
doublereal density_const(doublereal pressure, int phase=-1, doublereal rhoguess=-1.0) const
Calculates the density given the temperature and the pressure, and a guess at the density...
WaterPropsIAPWS()
Base constructor.
doublereal Gibbs() const
Calculate the Gibbs free energy in mks units of J kmol-1 K-1.
doublereal density() const
Returns the density (kg m-3)
void corr(doublereal temperature, doublereal pressure, doublereal &densLiq, doublereal &densGas, doublereal &delGRT)
Utility routine in the calculation of the saturation pressure.
doublereal coeffThermExp() const
Returns the coefficient of thermal expansion.
doublereal densSpinodalWater() const
Return the value of the density at the water spinodal point (on the liquid side) for the current temp...
WaterPropsIAPWS & operator=(const WaterPropsIAPWS &right)
assignment constructor
void calcDim(doublereal temperature, doublereal rho)
Calculate the dimensionless temp and rho and store internally.
doublereal entropy() const
Calculate the entropy in mks units of J kmol-1 K-1.
int iState
Current state of the system.
doublereal dpdrho() const
Returns the value of dp / drho at constant T for the state of the object.
doublereal molarVolume() const
Calculate the molar volume (kmol m-3) at the last temperature and density.
doublereal enthalpy() const
Calculate the enthalpy in mks units of J kmol-1 using the last temperature and density.
doublereal Rhocrit() const
Return the critical density of water (kg m-3)
doublereal intEnergy() const
Calculate the internal energy in mks units of J kmol-1.
doublereal tau
Dimensionless temperature.
doublereal pressure() const
Calculates the pressure (Pascals), given the current value of the temperature and density...
Low level class for the real description of water.
void corr1(doublereal temperature, doublereal pressure, doublereal &densLiq, doublereal &densGas, doublereal &pcorr)
Utility routine in the calculation of the saturation pressure.
doublereal Pcrit() const
Returns the critical pressure of water (22.064E6 Pa)
doublereal cp() const
Calculate the constant pressure heat capacity in mks units of J kmol-1 K-1 at the last temperature an...
~WaterPropsIAPWS()
destructor
doublereal helmholtzFE() const
Calculate the Helmholtz free energy in mks units of J kmol-1 K-1, using the last temperature and dens...
doublereal temperature() const
Returns the temperature (Kelvin)
WaterPropsIAPWSphi * m_phi
pointer to the underlying object that does the calculations.
doublereal psat(doublereal temperature, int waterState=WATER_LIQUID)
This function returns the saturation pressure given the temperature as an input parameter, and sets the internal state to the saturated conditions.
doublereal coeffPresExp() const
Returns the isochoric pressure derivative wrt temperature.