version 3.8
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// SPDX-FileCopyrightInfo: Copyright © DuMux Project contributors, see AUTHORS.md in root folder
5// SPDX-License-Identifier: GPL-3.0-or-later
6//
12#ifndef DUMUX_GRANITE_HH
13#define DUMUX_GRANITE_HH
14
17
18#include <cmath>
19
20namespace Dumux {
21namespace Components {
22
29template <class Scalar>
30class Granite : public Components::Base<Scalar, Granite<Scalar> >
31 , public Components::Solid<Scalar, Granite<Scalar> >
32
33{
34public:
38 static std::string name()
39 { return "Granite"; }
40
44 static constexpr bool solidIsCompressible()
45 {
46 return false; // iso c++ requires a return statement for constexpr functions
47 }
48
52 static constexpr Scalar molarMass()
53 {
54 return 60.08e-3;
55 }
56
64 {
65 return 2700;
66 }
67
73 {
74 return 2.8;
75 }
76
82 {
83 return 790;
84 }
85
86};
87
88} // end namespace Components
89
90} // end namespace Dumux
91
92#endif
Base class for all components Components provide the thermodynamic relations for the liquid,...
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:33
static Scalar solidThermalConductivity(Scalar temperature)
Thermal conductivity of the component as a solid.
Definition: granite.hh:72
static constexpr bool solidIsCompressible()
Returns true if the solid phase is assumed to be compressible.
Definition: granite.hh:44
static constexpr Scalar molarMass()
The molar mass of Siliciumoxide which is 70 % of granite in .
Definition: granite.hh:52
static std::string name()
A human readable name for the solid.
Definition: granite.hh:38
static Scalar solidDensity(Scalar temperature)
The density in of the component at a given pressure in and temperature in .
Definition: granite.hh:63
static Scalar solidHeatCapacity(Scalar temperature)
Specific isobaric heat capacity of the component as a solid.
Definition: granite.hh:81
Interface for components that have a solid state.
Definition: solid.hh:29
Base class for all components Components provide the thermodynamic relations for the liquid,...
std::string temperature() noexcept
I/O name of temperature for equilibrium models.
Definition: name.hh:39
Definition: adapt.hh:17
Interface for components that have a solid state.