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> 
   33template <
class Component>
 
   44template <
class ScalarType, 
class Component>
 
   69    {   Dune::dwarn << 
"No init routine defined - make sure that this is not necessary!" << std::endl; }
 
 
   75    template<
class C = Component>
 
   79        DUNE_THROW(Dune::NotImplemented, 
"name()");
 
 
   85    template<
class C = Component>
 
   95    template<
class C = Component>
 
  105    template<
class C = Component>
 
  115    template<
class C = Component>
 
  125    template<
class C = Component>
 
  138    template<
class C = Component>
 
  142        DUNE_THROW(Dune::NotImplemented, 
"vaporPressure(t)");
 
 
 
Base class for all components Components provide the thermodynamic relations for the liquid,...
Definition components/base.hh:46
static constexpr Scalar molarMass()
The molar mass in  of the component.
Definition components/base.hh:86
static constexpr bool isTabulated
if the component relies on tabulated values
Definition components/base.hh:53
static constexpr Scalar tripleTemperature()
Returns the temperature in  at the component's triple point.
Definition components/base.hh:116
static constexpr Scalar criticalPressure()
Returns the critical pressure in  of the component.
Definition components/base.hh:106
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:67
static constexpr Scalar triplePressure()
Returns the pressure in  at the component's triple point.
Definition components/base.hh:126
static Scalar vaporPressure(Scalar t)
The vapor pressure in  of the component at a given temperature in .
Definition components/base.hh:139
static constexpr Scalar criticalTemperature()
Returns the critical temperature in  of the component.
Definition components/base.hh:96
static std::string name()
A human readable name for the component.
Definition components/base.hh:76
ScalarType Scalar
export the scalar type used by the component
Definition components/base.hh:50
Template which always yields a false value.
Definition common/typetraits/typetraits.hh:24
IsAqueous struct.
Definition components/base.hh:34