3.3.0
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
Dumux::Components::SimpleH2O< Scalar > Class Template Reference

A much simpler (and thus potentially less buggy) version of pure water. More...

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

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

Description

template<class Scalar>
class Dumux::Components::SimpleH2O< Scalar >

A much simpler (and thus potentially less buggy) version of pure water.

Template Parameters
ScalarThe type used for scalar values

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 Scalar criticalTemperature ()
 Returns the critical temperature \(\mathrm{[K]}\) of water. More...
 
static Scalar criticalPressure ()
 Returns the critical pressure \(\mathrm{[Pa]}\) of water. More...
 
static Scalar tripleTemperature ()
 Returns the temperature \(\mathrm{[K]}\) at water's triple point. More...
 
static 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 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 gasInternalEnergy (Scalar temperature, Scalar pressure)
 Specific internal energy of steam \(\mathrm{[J/kg]}\). More...
 
static const Scalar liquidInternalEnergy (Scalar temperature, Scalar pressure)
 Specific internal energy of liquid water \(\mathrm{[J/kg]}\). 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 constexpr bool gasViscosityIsConstant ()
 Returns true if the gas phase viscostiy is constant. More...
 
static constexpr bool liquidViscosityIsConstant ()
 Returns true if the liquid phase viscostiy is constant. More...
 
static Scalar gasDensity (Scalar temperature, Scalar pressure)
 The density \(\mathrm{[kg/m^3]}\) of steam 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 at a given pressure and temperature \(\mathrm{[kg/m^3]}\). More...
 
static Scalar liquidMolarDensity (Scalar temperature, Scalar pressure)
 The molar density of pure water in \(\mathrm{[mol/m^3]}\) at a given pressure and temperature. More...
 
static Scalar liquidPressure (Scalar temperature, Scalar density)
 The pressure of water in \(\mathrm{[Pa]}\) at a given density and temperature. More...
 
static Scalar gasViscosity (Scalar temperature, Scalar pressure, bool regularize=true)
 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 liquidHeatCapacity (Scalar temperature, Scalar pressure)
 Specific isobaric heat capacity of the component \(\mathrm{[J/(kg*K)]}\) as a liquid. source: http://webbook.nist.gov/cgi/fluid.cgi?ID=C7732185&Action=Page @ T= 281.15K (8°C) , p=0.1MPa) More...
 
