29#ifndef DUMUX_COMPONENT_BASE_HH
30#define DUMUX_COMPONENT_BASE_HH
34#include <dune/common/exceptions.hh>
35#include <dune/common/stdstreams.hh>
36#include <dune/common/exceptions.hh>
42template <
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)");
make the local view function available whenever we use the grid geometry
Definition: adapt.hh:29
Template which always yields a false value.
Definition: typetraits.hh:37
Definition: components/base.hh:43
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