3.2-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
solid.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 *****************************************************************************/
19
25#ifndef DUMUX_COMPONENT_SOLID_HH
26#define DUMUX_COMPONENT_SOLID_HH
27
28#include <dune/common/exceptions.hh>
29
31
32namespace Dumux {
33namespace Components {
34
39template<class Scalar, class Component>
40class Solid
41{
42public:
46 template<class C = Component>
47 static constexpr bool solidIsCompressible()
48 {
49 static_assert(AlwaysFalse<C>::value, "Mandatory function not implemented: solidIsCompressible()");
50 return 0; // iso c++ requires a return statement for constexpr functions
51 }
52
59 template<class C = Component>
60 static Scalar solidDensity(Scalar temperature)
61 {
62 static_assert(AlwaysFalse<C>::value, "Mandatory function not implemented: solidDensity(t)");
63 DUNE_THROW(Dune::NotImplemented, "solidDensity(t)");
64 }
65
70 template<class C = Component>
72 {
73 static_assert(AlwaysFalse<C>::value, "Mandatory function not implemented: solidThermalConductivity(t)");
74 DUNE_THROW(Dune::NotImplemented, "solidThermalConductivity(t)");
75 }
76
81 template<class C = Component>
82 static Scalar solidHeatCapacity(Scalar temperature)
83 {
84 static_assert(AlwaysFalse<C>::value, "Mandatory function not implemented: solidHeatCapacity(t)");
85 DUNE_THROW(Dune::NotImplemented, "solidHeatCapacity(t)");
86 }
87
88};
89
90} // end namespace Components
91} // end namespace Dumux
92
93#endif
Definition: adapt.hh:29
std::string temperature() noexcept
I/O name of temperature for equilibrium models.
Definition: name.hh:51
Template which always yields a false value.
Definition: typetraits.hh:37
Interface for components that have a solid state.
Definition: solid.hh:41
static Scalar solidDensity(Scalar temperature)
The density in of the component at a given pressure in and temperature in .
Definition: solid.hh:60
static Scalar solidHeatCapacity(Scalar temperature)
Specific isobaric heat capacity of the component as a solid.
Definition: solid.hh:82
static Scalar solidThermalConductivity(Scalar temperature)
Thermal conductivity of the component as a solid.
Definition: solid.hh:71
static constexpr bool solidIsCompressible()
Returns true if the solid phase is assumed to be compressible.
Definition: solid.hh:47