3.1-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
35template<class Scalar, class Component>
36class Solid
37{
38public:
42 template<class C = Component>
43 static constexpr bool solidIsCompressible()
44 {
45 static_assert(AlwaysFalse<C>::value, "Mandatory function not implemented: solidIsCompressible()");
46 return 0; // iso c++ requires a return statement for constexpr functions
47 }
48
55 template<class C = Component>
56 static Scalar solidDensity(Scalar temperature)
57 {
58 static_assert(AlwaysFalse<C>::value, "Mandatory function not implemented: solidDensity(t)");
59 DUNE_THROW(Dune::NotImplemented, "solidDensity(t)");
60 }
61
66 template<class C = Component>
68 {
69 static_assert(AlwaysFalse<C>::value, "Mandatory function not implemented: solidThermalConductivity(t)");
70 DUNE_THROW(Dune::NotImplemented, "solidThermalConductivity(t)");
71 }
72
77 template<class C = Component>
78 static Scalar solidHeatCapacity(Scalar temperature)
79 {
80 static_assert(AlwaysFalse<C>::value, "Mandatory function not implemented: solidHeatCapacity(t)");
81 DUNE_THROW(Dune::NotImplemented, "solidHeatCapacity(t)");
82 }
83
84};
85
86} // end namespace Components
87} // end namespace Dumux
88
89#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
Template which always yields a false value.
Definition: typetraits.hh:37
Definition: solid.hh:37
static Scalar solidDensity(Scalar temperature)
The density in of the component at a given pressure in and temperature in .
Definition: solid.hh:56
static Scalar solidHeatCapacity(Scalar temperature)
Specific isobaric heat capacity of the component as a solid.
Definition: solid.hh:78
static Scalar solidThermalConductivity(Scalar temperature)
Thermal conductivity of the component as a solid.
Definition: solid.hh:67
static constexpr bool solidIsCompressible()
Returns true if the solid phase is assumed to be compressible.
Definition: solid.hh:43