Tabulates all thermodynamic properties of a given untabulated chemical species. More...
#include <dumux/material/components/tabulatedcomponent.hh>
Tabulates all thermodynamic properties of a given untabulated chemical species.
At the moment, this class can only handle the sub-critical fluids since it tabulates along the vapor pressure curve.
Scalar | The type used for scalar values |
RawComponent | The component which ought to be tabulated |
useVaporPressure | If 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... | |
using Dumux::Components::TabulatedComponent< RawComponent, useVaporPressure >::Scalar = typename RawComponent::Scalar |
export scalar type
|
inlinestatic |
Returns the critical pressure in \mathrm{[Pa]} of the component.
|
inlinestatic |
Returns the critical temperature in \mathrm{[K]} of the component.
|
inlinestatic |
The density of gas at a given pressure and temperature \mathrm{[kg/m^3]}.
temperature | temperature of component in \mathrm{[K]} |
pressure | pressure of component in \mathrm{[Pa]} |
|
inlinestatic |
Specific enthalpy of the gas \mathrm{[J/kg]}.
temperature | temperature of component in \mathrm{[K]} |
pressure | pressure of component in \mathrm{[Pa]} |
|
inlinestatic |
Specific isobaric heat capacity of the gas \mathrm{[J/(kg*K)]}.
temperature | temperature of component in \mathrm{[K]} |
pressure | pressure of component in \mathrm{[Pa]} |
|
inlinestatic |
Specific internal energy of the gas \mathrm{[J/kg]}.
temperature | temperature of component in \mathrm{[K]} |
pressure | pressure of component in \mathrm{[Pa]} |
|
inlinestaticconstexpr |
Returns true if the gas phase is assumed to be compressible.
|
inlinestaticconstexpr |
Returns true if the gas phase is assumed to be ideal.
|
inlinestatic |
The molar density of gas in \mathrm{[mol/m^3]} at a given pressure and temperature.
temperature | temperature of component in \mathrm{[K]} |
pressure | pressure of component in \mathrm{[Pa]} |
|
inlinestatic |
The pressure of gas in \mathrm{[Pa]} at a given density and temperature.
temperature | temperature of component in \mathrm{[K]} |
density | density of component in \mathrm{[kg/m^3]} |
make sure the minimum/maximum densities have been computed
|
inlinestatic |
The thermal conductivity of gaseous water \mathrm{[W/(m*K)]}.
temperature | temperature of component in \mathrm{[K]} |
pressure | pressure of component in \mathrm{[Pa]} |
|
inlinestatic |
The dynamic viscosity \mathrm{[Pa*s]} of gas.
temperature | temperature of component in \mathrm{[K]} |
pressure | pressure of component in \mathrm{[Pa]} |
|
inlinestatic |
Initialize the tables.
tempMin | The minimum of the temperature range in \mathrm{[K]} |
tempMax | The maximum of the temperature range in \mathrm{[K]} |
nTemp | The number of entries/steps within the temperature range |
pressMin | The minimum of the pressure range in \mathrm{[Pa]} |
pressMax | The maximum of the pressure range in \mathrm{[Pa]} |
nPress | The number of entries/steps within the pressure range |
initialize vapor pressure array depending on useVaporPressure
|
inlinestatic |
The density of liquid at a given pressure and temperature \mathrm{[kg/m^3]}.
temperature | temperature of component in \mathrm{[K]} |
pressure | pressure of component in \mathrm{[Pa]} |
|
inlinestatic |
Specific enthalpy of the liquid \mathrm{[J/kg]}.
temperature | temperature of component in \mathrm{[K]} |
pressure | pressure of component in \mathrm{[Pa]} |
|
inlinestatic |
Specific isobaric heat capacity of the liquid \mathrm{[J/(kg*K)]}.
temperature | temperature of component in \mathrm{[K]} |
pressure | pressure of component in \mathrm{[Pa]} |
|
inlinestatic |
Specific internal energy of the liquid \mathrm{[J/kg]}.
temperature | temperature of component in \mathrm{[K]} |
pressure | pressure of component in \mathrm{[Pa]} |
|
inlinestaticconstexpr |
Returns true if the liquid phase is assumed to be compressible.
|
inlinestatic |
The molar density of liquid in \mathrm{[mol/m^3]} at a given pressure and temperature.
temperature | temperature of component in \mathrm{[K]} |
pressure | pressure of component in \mathrm{[Pa]} |
|
inlinestatic |
The pressure of liquid in \mathrm{[Pa]} at a given density and temperature.
temperature | temperature of component in \mathrm{[K]} |
density | density of component in \mathrm{[kg/m^3]} |
make sure the minimum/maximum densities have been computed
|
inlinestatic |
The thermal conductivity of liquid water \mathrm{[W/(m*K)]}.
temperature | temperature of component in \mathrm{[K]} |
pressure | pressure of component in \mathrm{[Pa]} |
|
inlinestatic |
The dynamic viscosity \mathrm{[Pa*s]} of liquid.
temperature | temperature of component in \mathrm{[K]} |
pressure | pressure of component in \mathrm{[Pa]} |
|
inlinestaticconstexpr |
The molar mass in \mathrm{[kg/mol]} of the component.
|
inlinestatic |
A human readable name for the component.
|
inlinestatic |
Returns the pressure in \mathrm{[Pa]} at the component's triple point.
|
inlinestatic |
Returns the temperature in \mathrm{[K]} at the component's triple point.
|
inlinestatic |
The vapor pressure in \mathrm{[Pa]} of the component at a given temperature.
T | temperature of component |
|
inlinestatic |
The vapor pressure in \mathrm{[Pa]} of the component at a given temperature.
The method is only called by the sequential flash, so tabulating is omitted.
pressure | pressure of component in \mathrm{[Pa]} |
|
staticconstexpr |
state that we are tabulated