Cantera 2.6.0

Public Member Functions | Private Member Functions | Private Attributes | List of all members
WaterPropsIAPWS Class Reference
Models of Phases of Matter » Thermodynamic Properties

Class for calculating the equation of state of water. More...

`#include <WaterPropsIAPWS.h>`

Collaboration diagram for WaterPropsIAPWS:
[legend]

## Public Member Functions
| WaterPropsIAPWS ()
| Base constructor. More...
| WaterPropsIAPWS (const WaterPropsIAPWS &right)=delete
WaterPropsIAPWS & | operator= (const WaterPropsIAPWS &right)=delete
void | setState_TR (doublereal temperature, doublereal rho)
| Set the internal state of the object wrt temperature and density. More...
doublereal | helmholtzFE () const
| Calculate the Helmholtz free energy in mks units of J kmol-1 K-1, using the last temperature and density. More...
doublereal | Gibbs () const
| Calculate the Gibbs free energy in mks units of J kmol-1 K-1. More...
doublereal | enthalpy () const
| Calculate the enthalpy in mks units of J kmol-1 using the last temperature and density. More...
doublereal | intEnergy () const
| Calculate the internal energy in mks units of J kmol-1. More...
doublereal | entropy () const
| Calculate the entropy in mks units of J kmol-1 K-1. More...
doublereal | cv () const
| Calculate the constant volume heat capacity in mks units of J kmol-1 K-1 at the last temperature and density. More...
doublereal | cp () const
| Calculate the constant pressure heat capacity in mks units of J kmol-1 K-1 at the last temperature and density. More...
doublereal | molarVolume () const
| Calculate the molar volume (kmol m-3) at the last temperature and density. More...
doublereal | pressure () const
| Calculates the pressure (Pascals), given the current value of the temperature and density. More...
doublereal | density (doublereal temperature, doublereal pressure, int phase=-1, doublereal rhoguess=-1.0)
| Calculates the density given the temperature and the pressure, and a guess at the density. More...
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, while not changing the internal state. More...
doublereal | density () const
| Returns the density (kg m-3) More...
doublereal | temperature () const
| Returns the temperature (Kelvin) More...
doublereal | coeffThermExp () const
| Returns the coefficient of thermal expansion. More...
doublereal | coeffPresExp () const
| Returns the isochoric pressure derivative wrt temperature. More...
doublereal | isothermalCompressibility () const
| Returns the coefficient of isothermal compressibility for the state of the object. More...
doublereal | dpdrho () const
| Returns the value of dp / drho at constant T for the state of the object. More...
doublereal | psat_est (doublereal temperature) const
| This function returns an estimated value for the saturation pressure. More...
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. More...
doublereal | densSpinodalWater () const
| Return the value of the density at the water spinodal point (on the liquid side) for the current temperature. More...
doublereal | densSpinodalSteam () const
| Return the value of the density at the water spinodal point (on the gas side) for the current temperature. More...
int | phaseState (bool checkState=false) const
| Returns the Phase State flag for the current state of the object. More...
doublereal | Tcrit () const
| Returns the critical temperature of water (Kelvin) More...
doublereal | Pcrit () const
| Returns the critical pressure of water (22.064E6 Pa) More...
doublereal | Rhocrit () const
| Return the critical density of water (kg m-3) More...

## Private Member Functions
void | calcDim (doublereal temperature, doublereal rho)
| Calculate the dimensionless temp and rho and store internally. More...
void | corr (doublereal temperature, doublereal pressure, doublereal &densLiq, doublereal &densGas, doublereal &delGRT)
| Utility routine in the calculation of the saturation pressure. More...
void | corr1 (doublereal temperature, doublereal pressure, doublereal &densLiq, doublereal &densGas, doublereal &pcorr)
| Utility routine in the calculation of the saturation pressure. More...

## Private Attributes
WaterPropsIAPWSphi | m_phi
| pointer to the underlying object that does the calculations. More...
doublereal | tau
| Dimensionless temperature, tau = T_C / T. More...
doublereal | delta
| Dimensionless density, delta = rho / rho_c. More...
int | iState
| Current state of the system. More...

## Detailed Description

Class for calculating the equation of state of water.

This is a helper class for WaterSSTP and PDSS_Water and does not constitute a complete implementation of a thermo phase by itself (see Thermodynamic Properties and classes WaterSSTP and PDSS_Water).

