version 3.8
Dumux::Components::TabulatedComponent< RawComponent, useVaporPressure > Class Template Reference

Tabulates all thermodynamic properties of a given component. More...

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

Description

template<class RawComponent, bool useVaporPressure = true>
class Dumux::Components::TabulatedComponent< RawComponent, useVaporPressure >

At the moment, this class can only handle the sub-critical fluids since it tabulates along the vapor pressure curve.

Template Parameters
ScalarThe type used for scalar values
RawComponentThe component which ought to be tabulated
useVaporPressureIf set to true, the min/max pressure values for gas&liquid phase will be set depending on the vapor pressure.

Public Types

using Scalar = typename RawComponent::Scalar
 export scalar type More...
 

Static Public Member Functions

static void init (Scalar tempMin, Scalar tempMax, std::size_t nTemp, Scalar pressMin, Scalar pressMax, std::size_t nPress)
 Initialize the tables. More...
 
static std::string name ()
 A human readable name for the component. More...
 
static constexpr Scalar molarMass ()
 The molar mass in \(\mathrm{[kg/mol]}\) of the component. More...
 
static Scalar criticalTemperature ()
 Returns the critical temperature in \(\mathrm{[K]}\) of the component. More...
 
static Scalar criticalPressure ()
 Returns the critical pressure in \(\mathrm{[Pa]}\) of the component. More...
 
static Scalar tripleTemperature ()
 Returns the temperature in \(\mathrm{[K]}\) at the component's triple point. More...
 
static Scalar triplePressure ()
 Returns the pressure in \(\mathrm{[Pa]}\) at the component's triple point. More...
 
static Scalar vaporPressure (Scalar T)
 The vapor pressure in \(\mathrm{[Pa]}\) of the component at a given temperature. More...
 
static Scalar vaporTemperature (Scalar pressure)
 The vapor pressure in \(\mathrm{[Pa]}\) of the component at a given temperature. More...
 
static const Scalar gasEnthalpy (Scalar temperature, Scalar pressure)
 Specific enthalpy of the gas \(\mathrm{[J/kg]}\). More...
 
static const Scalar liquidEnthalpy (Scalar temperature, Scalar pressure)
 Specific enthalpy of the liquid \(\mathrm{[J/kg]}\). More...
 
static const Scalar gasHeatCapacity (Scalar temperature, Scalar pressure)
 Specific isobaric heat capacity of the gas \(\mathrm{[J/(kg*K)]}\). More...
 
static const Scalar liquidHeatCapacity (Scalar temperature, Scalar pressure)
 Specific isobaric heat capacity of the liquid \(\mathrm{[J/(kg*K)]}\). More...
 
static const Scalar gasInternalEnergy (Scalar temperature, Scalar pressure)
 Specific internal energy of the gas \(\mathrm{[J/kg]}\). More...
 
static const Scalar liquidInternalEnergy (Scalar temperature, Scalar pressure)
 Specific internal energy of the liquid \(\mathrm{[J/kg]}\). More...
 
static Scalar gasPressure (Scalar temperature, Scalar density)
 The pressure of gas in \(\mathrm{[Pa]}\) at a given density and temperature. More...
 
static Scalar liquidPressure (Scalar temperature, Scalar density)
 The pressure of liquid in \(\mathrm{[Pa]}\) at a given density and temperature. 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 gasIsIdeal ()
 Returns true if the gas phase is assumed to be ideal. More...
 
static Scalar gasDensity (Scalar temperature, Scalar pressure)
 The density of gas at a given pressure and temperature \(\mathrm{[kg/m^3]}\). More...
 
static Scalar gasMolarDensity (Scalar temperature, Scalar pressure)
 The molar density of gas in \(\mathrm{[mol/m^3]}\) at a given pressure and temperature. More...
 
static Scalar liquidDensity (Scalar temperature, Scalar pressure)
 The density of liquid at a given pressure and temperature \(\mathrm{[kg/m^3]}\). More...
 
static Scalar liquidMolarDensity (Scalar temperature, Scalar pressure)
 The molar density of liquid in \(\mathrm{[mol/m^3]}\) at a given pressure and temperature. More...
 
static Scalar gasViscosity (Scalar temperature, Scalar pressure)
 The dynamic viscosity \(\mathrm{[Pa*s]}\) of gas. More...
 
static Scalar liquidViscosity (Scalar temperature, Scalar pressure)
 The dynamic viscosity \(\mathrm{[Pa*s]}\) of liquid. More...
 
static Scalar gasThermalConductivity (Scalar temperature, Scalar pressure)
 The thermal conductivity of gaseous water \(\mathrm{[W/(m*K)]}\). More...
 
static Scalar liquidThermalConductivity (Scalar temperature, Scalar pressure)
 The thermal conductivity of liquid water \(\mathrm{[W/(m*K)]}\). More...
 

Static Public Attributes

static constexpr bool isTabulated = true
 state that we are tabulated More...
 

Member Typedef Documentation

◆ Scalar

template<class RawComponent , bool useVaporPressure = true>
using Dumux::Components::TabulatedComponent< RawComponent, useVaporPressure >::Scalar = typename RawComponent::Scalar

Member Function Documentation

◆ criticalPressure()