static Scalar liquidThermalConductivity (Scalar temperature, Scalar pressure)
 Thermal conductivity \(\mathrm{[[W/(m*K)]}\) of water. source: http://webbook.nist.gov/cgi/fluid.cgi?ID=C7732185&Action=Page @ T= 372.76K (99.6°C) , p=0.1MPa) More...
 
static Scalar gasThermalConductivity (Scalar temperature, Scalar pressure)
 Thermal conductivity \(\mathrm{[[W/(m*K)]}\) of steam. source: http://webbook.nist.gov/cgi/fluid.cgi?ID=C7732185&Action=Page @ T= 372.76K (99.6°C) , p=0.1MPa) More...
 
static Scalar gasHeatCapacity (Scalar temperature, Scalar pressure)
 Specific isobaric heat capacity of water steam \(\mathrm{[J/(kg*K)}\). source: http://webbook.nist.gov/cgi/fluid.cgi?ID=C7732185&Action=Page @ T= 372.76K (99.6°C) , p=0.1MPa) 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 Scalar gasViscosity (Scalar temperature, Scalar pressure)
 The dynamic viscosity \(\mathrm{[Pa*s]}\) of the pure component at a given pressure in \(\mathrm{[Pa]}\) and temperature in \(\mathrm{[K]}\). 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 , SimpleH2O< Scalar > >::Scalar = Scalar
inherited

export the scalar type used by the component

Member Function Documentation

◆ criticalPressure()

template<class Scalar >
static Scalar Dumux::Components::SimpleH2O< Scalar >::criticalPressure ( )
inlinestatic

Returns the critical pressure \(\mathrm{[Pa]}\) of water.

◆ criticalTemperature()

template<class Scalar >
static Scalar Dumux::Components::SimpleH2O< Scalar >::criticalTemperature ( )
inlinestatic

Returns the critical temperature \(\mathrm{[K]}\) of water.

◆ gasDensity()

template<class Scalar >
static Scalar Dumux::Components::SimpleH2O< Scalar >::gasDensity ( Scalar  temperature,
Scalar  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 >
static const Scalar Dumux::Components::SimpleH2O< Scalar >::gasEnthalpy ( Scalar  temperature,
Scalar  pressure 
)
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 >
static Scalar Dumux::Components::SimpleH2O< Scalar >::gasHeatCapacity ( Scalar  temperature,
Scalar  pressure 
)
inlinestatic

Specific isobaric heat capacity of water steam \(\mathrm{[J/(kg*K)}\). source: http://webbook.nist.gov/cgi/fluid.cgi?ID=C7732185&Action=Page @ T= 372.76K (99.6°C) , p=0.1MPa)

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

◆ gasInternalEnergy()

template<class Scalar >
static const Scalar Dumux::Components::SimpleH2O< Scalar >::gasInternalEnergy ( Scalar  temperature,
Scalar  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]}\)

◆ gasIsCompressible()

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

Returns true if the gas phase is assumed to be compressible.

◆ gasIsIdeal()

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

Returns true if the gas phase is assumed to be ideal.

◆ gasMolarDensity()

template<class Scalar >
static Scalar Dumux::Components::SimpleH2O< Scalar >::gasMolarDensity ( Scalar  temperature,
Scalar  pressure 
)
inlinestatic

The molar density of steam in \(\mathrm{[mol/m^3]}\) at a given pressure and temperature.

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

◆ gasPressure()

template<class Scalar >
static Scalar Dumux::Components::SimpleH2O< Scalar >::gasPressure ( Scalar  temperature,
Scalar  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 >
static Scalar Dumux::Components::SimpleH2O< Scalar >::gasThermalConductivity ( Scalar  temperature,
Scalar  pressure 
)
inlinestatic

Thermal conductivity \(\mathrm{[[W/(m*K)]}\) of steam. source: http://webbook.nist.gov/cgi/fluid.cgi?ID=C7732185&Action=Page @ T= 372.76K (99.6°C) , p=0.1MPa)

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

◆ gasViscosity() [1/2]

static Scalar Dumux::Components::Gas< Scalar, SimpleH2O< Scalar > >::gasViscosity ( Scalar  temperature,
Scalar  pressure 
)
inlinestaticinherited

The dynamic viscosity \(\mathrm{[Pa*s]}\) of the pure component at a given pressure in \(\mathrm{[Pa]}\) and temperature in \(\mathrm{[K]}\).

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

◆ gasViscosity() [2/2]

template<class Scalar >
static Scalar Dumux::Components::SimpleH2O< Scalar >::gasViscosity ( Scalar  temperature,
Scalar  pressure,
bool  regularize = true 
)
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

◆ gasViscosityIsConstant()

template<class Scalar >
static constexpr bool Dumux::Components::SimpleH2O< Scalar >::gasViscosityIsConstant ( )
inlinestaticconstexpr

Returns true if the gas phase viscostiy is constant.

◆ init()

static void Dumux::Components::Base< Scalar , SimpleH2O< Scalar > >::init ( Scalar  tempMin,
Scalar  tempMax,
unsigned  nTemp,
Scalar  pressMin,
Scalar  pressMax,
unsigned  nPress 
)
inlinestaticinherited

A default routine for initialization, not needed for components and must not be called.

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::SimpleH2O< Scalar >::liquidDensity ( Scalar  temperature,
Scalar  pressure 
)
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]}\)

◆ liquidEnthalpy()

template<class Scalar >
static const Scalar Dumux::Components::SimpleH2O< Scalar >::liquidEnthalpy ( Scalar  temperature,
Scalar  pressure 
)
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 >
static Scalar Dumux::Components::SimpleH2O< Scalar >::liquidHeatCapacity ( Scalar  temperature,
Scalar  pressure 
)
inlinestatic

Specific isobaric heat capacity of the component \(\mathrm{[J/(kg*K)]}\) as a liquid. source: http://webbook.nist.gov/cgi/fluid.cgi?ID=C7732185&Action=Page @ T= 281.15K (8°C) , p=0.1MPa)

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

◆ liquidInternalEnergy()

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

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

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

◆ liquidIsCompressible()

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

Returns true if the liquid phase is assumed to be compressible.

◆ liquidMolarDensity()

template<class Scalar >
static Scalar Dumux::Components::SimpleH2O< Scalar >::liquidMolarDensity ( Scalar  temperature,
Scalar  pressure 
)
inlinestatic

The molar density of pure water in \(\mathrm{[mol/m^3]}\) at a given pressure and temperature.

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

◆ liquidPressure()

template<class Scalar >
static Scalar Dumux::Components::SimpleH2O< Scalar >::liquidPressure ( Scalar  temperature,
Scalar  density 
)
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 >
static Scalar Dumux::Components::SimpleH2O< Scalar >::liquidThermalConductivity ( Scalar  temperature,
Scalar  pressure 
)
inlinestatic

Thermal conductivity \(\mathrm{[[W/(m*K)]}\) of water. source: http://webbook.nist.gov/cgi/fluid.cgi?ID=C7732185&Action=Page @ T= 372.76K (99.6°C) , p=0.1MPa)

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

◆ liquidViscosity()

template<class Scalar >
static Scalar Dumux::Components::SimpleH2O< Scalar >::liquidViscosity ( Scalar  temperature,
Scalar  pressure 
)
inlinestatic

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

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

◆ liquidViscosityIsConstant()

template<class Scalar >
static constexpr bool Dumux::Components::SimpleH2O< Scalar >::liquidViscosityIsConstant ( )
inlinestaticconstexpr

Returns true if the liquid phase viscostiy is constant.

◆ molarMass()

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

The molar mass in \(\mathrm{[kg/mol]}\) of water.

◆ name()

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

A human readable name for the water.

◆ triplePressure()

template<class Scalar >
static Scalar Dumux::Components::SimpleH2O< Scalar >::triplePressure ( )
inlinestatic

Returns the pressure \(\mathrm{[Pa]}\) at water's triple point.

◆ tripleTemperature()

template<class Scalar >
static Scalar Dumux::Components::SimpleH2O< Scalar >::tripleTemperature ( )
inlinestatic

Returns the temperature \(\mathrm{[K]}\) at water's triple point.

◆ vaporPressure()

template<class Scalar >
static Scalar Dumux::Components::SimpleH2O< Scalar >::vaporPressure ( Scalar  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 [24]

Member Data Documentation

◆ isTabulated

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

if the component relies on tabulated values


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