A simple version of pure water. More...
#include <SimpleH2O.hpp>
Static Public Member Functions | |
static const char * | name () |
A human readable name for the water. | |
static bool | gasIsCompressible () |
Returns true iff the gas phase is assumed to be compressible. | |
static bool | liquidIsCompressible () |
Returns true iff the liquid phase is assumed to be compressible. | |
static bool | gasIsIdeal () |
Returns true iff the gas phase is assumed to be ideal. | |
static Scalar | molarMass () |
The molar mass in ![]() | |
static Scalar | criticalTemperature () |
Returns the critical temperature ![]() | |
static Scalar | criticalPressure () |
Returns the critical pressure ![]() | |
static Scalar | tripleTemperature () |
Returns the temperature ![]() | |
static Scalar | triplePressure () |
Returns the pressure ![]() | |
template<class Evaluation > | |
static Evaluation | vaporPressure (const Evaluation &T) |
The vapor pressure in ![]() | |
template<class Evaluation > | |
static Evaluation | gasEnthalpy (const Evaluation &temperature, const Evaluation &) |
Specific enthalpy of water steam ![]() | |
template<class Evaluation > | |
static Evaluation | liquidEnthalpy (const Evaluation &temperature, const Evaluation &) |
Specific enthalpy of liquid water ![]() | |
template<class Evaluation > | |
static Evaluation | gasInternalEnergy (const Evaluation &temperature, const Evaluation &pressure) |
Specific internal energy of steam ![]() | |
template<class Evaluation > | |
static Evaluation | liquidInternalEnergy (const Evaluation &temperature, const Evaluation &pressure) |
Specific internal energy of liquid water ![]() | |
template<class Evaluation > | |
static Evaluation | liquidThermalConductivity (const Evaluation &, const Evaluation &) |
Specific heat conductivity of liquid water ![]() | |
template<class Evaluation > | |
static Evaluation | gasThermalConductivity (const Evaluation &, const Evaluation &) |
Specific heat conductivity of steam ![]() | |
template<class Evaluation > | |
static Evaluation | gasDensity (const Evaluation &temperature, const Evaluation &pressure) |
The density ![]() | |
template<class Evaluation > | |
static Evaluation | gasPressure (const Evaluation &temperature, const Evaluation &density) |
The pressure of steam in ![]() | |
template<class Evaluation > | |
static Evaluation | liquidDensity (const Evaluation &, const Evaluation &) |
The density of pure water at a given pressure and temperature ![]() | |
template<class Evaluation > | |
static Evaluation | liquidPressure (const Evaluation &, const Evaluation &) |
The pressure of water in ![]() | |
template<class Evaluation > | |
static Evaluation | gasViscosity (const Evaluation &, const Evaluation &) |
The dynamic viscosity ![]() | |
template<class Evaluation > | |
static Evaluation | liquidViscosity (const Evaluation &, const Evaluation &) |
The dynamic viscosity ![]() |
A simple version of pure water.
Compared to the water formulation of IAPWS'97, this class provides a much simpler component that represents the thermodynamic properties of of pure water. This implies that the likelyhood for bugs in this class is reduced and the numerical performance is increased. (At the cost of accuracy for the representation of the physical quantities, of course.)
Scalar | The type used for representing scalar values |
static Evaluation Opm::SimpleH2O< Scalar >::gasDensity | ( | const Evaluation & | temperature, | |
const Evaluation & | pressure | |||
) | [inline, static] |
The density of steam at a given pressure and temperature.
temperature | temperature of component in ![]() | |
pressure | pressure of component in ![]() |
Reimplemented from Opm::Component< Scalar, SimpleH2O< Scalar > >.
static Evaluation Opm::SimpleH2O< Scalar >::gasEnthalpy | ( | const Evaluation & | temperature, | |
const Evaluation & | ||||
) | [inline, static] |
Specific enthalpy of water steam .
temperature | temperature of component in ![]() | |
pressure | pressure of component in ![]() |
Reimplemented from Opm::Component< Scalar, SimpleH2O< Scalar > >.
static Evaluation Opm::SimpleH2O< Scalar >::gasInternalEnergy | ( | const Evaluation & | temperature, | |
const Evaluation & | pressure | |||
) | [inline, static] |
Specific internal energy of steam .
Definition of enthalpy: .
Rearranging for internal energy yields: .
Exploiting the Ideal Gas assumption ()gives:
.
The universal gas constant can only be used in the case of molar formulations.
temperature | temperature of component in ![]() | |
pressure | pressure of component in ![]() |
Reimplemented from Opm::Component< Scalar, SimpleH2O< Scalar > >.
static Evaluation Opm::SimpleH2O< Scalar >::gasPressure | ( | const Evaluation & | temperature, | |
const Evaluation & | density | |||
) | [inline, static] |
The pressure of steam in at a given density and temperature.
temperature | temperature of component in ![]() | |
density | density of component in ![]() |
static Evaluation Opm::SimpleH2O< Scalar >::gasThermalConductivity | ( | const Evaluation & | , | |
const Evaluation & | ||||
) | [inline, static] |
Specific heat conductivity of steam .
temperature | temperature of component in ![]() | |
pressure | pressure of component in ![]() |
Reimplemented from Opm::Component< Scalar, SimpleH2O< Scalar > >.
static Evaluation Opm::SimpleH2O< Scalar >::gasViscosity | ( | const Evaluation & | , | |
const Evaluation & | ||||
) | [inline, static] |
The dynamic viscosity of steam.
temperature | temperature of component in ![]() | |
pressure | pressure of component in ![]() | |
regularize | defines, if the functions is regularized or not, set to true by default |
Reimplemented from Opm::Component< Scalar, SimpleH2O< Scalar > >.
static Evaluation Opm::SimpleH2O< Scalar >::liquidDensity | ( | const Evaluation & | , | |
const Evaluation & | ||||
) | [inline, static] |
The density of pure water at a given pressure and temperature .
temperature | temperature of component in ![]() | |
pressure | pressure of component in ![]() |
Reimplemented from Opm::Component< Scalar, SimpleH2O< Scalar > >.
static Evaluation Opm::SimpleH2O< Scalar >::liquidEnthalpy | ( | const Evaluation & | temperature, | |
const Evaluation & | ||||
) | [inline, static] |
Specific enthalpy of liquid water .
temperature | temperature of component in ![]() | |
pressure | pressure of component in ![]() |
Reimplemented from Opm::Component< Scalar, SimpleH2O< Scalar > >.
static Evaluation Opm::SimpleH2O< Scalar >::liquidInternalEnergy | ( | const Evaluation & | temperature, | |
const Evaluation & | pressure | |||
) | [inline, static] |
Specific internal energy of liquid water .
temperature | temperature of component in ![]() | |
pressure | pressure of component in ![]() |
Reimplemented from Opm::Component< Scalar, SimpleH2O< Scalar > >.
static Evaluation Opm::SimpleH2O< Scalar >::liquidPressure | ( | const Evaluation & | , | |
const Evaluation & | ||||
) | [inline, static] |
The pressure of water in at a given density and temperature.
temperature | temperature of component in ![]() | |
density | density of component in ![]() |
static Evaluation Opm::SimpleH2O< Scalar >::liquidThermalConductivity | ( | const Evaluation & | , | |
const Evaluation & | ||||
) | [inline, static] |
Specific heat conductivity of liquid water .
temperature | temperature of component in ![]() | |
pressure | pressure of component in ![]() |
Reimplemented from Opm::Component< Scalar, SimpleH2O< Scalar > >.
static Evaluation Opm::SimpleH2O< Scalar >::liquidViscosity | ( | const Evaluation & | , | |
const Evaluation & | ||||
) | [inline, static] |
The dynamic viscosity of pure water.
temperature | temperature of component in ![]() | |
pressure | pressure of component in ![]() |
Reimplemented from Opm::Component< Scalar, SimpleH2O< Scalar > >.
static Evaluation Opm::SimpleH2O< Scalar >::vaporPressure | ( | const Evaluation & | T | ) | [inline, static] |
The vapor pressure in of pure water at a given temperature.
T | temperature of component in ![]() |
See:
IAPWS: "Revised Release on the IAPWS Industrial Formulation 1997 for the Thermodynamic Properties of Water and Steam", http://www.iapws.org/relguide/IF97-Rev.pdf
Reimplemented from Opm::Component< Scalar, SimpleH2O< Scalar > >.