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

Material properties of pure water $H_2O$. More...

#include <H2O.hpp>

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

Static Public Member Functions

static const char * name ()
 A human readable name for the water.
 
static const Scalar molarMass ()
 The molar mass in $\mathrm{[kg/mol]}$ of water.
 
static const Scalar acentricFactor ()
 The acentric factor $\mathrm{[-]}$ of water.
 
static const Scalar criticalTemperature ()
 Returns the critical temperature $\mathrm{[K]}$ of water.
 
static const Scalar criticalPressure ()
 Returns the critical pressure $\mathrm{[Pa]}$ of water.
 
static const Scalar criticalVolume ()
 Returns the critical volume $\mathrm{[m^3/kmol]}$ of water.
 
static const Scalar criticalMolarVolume ()
 Returns the molar volume $\mathrm{[m^3/mol]}$ of water at the critical point.
 
static const Scalar tripleTemperature ()
 Returns the temperature $\mathrm{[K]}$ at water's triple point.
 
static const Scalar triplePressure ()
 Returns the pressure $\mathrm{[Pa]}$ at water's triple point.
 
template<class Evaluation >
static Evaluation vaporPressure (Evaluation temperature)
 The vapor pressure in $\mathrm{[Pa]}$ of pure water at a given temperature. More...
 
template<class Evaluation >
static Evaluation vaporTemperature (const Evaluation &pressure)
 The vapor temperature in $\mathrm{[Ka]}$ of pure water at a given pressure. More...
 
template<class Evaluation >
static Evaluation gasEnthalpy (const Evaluation &temperature, const Evaluation &pressure)
 Specific enthalpy of water steam $\mathrm{[J/kg]}$. More...
 
template<class Evaluation >
static Evaluation liquidEnthalpy (const Evaluation &temperature, const Evaluation &pressure)
 Specific enthalpy of liquid water $\mathrm{[J/kg]}$. More...
 
template<class Evaluation >
static Evaluation gasHeatCapacity (const Evaluation &temperature, const Evaluation &pressure)
 Specific isobaric heat capacity of water steam $\mathrm{[J/kg]}$. More...
 
template<class Evaluation >
static Evaluation liquidHeatCapacity (const Evaluation &temperature, const Evaluation &pressure)
 Specific isobaric heat capacity of liquid water $\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 gasInternalEnergy (const Evaluation &temperature, const Evaluation &pressure)
 Specific internal energy of steam and water vapor $\mathrm{[J/kg]}$. More...
 
template<class Evaluation >
static Evaluation liquidHeatCapacityConstVolume (const Evaluation &temperature, const Evaluation &pressure)
 Specific isochoric heat capacity of liquid water $\mathrm{[J/m^3]}$. More...
 
template<class Evaluation >
static Evaluation gasHeatCapacityConstVolume (const Evaluation &temperature, const Evaluation &pressure)
 Specific isochoric heat capacity of steam and water vapor $\mathrm{[J/kg]}$. More...
 
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.
 
template<class Evaluation >
static Evaluation gasDensity (const Evaluation &temperature, const Evaluation &pressure)
 The density of steam in $\mathrm{[kg/m^3]}$ at a given pressure and temperature. More...
 
static bool gasIsIdeal ()
 Returns true iff the gas phase is assumed to be ideal.
 
template<class Evaluation >
static Evaluation gasPressure (const Evaluation &temperature, Scalar 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=false)
 The density of pure water in $\mathrm{[kg/m^3]}$ at a given pressure and temperature. More...
 
template<class Evaluation >
static Evaluation liquidPressure (const Evaluation &temperature, Scalar density)
 The pressure of liquid water in $\mathrm{[Pa]}$ at a given density and temperature. More...
 
template<class Evaluation >
static Evaluation gasViscosity (const Evaluation &temperature, const Evaluation &pressure)
 The dynamic viscosity $\mathrm{[Pa*s]}$ of steam. More...
 
template<class Evaluation >
static Evaluation liquidViscosity (const Evaluation &temperature, const Evaluation &pressure, bool extrapolate=false)
 The dynamic viscosity $\mathrm{[Pa*s]}$ of pure water. More...
 
