25#ifndef DUMUX_COMPONENT_GAS_HH
26#define DUMUX_COMPONENT_GAS_HH
28#include <dune/common/exceptions.hh>
39template<
class Scalar,
class Component>
46 template<
class C = Component>
56 template<
class C = Component>
66 template<
class C = Component>
80 template<
class C = Component>
84 DUNE_THROW(Dune::NotImplemented,
"gasDensity(t,p)");
94 template<
class C = Component>
98 DUNE_THROW(Dune::NotImplemented,
"gasMolarDensity(t,p)");
107 template<
class C = Component>
111 DUNE_THROW(Dune::NotImplemented,
"gasEnthalpy(t,p)");
120 template<
class C = Component>
124 DUNE_THROW(Dune::NotImplemented,
"gasInternalEnergy(t,p)");
134 template<
class C = Component>
138 DUNE_THROW(Dune::NotImplemented,
"gasViscosity(t,p)");
146 template<
class C = Component>
149 static_assert(
AlwaysFalse<C>::value,
"Mandatory function not implemented: gasThermalConductivity(t,p)");
150 DUNE_THROW(Dune::NotImplemented,
"gasThermalConductivity(t,p)");
158 template<
class C = Component>
162 DUNE_THROW(Dune::NotImplemented,
"gasHeatCapacity(t,p)");
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
Template which always yields a false value.
Definition: typetraits.hh:35
Interface for components that have a gas state.
Definition: gas.hh:41
static Scalar gasDensity(Scalar temperature, Scalar pressure)
The density in of the component at a given pressure in and temperature in .
Definition: gas.hh:81
static Scalar gasViscosity(Scalar temperature, Scalar pressure)
The dynamic viscosity of the pure component at a given pressure in and temperature in .
Definition: gas.hh:135
static Scalar gasMolarDensity(Scalar temperature, Scalar pressure)
The molar density in of the component at a given pressure in and temperature in .
Definition: gas.hh:95
static const Scalar gasEnthalpy(Scalar temperature, Scalar pressure)
Specific enthalpy of the pure component in gas.
Definition: gas.hh:108
static constexpr bool gasIsCompressible()
Returns true if the gas phase is assumed to be compressible.
Definition: gas.hh:47
static const Scalar gasInternalEnergy(Scalar temperature, Scalar pressure)
Specific internal energy of the pure component in gas.
Definition: gas.hh:121
static constexpr bool gasViscosityIsConstant()
Returns true if the gas phase viscostiy is constant.
Definition: gas.hh:57
static Scalar gasThermalConductivity(Scalar temperature, Scalar pressure)
Thermal conductivity of the component as a gas.
Definition: gas.hh:147
static Scalar gasHeatCapacity(Scalar temperature, Scalar pressure)
Specific isobaric heat capacity of the component as a gas.
Definition: gas.hh:159
static constexpr bool gasIsIdeal()
Returns true if the gas phase is assumed to be ideal.
Definition: gas.hh:67