3.3.0
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
porousmediumflow/solidenergy/model.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 2 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
34#ifndef DUMUX_SOLID_ENERGY_MODEL_HH
35#define DUMUX_SOLID_ENERGY_MODEL_HH
36
39
43
44namespace Dumux {
45
51{
52 static constexpr int temperatureIdx = 0;
53 static constexpr int energyEqIdx = 0;
54};
55
61{
63 static constexpr int numEq() { return 1; }
64 static constexpr int numFluidPhases() { return 0; }
65 static constexpr int numFluidComponents() { return 0; }
66 static constexpr int numSolidComponents() { return 1; }
67
68 static constexpr bool enableAdvection() { return false; }
69 static constexpr bool enableMolecularDiffusion() { return false; }
70 static constexpr bool enableEnergyBalance() { return true; }
71};
72
77template<class PV, class SSY, class SST, class MT>
79{
80 using PrimaryVariables = PV;
81 using SolidSystem = SSY;
82 using SolidState = SST;
83 using ModelTraits = MT;
84};
85
87{
99 template<class VolumeVariables, class SpatialParams, class Element, class FVGeometry>
100 static typename VolumeVariables::PrimaryVariables::value_type
101 effectiveThermalConductivity(const VolumeVariables& volVars,
102 const SpatialParams& spatialParams,
103 const Element& element,
104 const FVGeometry& fvGeometry,
105 const typename FVGeometry::SubControlVolume& scv)
106 {
107 return volVars.solidThermalConductivity()*(1.0-volVars.porosity());
108 }
109};
110
111// \{
112namespace Properties {
113
115// Type tags
117
119// Create new type tags
120namespace TTag {
121struct SolidEnergy { using InheritsFrom = std::tuple<PorousMediumFlow>; };
122} // end namespace TTag
123
125// Properties
127
129template<class TypeTag>
130struct ModelTraits<TypeTag, TTag::SolidEnergy> { using type = SolidEnergyModelTraits; };
131
133template<class TypeTag>
134struct LocalResidual<TypeTag, TTag::SolidEnergy> { using type = SolidEnergyLocalResidual<TypeTag>; };
135
137template<class TypeTag>
138struct IOFields<TypeTag, TTag::SolidEnergy> { using type = EnergyIOFields<>; };
139
141template<class TypeTag>
142struct VolumeVariables<TypeTag, TTag::SolidEnergy>
143{
144private:
149
151public:
153};
154
156template<class TypeTag>
157struct ThermalConductivityModel<TypeTag, TTag::SolidEnergy>
159
160} // end namespace Properties
161// \}
162} // end namespace Dumux
163
164#endif
Definition: adapt.hh:29
typename Properties::Detail::GetPropImpl< TypeTag, Property >::type::type GetPropType
get the type alias defined in the property (equivalent to old macro GET_PROP_TYPE(....
Definition: propertysystem.hh:149
Traits class encapsulating model specifications.
Definition: common/properties.hh:53
A class helping models to define input and output fields.
Definition: common/properties.hh:63
Definition: common/properties.hh:77
The secondary variables within a sub-control volume.
Definition: common/properties.hh:106
Model to be used for the calculation of the effective conductivity.
Definition: common/properties.hh:165
Adds I/O fields specific to non-isothermal models.
Definition: porousmediumflow/nonisothermal/iofields.hh:39
Element-wise calculation of the residual.
Definition: porousmediumflow/solidenergy/localresidual.hh:37
The indices.
Definition: porousmediumflow/solidenergy/model.hh:51
static constexpr int energyEqIdx
Definition: porousmediumflow/solidenergy/model.hh:53
static constexpr int temperatureIdx
Definition: porousmediumflow/solidenergy/model.hh:52
The energy balance equation for a porous solid.
Definition: porousmediumflow/solidenergy/model.hh:61
static constexpr int numSolidComponents()
Definition: porousmediumflow/solidenergy/model.hh:66
static constexpr int numFluidPhases()
Definition: porousmediumflow/solidenergy/model.hh:64
static constexpr int numFluidComponents()
Definition: porousmediumflow/solidenergy/model.hh:65
static constexpr bool enableMolecularDiffusion()
Definition: porousmediumflow/solidenergy/model.hh:69
static constexpr bool enableEnergyBalance()
Definition: porousmediumflow/solidenergy/model.hh:70
static constexpr bool enableAdvection()
Definition: porousmediumflow/solidenergy/model.hh:68
static constexpr int numEq()
Definition: porousmediumflow/solidenergy/model.hh:63
The volume variable traits.
Definition: porousmediumflow/solidenergy/model.hh:79
MT ModelTraits
Definition: porousmediumflow/solidenergy/model.hh:83
PV PrimaryVariables
Definition: porousmediumflow/solidenergy/model.hh:80
SSY SolidSystem
Definition: porousmediumflow/solidenergy/model.hh:81
SST SolidState
Definition: porousmediumflow/solidenergy/model.hh:82
Definition: porousmediumflow/solidenergy/model.hh:87
static VolumeVariables::PrimaryVariables::value_type effectiveThermalConductivity(const VolumeVariables &volVars, const SpatialParams &spatialParams, const Element &element, const FVGeometry &fvGeometry, const typename FVGeometry::SubControlVolume &scv)
Relation for a simple effective thermal conductivity .
Definition: porousmediumflow/solidenergy/model.hh:101
Definition: porousmediumflow/solidenergy/model.hh:121
std::tuple< PorousMediumFlow > InheritsFrom
Definition: porousmediumflow/solidenergy/model.hh:121
Class for computation of all volume averaged quantities.
Definition: porousmediumflow/solidenergy/volumevariables.hh:41
Declares all properties used in Dumux.
Defines a type tag and some properties for models using the box scheme.
Adds I/O fields specific to non-isothermal models.
Element-wise calculation of the residual.
Class for computation of all volume averaged quantities.