My Project
Opm::SimpleHuDuanH2O< Scalar > Class Template Reference

A simple version of pure water with density from Hu et al. More...

#include <SimpleHuDuanH2O.hpp>

Inheritance diagram for Opm::SimpleHuDuanH2O< Scalar >:
Opm::Component< Scalar, SimpleHuDuanH2O< Scalar > >

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 $\mathrm{[kg/mol]}$ of water.
 
static Scalar criticalTemperature ()
 Returns the critical temperature $\mathrm{[K]}$ of water.
 
static Scalar criticalPressure ()
 Returns the critical pressure $\mathrm{[Pa]}$ of water.
 
static Scalar tripleTemperature ()
 Returns the temperature $\mathrm{[K]}$ at water's triple point.
 
static Scalar triplePressure ()
 Returns the pressure $\mathrm{[Pa]}$ at water's triple point.
 
template<class Evaluation >
static Evaluation vaporPressure (const Evaluation &T)
 The vapor pressure in $\mathrm{[Pa]}$ of pure water at a given temperature. More...
 
template<class Evaluation >
static Evaluation gasEnthalpy (const Evaluation &temperature, const Evaluation &)
 Specific enthalpy of water steam $\mathrm{[J/kg]}$. More...
 
template<class Evaluation >
static Evaluation gasHeatCapacity (const Evaluation &, const Evaluation &)
 Specific isobaric heat capacity of the component [J/kg] as a gas. More...
 
template<class Evaluation >
static Evaluation liquidEnthalpy (const Evaluation &temperature, const Evaluation &)
 Specific enthalpy of liquid water $\mathrm{[J/kg]}$. More...
 
template<class Evaluation >
static Evaluation liquidHeatCapacity (const Evaluation &, const Evaluation &)
 Specific isobaric heat capacity of the component [J/kg] as a liquid. More...
 
template<class Evaluation >
static Evaluation gasInternalEnergy (const Evaluation &temperature, const Evaluation &pressure)
 Specific internal energy of steam $\mathrm{[J/kg]}$. More...
 
template<class Evaluation >
static Evaluation liquidInternalEnergy (const Evaluation &temperature, const Evaluation &pressure)
 Specific internal energy of liquid water $\mathrm{[J/kg]}$. More...
 
template<class Evaluation >
static Evaluation liquidThermalConductivity (const Evaluation &, const Evaluation &)
 Specific heat conductivity of liquid water $\mathrm{[W/(m K)]}$. More...
 
template<class Evaluation >
static Evaluation gasThermalConductivity (const Evaluation &, const Evaluation &)
 Specific heat conductivity of steam $\mathrm{[W/(m K)]}$. More...
 
template<class Evaluation >
static Evaluation gasDensity (const Evaluation &temperature, const Evaluation &pressure)
 The density $\mathrm{[kg/m^3]}$ of steam at a given pressure and temperature. More...
 
template<class Evaluation >
static Evaluation gasPressure (const Evaluation &temperature, const Evaluation &density)
 The pressure of steam in $\mathrm{[Pa]}$ at a given density and temperature. More...
 
template<class Evaluation >
static Evaluation liquidDensity (const Evaluation &temperature, const Evaluation &pressure, bool extrapolate)
 The density of pure water at a given pressure and temperature $\mathrm{[kg/m^3]}$. More...
 
template<class Evaluation >
static Evaluation liquidPressure (const Evaluation &, const Evaluation &)
 The pressure of water in $\mathrm{[Pa]}$ at a given density and temperature. More...
 
template<class Evaluation >
static Evaluation gasViscosity (const Evaluation &, const Evaluation &)
 The dynamic viscosity $\mathrm{[Pa*s]}$ of steam. More...
 
template<class Evaluation >
static Evaluation liquidViscosity (const Evaluation &temperature, const Evaluation &pressure, bool extrapolate)
 The dynamic viscosity $\mathrm{[Pa*s]}$ of pure water. More...
 
