3.5-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
porousmediumflow/1p/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 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 *****************************************************************************/
40#ifndef DUMUX_1P_MODEL_HH
41#define DUMUX_1P_MODEL_HH
42
44
47
52
53#include "indices.hh"
54#include "volumevariables.hh"
55#include "iofields.hh"
56
57namespace Dumux {
58
64{
67
68 static constexpr int numEq() { return 1; }
69 static constexpr int numFluidPhases() { return 1; }
70 static constexpr int numFluidComponents() { return 1; }
71
72 static constexpr bool enableAdvection() { return true; }
73 static constexpr bool enableMolecularDiffusion() { return false; }
74 static constexpr bool enableEnergyBalance() { return false; }
75 static constexpr bool enableThermalDispersion() { return false; }
76};
77
88template<class PV, class FSY, class FST, class SSY, class SST, class PT, class MT>
90{
91 using PrimaryVariables = PV;
92 using FluidSystem = FSY;
93 using FluidState = FST;
94 using SolidSystem = SSY;
95 using SolidState = SST;
96 using PermeabilityType = PT;
97 using ModelTraits = MT;
98};
99
100namespace Properties {
101// Create new type tags
102namespace TTag {
104struct OneP { using InheritsFrom = std::tuple<PorousMediumFlow>; };
105
107struct OnePNI { using InheritsFrom = std::tuple<OneP>; };
108} // end namespace TTag
109
111// Properties for the isothermal single phase model
113template<class TypeTag>
114struct IOFields<TypeTag, TTag::OneP> { using type = OnePIOFields; };
115template<class TypeTag>
116struct LocalResidual<TypeTag, TTag::OneP> { using type = ImmiscibleLocalResidual<TypeTag>; };
117template<class TypeTag>
118struct BaseModelTraits<TypeTag, TTag::OneP> { using type = OnePModelTraits; };
119template<class TypeTag>
121
123template<class TypeTag>
124struct VolumeVariables<TypeTag, TTag::OneP>
125{
126private:
134
136public:
138};
139
147template<class TypeTag>
148struct FluidState<TypeTag, TTag::OneP>
149{
150private:
153public:
155};
156
158// Properties for the non-isothermal single phase model
160
162template<class TypeTag>
163struct IOFields<TypeTag, TTag::OnePNI> { using type = EnergyIOFields<OnePIOFields>; };
164
166template<class TypeTag>
167struct ModelTraits<TypeTag, TTag::OnePNI> { using type = PorousMediumFlowNIModelTraits<OnePModelTraits>; };
168
170template<class TypeTag>
171struct VolumeVariables<TypeTag, TTag::OnePNI>
172{
173private:
182
184 template<class BaseTraits, class ETCM>
185 struct NITraits : public BaseTraits { using EffectiveThermalConductivityModel = ETCM; };
186
187public:
189};
190
192template<class TypeTag>
193struct ThermalConductivityModel<TypeTag, TTag::OnePNI>
195
196} // end namespace Properties
197} // end namespace Dumux
198
199#endif
Reation for a simple effective thermal conductivity.
Represents all relevant thermodynamic quantities of a multi-phase fluid system assuming immiscibility...
Definition: adapt.hh:29
typename Properties::Detail::GetPropImpl< TypeTag, Property >::type::type GetPropType
get the type alias defined in the property
Definition: propertysystem.hh:150
Traits class encapsulating model specifications.
Definition: common/properties.hh:53
Model traits to be used as a base for nonisothermal, mineralization ... models.
Definition: common/properties.hh:55
A class helping models to define input and output fields.
Definition: common/properties.hh:63
Definition: common/properties.hh:74
The secondary variables within a sub-control volume.
Definition: common/properties.hh:107
The type of the fluid state to use.
Definition: common/properties.hh:164
Model to be used for the calculation of the effective conductivity.
Definition: common/properties.hh:172
Relation for a simple effective thermal conductivity.
Definition: thermalconductivityaverage.hh:37
Represents all relevant thermodynamic quantities of a multi-phase fluid system assuming immiscibility...
Definition: immiscible.hh:42
Indices for the one-phase model.
Definition: porousmediumflow/1p/indices.hh:39
Adds I/O fields specific to the one phase model.
Definition: porousmediumflow/1p/iofields.hh:37
Specifies a number properties of single-phase models.
Definition: porousmediumflow/1p/model.hh:64
static constexpr bool enableAdvection()
Definition: porousmediumflow/1p/model.hh:72
static constexpr bool enableMolecularDiffusion()
Definition: porousmediumflow/1p/model.hh:73
static constexpr int numEq()
Definition: porousmediumflow/1p/model.hh:68
static constexpr int numFluidPhases()
Definition: porousmediumflow/1p/model.hh:69
static constexpr int numFluidComponents()
Definition: porousmediumflow/1p/model.hh:70
static constexpr bool enableThermalDispersion()
Definition: porousmediumflow/1p/model.hh:75
static constexpr bool enableEnergyBalance()
Definition: porousmediumflow/1p/model.hh:74
Traits class for the volume variables of the single-phase model.
Definition: porousmediumflow/1p/model.hh:90
SST SolidState
Definition: porousmediumflow/1p/model.hh:95
SSY SolidSystem
Definition: porousmediumflow/1p/model.hh:94
MT ModelTraits
Definition: porousmediumflow/1p/model.hh:97
PT PermeabilityType
Definition: porousmediumflow/1p/model.hh:96
FSY FluidSystem
Definition: porousmediumflow/1p/model.hh:92
FST FluidState
Definition: porousmediumflow/1p/model.hh:93
PV PrimaryVariables
Definition: porousmediumflow/1p/model.hh:91
The type tags for the isothermal single phase model.
Definition: porousmediumflow/1p/model.hh:104
std::tuple< PorousMediumFlow > InheritsFrom
Definition: porousmediumflow/1p/model.hh:104
The type tags for the non-isothermal single phase model.
Definition: porousmediumflow/1p/model.hh:107
std::tuple< OneP > InheritsFrom
Definition: porousmediumflow/1p/model.hh:107
GetPropType< TypeTag, Properties::BaseModelTraits > type
Definition: porousmediumflow/1p/model.hh:120
Contains the quantities which are constant within a finite volume in the one-phase model.
Definition: porousmediumflow/1p/volumevariables.hh:46
Element-wise calculation of the residual for problems using the n-phase immiscible fully implicit mod...
Definition: porousmediumflow/immiscible/localresidual.hh:40
Adds I/O fields specific to non-isothermal models.
Definition: porousmediumflow/nonisothermal/iofields.hh:39
Specifies a number properties of non-isothermal porous medium flow models based on the specifics of a...
Definition: porousmediumflow/nonisothermal/model.hh:70
Declares all properties used in Dumux.
Defines a type tag and some properties for models using the box scheme.
The implicit non-isothermal model.
Adds I/O fields specific to non-isothermal models.
Adds I/O fields specific to the tracer model.
Element-wise calculation of the residual for problems using the n-phase immiscible fully implicit mod...
Defines the primary variable and equation indices used by the isothermal tracer model.