12 #ifndef WATERPROPSIAPWS_H
13 #define WATERPROPSIAPWS_H
16 #include "cantera/base/config.h"
34 #define WATER_LIQUID 1
35 #define WATER_SUPERCRIT 2
36 #define WATER_UNSTABLELIQUID 3
37 #define WATER_UNSTABLEGAS 4
187 doublereal
Gibbs()
const;
201 doublereal
cv()
const;
205 doublereal
cp()
const;
248 doublereal
density(doublereal temperature, doublereal pressure,
249 int phase = -1, doublereal rhoguess = -1.0);
277 doublereal
density_const(doublereal pressure,
int phase = -1, doublereal rhoguess = -1.0)
const;
333 doublereal
dpdrho()
const;
345 doublereal
psat_est(doublereal temperature)
const;
365 doublereal
psat(doublereal temperature,
int waterState = WATER_LIQUID);
391 int phaseState(
bool checkState =
false)
const ;
423 void calcDim(doublereal temperature, doublereal rho);
435 void corr(doublereal temperature, doublereal pressure, doublereal& densLiq,
436 doublereal& densGas, doublereal& delGRT);
446 void corr1(doublereal temperature, doublereal pressure, doublereal& densLiq,
447 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.