The reference is W. Wagner, A. Pruss, "The IAPWS Formulation 1995 for the Thermodynamic Properties of Ordinary Water Substance for General and Scientific Use," J. Phys. Chem. Ref. Dat, 31, 387, 2002.

This class provides a very complicated polynomial for the specific Helmholtz free energy of water, as a function of temperature and density.

\[ \frac{M\hat{f}(\rho,T)}{R T} = \phi(\delta, \tau) = \phi^o(\delta, \tau) + \phi^r(\delta, \tau) \]

where

\[ \delta = \rho / \rho_c \quad \mathrm{and} \quad \tau = T_c / T \]

The following constants are assumed

\[ T_c = 647.096\mathrm{\;K} \]

\[ \rho_c = 322 \mathrm{\;kg\,m^{-3}} \]

\[ R/M = 0.46151805 \mathrm{\;kJ\,kg^{-1}\,K^{-1}} \]

The free energy is a unique single-valued function of the temperature and density over its entire range.

Note, the base thermodynamic state for this class is the one used in the steam tables, such that the liquid at the triple point for water has the following properties:

- u(273.16, rho) = 0.0
- s(273.16, rho) = 0.0
- psat(273.16) = 611.655 Pascal
- rho(273.16, psat) = 999.793 kg m-3

Therefore, to use this class within Cantera, offsets to u() and s() must be used to put the water class onto the same basis as other thermodynamic quantities. For example, in the WaterSSTP class, these offsets are calculated in the following way. The thermodynamic base state for water is set to the NIST basis here by specifying constants EW_Offset and SW_Offset. These offsets are calculated on the fly so that the following properties hold:

- Delta_Hfo_idealGas(298.15, 1bar) = -241.826 kJ/gmol
- So_idealGas(298.15, 1bar) = 188.835 J/gmolK

The offsets are calculated by actually computing the above quantities and then calculating the correction factor.

This class provides an interface to the WaterPropsIAPWSphi class, which actually calculates the \( \phi^o(\delta, \tau) \) and the \( \phi^r(\delta, \tau) \) polynomials in dimensionless form.

All thermodynamic results from this class are returned in dimensional form. This is because the gas constant (and molecular weight) used within this class is allowed to be potentially different than that used elsewhere in Cantera. Therefore, everything has to be in dimensional units. Note, however, the thermodynamic basis is set to that used in the steam tables. (u = s = 0 for liquid water at the triple point).

This class is not a ThermoPhase. However, it does maintain an internal state of the object that is dependent on temperature and density. The internal state is characterized by an internally stored \( \tau\) and a \( \delta \) value, and an iState value, which indicates whether the point is a liquid, a gas, or a supercritical fluid. Along with that the \( \tau\) and a \( \delta \) values are polynomials of \( \tau\) and a \( \delta \) that are kept by the WaterPropsIAPWSphi class. Therefore, whenever \( \tau\) or \( \delta \) is changed, the function setState() must be called in order for the internal state to be kept up to date.

The class is pretty straightforward. However, one function deserves mention. The density() function calculates the density that is consistent with a particular value of the temperature and pressure. It may therefore be multivalued or potentially there may be no answer from this function. It therefore takes a phase guess and a density guess as optional parameters. If no guesses are supplied to density(), a gas phase guess is assumed. This may or may not be what is wanted. Therefore, density() should usually at least be supplied with a phase guess so that it may manufacture an appropriate density guess. density() manufactures the initial density guess, nondimensionalizes everything, and then calls WaterPropsIAPWSphi::dfind(), which does the iterative calculation to find the density condition that matches the desired input pressure.

The phase guess defines are located in the .h file. they are

- WATER_GAS
- WATER_LIQUID
- WATER_SUPERCRIT

There are only three functions which actually change the value of the internal state of this object after it's been instantiated

- setState_TR(temperature, rho)
- density(temperature, pressure, phase, rhoguess)
- psat(temperature, waterState);

The setState_TR() is the main function that sets the temperature and rho value. The density() function serves as a setState_TP() function, in that it sets internal state to a temperature and pressure. However, note that this is potentially multivalued. Therefore, we need to supply in addition a phase guess and a rho guess to the input temperature and pressure. The psat() function sets the internal state to the saturated liquid or saturated gas state, depending on the waterState parameter.

Because the underlying object WaterPropsIAPWSphi is privately held, you can be sure that the underlying state of this object doesn't change except due to the three function calls listed above.

