3.1-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
porousmediumflow/2p/sequential/properties.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 *****************************************************************************/
24#ifndef DUMUX_2PPROPERTIES_SEQUENTIAL_HH
25#define DUMUX_2PPROPERTIES_SEQUENTIAL_HH
26
27// Dumux-includes
29#include "indices.hh"
31
32namespace Dumux {
34// Forward declarations
36template <class TypeTag, bool enableCompressibility>
37class CellData2P;
38
40// Properties
42namespace Properties {
44// Type tags
46
48NEW_TYPE_TAG(SequentialTwoP, INHERITS_FROM(SequentialModel));
49
51// Property tags
56} // end namespace Properties
57} // end namespace Dumux
58
63
64namespace Dumux {
65namespace Properties {
67// Properties
70SET_INT_PROP(SequentialTwoP, NumEq, 2);
71
73SET_INT_PROP(SequentialTwoP, NumPhases, 2);
74
76SET_INT_PROP(SequentialTwoP, NumComponents, 1);
77
80
82template<class TypeTag>
83struct Indices<TypeTag, TTag::SequentialTwoP>
84{
86};
87
89SET_INT_PROP(SequentialTwoP,
91 GET_PROP_TYPE(TypeTag, Indices)::pressureType);
92
94SET_INT_PROP(SequentialTwoP,
96 GET_PROP_TYPE(TypeTag, Indices)::saturationType);
97
99SET_INT_PROP(SequentialTwoP,
101 GET_PROP_TYPE(TypeTag, Indices)::velocityDefault);
102
104SET_BOOL_PROP(SequentialTwoP, EnableCompressibility, false);
105
108
111
113template<class TypeTag>
114struct FluidState<TypeTag, TTag::SequentialTwoP>
115{
116private:
117 using Scalar = typename GET_PROP_TYPE(TypeTag, Scalar);
118 using FluidSystem = typename GET_PROP_TYPE(TypeTag, FluidSystem);
119public:
121};
122
125// \}
126} // end namespace Properties
127} // end namespace Dumux
128
129#endif
#define GET_PROP_VALUE(TypeTag, PropTagName)
Definition: propertysystemmacros.hh:282
#define GET_PROP_TYPE(TypeTag, PropTagName)
Definition: propertysystemmacros.hh:283
#define NEW_TYPE_TAG(...)
Definition: propertysystemmacros.hh:130
Represents all relevant thermodynamic quantities of a isothermal immiscible multi-phase fluid system.
A fluid system for two-phase models assuming immiscibility and thermodynamic equilibrium.
The base class for spatial parameters of problems using the fv method.
Base class holding the variables for sequential models.
#define NEW_PROP_TAG(PTagName)
Define a property tag.
Definition: propertysystemmacros.hh:159
make the local view function available whenever we use the grid geometry
Definition: adapt.hh:29
Property tag Variables
The type of the container of global variables.
Definition: porousmediumflow/sequential/properties.hh:71
SET_INT_PROP(SequentialOneP, NumEq, 1)
Set number of equations to 1 for isothermal one-phase models.
Property tag CellData
Defines data object to be stored.
Definition: porousmediumflow/sequential/properties.hh:72
SET_TYPE_PROP(FVPressureOneP, Velocity, FVVelocity1P< TypeTag >)
Set velocity reconstruction implementation standard cell centered finite volume schemes as default.
Property tag EnableCompressibility
Returns whether compressibility is allowed.
Definition: porousmediumflow/2p/sequential/properties.hh:55
Property tag SaturationFormulation
The formulation of the saturation model.
Definition: porousmediumflow/2p/sequential/properties.hh:53
Type tag FVPressureOneP INHERITS_FROM(PressureOneP))
The type tag for the one-phase problems using a standard finite volume model.
Property tag NumComponents
Number of components in the system.
Definition: porousmediumflow/sequential/properties.hh:70
Property tag Indices
Definition: porousmediumflow/sequential/properties.hh:59
Property tag NumEq
Number of equations in the system of PDEs.
Definition: porousmediumflow/sequential/properties.hh:68
Property tag NumPhases
Number of phases in the system.
Definition: porousmediumflow/sequential/properties.hh:69
Property tag VelocityFormulation
The type of velocity reconstructed for the transport model.
Definition: porousmediumflow/2p/sequential/properties.hh:54
SET_BOOL_PROP(FVPressureOneP, VisitFacesOnlyOnce, true)
Allow assembling algorithm for the pressure matrix to assemble only from one side of a cell-cell inte...
The type of the spatial parameters object.
Definition: common/properties.hh:221
The type of the fluid state to use.
Definition: common/properties.hh:225
The formulation of the model.
Definition: common/properties.hh:237
Definition: common/properties.hh:312
Represents all relevant thermodynamic quantities of a multi-phase fluid system assuming immiscibility...
Definition: isothermalimmiscible.hh:42
The base class for spatial parameters of a multi-phase problem using the fv method.
Definition: sequentialfv.hh:43
Class including data of one grid cell.
Definition: 2p/sequential/celldata.hh:47
static const int pwsw
pw and sw as primary variables
Definition: porousmediumflow/2p/sequential/indices.hh:37
The indices for the formulation of the isothermal two-phase model.
Definition: porousmediumflow/2p/sequential/indices.hh:75
Base class holding the variables and discretized data for sequential models.
Definition: variableclass.hh:49
Base file for properties related to sequential models.
Defines the primary variable and equation indices used by the isothermal tracer model.
Class including data of one grid cell.