13#ifndef DUMUX_COMPONENT_LIQUID_HH
14#define DUMUX_COMPONENT_LIQUID_HH
16#include <dune/common/exceptions.hh>
27template<
class Scalar,
class Component>
34 template<
class C = Component>
44 template<
class C = Component>
47 static_assert(
AlwaysFalse<C>::value,
"Mandatory function not implemented: liquidViscosityIsConstant()");
58 template<
class C = Component>
62 DUNE_THROW(Dune::NotImplemented,
"liquidDensity(t,p)");
72 template<
class C = Component>
76 DUNE_THROW(Dune::NotImplemented,
"Component::liquidMolarDensity(t,p)");
85 template<
class C = Component>
89 DUNE_THROW(Dune::NotImplemented,
"liquidViscosity(t,p)");
98 template<
class C = Component>
102 DUNE_THROW(Dune::NotImplemented,
"liquidEnthalpy(t,p)");
111 template<
class C = Component>
114 static_assert(
AlwaysFalse<C>::value,
"Mandatory function not implemented: liquidInternalEnergy(t,p)");
115 DUNE_THROW(Dune::NotImplemented,
"liquidInternalEnergy(t,p)");
123 template<
class C = Component>
126 static_assert(
AlwaysFalse<C>::value,
"Mandatory function not implemented: liquidThermalConductivity(t,p)");
127 DUNE_THROW(Dune::NotImplemented,
"liquidThermalConductivity(t,p)");
135 template<
class C = Component>
139 DUNE_THROW(Dune::NotImplemented,
"liquidHeatCapacity(t,p)");
Interface for components that have a liquid state.
Definition: liquid.hh:29
static constexpr bool liquidViscosityIsConstant()
Returns true if the liquid phase viscostiy is constant.
Definition: liquid.hh:45
static const Scalar liquidInternalEnergy(Scalar temperature, Scalar pressure)
Specific internal energy of pure the pure component in liquid.
Definition: liquid.hh:112
static constexpr bool liquidIsCompressible()
Returns true if the liquid phase is assumed to be compressible.
Definition: liquid.hh:35
static Scalar liquidHeatCapacity(Scalar temperature, Scalar pressure)
Specific isobaric heat capacity of the component as a liquid.
Definition: liquid.hh:136
static Scalar liquidViscosity(Scalar temperature, Scalar pressure)
The dynamic liquid viscosity of the pure component.
Definition: liquid.hh:86
static const Scalar liquidEnthalpy(Scalar temperature, Scalar pressure)
Specific enthalpy of the pure component in liquid.
Definition: liquid.hh:99
static Scalar liquidDensity(Scalar temperature, Scalar pressure)
The density of the liquid component at a given pressure in and temperature in .
Definition: liquid.hh:59
static Scalar liquidThermalConductivity(Scalar temperature, Scalar pressure)
Thermal conductivity of the component as a liquid.
Definition: liquid.hh:124
static Scalar liquidMolarDensity(Scalar temperature, Scalar pressure)
The molar density of the liquid component at a given pressure in and temperature in .
Definition: liquid.hh:73
std::string temperature() noexcept
I/O name of temperature for equilibrium models.
Definition: name.hh:39
std::string pressure(int phaseIdx) noexcept
I/O name of pressure for multiphase systems.
Definition: name.hh:22
Template which always yields a false value.
Definition: common/typetraits/typetraits.hh:24