Definition at line 162 of file WaterPropsIAPWS.h.

## Constructor & Destructor Documentation

## ◆ WaterPropsIAPWS()

WaterPropsIAPWS | ( |  | ) |

Base constructor.

Definition at line 38 of file WaterPropsIAPWS.cpp.

## Member Function Documentation

## ◆ setState_TR()

void setState_TR | ( | doublereal | temperature,
|  | doublereal | rho
| ) |  |

Set the internal state of the object wrt temperature and density.

Parameters

  temperature | temperature (kelvin)
  rho | density (kg m-3)

Definition at line 580 of file WaterPropsIAPWS.cpp.

References WaterPropsIAPWS::calcDim(), WaterPropsIAPWS::delta, WaterPropsIAPWS::m_phi, WaterPropsIAPWS::tau, WaterPropsIAPWSphi::tdpolycalc(), and WaterPropsIAPWS::temperature().

Referenced by WaterPropsIAPWS::density(), PDSS_Water::dthermalExpansionCoeffdT(), WaterSSTP::satPressure(), WaterSSTP::setDensity(), PDSS_Water::setDensity(), PDSS_Water::setState_TR(), WaterSSTP::setTemperature(), and PDSS_Water::setTemperature().

## ◆ helmholtzFE()

doublereal helmholtzFE | ( |  | ) | const

Calculate the Helmholtz free energy in mks units of J kmol-1 K-1, using the last temperature and density.

Definition at line 62 of file WaterPropsIAPWS.cpp.

References WaterPropsIAPWS::delta, WaterPropsIAPWS::m_phi, WaterPropsIAPWSphi::phi(), Cantera::Rgas, Cantera::T_c, WaterPropsIAPWS::tau, and WaterPropsIAPWS::temperature().

## ◆ Gibbs()

doublereal Gibbs | ( |  | ) | const

Calculate the Gibbs free energy in mks units of J kmol-1 K-1.

using the last temperature and density

Definition at line 267 of file WaterPropsIAPWS.cpp.

References WaterPropsIAPWSphi::gibbs_RT(), WaterPropsIAPWS::m_phi, Cantera::Rgas, Cantera::T_c, WaterPropsIAPWS::tau, and WaterPropsIAPWS::temperature().

Referenced by WaterSSTP::getGibbs_RT(), WaterSSTP::getStandardChemPotentials(), and PDSS_Water::gibbs_mole().

## ◆ enthalpy()

doublereal enthalpy | ( |  | ) | const

Calculate the enthalpy in mks units of J kmol-1 using the last temperature and density.

Definition at line 586 of file WaterPropsIAPWS.cpp.

References WaterPropsIAPWSphi::enthalpy_RT(), WaterPropsIAPWS::m_phi, Cantera::Rgas, Cantera::T_c, WaterPropsIAPWS::tau, and WaterPropsIAPWS::temperature().

Referenced by PDSS_Water::enthalpy_mole(), and WaterSSTP::getEnthalpy_RT().

## ◆ intEnergy()

doublereal intEnergy | ( |  | ) | const

Calculate the internal energy in mks units of J kmol-1.

Definition at line 593 of file WaterPropsIAPWS.cpp.

References WaterPropsIAPWSphi::intEnergy_RT(), WaterPropsIAPWS::m_phi, Cantera::Rgas, Cantera::T_c, WaterPropsIAPWS::tau, and WaterPropsIAPWS::temperature().

Referenced by WaterSSTP::getIntEnergy_RT(), and PDSS_Water::intEnergy_mole().

## ◆ entropy()

doublereal entropy | ( |  | ) | const

Calculate the entropy in mks units of J kmol-1 K-1.

Definition at line 600 of file WaterPropsIAPWS.cpp.

References WaterPropsIAPWSphi::entropy_R(), WaterPropsIAPWS::m_phi, and Cantera::Rgas.

Referenced by PDSS_Water::entropy_mole(), and WaterSSTP::getEntropy_R().

## ◆ cv()

doublereal cv | ( |  | ) | const

Calculate the constant volume heat capacity in mks units of J kmol-1 K-1 at the last temperature and density.

Definition at line 606 of file WaterPropsIAPWS.cpp.

References WaterPropsIAPWSphi::cv_R(), WaterPropsIAPWS::m_phi, and Cantera::Rgas.

Referenced by PDSS_Water::cv_mole(), and WaterSSTP::cv_mole().

## ◆ cp()

