3.1-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
granite.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_GRANITE_HH
25#define DUMUX_GRANITE_HH
26
29
30#include <cmath>
31
32namespace Dumux {
33namespace Components {
34
41template <class Scalar>
42class Granite : public Components::Base<Scalar, Granite<Scalar> >
43 , public Components::Solid<Scalar, Granite<Scalar> >
44
45{
46public:
50 static std::string name()
51 { return "Granite"; }
52
56 static constexpr bool solidIsCompressible()
57 {
58 return false; // iso c++ requires a return statement for constexpr functions
59 }
60
64 static constexpr Scalar molarMass()
65 {
66 return 60.08e-3;
67 }
68
76 {
77 return 2700;
78 }
79
85 {
86 return 2.8;
87 }
88
94 {
95 return 790;
96 }
97
98};
99
100} // end namespace Components
101
102} // end namespace Dumux
103
104#endif
Interface for components that have a solid state.
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
Definition: components/base.hh:47
Scalar Scalar
export the scalar type used by the component
Definition: components/base.hh:51
Properties of granite.
Definition: granite.hh:45
static Scalar solidThermalConductivity(Scalar temperature)
Thermal conductivity of the component as a solid.
Definition: granite.hh:84
static constexpr bool solidIsCompressible()
Returns true if the solid phase is assumed to be compressible.
Definition: granite.hh:56
static constexpr Scalar molarMass()
The molar mass of Siliciumoxide which is 70 % of granite in .
Definition: granite.hh:64
static std::string name()
A human readable name for the solid.
Definition: granite.hh:50
static Scalar solidDensity(Scalar temperature)
The density in of the component at a given pressure in and temperature in .
Definition: granite.hh:75
static Scalar solidHeatCapacity(Scalar temperature)
Specific isobaric heat capacity of the component as a solid.
Definition: granite.hh:93
Definition: solid.hh:37
Base class for all components Components provide the thermodynamic relations for the liquid,...