- Static Public Member Functions inherited from Opm::Component< Scalar, SimpleHuDuanH2O< Scalar > >
static void init (Scalar, Scalar, unsigned, Scalar, Scalar, unsigned)
 A default routine for initialization, not needed for components and must not be called. More...
 
static bool gasIsCompressible ()
 Returns true iff the gas phase is assumed to be compressible.
 
static bool gasIsIdeal ()
 Returns true iff the gas phase is assumed to be ideal.
 
static bool liquidIsCompressible ()
 Returns true iff the liquid phase is assumed to be compressible.
 
static const char * name ()
 A human readable name for the component.
 
static Scalar molarMass ()
 The molar mass in $\mathrm{[kg]}$ of the component.
 
static Scalar criticalTemperature ()
 Returns the critical temperature in $\mathrm{[K]}$ of the component.
 
static Scalar criticalPressure ()
 Returns the critical pressure in $\mathrm{[Pa]}$ of the component.
 
static Scalar acentricFactor ()
 Returns the acentric factor of the component.
 
static Scalar criticalVolume ()
 Returns the critical volume in $\mathrm{[m2/kmol]}$ of the component.
 
static Scalar tripleTemperature ()
 Returns the temperature in $\mathrm{[K]}$ at the component's triple point.
 
static Scalar triplePressure ()
 Returns the pressure in $\mathrm{[Pa]}$ at the component's triple point.
 
static Evaluation vaporPressure (const Evaluation &)
 The vapor pressure in $\mathrm{[Pa]}$ of the component at a given temperature in $\mathrm{[K]}$. More...
 
static Evaluation gasDensity (const Evaluation &, const Evaluation &)
 The density in $\mathrm{[kg/m^3]}$ of the component at a given pressure in $\mathrm{[Pa]}$ and temperature in $\mathrm{[K]}$. More...
 
static Evaluation liquidDensity (const Evaluation &, const Evaluation &)
 The density $\mathrm{[kg/m^3]}$ of the liquid component at a given pressure in $\mathrm{[Pa]}$ and temperature in $\mathrm{[K]}$. More...
 
static Evaluation gasEnthalpy (const Evaluation &, const Evaluation &)
 Specific enthalpy $\mathrm{[J/kg]}$ of the pure component in gas. More...
 
static Evaluation liquidEnthalpy (const Evaluation &, const Evaluation &)
 Specific enthalpy $\mathrm{[J/kg]}$ of the pure component in liquid. More...
 
static Evaluation gasInternalEnergy (const Evaluation &, const Evaluation &)
 Specific internal energy $\mathrm{[J/kg]}$ of the pure component in gas. More...
 
static Evaluation liquidInternalEnergy (const Evaluation &, const Evaluation &)
 Specific internal energy $\mathrm{[J/kg]}$ of pure the pure component in liquid. More...
 
static Evaluation gasViscosity (const Evaluation &, const Evaluation &)
 The dynamic viscosity $\mathrm{[Pa*s]}$ of the pure component at a given pressure in $\mathrm{[Pa]}$ and temperature in $\mathrm{[K]}$. More...
 
static Evaluation liquidViscosity (const Evaluation &, const Evaluation &)
 The dynamic liquid viscosity $\mathrm{[Pa*s]}$ of the pure component. More...
 
static Evaluation gasThermalConductivity (const Evaluation &, const Evaluation &)
 Thermal conductivity of the component [W/(m^2 K/m)] as a gas.
 
static Evaluation liquidThermalConductivity (const Evaluation &, const Evaluation &)
 Thermal conductivity of the component [W/(m^2 K/m)] as a liquid.
 
static Evaluation gasHeatCapacity (const Evaluation &, const Evaluation &)
 Specific isobaric heat capacity of the component [J/kg] as a gas.
 
static Evaluation liquidHeatCapacity (const Evaluation &, const Evaluation &)
 Specific isobaric heat capacity of the component [J/kg] as a liquid.
 

Additional Inherited Members

- Public Types inherited from Opm::Component< Scalar, SimpleHuDuanH2O< Scalar > >
typedef Scalar Scalar
 
