24#ifndef DUMUX_COMPONENTS_CONSTANT_HH
25#define DUMUX_COMPONENTS_CONSTANT_HH
52template<
int id,
class Scalar>
94 static const std::string&
name()
96 static const std::string
name = getParamFromGroup<std::string>(std::to_string(
id),
"Component.Name",
"component");
105 static const Scalar molarMass = getParamFromGroup<Scalar>(std::to_string(
id),
"Component.MolarMass");
117 static const Scalar density = getParamFromGroup<Scalar>(std::to_string(
id),
"Component.LiquidDensity");
142 static const Scalar kinematicViscosity = getParamFromGroup<Scalar>(std::to_string(
id),
"Component.LiquidKinematicViscosity");
153 static const Scalar thermalConductivity = getParamFromGroup<Scalar>(std::to_string(
id),
"Component.LiquidThermalConductivity");
154 return thermalConductivity;
166 static const Scalar tRef = getParamFromGroup<Scalar>(std::to_string(
id),
"Component.ReferenceTemperature", 293.15);
191 static const Scalar heatCapacity = getParamFromGroup<Scalar>(std::to_string(
id),
"Component.LiquidHeatCapacity");
203 static const Scalar density = getParamFromGroup<Scalar>(std::to_string(
id),
"Component.GasDensity");
229 static const Scalar kinematicViscosity = getParamFromGroup<Scalar>(std::to_string(
id),
"Component.GasKinematicViscosity");
241 static const Scalar density = getParamFromGroup<Scalar>(std::to_string(
id),
"Component.SolidDensity");
261 static const Scalar solidHeatCapacity = getParamFromGroup<Scalar>(std::to_string(
id),
"Component.SolidHeatCapacity");
The infrastructure to retrieve run-time parameters from Dune::ParameterTrees.
Interface for components that have a gas state.
Interface for components that have a liquid state.
Interface for components that have a solid state.
std::string temperature() noexcept
I/O name of temperature for equilibrium models.
Definition: name.hh:51
std::string pressure(int phaseIdx) noexcept
I/O name of pressure for multiphase systems.
Definition: name.hh:34
std::string density(int phaseIdx) noexcept
I/O name of density for multiphase systems.
Definition: name.hh:65
Base class for all components Components provide the thermodynamic relations for the liquid,...
Definition: components/base.hh:59
Scalar Scalar
export the scalar type used by the component
Definition: components/base.hh:63
A component which returns run time specified values for all fluid properties.
Definition: constant.hh:58
static Scalar solidDensity(Scalar temperature)
The density in of the component at a given pressure in and temperature in .
Definition: constant.hh:239
static const std::string & name()
A human readable name for the component.
Definition: constant.hh:94
static Scalar solidThermalConductivity(Scalar temperature)
Thermal conductivity of the component as a solid.
Definition: constant.hh:249
static Scalar liquidThermalConductivity(Scalar temperature, Scalar pressure)
Thermal conductivity of the component as a liquid.
Definition: constant.hh:151
static Scalar liquidEnthalpy(Scalar temperature, Scalar pressure)
Specific enthalpy of the component as a liquid.
Definition: constant.hh:176
static Scalar liquidMolarDensity(Scalar temperature, Scalar pressure)
The molar density in at a given pressure and temperature.
Definition: constant.hh:128
static constexpr bool gasIsCompressible()
Returns true if the gas phase is assumed to be compressible.
Definition: constant.hh:64
static Scalar liquidHeatCapacity(Scalar temperature, Scalar pressure)
Specific isobaric heat capacity of the component as a liquid.
Definition: constant.hh:189
static Scalar gasMolarDensity(Scalar temperature, Scalar pressure)
The molar density in at a given pressure and temperature.
Definition: constant.hh:214
static Scalar solidHeatCapacity(Scalar temperature)
Specific isobaric heat capacity of the component as a solid.
Definition: constant.hh:259
static constexpr bool gasViscosityIsConstant()
Returns true if the gas phase viscosity is constant.
Definition: constant.hh:70
static Scalar liquidInternalEnergy(Scalar temperature, Scalar pressure)
Specific internal energy of the component as a liquid.
Definition: constant.hh:162
static Scalar gasDensity(Scalar temperature, Scalar pressure)
Sets the gas density in .
Definition: constant.hh:201
static constexpr bool liquidViscosityIsConstant()
Returns true if the liquid phase viscosity is constant.
Definition: constant.hh:88
static constexpr bool gasIsIdeal()
Returns true if the gas phase is assumed to be ideal.
Definition: constant.hh:76
static Scalar liquidDensity(Scalar temperature, Scalar pressure)
Sets the liquid density in .
Definition: constant.hh:115
static Scalar molarMass()
The mass in of one mole of the component.
Definition: constant.hh:103
static constexpr bool liquidIsCompressible()
Returns true if the liquid phase is assumed to be compressible.
Definition: constant.hh:82
static Scalar liquidViscosity(Scalar temperature, Scalar pressure)
Sets the liquid dynamic viscosity in .
Definition: constant.hh:140
static Scalar gasViscosity(Scalar temperature, Scalar pressure)
Sets the gas dynamic viscosity in .
Definition: constant.hh:227
Interface for components that have a gas state.
Definition: gas.hh:41
Interface for components that have a liquid state.
Definition: liquid.hh:41
Interface for components that have a solid state.
Definition: solid.hh:41
Base class for all components Components provide the thermodynamic relations for the liquid,...