Loading [MathJax]/extensions/tex2jax.js
3.1-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
inertsolidphase.hh
Go to the documentation of this file.
1// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2// vi: set et ts=4 sw=4 sts=4:
3/*****************************************************************************
4 * See the file COPYING for full copying permissions. *
5 * *
6 * This program is free software: you can redistribute it and/or modify *
7 * it under the terms of the GNU General Public License as published by *
8 * the Free Software Foundation, either version 3 of the License, or *
9 * (at your option) any later version. *
10 * *
11 * This program is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14 * GNU General Public License for more details. *
15 * *
16 * You should have received a copy of the GNU General Public License *
17 * along with this program. If not, see <http://www.gnu.org/licenses/>. *
18 *****************************************************************************/
24#ifndef DUMUX_SOLIDSYSTEMS_INERT_SOLID_PHASE_HH
25#define DUMUX_SOLIDSYSTEMS_INERT_SOLID_PHASE_HH
26
27#include <string>
28#include <dune/common/exceptions.hh>
29
30namespace Dumux {
31namespace SolidSystems {
32
39template <class Scalar, class ComponentT>
41{
42public:
43 using Component = ComponentT;
44
45 /****************************************
46 * Solid phase related static parameters
47 ****************************************/
48 static constexpr int numComponents = 1;
49 static constexpr int numInertComponents = 1;
50
56 static std::string componentName(int compIdx = 0)
57 { return Component::name(); }
58
62 static std::string name()
63 { return "s"; }
64
68 static constexpr bool isCompressible(int compIdx = 0)
69 { return false; }
70
74 static constexpr bool isInert()
75 { return true; }
76
80 static Scalar molarMass(int compIdx = 0)
81 { return Component::molarMass(); }
82
86 static Scalar density(Scalar temperature)
87 { return Component::solidDensity(temperature); }
88
92 template <class SolidState>
93 static Scalar density(const SolidState& solidState)
94 {
95 return density(solidState.temperature());
96 }
97
101 static Scalar thermalConductivity(Scalar temperature)
102 { return Component::solidThermalConductivity(temperature); }
103
107 template <class SolidState>
108 static Scalar thermalConductivity(const SolidState &solidState)
109 {
110 return thermalConductivity(solidState.temperature());
111 }
112
116 static Scalar heatCapacity(Scalar temperature)
117 { return Component::solidHeatCapacity(temperature); }
118
122 template <class SolidState>
123 static Scalar heatCapacity(const SolidState &solidState)
124 {
125 return heatCapacity(solidState.temperature());
126 }
127
128};
129
130} // end namespace SolidSystems
131} // end namespace Dumux
132
133#endif
make the local view function available whenever we use the grid geometry
Definition: adapt.hh:29
std::string temperature() noexcept
I/O name of temperature for equilibrium models.
Definition: name.hh:51
A solid phase consisting of a single inert solid component.
Definition: inertsolidphase.hh:41
static Scalar heatCapacity(const SolidState &solidState)
Specific isobaric heat capacity of the solid .
Definition: inertsolidphase.hh:123
static Scalar thermalConductivity(Scalar temperature)
Thermal conductivity of the solid .
Definition: inertsolidphase.hh:101
static Scalar density(const SolidState &solidState)
The density of the solid phase at a given pressure and temperature.
Definition: inertsolidphase.hh:93
static Scalar molarMass(int compIdx=0)
The molar mass in of the component.
Definition: inertsolidphase.hh:80
static constexpr bool isInert()
Returns whether the component is inert (doesn't react)
Definition: inertsolidphase.hh:74
static std::string componentName(int compIdx=0)
A human readable name for the component.
Definition: inertsolidphase.hh:56
static Scalar heatCapacity(Scalar temperature)
Specific isobaric heat capacity of the solid .
Definition: inertsolidphase.hh:116
static std::string name()
A human readable name for the solid system.
Definition: inertsolidphase.hh:62
static constexpr int numComponents
Definition: inertsolidphase.hh:48
ComponentT Component
Definition: inertsolidphase.hh:43
static constexpr bool isCompressible(int compIdx=0)
Returns whether the phase is incompressible.
Definition: inertsolidphase.hh:68
static constexpr int numInertComponents
Definition: inertsolidphase.hh:49
static Scalar thermalConductivity(const SolidState &solidState)
Thermal conductivity of the solid .
Definition: inertsolidphase.hh:108
static Scalar density(Scalar temperature)
The density of the solid phase at a given pressure and temperature.
Definition: inertsolidphase.hh:86