17#ifndef DUMUX_COMPONENT_BASE_HH
18#define DUMUX_COMPONENT_BASE_HH
22#include <dune/common/exceptions.hh>
23#include <dune/common/stdstreams.hh>
24#include <dune/common/exceptions.hh>
34template <
class Component>
45template <
class ScalarType,
class Component>
70 { Dune::dwarn <<
"No init routine defined - make sure that this is not necessary!" << std::endl; }
76 template<
class C = Component>
80 DUNE_THROW(Dune::NotImplemented,
"name()");
86 template<
class C = Component>
96 template<
class C = Component>
106 template<
class C = Component>
116 template<
class C = Component>
126 template<
class C = Component>
139 template<
class C = Component>
143 DUNE_THROW(Dune::NotImplemented,
"vaporPressure(t)");
Base class for all components Components provide the thermodynamic relations for the liquid,...
Definition: components/base.hh:47
static constexpr Scalar molarMass()
The molar mass in of the component.
Definition: components/base.hh:87
static constexpr bool isTabulated
if the component relies on tabulated values
Definition: components/base.hh:54
static constexpr Scalar tripleTemperature()
Returns the temperature in at the component's triple point.
Definition: components/base.hh:117
static constexpr Scalar criticalPressure()
Returns the critical pressure in of the component.
Definition: components/base.hh:107
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.
Definition: components/base.hh:68
static constexpr Scalar triplePressure()
Returns the pressure in at the component's triple point.
Definition: components/base.hh:127
static Scalar vaporPressure(Scalar t)
The vapor pressure in of the component at a given temperature in .
Definition: components/base.hh:140
static constexpr Scalar criticalTemperature()
Returns the critical temperature in of the component.
Definition: components/base.hh:97
static std::string name()
A human readable name for the component.
Definition: components/base.hh:77
ScalarType Scalar
export the scalar type used by the component
Definition: components/base.hh:51
Template which always yields a false value.
Definition: common/typetraits/typetraits.hh:24
IsAqueous struct.
Definition: components/base.hh:35