template<class RawComponent , bool useVaporPressure = true>
static Scalar Dumux::Components::TabulatedComponent< RawComponent, useVaporPressure >::criticalPressure ( )
inlinestatic

◆ criticalTemperature()

template<class RawComponent , bool useVaporPressure = true>
static Scalar Dumux::Components::TabulatedComponent< RawComponent, useVaporPressure >::criticalTemperature ( )
inlinestatic

◆ gasDensity()

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

◆ gasEnthalpy()

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

◆ gasHeatCapacity()

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

◆ gasInternalEnergy()

template<class RawComponent , bool useVaporPressure = true>
static const Scalar Dumux::Components::TabulatedComponent< RawComponent, useVaporPressure >::gasInternalEnergy ( Scalar  temperature,
Scalar  pressure 
)
inlinestatic
Parameters
temperaturetemperature of component in \(\mathrm{[K]}\)
pressurepressure of component in \(\mathrm{[Pa]}\)

◆ gasIsCompressible()

template<class RawComponent , bool useVaporPressure = true>
static constexpr bool Dumux::Components::TabulatedComponent< RawComponent, useVaporPressure >::gasIsCompressible ( )
inlinestaticconstexpr

◆ gasIsIdeal()

template<class RawComponent , bool useVaporPressure = true>
static constexpr bool Dumux::Components::TabulatedComponent< RawComponent, useVaporPressure >::gasIsIdeal ( )
inlinestaticconstexpr

◆ gasMolarDensity()

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

◆ gasPressure()

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

◆ gasThermalConductivity()

template<class RawComponent , bool useVaporPressure = true>
static Scalar Dumux::Components::TabulatedComponent< RawComponent, useVaporPressure >::gasThermalConductivity ( Scalar  temperature,
Scalar  pressure 
)
inlinestatic
Parameters
temperaturetemperature of component in \(\mathrm{[K]}\)
pressurepressure of component in \(\mathrm{[Pa]}\)

◆ gasViscosity()

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

◆ init()

template<class RawComponent , bool useVaporPressure = true>
static void Dumux::Components::TabulatedComponent< RawComponent, useVaporPressure >::init ( Scalar  tempMin,
Scalar  tempMax,
std::size_t  nTemp,
Scalar  pressMin,
Scalar  pressMax,
std::size_t  nPress 
)
inlinestatic
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

◆ liquidDensity()

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

◆ liquidEnthalpy()

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

◆ liquidHeatCapacity()

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

◆ liquidInternalEnergy()

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

◆ liquidIsCompressible()

template<class RawComponent , bool useVaporPressure = true>
static constexpr bool Dumux::Components::TabulatedComponent< RawComponent, useVaporPressure >::liquidIsCompressible ( )
inlinestaticconstexpr

◆ liquidMolarDensity()

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

◆ liquidPressure()

template<class RawComponent , bool useVaporPressure = true>
static Scalar Dumux::Components::TabulatedComponent< RawComponent, useVaporPressure >::liquidPressure ( Scalar  temperature,
Scalar  density 
)
inlinestatic
Parameters
temperaturetemperature of component in \(\mathrm{[K]}\)
densitydensity of component in \(\mathrm{[kg/m^3]}\)

◆ liquidThermalConductivity()

template<class RawComponent , bool useVaporPressure = true>
static Scalar Dumux::Components::TabulatedComponent< RawComponent, useVaporPressure >::liquidThermalConductivity ( Scalar  temperature,
Scalar  pressure 
)
inlinestatic
Parameters
temperaturetemperature of component in \(\mathrm{[K]}\)
pressurepressure of component in \(\mathrm{[Pa]}\)

◆ liquidViscosity()

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

◆ molarMass()

template<class RawComponent , bool useVaporPressure = true>
static constexpr Scalar Dumux::Components::TabulatedComponent< RawComponent, useVaporPressure >::molarMass ( )
inlinestaticconstexpr

◆ name()

template<class RawComponent , bool useVaporPressure = true>
static std::string Dumux::Components::TabulatedComponent< RawComponent, useVaporPressure >::name ( )
inlinestatic

◆ triplePressure()

template<class RawComponent , bool useVaporPressure = true>
static Scalar Dumux::Components::TabulatedComponent< RawComponent, useVaporPressure >::triplePressure ( )
inlinestatic

◆ tripleTemperature()

template<class RawComponent , bool useVaporPressure = true>
static Scalar Dumux::Components::TabulatedComponent< RawComponent, useVaporPressure >::tripleTemperature ( )
inlinestatic

◆ vaporPressure()

template<class RawComponent , bool useVaporPressure = true>
static Scalar Dumux::Components::TabulatedComponent< RawComponent, useVaporPressure >::vaporPressure ( Scalar  T)
inlinestatic
Parameters
Ttemperature of component

◆ vaporTemperature()

template<class RawComponent , bool useVaporPressure = true>
static Scalar Dumux::Components::TabulatedComponent< RawComponent, useVaporPressure >::vaporTemperature ( Scalar  pressure)
inlinestatic

The method is only called by the sequential flash, so tabulating is omitted.

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

Member Data Documentation

◆ isTabulated

template<class RawComponent , bool useVaporPressure = true>
constexpr bool Dumux::Components::TabulatedComponent< RawComponent, useVaporPressure >::isTabulated = true
staticconstexpr

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