3.6-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 *****************************************************************************/
36#ifndef DUMUX_1P_MODEL_HH
37#define DUMUX_1P_MODEL_HH
38
40
43
48
49#include "indices.hh"
50#include "volumevariables.hh"
51#include "iofields.hh"
52
53namespace Dumux {
54
60{
63
64 static constexpr int numEq() { return 1; }
65 static constexpr int numFluidPhases() { return 1; }
66 static constexpr int numFluidComponents() { return 1; }
67
68 static constexpr bool enableAdvection() { return true; }
69 static constexpr bool enableMolecularDiffusion() { return false; }
70 static constexpr bool enableEnergyBalance() { return false; }
71 static constexpr bool enableThermalDispersion() { return false; }
72};
73
84template<class PV, class FSY, class FST, class SSY, class SST, class PT, class MT>
86{
87 using PrimaryVariables = PV;
88 using FluidSystem = FSY;
89 using FluidState = FST;
90 using SolidSystem = SSY;
91 using SolidState = SST;
92 using PermeabilityType = PT;
93 using ModelTraits = MT;
94};
95
96namespace Properties {
97// Create new type tags
98namespace TTag {
100struct OneP { using InheritsFrom = std::tuple<PorousMediumFlow>; };
101
103struct OnePNI { using InheritsFrom = std::tuple<OneP>; };
104} // end namespace TTag
105
107// Properties for the isothermal single phase model
109template<class TypeTag>
110struct IOFields<TypeTag, TTag::OneP> { using type = OnePIOFields; };
111template<class TypeTag>
112struct LocalResidual<TypeTag, TTag::OneP> { using type = ImmiscibleLocalResidual<TypeTag>; };
113template<class TypeTag>
114struct BaseModelTraits<TypeTag, TTag::OneP> { using type = OnePModelTraits; };
115template<class TypeTag>
117
119template<class TypeTag>
120struct VolumeVariables<TypeTag, TTag::OneP>
121{
122private:
130
132public:
134};
135
143template<class TypeTag>
144struct FluidState<TypeTag, TTag::OneP>
145{
146private:
149public:
151};
152
154// Properties for the non-isothermal single phase model
156
158template<class TypeTag>
159struct IOFields<TypeTag, TTag::OnePNI> { using type = EnergyIOFields<OnePIOFields>; };
160
162template<class TypeTag>
163struct ModelTraits<TypeTag, TTag::OnePNI> { using type = PorousMediumFlowNIModelTraits<OnePModelTraits>; };
164
166template<class TypeTag>
167struct VolumeVariables<TypeTag, TTag::OnePNI>
168{
169private:
178
180 template<class BaseTraits, class ETCM>
181 struct NITraits : public BaseTraits { using EffectiveThermalConductivityModel = ETCM; };
182
183public:
185};
186
188template<class TypeTag>
189struct ThermalConductivityModel<TypeTag, TTag::OnePNI>
191
192} // end namespace Properties
193} // end namespace Dumux
194
195#endif
Reation for a simple effective thermal conductivity.
Represents all relevant thermodynamic quantities of a multi-phase fluid system assuming immiscibility...
Adaption of the non-isothermal two-phase two-component flow model to problems with CO2.
Definition: adapt.hh:29
typename GetProp< TypeTag, Property >::type GetPropType
get the type alias defined in the property
Definition: propertysystem.hh:180
Traits class encapsulating model specifications.
Definition: common/properties.hh:51
Model traits to be used as a base for nonisothermal, mineralization ... models.
Definition: common/properties.hh:53
A class helping models to define input and output fields.
Definition: common/properties.hh:61
Definition: common/properties.hh:72
The secondary variables within a sub-control volume.
Definition: common/properties.hh:105
The type of the fluid state to use.
Definition: common/properties.hh:162
Model to be used for the calculation of the effective conductivity.
Definition: common/properties.hh:170
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:60
static constexpr bool enableAdvection()
Definition: porousmediumflow/1p/model.hh:68
static constexpr bool enableMolecularDiffusion()
Definition: porousmediumflow/1p/model.hh:69
static constexpr int numEq()
Definition: porousmediumflow/1p/model.hh:64
static constexpr int numFluidPhases()
Definition: porousmediumflow/1p/model.hh:65
static constexpr int numFluidComponents()
Definition: porousmediumflow/1p/model.hh:66
static constexpr bool enableThermalDispersion()
Definition: porousmediumflow/1p/model.hh:71
static constexpr bool enableEnergyBalance()
Definition: porousmediumflow/1p/model.hh:70
Traits class for the volume variables of the single-phase model.
Definition: porousmediumflow/1p/model.hh:86
SST SolidState
Definition: porousmediumflow/1p/model.hh:91
SSY SolidSystem
Definition: porousmediumflow/1p/model.hh:90
MT ModelTraits
Definition: porousmediumflow/1p/model.hh:93
PT PermeabilityType
Definition: porousmediumflow/1p/model.hh:92
FSY FluidSystem
Definition: porousmediumflow/1p/model.hh:88
FST FluidState
Definition: porousmediumflow/1p/model.hh:89
PV PrimaryVariables
Definition: porousmediumflow/1p/model.hh:87
The type tags for the isothermal single phase model.
Definition: porousmediumflow/1p/model.hh:100
std::tuple< PorousMediumFlow > InheritsFrom
Definition: porousmediumflow/1p/model.hh:100
The type tags for the non-isothermal single phase model.
Definition: porousmediumflow/1p/model.hh:103
std::tuple< OneP > InheritsFrom
Definition: porousmediumflow/1p/model.hh:103
GetPropType< TypeTag, Properties::BaseModelTraits > type
Definition: porousmediumflow/1p/model.hh:116
Contains the quantities which are constant within a sub-control volume in the one-phase model.
Definition: porousmediumflow/1p/volumevariables.hh:47
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...
Python wrapper for volume variables (finite volume schemes)
Defines the primary variable and equation indices used by the isothermal tracer model.