- Static Public Attributes inherited from Opm::Component< Scalar, SimpleHuDuanH2O< Scalar > >
static const bool isTabulated
 

Detailed Description

template<class Scalar>
class Opm::SimpleHuDuanH2O< Scalar >

A simple version of pure water with density from Hu et al.

Compared to the water formulation of IAPWS'97, this class provides a much simpler component that represents the thermodynamic properties 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.)

Density from Hu, Duan, Zhu and Chou: PVTx properties of the CO2-H2O and CO2-H2O-NaCl systems below 647 K: Assessment of experimental data and thermodynamics models, Chemical Geology, 2007.

Template Parameters
ScalarThe type used for representing scalar values

Member Function Documentation

◆ gasDensity()

template<class Scalar >
template<class Evaluation >
static Evaluation Opm::SimpleHuDuanH2O< Scalar >::gasDensity ( const Evaluation &  temperature,
const Evaluation &  pressure 
)
inlinestatic

The density $\mathrm{[kg/m^3]}$ of steam at a given pressure and temperature.

Parameters
temperaturetemperature of component in $\mathrm{[K]}$
pressurepressure of component in $\mathrm{[Pa]}$

◆ gasEnthalpy()

template<class Scalar >
template<class Evaluation >
static Evaluation Opm::SimpleHuDuanH2O< Scalar >::gasEnthalpy ( const Evaluation &  temperature,
const Evaluation &   
)
inlinestatic

Specific enthalpy of water steam $\mathrm{[J/kg]}$.

Parameters
temperaturetemperature of component in $\mathrm{[K]}$
pressurepressure of component in $\mathrm{[Pa]}$

◆ gasHeatCapacity()

template<class Scalar >
template<class Evaluation >
static Evaluation Opm::SimpleHuDuanH2O< Scalar >::gasHeatCapacity ( const Evaluation &  ,
const Evaluation &   
)
inlinestatic

Specific isobaric heat capacity of the component [J/kg] as a gas.

◆ gasInternalEnergy()

template<class Scalar >
template<class Evaluation >
static Evaluation Opm::SimpleHuDuanH2O< Scalar >::gasInternalEnergy ( const Evaluation &  temperature,
const Evaluation &  pressure 
)
inlinestatic

Specific internal energy of steam $\mathrm{[J/kg]}$.

   Definition of enthalpy: \f$h= u + pv = u + p / \rho\f$.

   Rearranging for internal energy yields: \f$u = h - pv\f$.

   Exploiting the Ideal Gas assumption (\f$pv = R_{\textnormal{specific}} T\f$)gives: \f$u = h - R / M T \f$.

   The universal gas constant can only be used in the case of molar formulations.
Parameters
temperaturetemperature of component in $\mathrm{[K]}$
pressurepressure of component in $\mathrm{[Pa]}$

◆ gasPressure()

template<class Scalar >
template<class Evaluation >
static Evaluation Opm::SimpleHuDuanH2O< Scalar >::gasPressure ( const Evaluation &  temperature,
const Evaluation &  density 
)
inlinestatic

The pressure of steam in $\mathrm{[Pa]}$ at a given density and temperature.

Parameters
temperaturetemperature of component in $\mathrm{[K]}$
densitydensity of component in $\mathrm{[kg/m^3]}$

◆ gasThermalConductivity()

template<class Scalar >
template<class Evaluation >
static Evaluation Opm::SimpleHuDuanH2O< Scalar >::gasThermalConductivity ( const Evaluation &  ,
const Evaluation &   
)
inlinestatic

Specific heat conductivity of steam $\mathrm{[W/(m K)]}$.

Parameters
temperaturetemperature of component in $\mathrm{[K]}$
pressurepressure of component in $\mathrm{[Pa]}$

◆ gasViscosity()

template<class Scalar >
template<class Evaluation >
static Evaluation Opm::SimpleHuDuanH2O< Scalar >::gasViscosity ( const Evaluation &  ,
const Evaluation &   
)
inlinestatic

The dynamic viscosity $\mathrm{[Pa*s]}$ of steam.

