Opm::SimpleH2O< Scalar > Class Template Reference

A simple version of pure water. More...

#include <SimpleH2O.hpp>

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

List of all members.

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.
template<class Evaluation >
static Evaluation gasEnthalpy (const Evaluation &temperature, const Evaluation &)
 Specific enthalpy of water steam $\mathrm{[J/kg]}$.
template<class Evaluation >
static Evaluation liquidEnthalpy (const Evaluation &temperature, const Evaluation &)
 Specific enthalpy of liquid water $\mathrm{[J/kg]}$.
template<class Evaluation >
static Evaluation gasInternalEnergy (const Evaluation &temperature, const Evaluation &pressure)
 Specific internal energy of steam $\mathrm{[J/kg]}$.
template<class Evaluation >
static Evaluation liquidInternalEnergy (const Evaluation &temperature, const Evaluation &pressure)
 Specific internal energy of liquid water $\mathrm{[J/kg]}$.
template<class Evaluation >
static Evaluation liquidThermalConductivity (const Evaluation &, const Evaluation &)
 Specific heat conductivity of liquid water $\mathrm{[W/(m K)]}$.
template<class Evaluation >
static Evaluation gasThermalConductivity (const Evaluation &, const Evaluation &)
 Specific heat conductivity of steam $\mathrm{[W/(m K)]}$.
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.
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.
template<class Evaluation >
static Evaluation liquidDensity (const Evaluation &, const Evaluation &)
 The density of pure water at a given pressure and temperature $\mathrm{[kg/m^3]}$.
template<class Evaluation >
static Evaluation liquidPressure (const Evaluation &, const Evaluation &)
 The pressure of water in $\mathrm{[Pa]}$ at a given density and temperature.
template<class Evaluation >
static Evaluation gasViscosity (const Evaluation &, const Evaluation &)
 The dynamic viscosity $\mathrm{[Pa*s]}$ of steam.
template<class Evaluation >
static Evaluation liquidViscosity (const Evaluation &, const Evaluation &)
 The dynamic viscosity $\mathrm{[Pa*s]}$ of pure water.

Detailed Description

template<class Scalar>
class Opm::SimpleH2O< Scalar >

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.)

Template Parameters:
Scalar The type used for representing scalar values

Member Function Documentation

template<class Scalar >
template<class Evaluation >
static Evaluation Opm::SimpleH2O< Scalar >::gasDensity ( const Evaluation &  temperature,
const Evaluation &  pressure 
) [inline, static]

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

Parameters:
temperature temperature of component in $\mathrm{[K]}$
pressure pressure of component in $\mathrm{[Pa]}$

Reimplemented from Opm::Component< Scalar, SimpleH2O< Scalar > >.

template<class Scalar >
template<class Evaluation >
static Evaluation Opm::SimpleH2O< Scalar >::gasEnthalpy ( const Evaluation &  temperature,
const Evaluation &   
) [inline, static]

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

Parameters:
temperature temperature of component in $\mathrm{[K]}$
pressure pressure of component in $\mathrm{[Pa]}$

Reimplemented from Opm::Component< Scalar, SimpleH2O< Scalar > >.

template<class Scalar >
template<class Evaluation >
static Evaluation Opm::SimpleH2O< Scalar >::gasInternalEnergy ( const Evaluation &  temperature,
const Evaluation &  pressure 
) [inline, static]

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

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

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

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

The universal gas constant can only be used in the case of molar formulations.

Parameters:
temperature temperature of component in $\mathrm{[K]}$
pressure pressure of component in $\mathrm{[Pa]}$

Reimplemented from Opm::Component< Scalar, SimpleH2O< Scalar > >.

template<class Scalar >
template<class Evaluation >
static Evaluation Opm::SimpleH2O< Scalar >::gasPressure ( const Evaluation &  temperature,
const Evaluation &  density 
) [inline, static]

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