doublereal cp | ( |  | ) | const

Calculate the constant pressure heat capacity in mks units of J kmol-1 K-1 at the last temperature and density.

Definition at line 612 of file WaterPropsIAPWS.cpp.

References WaterPropsIAPWSphi::cp_R(), WaterPropsIAPWS::m_phi, and Cantera::Rgas.

Referenced by PDSS_Water::cp_mole(), and WaterSSTP::getCp_R().

## ◆ molarVolume()

doublereal molarVolume | ( |  | ) | const

Calculate the molar volume (kmol m-3) at the last temperature and density.

Definition at line 618 of file WaterPropsIAPWS.cpp.

References WaterPropsIAPWS::delta, Cantera::M_water, and Cantera::Rho_c.

Referenced by PDSS_Water::molarVolume().

## ◆ pressure()

doublereal pressure | ( |  | ) | const

Calculates the pressure (Pascals), given the current value of the temperature and density.

The density is an independent variable in the underlying equation of state

Returns
  the pressure (Pascal)

Definition at line 70 of file WaterPropsIAPWS.cpp.

References WaterPropsIAPWS::delta, WaterPropsIAPWS::m_phi, Cantera::M_water, WaterPropsIAPWSphi::pressureM_rhoRT(), Cantera::Rgas, Cantera::Rho_c, Cantera::T_c, WaterPropsIAPWS::tau, and WaterPropsIAPWS::temperature().

Referenced by WaterPropsIAPWS::corr(), WaterPropsIAPWS::corr1(), WaterPropsIAPWS::density(), WaterPropsIAPWS::density_const(), PDSS_Water::pressure(), and WaterSSTP::pressure().

## ◆ density() [1/2]

doublereal density | ( | doublereal | temperature,
|  | doublereal | pressure,
|  | int | phase = `-1`,
|  | doublereal | rhoguess = `-1.0`
| ) |  |

Calculates the density given the temperature and the pressure, and a guess at the density.

Sets the internal state.

Note, below T_c, this is a multivalued function.

The density() function calculates the density that is consistent with a particular value of the temperature and pressure. It may therefore be multivalued or potentially there may be no answer from this function. It therefore takes a phase guess and a density guess as optional parameters. If no guesses are supplied to density(), a gas phase guess is assumed. This may or may not be what is wanted. Therefore, density() should usually at least be supplied with a phase guess so that it may manufacture an appropriate density guess. density() manufactures the initial density guess, nondimensionalizes everything, and then calls WaterPropsIAPWSphi::dfind(), which does the iterative calculation to find the density condition that matches the desired input pressure.

Parameters

  temperature | Kelvin
  pressure | Pressure in Pascals (Newton/m**2)
  phase | guessed phase of water; -1: no guessed phase
  rhoguess | guessed density of the water; -1.0 no guessed density

Returns
  the density. If an error is encountered in the calculation the value of -1.0 is returned.

Definition at line 78 of file WaterPropsIAPWS.cpp.

References Cantera::M_water, Cantera::P_c, WaterPropsIAPWS::pressure(), Cantera::Rgas, Cantera::Rho_c, WaterPropsIAPWS::setState_TR(), Cantera::T_c, and WaterPropsIAPWS::temperature().

Referenced by WaterProps::coeffThermalExp_IAPWS(), WaterProps::density_IAPWS(), PDSS_Water::dthermalExpansionCoeffdT(), and WaterProps::isothermalCompressibility_IAPWS().

## ◆ density_const()

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, while not changing the internal state.

Note, below T_c, this is a multivalued function.

The density() function calculates the density that is consistent with a particular value of the temperature and pressure. It may therefore be multivalued or potentially there may be no answer from this function. It therefore takes a phase guess and a density guess as optional parameters. If no guesses are supplied to density(), a gas phase guess is assumed. This may or may not be what is wanted. Therefore, density() should usually at least be supplied with a phase guess so that it may manufacture an appropriate density guess. density() manufactures the initial density guess, nondimensionalizes everything, and then calls WaterPropsIAPWSphi::dfind(), which does the iterative calculation to find the density condition that matches the desired input pressure.

Parameters

  pressure | Pressure in Pascals (Newton/m**2)
  phase | guessed phase of water; -1: no guessed phase
  rhoguess | guessed density of the water; -1.0: no guessed density

Returns
  the density. If an error is encountered in the calculation the value of -1.0 is returned.