Parameters
temperaturetemperature of component in $\mathrm{[K]}$
pressurepressure of component in $\mathrm{[Pa]}$
regularizedefines, if the functions is regularized or not, set to true by default

◆ liquidDensity()

template<class Scalar >
template<class Evaluation >
static Evaluation Opm::SimpleHuDuanH2O< Scalar >::liquidDensity ( const Evaluation &  temperature,
const Evaluation &  pressure,
bool  extrapolate 
)
inlinestatic

The density of pure water at a given pressure and temperature $\mathrm{[kg/m^3]}$.

Parameters
temperaturetemperature of component in $\mathrm{[K]}$
pressurepressure of component in $\mathrm{[Pa]}$
extrapolateWhether to extrapolate for untabulated/unreasonable values. If false an exception might be thrown.

◆ liquidEnthalpy()

template<class Scalar >
template<class Evaluation >
static Evaluation Opm::SimpleHuDuanH2O< Scalar >::liquidEnthalpy ( const Evaluation &  temperature,
const Evaluation &   
)
inlinestatic

Specific enthalpy of liquid water $\mathrm{[J/kg]}$.

Parameters
temperaturetemperature of component in $\mathrm{[K]}$
pressurepressure of component in $\mathrm{[Pa]}$

◆ liquidHeatCapacity()

template<class Scalar >
template<class Evaluation >
static Evaluation Opm::SimpleHuDuanH2O< Scalar >::liquidHeatCapacity ( const Evaluation &  ,
const Evaluation &   
)
inlinestatic

Specific isobaric heat capacity of the component [J/kg] as a liquid.

◆ liquidInternalEnergy()

template<class Scalar >
template<class Evaluation >
static Evaluation Opm::SimpleHuDuanH2O< Scalar >::liquidInternalEnergy ( const Evaluation &  temperature,
const Evaluation &  pressure 
)
inlinestatic

Specific internal energy of liquid water $\mathrm{[J/kg]}$.

Parameters
temperaturetemperature of component in $\mathrm{[K]}$
pressurepressure of component in $\mathrm{[Pa]}$

◆ liquidPressure()

template<class Scalar >
template<class Evaluation >
static Evaluation Opm::SimpleHuDuanH2O< Scalar >::liquidPressure ( const Evaluation &  ,
const Evaluation &   
)
inlinestatic

The pressure of water in $\mathrm{[Pa]}$ at a given density and temperature.

Parameters
temperaturetemperature of component in $\mathrm{[K]}$
densitydensity of component in $\mathrm{[kg/m^3]}$

◆ liquidThermalConductivity()

template<class Scalar >
template<class Evaluation >
static Evaluation Opm::SimpleHuDuanH2O< Scalar >::liquidThermalConductivity ( const Evaluation &  ,
const Evaluation &   
)
inlinestatic

Specific heat conductivity of liquid water $\mathrm{[W/(m K)]}$.

Parameters
temperaturetemperature of component in $\mathrm{[K]}$
pressurepressure of component in $\mathrm{[Pa]}$

◆ liquidViscosity()

template<class Scalar >
template<class Evaluation >
static Evaluation Opm::SimpleHuDuanH2O< Scalar >::liquidViscosity ( const Evaluation &  temperature,
const Evaluation &  pressure,
bool  extrapolate 
)
inlinestatic

The dynamic viscosity $\mathrm{[Pa*s]}$ of pure water.

Parameters
temperaturetemperature of component in $\mathrm{[K]}$
pressurepressure of component in $\mathrm{[Pa]}$
extrapolateWhether to extrapolate for untabulated/unreasonable values. If false an exception might be thrown.

◆ vaporPressure()

template<class Scalar >
template<class Evaluation >
static Evaluation Opm::SimpleHuDuanH2O< Scalar >::vaporPressure ( const Evaluation &  T)
inlinestatic

The vapor pressure in $\mathrm{[Pa]}$ of pure water at a given temperature.

Parameters
Ttemperature of component in $\mathrm{[K]}$

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


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