12#ifndef DUMUX_SOLIDSYSTEMS_SOLID_PHASE_HH
13#define DUMUX_SOLIDSYSTEMS_SOLID_PHASE_HH
16#include <dune/common/exceptions.hh>
19namespace SolidSystems {
27template <
class Scalar,
class ComponentT,
bool isInertComp = true>
45 {
return Component::name(); }
63 {
return isInertComp; }
69 {
return Component::molarMass(); }
80 template <
class Sol
idState>
81 static Scalar
density(
const SolidState& solidState,
int compIdx = 0)
82 {
return density(solidState.temperature(), compIdx); }
87 template <
class Sol
idState>
88 static Scalar
molarDensity(
const SolidState& solidState,
int compIdx = 0)
95 {
return Component::solidThermalConductivity(
temperature); }
100 template <
class Sol
idState>
108 {
return Component::solidHeatCapacity(
temperature); }
113 template <
class Sol
idState>
114 static Scalar
heatCapacity(
const SolidState &solidState,
int compIdx = 0)
115 {
return heatCapacity(solidState.temperature(), compIdx); }
124template <
class Scalar,
class ComponentT>
The simplest solid phase consisting of a single solid component.
Definition: 1csolid.hh:29
static Scalar heatCapacity(const SolidState &solidState, int compIdx=0)
Specific isobaric heat capacity of the solid .
Definition: 1csolid.hh:114
static constexpr bool isInert()
Returns whether the component is inert (doesn't react)
Definition: 1csolid.hh:62
static Scalar heatCapacity(Scalar temperature, int compIdx=0)
Specific isobaric heat capacity of the solid .
Definition: 1csolid.hh:107
static Scalar molarDensity(const SolidState &solidState, int compIdx=0)
The molar density of the solid phase at a given pressure and temperature.
Definition: 1csolid.hh:88
ComponentT Component
Definition: 1csolid.hh:31
static Scalar thermalConductivity(const SolidState &solidState, int compIdx=0)
Thermal conductivity of the solid .
Definition: 1csolid.hh:101
static std::string name()
A human readable name for the solid system.
Definition: 1csolid.hh:50
static Scalar density(const SolidState &solidState, int compIdx=0)
The density of the solid phase at a given pressure and temperature.
Definition: 1csolid.hh:81
static Scalar molarMass(int compIdx=0)
The molar mass in of the component.
Definition: 1csolid.hh:68
static Scalar thermalConductivity(Scalar temperature, int compIdx=0)
Thermal conductivity of the solid .
Definition: 1csolid.hh:94
static constexpr int numInertComponents
Definition: 1csolid.hh:37
static constexpr bool isCompressible(int compIdx=0)
Returns whether the phase is incompressible.
Definition: 1csolid.hh:56
static constexpr int numComponents
Definition: 1csolid.hh:36
static Scalar density(Scalar temperature, int compIdx=0)
The density of the solid phase at a given pressure and temperature.
Definition: 1csolid.hh:74
static std::string componentName(int compIdx=0)
A human readable name for the component.
Definition: 1csolid.hh:44
std::string temperature() noexcept
I/O name of temperature for equilibrium models.
Definition: name.hh:39