version 3.10-dev
Dumux::Components::H2< Scalar > Class Template Reference

Properties of pure molecular hydrogen \(H_2\). More...

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

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

Description

template<class Scalar>
class Dumux::Components::H2< Scalar >
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 \(H_2\). More...
 
static constexpr Scalar molarMass ()
 The molar mass in \(\mathrm{[kg/mol]}\) of molecular hydrogen. More...
 
static Scalar criticalTemperature ()
 Returns the critical temperature \(\mathrm{[K]}\) of molecular hydrogen. More...
 
static Scalar criticalPressure ()
 Returns the critical pressure \(\mathrm{[Pa]}\) of molecular hydrogen. More...
 
static Scalar tripleTemperature ()
 Returns the temperature \(\mathrm{[K]}\) at molecular hydrogen's triple point. More...
 
static Scalar vaporPressure (Scalar temperature)
 The vapor pressure in \(\mathrm{[Pa]}\) of pure molecular hydrogen at a given temperature. More...
 
static Scalar gasDensity (Scalar temperature, Scalar pressure)
 The density \(\mathrm{[kg/m^3]}\) of \(H_2\) at a given pressure and temperature. More...
 
static Scalar gasMolarDensity (Scalar temperature, Scalar pressure)
 The molar density of \(H_2\) in \(\mathrm{[mol/m^3]}\), depending on pressure and temperature. More...
 
static constexpr bool gasIsCompressible ()
 Returns true if the gas phase is assumed to be compressible. 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 gaseous \(H_2\) in \(\mathrm{[Pa]}\) at a given density and temperature. More...
 
static const Scalar gasEnthalpy (Scalar temperature, Scalar pressure)
 Specific enthalpy \(\mathrm{[J/kg]}\) of pure hydrogen gas. Shomate Equation is used for a temperature range of 298K to 6000K. More...
 
static const Scalar gasHeatCapacity (Scalar T, Scalar pressure)
 Specific isobaric heat capacity \(\mathrm{[J/(kg*K)]}\) of pure hydrogen gas. Shomate Equation is used for a temperature range of 298K to 6000K. More...
 
static Scalar gasViscosity (Scalar temperature, Scalar pressure)
 The dynamic viscosity \(\mathrm{[Pa*s]}\) of \(H_2\) at a given pressure and temperature. 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 Scalar triplePressure ()
 Returns the pressure in \(\mathrm{[Pa]}\) at the component's triple point. More...
 
static constexpr bool gasViscosityIsConstant ()
 Returns true if the gas phase viscostiy is constant. More...
 
static const Scalar gasInternalEnergy (Scalar temperature, Scalar pressure)
 Specific internal energy \(\mathrm{[J/kg]}\) of the pure component in gas. More...
 
static Scalar gasThermalConductivity (Scalar temperature, Scalar pressure)
 Thermal conductivity of the component \(\mathrm{[W/(m*K)]}\) as a gas. More...
 

Static Public Attributes

static const ShomateMethod shomateMethod
 Shomate parameters for hydrogen published by NIST [57] https://webbook.nist.gov/cgi/cbook.cgi?ID=C1333740&Units=SI&Mask=1&Type=JANAFG&Table=on#JANAFG First row defines the temperature ranges, further rows give the parameters (A,B,C,D,E,F,G,H) for the respective temperature ranges. More...
 
static constexpr bool isTabulated
 if the component relies on tabulated values More...
 

Member Typedef Documentation

◆ Scalar

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

Member Function Documentation

◆ criticalPressure()

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

◆ criticalTemperature()

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

◆ gasDensity()

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

◆ gasEnthalpy()

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

◆ gasHeatCapacity()

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

See: R. Reid, et al. (1987, pp 154, 657, 665) [72]

◆ gasInternalEnergy()

static const Scalar Dumux::Components::Gas< Scalar, H2< Scalar > >::gasInternalEnergy ( Scalar  temperature,
Scalar  pressure 
)
inlinestaticinherited
Parameters
temperaturetemperature of component in \(\mathrm{[K]}\)
pressurepressure of component in \(\mathrm{[Pa]}\)

◆ gasIsCompressible()

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

◆ gasIsIdeal()

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

◆ gasMolarDensity()

template<class Scalar >
static Scalar Dumux::Components::H2< Scalar >::gasMolarDensity ( Scalar  temperature,
Scalar  pressure 
)
inlinestatic
Parameters
temperatureThe temperature of the gas
pressureThe pressure of the gas

◆ gasPressure()

template<class Scalar >
static Scalar Dumux::Components::H2< Scalar >::gasPressure ( Scalar  temperature,
Scalar  density 
)
inlinestatic
Parameters
temperaturetemperature of component in \(\mathrm{[K]}\)
densitydensity of component in \(\mathrm{[kg/m^3]}\)

◆ gasThermalConductivity()

static Scalar Dumux::Components::Gas< Scalar, H2< Scalar > >::gasThermalConductivity ( Scalar  temperature,
Scalar  pressure 
)
inlinestaticinherited
Parameters
temperaturetemperature of component in \(\mathrm{[K]}\)
pressurepressure of component in \(\mathrm{[Pa]}\)

◆ gasViscosity()

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

See:

See: R. Reid, et al.: The Properties of Gases and Liquids, 4th edition (1987, pp 396-397, 667) [72]
5th edition (2001, pp 9.7-9.8 (omega and V_c taken from p. A.19)) [69]

◆ gasViscosityIsConstant()

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

◆ init()

static void Dumux::Components::Base< Scalar , H2< 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!"

◆ molarMass()

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

◆ name()

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

◆ triplePressure()

static constexpr Scalar Dumux::Components::Base< Scalar , H2< Scalar > >::triplePressure ( )
inlinestaticconstexprinherited

◆ tripleTemperature()

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

◆ vaporPressure()

template<class Scalar >
static Scalar Dumux::Components::H2< Scalar >::vaporPressure ( Scalar  temperature)
inlinestatic
Parameters
temperaturetemperature of component in \(\mathrm{[K]}\)

Taken from:

See: R. Reid, et al. (1987, pp 208-209, 669) [72]

Member Data Documentation

◆ isTabulated

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

◆ shomateMethod

template<class Scalar >
const H2< Scalar >::ShomateMethod Dumux::Components::H2< Scalar >::shomateMethod
static
Initial value:
{
{298.0, 1000.0, 2500.0, 6000.0},
{33.066178, -11.363417, 11.432816, -2.772874, -0.158558, -9.980797, 172.707974, 0.0},
{18.563083, 12.257357, -2.859786, 0.268238, 1.97799, -1.147438, 156.288133, 0.0},
{43.41356, -4.293079, 1.272428, -0.096876, -20.533862, -38.515158, 162.081354, 0.0}
}}
}
std::conditional_t< intervals==-1, std::vector< CoefficientSet >, std::array< CoefficientSet, std::size_t(intervals)> > Coefficients
Definition: shomate.hh:56

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