Definition at line 138 of file WaterPropsIAPWS.cpp.

References WaterPropsIAPWS::delta, Cantera::M_water, WaterPropsIAPWS::pressure(), Cantera::Rgas, Cantera::T_c, WaterPropsIAPWS::tau, and WaterPropsIAPWS::temperature().

Referenced by WaterPropsIAPWS::densSpinodalSteam(), and WaterPropsIAPWS::densSpinodalWater().

## ◆ density() [2/2]

doublereal density | ( |  | ) | const

Returns the density (kg m-3)

The density is an independent variable in the underlying equation of state

Returns
  the density (kg m-3)

Definition at line 192 of file WaterPropsIAPWS.cpp.

References WaterPropsIAPWS::delta, and Cantera::Rho_c.

Referenced by WaterPropsIAPWS::corr(), WaterPropsIAPWS::corr1(), and WaterPropsIAPWS::psat().

## ◆ temperature()

doublereal temperature | ( |  | ) | const

Returns the temperature (Kelvin)

Returns
  s the internally stored temperature

Definition at line 197 of file WaterPropsIAPWS.cpp.

References Cantera::T_c, and WaterPropsIAPWS::tau.

Referenced by WaterPropsIAPWS::calcDim(), WaterPropsIAPWS::corr(), WaterPropsIAPWS::corr1(), WaterPropsIAPWS::density(), WaterPropsIAPWS::density_const(), WaterPropsIAPWS::densSpinodalSteam(), WaterPropsIAPWS::densSpinodalWater(), WaterPropsIAPWS::dpdrho(), WaterPropsIAPWS::enthalpy(), WaterPropsIAPWS::Gibbs(), WaterPropsIAPWS::helmholtzFE(), WaterPropsIAPWS::intEnergy(), WaterPropsIAPWS::pressure(), WaterPropsIAPWS::psat(), and WaterPropsIAPWS::setState_TR().

## ◆ coeffThermExp()

doublereal coeffThermExp | ( |  | ) | const

Returns the coefficient of thermal expansion.

alpha = d (ln V) / dT at constant P.

Returns
  the coefficient of thermal expansion

Definition at line 259 of file WaterPropsIAPWS.cpp.

References WaterPropsIAPWS::isothermalCompressibility().

Referenced by PDSS_Water::dthermalExpansionCoeffdT(), PDSS_Water::thermalExpansionCoeff(), and WaterSSTP::thermalExpansionCoeff().

## ◆ coeffPresExp()

doublereal coeffPresExp | ( |  | ) | const

Returns the isochoric pressure derivative wrt temperature.

beta = M / (rho * Rgas) (d (pressure) / dT) at constant rho

Note for ideal gases this is equal to one.

    beta = delta (phi0_d() + phiR_d()) - tau delta (phi0_dt() + phiR_dt())

Definition at line 254 of file WaterPropsIAPWS.cpp.

References WaterPropsIAPWS::delta, WaterPropsIAPWSphi::dimdpdT(), WaterPropsIAPWS::m_phi, and WaterPropsIAPWS::tau.

## ◆ isothermalCompressibility()

doublereal isothermalCompressibility | ( |  | ) | const

Returns the coefficient of isothermal compressibility for the state of the object.

kappa = - d (ln V) / dP at constant T.

units - 1/Pascal

Returns
  the isothermal compressibility

Definition at line 240 of file WaterPropsIAPWS.cpp.

References WaterPropsIAPWS::delta, WaterPropsIAPWS::dpdrho(), and Cantera::Rho_c.

Referenced by WaterPropsIAPWS::coeffThermExp(), PDSS_Water::isothermalCompressibility(), and WaterSSTP::isothermalCompressibility().

## ◆ dpdrho()

doublereal dpdrho | ( |  | ) | const

Returns the value of dp / drho at constant T for the state of the object.

units - Joules / kg

Returns
  dpdrho

Definition at line 247 of file WaterPropsIAPWS.cpp.

References WaterPropsIAPWS::delta, WaterPropsIAPWSphi::dimdpdrho(), WaterPropsIAPWS::m_phi, Cantera::M_water, Cantera::Rgas, Cantera::T_c, WaterPropsIAPWS::tau, and WaterPropsIAPWS::temperature().

Referenced by WaterPropsIAPWS::isothermalCompressibility().

## ◆ psat_est()

doublereal psat_est | ( | doublereal | temperature | ) | const