Parameters:
temperature temperature of component in $\mathrm{[K]}$
density density of component in $\mathrm{[kg/m^3]}$
template<class Scalar >
template<class Evaluation >
static Evaluation Opm::SimpleH2O< Scalar >::gasThermalConductivity ( const Evaluation &  ,
const Evaluation &   
) [inline, static]

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

Parameters:
temperature temperature of component in $\mathrm{[K]}$
pressure pressure of component in $\mathrm{[Pa]}$

Reimplemented from Opm::Component< Scalar, SimpleH2O< Scalar > >.

template<class Scalar >
template<class Evaluation >
static Evaluation Opm::SimpleH2O< Scalar >::gasViscosity ( const Evaluation &  ,
const Evaluation &   
) [inline, static]

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

Parameters:
temperature temperature of component in $\mathrm{[K]}$
pressure pressure of component in $\mathrm{[Pa]}$
regularize defines, if the functions is regularized or not, set to true by default

Reimplemented from Opm::Component< Scalar, SimpleH2O< Scalar > >.

template<class Scalar >
template<class Evaluation >
static Evaluation Opm::SimpleH2O< Scalar >::liquidDensity ( const Evaluation &  ,
const Evaluation &   
) [inline, static]

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

Parameters:
temperature temperature of component in $\mathrm{[K]}$
pressure pressure of component in $\mathrm{[Pa]}$

Reimplemented from Opm::Component< Scalar, SimpleH2O< Scalar > >.

template<class Scalar >
template<class Evaluation >
static Evaluation Opm::SimpleH2O< Scalar >::liquidEnthalpy ( const Evaluation &  temperature,
const Evaluation &   
) [inline, static]

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

Parameters:
temperature temperature of component in $\mathrm{[K]}$
pressure pressure of component in $\mathrm{[Pa]}$

Reimplemented from Opm::Component< Scalar, SimpleH2O< Scalar > >.

template<class Scalar >
template<class Evaluation >
static Evaluation Opm::SimpleH2O< Scalar >::liquidInternalEnergy ( const Evaluation &  temperature,
const Evaluation &  pressure 
) [inline, static]

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

Parameters:
temperature temperature of component in $\mathrm{[K]}$
pressure pressure of component in $\mathrm{[Pa]}$

Reimplemented from Opm::Component< Scalar, SimpleH2O< Scalar > >.

template<class Scalar >
template<class Evaluation >
static Evaluation Opm::SimpleH2O< Scalar >::liquidPressure ( const Evaluation &  ,
const Evaluation &   
) [inline, static]

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

Parameters:
temperature temperature of component in $\mathrm{[K]}$
density density of component in $\mathrm{[kg/m^3]}$
template<class Scalar >
template<class Evaluation >
static Evaluation Opm::SimpleH2O< Scalar >::liquidThermalConductivity ( const Evaluation &  ,
const Evaluation &   
) [inline, static]

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

Parameters:
temperature temperature of component in $\mathrm{[K]}$
pressure pressure of component in $\mathrm{[Pa]}$

Reimplemented from Opm::Component< Scalar, SimpleH2O< Scalar > >.

template<class Scalar >
template<class Evaluation >
static Evaluation Opm::SimpleH2O< Scalar >::liquidViscosity ( const Evaluation &  ,
const Evaluation &   
) [inline, static]

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

Parameters:
temperature temperature of component in $\mathrm{[K]}$
pressure pressure of component in $\mathrm{[Pa]}$

Reimplemented from Opm::Component< Scalar, SimpleH2O< Scalar > >.

template<class Scalar >
template<class Evaluation >
static Evaluation Opm::SimpleH2O< Scalar >::vaporPressure ( const Evaluation &  T  )  [inline, static]

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

Parameters:
T temperature 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

Reimplemented from Opm::Component< Scalar, SimpleH2O< Scalar > >.


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

Generated on 25 Mar 2018 by  doxygen 1.6.1