3.5-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
porousmediumflow/3p/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 *****************************************************************************/
52#ifndef DUMUX_3P_MODEL_HH
53#define DUMUX_3P_MODEL_HH
54
56
59
65
66#include "indices.hh"
67#include "volumevariables.hh"
68#include "iofields.hh"
69
70namespace Dumux {
71
77{
79
80 static constexpr int numEq() { return 3; }
81 static constexpr int numFluidPhases() { return 3; }
82 static constexpr int numFluidComponents() { return 3; }
83
84 static constexpr bool enableAdvection() { return true; }
85 static constexpr bool enableMolecularDiffusion() { return false; }
86 static constexpr bool enableEnergyBalance() { return false; }
87};
88
99template<class PV, class FSY, class FST, class SSY, class SST, class PT, class MT>
101{
103 using FluidSystem = FSY;
104 using FluidState = FST;
105 using SolidSystem = SSY;
108 using ModelTraits = MT;
109};
110
111namespace Properties {
112
114// Type tags
116namespace TTag {
118struct ThreeP { using InheritsFrom = std::tuple<PorousMediumFlow>; };
120struct ThreePNI { using InheritsFrom = std::tuple<ThreeP>; };
121} // end namespace TTag
122
124// Properties for the isothermal 3p model
126
128template<class TypeTag>
129struct ModelTraits<TypeTag, TTag::ThreeP>
130{
131 private:
133 static_assert(FluidSystem::numPhases == 3, "Only fluid systems with 3 phases are supported by the 3p model!");
134 static_assert(FluidSystem::numComponents == 3, "Only fluid systems with 3 components are supported by the 3p model!");
135 public:
137};
138
140template<class TypeTag>
141struct LocalResidual<TypeTag, TTag::ThreeP> { using type = ImmiscibleLocalResidual<TypeTag>; };
142
144template<class TypeTag>
145struct VolumeVariables<TypeTag, TTag::ThreeP>
146{
147private:
155
157public:
159};
160
168template<class TypeTag>
169struct FluidState<TypeTag, TTag::ThreeP>
170{
171private:
174public:
176};
177
179template<class TypeTag>
180struct IOFields<TypeTag, TTag::ThreeP> { using type = ThreePIOFields; };
181
183// Properties for the non-isothermal 3p model
185
187template<class TypeTag>
188struct ThermalConductivityModel<TypeTag, TTag::ThreePNI>
189{
190private:
192public:
194};
195
197template<class TypeTag>
198struct IOFields<TypeTag, TTag::ThreePNI> { using type = EnergyIOFields<ThreePIOFields>; };
199
201template<class TypeTag>
202struct ModelTraits<TypeTag, TTag::ThreePNI>
203{
204private:
206 static_assert(FluidSystem::numPhases == 3, "Only fluid systems with 3 phases are supported by the 3p model!");
207 static_assert(FluidSystem::numComponents == 3, "Only fluid systems with 3 components are supported by the 3p model!");
208public:
210};
211
213template<class TypeTag>
214struct VolumeVariables<TypeTag, TTag::ThreePNI>
215{
216private:
226
227 template<class BaseTraits, class ETCM>
228 struct NITraits : public BaseTraits { using EffectiveThermalConductivityModel = ETCM; };
229public:
231};
232
233} // end namespace Properties
234} // end namespace Dumux
235
236#endif
Relation for the saturation-dependent 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
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 the saturation-dependent effective thermal conductivity.
Definition: somerton.hh:60
Represents all relevant thermodynamic quantities of a multi-phase fluid system assuming immiscibility...
Definition: immiscible.hh:42
The common indices for the isothermal three-phase model.
Definition: porousmediumflow/3p/indices.hh:35
Adds I/O fields specific to the three-phase model.
Definition: porousmediumflow/3p/iofields.hh:37
Specifies a number properties of three-phase models.
Definition: porousmediumflow/3p/model.hh:77
static constexpr int numFluidPhases()
Definition: porousmediumflow/3p/model.hh:81
static constexpr bool enableAdvection()
Definition: porousmediumflow/3p/model.hh:84
static constexpr int numFluidComponents()
Definition: porousmediumflow/3p/model.hh:82
static constexpr int numEq()
Definition: porousmediumflow/3p/model.hh:80
static constexpr bool enableEnergyBalance()
Definition: porousmediumflow/3p/model.hh:86
static constexpr bool enableMolecularDiffusion()
Definition: porousmediumflow/3p/model.hh:85
Traits class for the two-phase model.
Definition: porousmediumflow/3p/model.hh:101
PT PermeabilityType
Definition: porousmediumflow/3p/model.hh:107
FST FluidState
Definition: porousmediumflow/3p/model.hh:104
SST SolidState
Definition: porousmediumflow/3p/model.hh:106
MT ModelTraits
Definition: porousmediumflow/3p/model.hh:108
SSY SolidSystem
Definition: porousmediumflow/3p/model.hh:105
PV PrimaryVariables
Definition: porousmediumflow/3p/model.hh:102
FSY FluidSystem
Definition: porousmediumflow/3p/model.hh:103
The type tags for the isothermal three-phase model.
Definition: porousmediumflow/3p/model.hh:118
std::tuple< PorousMediumFlow > InheritsFrom
Definition: porousmediumflow/3p/model.hh:118
The type tags for the non-isothermal three-phase model.
Definition: porousmediumflow/3p/model.hh:120
std::tuple< ThreeP > InheritsFrom
Definition: porousmediumflow/3p/model.hh:120
Contains the quantities which are constant within a finite volume in the three-phase model.
Definition: porousmediumflow/3p/volumevariables.hh:44
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 indices used by the non-isothermal two-phase two-component model.
Defines the primary variable and equation indices used by the isothermal tracer model.