A component which returns run time specified values for all fluid properties. More...
#include <dumux/material/components/constant.hh>
A component which returns run time specified values for all fluid properties.
id | The id used to read from the input file / parametertree |
Scalar | The type used for scalar values |
Public Types | |
using | Scalar = Scalar |
export the scalar type used by the component More... | |
Static Public Member Functions | |
static constexpr bool | gasIsCompressible () |
Returns true if the gas phase is assumed to be compressible. More... | |
static constexpr bool | gasViscosityIsConstant () |
Returns true if the gas phase viscosity is constant. More... | |
static constexpr bool | gasIsIdeal () |
Returns true if the gas phase is assumed to be ideal. More... | |
static constexpr bool | liquidIsCompressible () |
Returns true if the liquid phase is assumed to be compressible. More... | |
static constexpr bool | liquidViscosityIsConstant () |
Returns true if the liquid phase viscosity is constant. More... | |
static const std::string & | name () |
A human readable name for the component. More... | |
static Scalar | molarMass () |
The mass in \mathrm{[kg]} of one mole of the component. More... | |
static Scalar | liquidDensity (Scalar temperature, Scalar pressure) |
Sets the liquid density in \mathrm{[kg/m^3]}. More... | |
static Scalar | liquidMolarDensity (Scalar temperature, Scalar pressure) |
The molar density in \mathrm{[mol/m^3]} at a given pressure and temperature. More... | |
static Scalar | liquidViscosity (Scalar temperature, Scalar pressure) |
Sets the liquid dynamic viscosity in \mathrm{[Pa*s]}. More... | |
static Scalar | gasDensity (Scalar temperature, Scalar pressure) |
Sets the gas density in \mathrm{[kg/m^3]}. More... | |
static Scalar | gasMolarDensity (Scalar temperature, Scalar pressure) |
The molar density in \mathrm{[mol/m^3]} at a given pressure and temperature. More... | |
static Scalar | gasViscosity (Scalar temperature, Scalar pressure) |
Sets the gas dynamic viscosity in \mathrm{[Pa*s]}. More... | |
static Scalar | solidDensity (Scalar temperature) |
The density in \mathrm{[kg/m^3]} of the component at a given pressure in \mathrm{[Pa]} and temperature in \mathrm{[K]}. More... | |
static Scalar | solidThermalConductivity (Scalar temperature) |
Thermal conductivity of the component \mathrm{[W/(m*K)]} as a solid. More... | |
static Scalar | solidHeatCapacity (Scalar temperature) |
Specific isobaric heat capacity of the component \mathrm{[J/(kg*K)]} as a solid. 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 | criticalTemperature () |
Returns the critical temperature in \mathrm{[K]} of the component. More... | |
static constexpr Scalar | criticalPressure () |
Returns the critical pressure in \mathrm{[Pa]} of the component. More... | |
static constexpr Scalar | tripleTemperature () |
Returns the temperature in \mathrm{[K]} at the component's triple point. More... | |
static constexpr 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 in \mathrm{[K]}. More... | |
static const Scalar | liquidEnthalpy (Scalar temperature, Scalar pressure) |
Specific enthalpy \mathrm{[J/kg]} of the pure component in liquid. More... | |
static const Scalar | liquidInternalEnergy (Scalar temperature, Scalar pressure) |
Specific internal energy \mathrm{[J/kg]} of pure the pure component in liquid. More... | |
static Scalar | liquidThermalConductivity (Scalar temperature, Scalar pressure) |
Thermal conductivity of the component \mathrm{[W/(m*K)]} as a liquid. More... | |
static Scalar | liquidHeatCapacity (Scalar temperature, Scalar pressure) |
Specific isobaric heat capacity of the component \mathrm{[J/(kg*K)]} as a liquid. More... | |
static const Scalar | gasEnthalpy (Scalar temperature, Scalar pressure) |
Specific enthalpy \mathrm{[J/kg]} of the pure component in gas. 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 Scalar | gasHeatCapacity (Scalar temperature, Scalar pressure) |
Specific isobaric heat capacity of the component \mathrm{[J/(kg*K)]} as a gas. More... | |
static constexpr bool | solidIsCompressible () |
Returns true if the solid phase is assumed to be compressible. More... | |
Static Public Attributes | |
static constexpr bool | isTabulated |
if the component relies on tabulated values More... | |
|
inherited |
export the scalar type used by the component
|
inlinestaticconstexprinherited |
Returns the critical pressure in \mathrm{[Pa]} of the component.
|
inlinestaticconstexprinherited |
Returns the critical temperature in \mathrm{[K]} of the component.
|
inlinestatic |
Sets the gas density in \mathrm{[kg/m^3]}.
temperature | phase temperature in \mathrm{[K]} |
pressure | phase pressure in \mathrm{[Pa]} |
|
inlinestaticinherited |
Specific enthalpy \mathrm{[J/kg]} of the pure component in gas.
temperature | temperature of component in \mathrm{[K]} |
pressure | pressure of component in \mathrm{[Pa]} |
|
inlinestaticinherited |
Specific isobaric heat capacity of the component \mathrm{[J/(kg*K)]} as a gas.
temperature | temperature of component in \mathrm{[K]} |
pressure | pressure of component in \mathrm{[Pa]} |
|
inlinestaticinherited |
Specific internal energy \mathrm{[J/kg]} of the pure component in gas.
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 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]} |
|
inlinestaticinherited |
Thermal conductivity of the component \mathrm{[W/(m*K)]} as a gas.
temperature | temperature of component in \mathrm{[K]} |
pressure | pressure of component in \mathrm{[Pa]} |
|
inlinestatic |
Sets the gas dynamic viscosity in \mathrm{[Pa*s]}.
Although the dynamic viscosity \mathrm{[Pa*s]} is returned, the kinematic viscosity \mathrm{[m^2/s]} is requested from run time input.
temperature | phase temperature in \mathrm{[K]} |
pressure | phase pressure in \mathrm{[Pa]} |
|
inlinestaticconstexpr |
Returns true if the gas phase viscosity is constant.
|
inlinestaticinherited |
A default routine for initialization, not needed for components and must not be called.
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 |
This function throws a warning when called: "No init routine defined - make sure that this is not necessary!"
|
inlinestatic |
Sets the liquid density in \mathrm{[kg/m^3]}.
temperature | phase temperature in \mathrm{[K]} |
pressure | phase pressure in \mathrm{[Pa]} |
|
inlinestaticinherited |
Specific enthalpy \mathrm{[J/kg]} of the pure component in liquid.
temperature | temperature of component in \mathrm{[K]} |
pressure | pressure of component in \mathrm{[Pa]} |
|
inlinestaticinherited |
Specific isobaric heat capacity of the component \mathrm{[J/(kg*K)]} as a liquid.
temperature | temperature of component in \mathrm{[K]} |
pressure | pressure of component in \mathrm{[Pa]} |
|
inlinestaticinherited |
Specific internal energy \mathrm{[J/kg]} of pure the pure component in liquid.
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 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]} |
|
inlinestaticinherited |
Thermal conductivity of the component \mathrm{[W/(m*K)]} as a liquid.
temperature | temperature of component in \mathrm{[K]} |
pressure | pressure of component in \mathrm{[Pa]} |
|
inlinestatic |
Sets the liquid dynamic viscosity in \mathrm{[Pa*s]}.
Although the dynamic viscosity \mathrm{[Pa*s]} is returned, the kinematic viscosity \mathrm{[m^2/s]} is requested from run time input.
temperature | phase temperature in \mathrm{[K]} |
pressure | phase pressure in \mathrm{[Pa]} |
|
inlinestaticconstexpr |
Returns true if the liquid phase viscosity is constant.
|
inlinestatic |
The mass in \mathrm{[kg]} of one mole of the component.
|
inlinestatic |
A human readable name for the component.
|
inlinestatic |
The density in \mathrm{[kg/m^3]} of the component at a given pressure in \mathrm{[Pa]} and temperature in \mathrm{[K]}.
temperature | temperature of component in \mathrm{[K]} |
|
inlinestatic |
Specific isobaric heat capacity of the component \mathrm{[J/(kg*K)]} as a solid.
temperature | temperature of component in \mathrm{[K]} |
|
inlinestaticconstexprinherited |
Returns true if the solid phase is assumed to be compressible.
|
inlinestatic |
Thermal conductivity of the component \mathrm{[W/(m*K)]} as a solid.
temperature | temperature of component in \mathrm{[K]} |
|
inlinestaticconstexprinherited |
Returns the pressure in \mathrm{[Pa]} at the component's triple point.
|
inlinestaticconstexprinherited |
Returns the temperature in \mathrm{[K]} at the component's triple point.
|
inlinestaticinherited |
The vapor pressure in \mathrm{[Pa]} of the component at a given temperature in \mathrm{[K]}.
t | temperature of the component in \mathrm{[K]} |
|
staticconstexprinherited |
if the component relies on tabulated values