11#ifndef WATERPROPSIAPWS_H
12#define WATERPROPSIAPWS_H
32#define WATER_SUPERCRIT 2
33#define WATER_UNSTABLELIQUID 3
34#define WATER_UNSTABLEGAS 4
216 double Gibbs()
const;
286 int phase = -1,
double rhoguess = -1.0);
418 int phaseState(
bool checkState =
false)
const;
463 double& densGas,
double& delGRT);
474 double& densGas,
double& pcorr);
Header for Lowest level of the classes which support a real water model (see class WaterPropsIAPWS an...
Class for calculating the equation of state of water.
double cv() const
Calculate the constant volume heat capacity in mks units of J kmol-1 K-1 at the last temperature and ...
double coeffThermExp() const
Returns the coefficient of thermal expansion.
void setState_TR(double temperature, double rho)
Set the internal state of the object wrt temperature and density.
double densSpinodalSteam() const
Return the value of the density at the water spinodal point (on the gas side) for the current tempera...
double density() const
Returns the density (kg m-3)
void corr(double temperature, double pressure, double &densLiq, double &densGas, double &delGRT)
Utility routine in the calculation of the saturation pressure.
double enthalpy() const
Calculate the enthalpy in mks units of J kmol-1 using the last temperature and density.
double pressure() const
Calculates the pressure (Pascals), given the current value of the temperature and density.
void corr1(double temperature, double pressure, double &densLiq, double &densGas, double &pcorr)
Utility routine in the calculation of the saturation pressure.
double helmholtzFE() const
Calculate the Helmholtz free energy in mks units of J kmol-1 K-1, using the last temperature and dens...
double gibbs_mass() const
Get the Gibbs free energy (J/kg) at the current temperature and density.
double isothermalCompressibility() const
Returns the coefficient of isothermal compressibility for the state of the object.
double psat(double temperature, int waterState=WATER_LIQUID)
This function returns the saturation pressure given the temperature as an input parameter,...
double entropy() const
Calculate the entropy in mks units of J kmol-1 K-1.
double temperature() const
Returns the temperature (Kelvin)
double Pcrit() const
Returns the critical pressure of water (22.064E6 Pa)
double cv_mass() const
Get the constant volume heat capacity (J/kg/K) at the current temperature and density.
double entropy_mass() const
Get the entropy (J/kg/K) at the current temperature and density.
double Gibbs() const
Calculate the Gibbs free energy in mks units of J kmol-1 K-1.
double Rhocrit() const
Return the critical density of water (kg m-3)
double densSpinodalWater() const
Return the value of the density at the water spinodal point (on the liquid side) for the current temp...
double delta
Dimensionless density, delta = rho / rho_c.
double Tcrit() const
Returns the critical temperature of water (Kelvin)
double cp_mass() const
Get the constant pressure heat capacity (J/kg/K) at the current temperature and density.
double intEnergy_mass() const
Get the internal energy (J/kg) at the current temperature and density.
double coeffPresExp() const
Returns the isochoric pressure derivative wrt temperature.
int iState
Current state of the system.
double cp() const
Calculate the constant pressure heat capacity in mks units of J kmol-1 K-1 at the last temperature an...
void setState_TD(double temperature, double rho)
Set the internal state of the object wrt temperature and density.
double molarVolume() const
Calculate the molar volume (kmol m-3) at the last temperature and density.
double tau
Dimensionless temperature, tau = T_C / T.
WaterPropsIAPWSphi m_phi
pointer to the underlying object that does the calculations.
double intEnergy() const
Calculate the internal energy in mks units of J kmol-1.
double density_const(double pressure, int phase=-1, double rhoguess=-1.0) const
Calculates the density given the temperature and the pressure, and a guess at the density,...
void calcDim(double temperature, double rho)
Calculate the dimensionless temp and rho and store internally.
int phaseState(bool checkState=false) const
Returns the Phase State flag for the current state of the object.
WaterPropsIAPWS()=default
Base constructor.
double dpdrho() const
Returns the value of dp / drho at constant T for the state of the object.
double psat_est(double temperature) const
This function returns an estimated value for the saturation pressure.
double enthalpy_mass() const
Get the enthalpy (J/kg) at the current temperature and density.
Low level class for the real description of water.
Namespace for the Cantera kernel.