version 3.8
Dumux::Components::H2O< Scalar > Class Template Reference

Material properties of pure water \(H_2O\). More...

#include <dumux/material/components/h2o.hh>

Inheritance diagram for Dumux::Components::H2O< Scalar >:

Description

template<class Scalar>
class Dumux::Components::H2O< Scalar >
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 [31]

Public Types

using Scalar = Scalar
 export the scalar type used by the component More...
 

Static Public Member Functions

static std::string name ()
 A human readable name for the water. More...
 
static constexpr Scalar molarMass ()
 The molar mass in \(\mathrm{[kg/mol]}\) of water. More...
 
static constexpr Scalar acentricFactor ()
 The acentric factor \(\mathrm{[-]}\) of water. More...
 
static constexpr Scalar criticalTemperature ()
 Returns the critical temperature \(\mathrm{[K]}\) of water. More...
 
static constexpr Scalar criticalPressure ()
 Returns the critical pressure \(\mathrm{[Pa]}\) of water. More...
 
static constexpr Scalar criticalMolarVolume ()
 Returns the molar volume \(\mathrm{[m^3/mol]}\) of water at the critical point. More...
 
static constexpr Scalar tripleTemperature ()
 Returns the temperature \(\mathrm{[K]}\) at water's triple point. More...
 
static constexpr Scalar triplePressure ()
 Returns the pressure \(\mathrm{[Pa]}\) at water's triple point. More...
 
static Scalar vaporPressure (Scalar T)
 The vapor pressure in \(\mathrm{[Pa]}\) of pure water at a given temperature. More...
 
static Scalar vaporTemperature (Scalar pressure)
 The vapor temperature in \(\mathrm{[K]}\) of pure water at a given pressure. More...
 
static const Scalar gasEnthalpy (Scalar temperature, Scalar pressure)
 Specific enthalpy of water steam \(\mathrm{[J/kg]}\). More...
 
static const Scalar liquidEnthalpy (Scalar temperature, Scalar pressure)
 Specific enthalpy of liquid water \(\mathrm{[J/kg]}\). More...
 
