version 3.7
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// SPDX-FileCopyrightInfo: Copyright © DuMux Project contributors, see AUTHORS.md in root folder
5// SPDX-License-Identifier: GPL-3.0-or-later
6//
24#ifndef DUMUX_1P_MODEL_HH
25#define DUMUX_1P_MODEL_HH
26
28
31
36
37#include "indices.hh"
38#include "volumevariables.hh"
39#include "iofields.hh"
40
41namespace Dumux {
42
48{
51
52 static constexpr int numEq() { return 1; }
53 static constexpr int numFluidPhases() { return 1; }
54 static constexpr int numFluidComponents() { return 1; }
55
56 static constexpr bool enableAdvection() { return true; }
57 static constexpr bool enableMolecularDiffusion() { return false; }
58 static constexpr bool enableEnergyBalance() { return false; }
59 static constexpr bool enableThermalDispersion() { return false; }
60};
61
72template<class PV, class FSY, class FST, class SSY, class SST, class PT, class MT>
74{
75 using PrimaryVariables = PV;
76 using FluidSystem = FSY;
77 using FluidState = FST;
78 using SolidSystem = SSY;
79 using SolidState = SST;
80 using PermeabilityType = PT;
81 using ModelTraits = MT;
82};
83
84namespace Properties {
85// Create new type tags
86namespace TTag {
88struct OneP { using InheritsFrom = std::tuple<PorousMediumFlow>; };
89
91struct OnePNI { using InheritsFrom = std::tuple<OneP>; };
92} // end namespace TTag
93
95// Properties for the isothermal single phase model
97template<class TypeTag>
98struct IOFields<TypeTag, TTag::OneP> { using type = OnePIOFields; };
99template<class TypeTag>
100struct LocalResidual<TypeTag, TTag::OneP> { using type = ImmiscibleLocalResidual<TypeTag>; };
101template<class TypeTag>
102struct BaseModelTraits<TypeTag, TTag::OneP> { using type = OnePModelTraits; };
103template<class TypeTag>
104struct ModelTraits<TypeTag, TTag::OneP> { using type = GetPropType<TypeTag, Properties::BaseModelTraits>; };
105
107template<class TypeTag>
108struct VolumeVariables<TypeTag, TTag::OneP>
109{
110private:
118
120public:
122};
123
131template<class TypeTag>
132struct FluidState<TypeTag, TTag::OneP>
133{
134private:
137public:
139};
140
142// Properties for the non-isothermal single phase model
144
146template<class TypeTag>
147struct IOFields<TypeTag, TTag::OnePNI> { using type = EnergyIOFields<OnePIOFields>; };
148
150template<class TypeTag>
151struct ModelTraits<TypeTag, TTag::OnePNI> { using type = PorousMediumFlowNIModelTraits<OnePModelTraits>; };
152
154template<class TypeTag>
155struct VolumeVariables<TypeTag, TTag::OnePNI>
156{
157private:
166
168 template<class BaseTraits, class ETCM>
169 struct NITraits : public BaseTraits { using EffectiveThermalConductivityModel = ETCM; };
170
171public:
173};
174
176template<class TypeTag>
177struct ThermalConductivityModel<TypeTag, TTag::OnePNI>
179
180} // end namespace Properties
181} // end namespace Dumux
182
183#endif
Adds I/O fields specific to non-isothermal models.
Definition: porousmediumflow/nonisothermal/iofields.hh:27
Represents all relevant thermodynamic quantities of a multi-phase fluid system assuming immiscibility...
Definition: immiscible.hh:30
Element-wise calculation of the residual for problems using the n-phase immiscible fully implicit mod...
Definition: porousmediumflow/immiscible/localresidual.hh:28
Adds I/O fields specific to the one phase model.
Definition: porousmediumflow/1p/iofields.hh:25
Contains the quantities which are constant within a sub-control volume in the one-phase model.
Definition: porousmediumflow/1p/volumevariables.hh:35
Relation for a simple effective thermal conductivity.
Definition: thermalconductivityaverage.hh:25
Defines all properties used in Dumux.
typename GetProp< TypeTag, Property >::type GetPropType
get the type alias defined in the property
Definition: propertysystem.hh:267
Represents all relevant thermodynamic quantities of a multi-phase fluid system assuming immiscibility...
Definition: adapt.hh:17
Element-wise calculation of the residual for problems using the n-phase immiscible fully implicit mod...
Adds I/O fields specific to non-isothermal models.
The implicit non-isothermal model.
Defines a type tag and some properties for models using the box scheme.
Defines the primary variable and equation indices used by the isothermal tracer model.
Adds I/O fields specific to the tracer model.
Python wrapper for volume variables (finite volume schemes)
Indices for the one-phase model.
Definition: porousmediumflow/1p/indices.hh:27
Specifies a number properties of single-phase models.
Definition: porousmediumflow/1p/model.hh:48
static constexpr bool enableAdvection()
Definition: porousmediumflow/1p/model.hh:56
static constexpr bool enableMolecularDiffusion()
Definition: porousmediumflow/1p/model.hh:57
static constexpr int numEq()
Definition: porousmediumflow/1p/model.hh:52
static constexpr int numFluidPhases()
Definition: porousmediumflow/1p/model.hh:53
static constexpr int numFluidComponents()
Definition: porousmediumflow/1p/model.hh:54
static constexpr bool enableThermalDispersion()
Definition: porousmediumflow/1p/model.hh:59
static constexpr bool enableEnergyBalance()
Definition: porousmediumflow/1p/model.hh:58
Traits class for the volume variables of the single-phase model.
Definition: porousmediumflow/1p/model.hh:74
SST SolidState
Definition: porousmediumflow/1p/model.hh:79
SSY SolidSystem
Definition: porousmediumflow/1p/model.hh:78
MT ModelTraits
Definition: porousmediumflow/1p/model.hh:81
PT PermeabilityType
Definition: porousmediumflow/1p/model.hh:80
FSY FluidSystem
Definition: porousmediumflow/1p/model.hh:76
FST FluidState
Definition: porousmediumflow/1p/model.hh:77
PV PrimaryVariables
Definition: porousmediumflow/1p/model.hh:75
Specifies a number properties of non-isothermal porous medium flow models based on the specifics of a...
Definition: porousmediumflow/nonisothermal/model.hh:58
GetPropType< TypeTag, Properties::BaseModelTraits > type
Definition: porousmediumflow/1p/model.hh:104
The type tags for the isothermal single phase model.
Definition: porousmediumflow/1p/model.hh:88
std::tuple< PorousMediumFlow > InheritsFrom
Definition: porousmediumflow/1p/model.hh:88
The type tags for the non-isothermal single phase model.
Definition: porousmediumflow/1p/model.hh:91
std::tuple< OneP > InheritsFrom
Definition: porousmediumflow/1p/model.hh:91
Reation for a simple effective thermal conductivity.