This function returns an estimated value for the saturation pressure.

It does this via a polynomial fit of the vapor pressure curve. units = (Pascals)

Parameters

  temperature | Input temperature (Kelvin)

Returns
  the estimated saturation pressure

Definition at line 202 of file WaterPropsIAPWS.cpp.

Referenced by WaterPropsIAPWS::densSpinodalSteam(), WaterPropsIAPWS::densSpinodalWater(), and PDSS_Water::pref_safe().

## ◆ psat()

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.

Note this function will return the saturation pressure, given the temperature. It will then set the state of the system to the saturation condition. The input parameter waterState is used to either specify the liquid state or the gas state at the desired temperature and saturated pressure.

If the input temperature, T, is above T_c, this routine will set the internal state to T and the pressure to P_c. Then, return P_c.

Parameters

  temperature | input temperature (kelvin)
  waterState | integer specifying the water state

Returns
  the saturation pressure. units = Pascal

Definition at line 323 of file WaterPropsIAPWS.cpp.

References WaterPropsIAPWS::density(), Cantera::P_c, Cantera::T_c, and WaterPropsIAPWS::temperature().

Referenced by PDSS_Water::satPressure(), and WaterSSTP::satPressure().

## ◆ densSpinodalWater()

doublereal densSpinodalWater | ( |  | ) | const

Return the value of the density at the water spinodal point (on the liquid side) for the current temperature.

Returns
  the density with units of kg m-3

Definition at line 405 of file WaterPropsIAPWS.cpp.

References WaterPropsIAPWS::delta, WaterPropsIAPWS::density_const(), WaterPropsIAPWS::psat_est(), Cantera::Rho_c, Cantera::T_c, WaterPropsIAPWS::tau, and WaterPropsIAPWS::temperature().

## ◆ densSpinodalSteam()

doublereal densSpinodalSteam | ( |  | ) | const

Return the value of the density at the water spinodal point (on the gas side) for the current temperature.

Returns
  the density with units of kg m-3

Definition at line 493 of file WaterPropsIAPWS.cpp.

References WaterPropsIAPWS::delta, WaterPropsIAPWS::density_const(), WaterPropsIAPWS::psat_est(), Cantera::Rho_c, Cantera::T_c, WaterPropsIAPWS::tau, and WaterPropsIAPWS::temperature().

## ◆ phaseState()

int phaseState | ( | bool | checkState = `false` | ) | const

Returns the Phase State flag for the current state of the object.

Parameters

  checkState | If true, this function does a complete check to see where in parameters space we are

There are three values:

- WATER_GAS below the critical temperature but below the critical density
- WATER_LIQUID below the critical temperature but above the critical density
- WATER_SUPERCRIT above the critical temperature

Definition at line 365 of file WaterPropsIAPWS.cpp.

References WaterPropsIAPWS::iState, and WaterPropsIAPWS::tau.

Referenced by WaterSSTP::phaseOfMatter().

## ◆ Tcrit()

doublereal Tcrit | ( |  | ) | const
| inline

Returns the critical temperature of water (Kelvin)

This is hard coded to the value 647.096 Kelvin

Definition at line 380 of file WaterPropsIAPWS.h.

Referenced by PDSS_Water::critTemperature(), WaterSSTP::critTemperature(), PDSS_Water::pref_safe(), and WaterSSTP::vaporFraction().

## ◆ Pcrit()

doublereal Pcrit | ( |  | ) | const
| inline

Returns the critical pressure of water (22.064E6 Pa)

This is hard coded to the value of 22.064E6 pascals

Definition at line 388 of file WaterPropsIAPWS.h.

Referenced by PDSS_Water::critPressure(), WaterSSTP::critPressure(), and PDSS_Water::pref_safe().

## ◆ Rhocrit()

doublereal Rhocrit | ( |  | ) | const
| inline

Return the critical density of water (kg m-3)

This is equal to 322 kg m-3.

Definition at line 396 of file WaterPropsIAPWS.h.

Referenced by PDSS_Water::critDensity(), WaterSSTP::critDensity(), and WaterSSTP::vaporFraction().

## ◆ calcDim()

void calcDim | ( | doublereal | temperature,
|  | doublereal | rho
| ) |  |
| private

Calculate the dimensionless temp and rho and store internally.

Parameters

  temperature | input temperature (kelvin)
  rho | density in kg m-3

Definition at line 45 of file WaterPropsIAPWS.cpp.

