Loading [MathJax]/extensions/tex2jax.js
3.6-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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 *****************************************************************************/
49#ifndef DUMUX_3P_MODEL_HH
50#define DUMUX_3P_MODEL_HH
51
53
56
62
63#include "indices.hh"
64#include "volumevariables.hh"
65#include "iofields.hh"
66
67namespace Dumux {
68
74{
76
77 static constexpr int numEq() { return 3; }
78 static constexpr int numFluidPhases() { return 3; }
79 static constexpr int numFluidComponents() { return 3; }
80
81 static constexpr bool enableAdvection() { return true; }
82 static constexpr bool enableMolecularDiffusion() { return false; }
83 static constexpr bool enableEnergyBalance() { return false; }
84};
85
96template<class PV, class FSY, class FST, class SSY, class SST, class PT, class MT>
98{
99 using PrimaryVariables = PV;
100 using FluidSystem = FSY;
101 using FluidState = FST;
102 using SolidSystem = SSY;
105 using ModelTraits = MT;
106};
107
108namespace Properties {
109
111// Type tags
113namespace TTag {
115struct ThreeP { using InheritsFrom = std::tuple<PorousMediumFlow>; };
117struct ThreePNI { using InheritsFrom = std::tuple<ThreeP>; };
118} // end namespace TTag
119
121// Properties for the isothermal 3p model
123
125template<class TypeTag>
126struct ModelTraits<TypeTag, TTag::ThreeP>
127{
128 private:
130 static_assert(FluidSystem::numPhases == 3, "Only fluid systems with 3 phases are supported by the 3p model!");
131 static_assert(FluidSystem::numComponents == 3, "Only fluid systems with 3 components are supported by the 3p model!");
132 public:
134};
135
137template<class TypeTag>
138struct LocalResidual<TypeTag, TTag::ThreeP> { using type = ImmiscibleLocalResidual<TypeTag>; };
139
141template<class TypeTag>
142struct VolumeVariables<TypeTag, TTag::ThreeP>
143{
144private:
152
154public:
156};
157
165template<class TypeTag>
166struct FluidState<TypeTag, TTag::ThreeP>
167{
168private:
171public:
173};
174
176template<class TypeTag>
177struct IOFields<TypeTag, TTag::ThreeP> { using type = ThreePIOFields; };
178
180// Properties for the non-isothermal 3p model
182
184template<class TypeTag>
185struct ThermalConductivityModel<TypeTag, TTag::ThreePNI>
186{
187private:
189public:
191};
192
194template<class TypeTag>
195struct IOFields<TypeTag, TTag::ThreePNI> { using type = EnergyIOFields<ThreePIOFields>; };
196
198template<class TypeTag>
199struct ModelTraits<TypeTag, TTag::ThreePNI>
200{
201private:
203 static_assert(FluidSystem::numPhases == 3, "Only fluid systems with 3 phases are supported by the 3p model!");
204 static_assert(FluidSystem::numComponents == 3, "Only fluid systems with 3 components are supported by the 3p model!");
205public:
207};
208
210template<class TypeTag>
211struct VolumeVariables<TypeTag, TTag::ThreePNI>
212{
213private:
223
224 template<class BaseTraits, class ETCM>
225 struct NITraits : public BaseTraits { using EffectiveThermalConductivityModel = ETCM; };
226public:
228};
229
230} // end namespace Properties
231} // end namespace Dumux
232
233#endif
Relation for the saturation-dependent 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
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 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:74
static constexpr int numFluidPhases()
Definition: porousmediumflow/3p/model.hh:78
static constexpr bool enableAdvection()
Definition: porousmediumflow/3p/model.hh:81
static constexpr int numFluidComponents()
Definition: porousmediumflow/3p/model.hh:79
static constexpr int numEq()
Definition: porousmediumflow/3p/model.hh:77
static constexpr bool enableEnergyBalance()
Definition: porousmediumflow/3p/model.hh:83
static constexpr bool enableMolecularDiffusion()
Definition: porousmediumflow/3p/model.hh:82
Traits class for the two-phase model.
Definition: porousmediumflow/3p/model.hh:98
PT PermeabilityType
Definition: porousmediumflow/3p/model.hh:104
FST FluidState
Definition: porousmediumflow/3p/model.hh:101
SST SolidState
Definition: porousmediumflow/3p/model.hh:103
MT ModelTraits
Definition: porousmediumflow/3p/model.hh:105
SSY SolidSystem
Definition: porousmediumflow/3p/model.hh:102
PV PrimaryVariables
Definition: porousmediumflow/3p/model.hh:99
FSY FluidSystem
Definition: porousmediumflow/3p/model.hh:100
The type tags for the isothermal three-phase model.
Definition: porousmediumflow/3p/model.hh:115
std::tuple< PorousMediumFlow > InheritsFrom
Definition: porousmediumflow/3p/model.hh:115
The type tags for the non-isothermal three-phase model.
Definition: porousmediumflow/3p/model.hh:117
std::tuple< ThreeP > InheritsFrom
Definition: porousmediumflow/3p/model.hh:117
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...
Python wrapper for volume variables (finite volume schemes)
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.