static const Scalar gasHeatCapacity (Scalar temperature, Scalar pressure)
 Specific isobaric heat capacity of water steam \(\mathrm{[J/(kg*K)}\). More...
 
static const Scalar liquidHeatCapacity (Scalar temperature, Scalar pressure)
 Specific isobaric heat capacity of liquid water \(\mathrm{[J/(kg*K)]}\). More...
 
static const Scalar liquidInternalEnergy (Scalar temperature, Scalar pressure)
 Specific internal energy of liquid water \(\mathrm{[J/kg]}\). More...
 
static Scalar gasInternalEnergy (Scalar temperature, Scalar pressure)
 Specific internal energy of steam and water vapor \(\mathrm{[J/kg]}\). More...
 
static const Scalar liquidHeatCapacityConstVolume (Scalar temperature, Scalar pressure)
 Specific isochoric heat capacity of liquid water \(\mathrm{[J/(m^3*K)]}\). More...
 
static Scalar gasHeatCapacityConstVolume (Scalar temperature, Scalar pressure)
 Specific isochoric heat capacity of steam and water vapor \(\mathrm{[J/(kg*K)}\). More...
 
static constexpr bool gasIsCompressible ()
 Returns true if the gas phase is assumed to be compressible. More...
 
static constexpr bool liquidIsCompressible ()
 Returns true if the liquid phase is assumed to be compressible. More...
 
static Scalar gasDensity (Scalar temperature, Scalar pressure)
 The density of steam in \(\mathrm{[kg/m^3]}\) at a given pressure and temperature. More...
 
static Scalar gasMolarDensity (Scalar temperature, Scalar pressure)
 The molar density of steam in \(\mathrm{[mol/m^3]}\) at a given pressure and temperature. More...
 
static constexpr bool gasIsIdeal ()
 Returns true if the gas phase is assumed to be ideal. More...
 
static Scalar gasPressure (Scalar temperature, Scalar density)
 The pressure of steam in \(\mathrm{[Pa]}\) at a given density and temperature. More...
 
static Scalar liquidDensity (Scalar temperature, Scalar pressure)
 The density of pure water in \(\mathrm{[kg/m^3]}\) at a given pressure and temperature. More...
 
static Scalar liquidMolarDensity (Scalar temperature, Scalar pressure)
 The molar density of water in \(\mathrm{[mol/m^3]}\) at a given pressure and temperature. More...
 
static Scalar liquidPressure (Scalar temperature, Scalar density)
 The pressure of liquid water in \(\mathrm{[Pa]}\) at a given density and temperature. More...
 
static Scalar gasViscosity (Scalar temperature, Scalar pressure)
 The dynamic viscosity \(\mathrm{[Pa*s]}\) of steam. More...
 
static Scalar liquidViscosity (Scalar temperature, Scalar pressure)
 The dynamic viscosity \(\mathrm{[Pa*s]}\) of pure water. More...
 
static Scalar liquidThermalConductivity (Scalar temperature, Scalar pressure)
 Thermal conductivity \(\mathrm{[[W/(m*K)]}\) of water (IAPWS) . More...
 
static Scalar gasThermalConductivity (const Scalar temperature, const Scalar pressure)
 Thermal conductivity \(\mathrm{[[W/(m*K)]}\) of steam (IAPWS) . More...
 
static void init (Scalar tempMin, Scalar tempMax, unsigned nTemp, Scalar pressMin, Scalar pressMax, unsigned nPress)
 A default routine for initialization, not needed for components and must not be called. More...
 
static constexpr bool liquidViscosityIsConstant ()
 Returns true if the liquid phase viscostiy is constant. More...
 
static constexpr bool gasViscosityIsConstant ()
 Returns true if the gas phase viscostiy is constant. More...
 

Static Public Attributes

static constexpr bool isTabulated
 if the component relies on tabulated values More...
 

Member Typedef Documentation

◆ Scalar

using Dumux::Components::Base< Scalar , H2O< Scalar > >::Scalar = Scalar
inherited

Member Function Documentation

◆ acentricFactor()

template<class Scalar >
static constexpr Scalar Dumux::Components::H2O< Scalar >::acentricFactor ( )
inlinestaticconstexpr

◆ criticalMolarVolume()

template<class Scalar >
static constexpr Scalar Dumux::Components::H2O< Scalar >::criticalMolarVolume ( )
inlinestaticconstexpr

◆ criticalPressure()

template<class Scalar >
static constexpr Scalar Dumux::Components::H2O< Scalar >::criticalPressure ( )
inlinestaticconstexpr

◆ criticalTemperature()

template<class Scalar >
static constexpr Scalar Dumux::Components::H2O< Scalar >::criticalTemperature ( )
inlinestaticconstexpr

◆ gasDensity()

template<class Scalar >
static Scalar Dumux::Components::H2O< Scalar >::gasDensity ( Scalar  temperature,
Scalar  pressure 
)
inlinestatic
Parameters
temperaturetemperature of component in \(\mathrm{[K]}\)
pressurepressure of component in \(\mathrm{[Pa]}\)

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 [31]

◆ gasEnthalpy()

template<class Scalar >
static const Scalar Dumux::Components::H2O< Scalar >::gasEnthalpy ( Scalar  temperature,
Scalar  pressure 
)
inlinestatic
Parameters
temperaturetemperature of component in \(\mathrm{[K]}\)
pressurepressure of component in \(\mathrm{[Pa]}\)

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 [31]

◆ gasHeatCapacity()

template<class Scalar >
static const Scalar Dumux::Components::H2O< Scalar >::gasHeatCapacity ( Scalar  temperature,
Scalar  pressure 
)
inlinestatic
Parameters
temperaturetemperature of component in \(\mathrm{[K]}\)
pressurepressure of component in \(\mathrm{[Pa]}\)

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 [31]

◆ gasHeatCapacityConstVolume()

template<class Scalar >
static Scalar Dumux::Components::H2O< Scalar >::gasHeatCapacityConstVolume ( Scalar  temperature,
Scalar  pressure 
)
inlinestatic
Parameters
temperaturetemperature of component in \(\mathrm{[K]}\)
pressurepressure of component in \(\mathrm{[Pa]}\)

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 [31]

◆ gasInternalEnergy()

template<class Scalar >
static Scalar Dumux::Components::H2O< Scalar >::gasInternalEnergy ( Scalar  temperature,
Scalar  pressure 
)
inlinestatic
Parameters
temperaturetemperature of component in \(\mathrm{[K]}\)
pressurepressure of component in \(\mathrm{[Pa]}\)

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 [31]

◆ gasIsCompressible()

template<class Scalar >
static constexpr bool Dumux::Components::H2O< Scalar >::gasIsCompressible ( )
inlinestaticconstexpr

◆ gasIsIdeal()

template<class Scalar >
static constexpr bool Dumux::Components::H2O< Scalar >::gasIsIdeal ( )
inlinestaticconstexpr

◆ gasMolarDensity()

template<class Scalar >
static Scalar Dumux::Components::H2O< Scalar >::gasMolarDensity ( Scalar  temperature,
Scalar  pressure 
)
inlinestatic
Parameters
temperaturetemperature of component in \(\mathrm{[K]}\)
pressurepressure of component in \(\mathrm{[Pa]}\)

◆ gasPressure()

template<class Scalar >
static Scalar Dumux::Components::H2O< Scalar >::gasPressure ( Scalar  temperature,
Scalar  density 
)
inlinestatic
Parameters
temperaturetemperature of component in \(\mathrm{[K]}\)
densityof component in \(\mathrm{[kg/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 [31]

◆ gasThermalConductivity()

template<class Scalar >
static Scalar Dumux::Components::H2O< Scalar >::gasThermalConductivity ( const Scalar  temperature,
const Scalar  pressure 
)
inlinestatic

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

See: IAPWS: "Release on the IAPWS Formulation 2011 for the Thermal Conductivity of Ordinary Water Substance", http://www.iapws.org/relguide/ThCond.pdf [40]

Parameters
temperatureabsolute temperature in \(\mathrm{[K]}\)
pressureof the phase in \(\mathrm{[Pa]}\)

◆ gasViscosity()

template<class Scalar >
static Scalar Dumux::Components::H2O< Scalar >::gasViscosity ( Scalar  temperature,
Scalar  pressure 
)
inlinestatic
Parameters
temperaturetemperature of component in \(\mathrm{[K]}\)
pressurepressure of component in \(\mathrm{[Pa]}\)

We assume pure water vapor here. For water in a mixture of other gaseous components, consider the free function h2oGasViscosityInMixture.

We use the IAPWS Formulation, see: IAPWS: "Release on the IAPWS Formulation 2008 for the Viscosity of Ordinary Water Substance", http://www.iapws.org/relguide/visc.pdf [22] This method is only valid if pressure is below or at the vapor pressure of water.

◆ gasViscosityIsConstant()

static constexpr bool Dumux::Components::Gas< Scalar, H2O< Scalar > >::gasViscosityIsConstant ( )
inlinestaticconstexprinherited

◆ init()

static void Dumux::Components::Base< Scalar , H2O< Scalar > >::init ( Scalar  tempMin,
Scalar  tempMax,
unsigned  nTemp,
Scalar  pressMin,
Scalar  pressMax,
unsigned  nPress 
)
inlinestaticinherited
Parameters
tempMinThe minimum of the temperature range in \(\mathrm{[K]}\)
tempMaxThe maximum of the temperature range in \(\mathrm{[K]}\)
nTempThe number of entries/steps within the temperature range
pressMinThe minimum of the pressure range in \(\mathrm{[Pa]}\)
pressMaxThe maximum of the pressure range in \(\mathrm{[Pa]}\)
nPressThe number of entries/steps within the pressure range

This function throws a warning when called: "No init routine defined - make sure that this is not necessary!"

◆ liquidDensity()

template<class Scalar >
static Scalar Dumux::Components::H2O< Scalar >::liquidDensity ( Scalar  temperature,
Scalar  pressure 
)
inlinestatic
Parameters
temperaturetemperature of component in \(\mathrm{[K]}\)
pressurepressure of component in \(\mathrm{[Pa]}\)

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 [31]

◆ liquidEnthalpy()

template<class Scalar >
static const Scalar Dumux::Components::H2O< Scalar >::liquidEnthalpy ( Scalar  temperature,
Scalar  pressure 
)
inlinestatic
Parameters
temperaturetemperature of component in \(\mathrm{[K]}\)
pressurepressure of component in \(\mathrm{[Pa]}\)

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 [31]

◆ liquidHeatCapacity()

template<class Scalar >
static const Scalar Dumux::Components::H2O< Scalar >::liquidHeatCapacity ( Scalar  temperature,
Scalar  pressure 
)
inlinestatic
Parameters
temperaturetemperature of component in \(\mathrm{[K]}\)
pressurepressure of component in \(\mathrm{[Pa]}\)

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 [31]

◆ liquidHeatCapacityConstVolume()

template<class Scalar >
static const Scalar Dumux::Components::H2O< Scalar >::liquidHeatCapacityConstVolume ( Scalar  temperature,
Scalar  pressure 
)
inlinestatic
Parameters
temperaturetemperature of component in \(\mathrm{[K]}\)
pressurepressure of component in \(\mathrm{[Pa]}\)

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 [31]

◆ liquidInternalEnergy()

template<class Scalar >
static const Scalar Dumux::Components::H2O< Scalar >::liquidInternalEnergy ( Scalar  temperature,
Scalar  pressure 
)
inlinestatic
Parameters
temperaturetemperature of component in \(\mathrm{[K]}\)
pressurepressure of component in \(\mathrm{[Pa]}\)

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 [31]

◆ liquidIsCompressible()

template<class Scalar >
static constexpr bool Dumux::Components::H2O< Scalar >::liquidIsCompressible ( )
inlinestaticconstexpr

◆ liquidMolarDensity()

template<class Scalar >
static Scalar Dumux::Components::H2O< Scalar >::liquidMolarDensity ( Scalar  temperature,
Scalar  pressure 
)
inlinestatic
Parameters
temperaturetemperature of component in \(\mathrm{[K]}\)
pressurepressure of component in \(\mathrm{[Pa]}\)

◆ liquidPressure()

template<class Scalar >
static Scalar Dumux::Components::H2O< Scalar >::liquidPressure ( Scalar  temperature,
Scalar  density 
)
inlinestatic
Parameters
temperaturetemperature of component in \(\mathrm{[K]}\)
densitydensity of component in \(\mathrm{[kg/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 [31]

◆ liquidThermalConductivity()

template<class Scalar >
static Scalar Dumux::Components::H2O< Scalar >::liquidThermalConductivity ( Scalar  temperature,
Scalar  pressure 
)
inlinestatic

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

See: IAPWS: "Release on the IAPWS Formulation 2011 for the Thermal Conductivity of Ordinary Water Substance", http://www.iapws.org/relguide/ThCond.pdf [40]

Parameters
temperatureabsolute temperature in \(\mathrm{[K]}\)
pressureof the phase in \(\mathrm{[Pa]}\)

◆ liquidViscosity()

template<class Scalar >
static Scalar Dumux::Components::H2O< Scalar >::liquidViscosity ( Scalar  temperature,
Scalar  pressure 
)
inlinestatic
Parameters
temperaturetemperature of component in \(\mathrm{[K]}\)
pressurepressure of component in \(\mathrm{[Pa]}\)

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

◆ liquidViscosityIsConstant()

static constexpr bool Dumux::Components::Liquid< Scalar, H2O< Scalar > >::liquidViscosityIsConstant ( )
inlinestaticconstexprinherited

◆ molarMass()

template<class Scalar >
static constexpr Scalar Dumux::Components::H2O< Scalar >::molarMass ( )
inlinestaticconstexpr

◆ name()

template<class Scalar >
static std::string Dumux::Components::H2O< Scalar >::name ( )
inlinestatic

◆ triplePressure()

template<class Scalar >
static constexpr Scalar Dumux::Components::H2O< Scalar >::triplePressure ( )
inlinestaticconstexpr

◆ tripleTemperature()

template<class Scalar >
static constexpr Scalar Dumux::Components::H2O< Scalar >::tripleTemperature ( )
inlinestaticconstexpr

◆ vaporPressure()

template<class Scalar >
static Scalar Dumux::Components::H2O< Scalar >::vaporPressure ( Scalar  T)
inlinestatic
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 [31]

◆ vaporTemperature()

template<class Scalar >
static Scalar Dumux::Components::H2O< Scalar >::vaporTemperature ( Scalar  pressure)
inlinestatic
Parameters
pressurepressure in \(\mathrm{[Pa]}\)

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 [31]

Member Data Documentation

◆ isTabulated

constexpr bool Dumux::Components::Base< Scalar , H2O< Scalar > >::isTabulated
staticconstexprinherited

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