References WaterPropsIAPWS::delta, WaterPropsIAPWS::iState, Cantera::Rho_c, Cantera::T_c, WaterPropsIAPWS::tau, and WaterPropsIAPWS::temperature().

Referenced by WaterPropsIAPWS::setState_TR().

## ◆ corr()

void corr | ( | doublereal | temperature,
|  | doublereal | pressure,
|  | doublereal & | densLiq,
|  | doublereal & | densGas,
|  | doublereal & | delGRT
| ) |  |
| private

Utility routine in the calculation of the saturation pressure.

Calculate the Gibbs free energy in mks units of J kmol-1 K-1.

Parameters

  temperature | temperature (kelvin)
  pressure | pressure (Pascal)
  densLiq | Output density of liquid
  densGas | output Density of gas
  delGRT | output delGRT

Definition at line 274 of file WaterPropsIAPWS.cpp.

References WaterPropsIAPWS::density(), WaterPropsIAPWS::pressure(), and WaterPropsIAPWS::temperature().

## ◆ corr1()

void corr1 | ( | doublereal | temperature,
|  | doublereal | pressure,
|  | doublereal & | densLiq,
|  | doublereal & | densGas,
|  | doublereal & | pcorr
| ) |  |
| private

Utility routine in the calculation of the saturation pressure.

Parameters

  temperature | temperature (kelvin)
  pressure | pressure (Pascal)
  densLiq | Output density of liquid
  densGas | output Density of gas
  pcorr | output corrected pressure

Definition at line 298 of file WaterPropsIAPWS.cpp.

References WaterPropsIAPWS::density(), WaterPropsIAPWS::pressure(), and WaterPropsIAPWS::temperature().

## Member Data Documentation

## ◆ m_phi

WaterPropsIAPWSphi m_phi
| mutable private

pointer to the underlying object that does the calculations.

Definition at line 433 of file WaterPropsIAPWS.h.

Referenced by WaterPropsIAPWS::coeffPresExp(), WaterPropsIAPWS::cp(), WaterPropsIAPWS::cv(), WaterPropsIAPWS::dpdrho(), WaterPropsIAPWS::enthalpy(), WaterPropsIAPWS::entropy(), WaterPropsIAPWS::Gibbs(), WaterPropsIAPWS::helmholtzFE(), WaterPropsIAPWS::intEnergy(), WaterPropsIAPWS::pressure(), and WaterPropsIAPWS::setState_TR().

## ◆ tau

doublereal tau
| private

Dimensionless temperature, tau = T_C / T.

Definition at line 436 of file WaterPropsIAPWS.h.

Referenced by WaterPropsIAPWS::calcDim(), WaterPropsIAPWS::coeffPresExp(), WaterPropsIAPWS::density_const(), WaterPropsIAPWS::densSpinodalSteam(), WaterPropsIAPWS::densSpinodalWater(), WaterPropsIAPWS::dpdrho(), WaterPropsIAPWS::enthalpy(), WaterPropsIAPWS::Gibbs(), WaterPropsIAPWS::helmholtzFE(), WaterPropsIAPWS::intEnergy(), WaterPropsIAPWS::phaseState(), WaterPropsIAPWS::pressure(), WaterPropsIAPWS::setState_TR(), and WaterPropsIAPWS::temperature().

## ◆ delta

doublereal delta
| mutable private

Dimensionless density, delta = rho / rho_c.

Definition at line 439 of file WaterPropsIAPWS.h.

Referenced by WaterPropsIAPWS::calcDim(), WaterPropsIAPWS::coeffPresExp(), WaterPropsIAPWS::density(), WaterPropsIAPWS::density_const(), WaterPropsIAPWS::densSpinodalSteam(), WaterPropsIAPWS::densSpinodalWater(), WaterPropsIAPWS::dpdrho(), WaterPropsIAPWS::helmholtzFE(), WaterPropsIAPWS::isothermalCompressibility(), WaterPropsIAPWS::molarVolume(), WaterPropsIAPWS::pressure(), and WaterPropsIAPWS::setState_TR().

## ◆ iState

int iState
| mutable private

Current state of the system.

Definition at line 442 of file WaterPropsIAPWS.h.

Referenced by WaterPropsIAPWS::calcDim(), and WaterPropsIAPWS::phaseState().

The documentation for this class was generated from the following files:

- WaterPropsIAPWS.h
- WaterPropsIAPWS.cpp