template<class Evaluation >
static Evaluation liquidThermalConductivity (const Evaluation &temperature, const Evaluation &pressure)
 Thermal conductivity $\mathrm{[[W/(m K)]}$ of water (IAPWS) . More...
 
template<class Evaluation >
static Evaluation gasThermalConductivity (const Evaluation &temperature, const Evaluation &pressure)
 Thermal conductivity $\mathrm{[[W/(m K)]}$ of water (IAPWS) . More...
 
- Static Public Member Functions inherited from Opm::Component< Scalar, H2O< 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, H2O< Scalar > >
typedef Scalar Scalar
 
- Static Public Attributes inherited from Opm::Component< Scalar, H2O< Scalar > >
static const bool isTabulated
 

Detailed Description

template<class Scalar>
class Opm::H2O< Scalar >

Material properties of pure water $H_2O$.

Template Parameters
ScalarThe type used for scalar values

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

Member Function Documentation

◆ gasDensity()

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

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

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

Parameters
temperatureAbsolute temperature of the fluid in $\mathrm{[K]}$
pressurePhase pressure in $\mathrm{[Pa]}$

◆ gasEnthalpy()

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

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

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

Parameters
temperatureAbsolute temperature of the fluid in $\mathrm{[K]}$
pressurePhase pressure in $\mathrm{[Pa]}$

◆ gasHeatCapacity()

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

Specific isobaric heat capacity of water steam $\mathrm{[J/kg]}$.

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

Parameters
temperatureAbsolute temperature of the fluid in $\mathrm{[K]}$
pressurePhase pressure in $\mathrm{[Pa]}$

◆ gasHeatCapacityConstVolume()

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

Specific isochoric heat capacity of steam and water vapor $\mathrm{[J/kg]}$.

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

Parameters
temperatureAbsolute temperature of the fluid in $\mathrm{[K]}$
pressurePhase pressure in $\mathrm{[Pa]}$

◆ gasInternalEnergy()

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

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

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

Parameters
temperatureAbsolute temperature of the fluid in $\mathrm{[K]}$
pressurePhase pressure in $\mathrm{[Pa]}$

◆ gasPressure()

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

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

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

Parameters
temperatureAbsolute temperature of the fluid in $\mathrm{[K]}$
densityDensity in $\mathrm{[kg/m^3]}$

◆ gasThermalConductivity()

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

Thermal conductivity $\mathrm{[[W/(m K)]}$ of water (IAPWS) .

Implementation taken from: freesteam - IAPWS-IF97 steam tables library Copyright (C) 2004-2009 John Pye

Appendix B: Recommended Interpolating equation for Industrial Use see http://www.iapws.org/relguide/thcond.pdf

Parameters
temperatureAbsolute temperature in K
pressurePhase pressure of the phase in Pa

◆ gasViscosity()

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

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

This method is only valid if pressure is below or at the vapor pressure of water.

See:

IAPWS: "Release on the IAPWS Formulation 2008 for the Viscosity of Ordinary Water Substance", http://www.iapws.org/relguide/visc.pdf

Parameters
temperatureAbsolute temperature of the fluid in $\mathrm{[K]}$
pressurePhase pressure in $\mathrm{[Pa]}$

◆ liquidDensity()

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

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

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

Parameters
temperatureAbsolute temperature of the fluid in $\mathrm{[K]}$
pressurePhase pressure in $\mathrm{[Pa]}$

◆ liquidEnthalpy()

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

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

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

Parameters
temperatureAbsolute temperature of the fluid in $\mathrm{[K]}$
pressurePhase pressure in $\mathrm{[Pa]}$

◆ liquidHeatCapacity()

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

Specific isobaric heat capacity of liquid water $\mathrm{[J/kg]}$.

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

Parameters
temperatureAbsolute temperature of the fluid in $\mathrm{[K]}$
pressurePhase pressure in $\mathrm{[Pa]}$

◆ liquidHeatCapacityConstVolume()

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

Specific isochoric heat capacity of liquid water $\mathrm{[J/m^3]}$.

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

Parameters
temperatureAbsolute temperature of the fluid in $\mathrm{[K]}$
pressurePhase pressure in $\mathrm{[Pa]}$

◆ liquidInternalEnergy()

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

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

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

Parameters
temperatureAbsolute temperature of the fluid in $\mathrm{[K]}$
pressurePhase pressure in $\mathrm{[Pa]}$

◆ liquidPressure()

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

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

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

Parameters
temperatureAbsolute temperature of the fluid in $\mathrm{[K]}$
densityDensity of the fluid in $\mathrm{[kg/m^3]}$

◆ liquidThermalConductivity()

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

Thermal conductivity $\mathrm{[[W/(m K)]}$ of water (IAPWS) .

Implementation taken from: freesteam - IAPWS-IF97 steam tables library Copyright (C) 2004-2009 John Pye

Appendix B: Recommended Interpolating equation for Industrial Use see http://www.iapws.org/relguide/thcond.pdf

Parameters
temperatureAbsolute temperature in K
pressurePhase pressure of the phase in Pa

◆ liquidViscosity()

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

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

See:

IAPWS: "Release on the IAPWS Formulation 2008 for the Viscosity of Ordinary Water Substance", http://www.iapws.org/relguide/visc.pdf

Parameters
temperatureAbsolute temperature of the fluid in $\mathrm{[K]}$
pressurePhase pressure in $\mathrm{[Pa]}$

◆ vaporPressure()

template<class Scalar >
template<class Evaluation >
static Evaluation Opm::H2O< Scalar >::vaporPressure ( Evaluation  temperature)
inlinestatic

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

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

Parameters
TAbsolute temperature of the system in $\mathrm{[K]}$

◆ vaporTemperature()

template<class Scalar >
template<class Evaluation >
static Evaluation Opm::H2O< Scalar >::vaporTemperature ( const Evaluation &  pressure)
inlinestatic

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

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

Parameters
pressurePhase pressure in $\mathrm{[Pa]}$

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