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>
46template <
class Component>
57template <
class ScalarType,
class Component>
82 { Dune::dwarn <<
"No init routine defined - make sure that this is not necessary!" << std::endl; }
88 template<
class C = Component>
92 DUNE_THROW(Dune::NotImplemented,
"name()");
98 template<
class C = Component>
108 template<
class C = Component>
118 template<
class C = Component>
128 template<
class C = Component>
138 template<
class C = Component>
151 template<
class C = Component>
155 DUNE_THROW(Dune::NotImplemented,
"vaporPressure(t)");
Adaption of the non-isothermal two-phase two-component flow model to problems with CO2.
Definition: adapt.hh:29
Template which always yields a false value.
Definition: typetraits.hh:35
IsAqueous struct.
Definition: components/base.hh:47
Base class for all components Components provide the thermodynamic relations for the liquid,...
Definition: components/base.hh:59
static constexpr Scalar molarMass()
The molar mass in of the component.
Definition: components/base.hh:99
static constexpr bool isTabulated
if the component relies on tabulated values
Definition: components/base.hh:66
static constexpr Scalar tripleTemperature()
Returns the temperature in at the component's triple point.
Definition: components/base.hh:129
static constexpr Scalar criticalPressure()
Returns the critical pressure in of the component.
Definition: components/base.hh:119
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:80
static constexpr Scalar triplePressure()
Returns the pressure in at the component's triple point.
Definition: components/base.hh:139
static Scalar vaporPressure(Scalar t)
The vapor pressure in of the component at a given temperature in .
Definition: components/base.hh:152
static constexpr Scalar criticalTemperature()
Returns the critical temperature in of the component.
Definition: components/base.hh:109
static std::string name()
A human readable name for the component.
Definition: components/base.hh:89
ScalarType Scalar
export the scalar type used by the component
Definition: components/base.hh:63