3.3.0
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
porousmediumflow/2pncmin/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 *****************************************************************************/
91#ifndef DUMUX_2PNCMIN_MODEL_HH
92#define DUMUX_2PNCMIN_MODEL_HH
93
96
98
103
107
108namespace Dumux {
109namespace Properties {
111// Type tags
113// Create new type tags
114namespace TTag {
115struct TwoPNCMin { using InheritsFrom = std::tuple<TwoPNC>; };
116struct TwoPNCMinNI { using InheritsFrom = std::tuple<TwoPNCMin>; };
117} // end namespace TTag
118
120// Property tags for the isothermal 2pncmin model
122
123// use the mineralization local residual
124template<class TypeTag>
125struct LocalResidual<TypeTag, TTag::TwoPNCMin> { using type = MineralizationLocalResidual<TypeTag>; };
126
128template<class TypeTag>
129struct VolumeVariables<TypeTag, TTag::TwoPNCMin>
130{
131private:
140 static constexpr bool enableIS = getPropValue<TypeTag, Properties::EnableBoxInterfaceSolver>();
141 // class used for scv-wise reconstruction of nonwetting phase saturations
144
147
148 template<class BaseTraits, class DT, class EDM>
149 struct NCTraits : public BaseTraits
150 {
151 using DiffusionType = DT;
152 using EffectiveDiffusivityModel = EDM;
153 };
154
156public:
158};
159
161template<class TypeTag>
162struct IOFields<TypeTag, TTag::TwoPNCMin> { using type = MineralizationIOFields<TwoPNCIOFields>; };
163
165template<class TypeTag>
166struct ModelTraits<TypeTag, TTag::TwoPNCMin>
167{
168private:
170 using NonMineralizationTraits = GetPropType<TypeTag, Properties::BaseModelTraits>;
171public:
173};
174
176template<class TypeTag>
177struct SolidState<TypeTag, TTag::TwoPNCMin>
178{
179private:
182public:
184};
185
187// Properties for the non-isothermal 2pncmin model
189
191template<class TypeTag>
192struct ModelTraits<TypeTag, TTag::TwoPNCMinNI>
193{
194private:
198public:
199 // the mineralization traits, based on 2pnc traits, are the isothermal traits
201};
202
204template<class TypeTag>
205struct VolumeVariables<TypeTag, TTag::TwoPNCMinNI>
206{
207private:
216 static constexpr bool enableIS = getPropValue<TypeTag, Properties::EnableBoxInterfaceSolver>();
217 // class used for scv-wise reconstruction of nonwetting phase saturations
220
224
225 template<class BaseTraits, class DT, class EDM, class ETCM>
226 struct NCNITraits : public BaseTraits
227 {
228 using DiffusionType = DT;
229 using EffectiveDiffusivityModel = EDM;
230 using EffectiveThermalConductivityModel = ETCM;
231 };
233public:
235};
236
238template<class TypeTag>
239struct IOFields<TypeTag, TTag::TwoPNCMinNI>
240{
243};
244
246template<class TypeTag>
247struct ThermalConductivityModel<TypeTag, TTag::TwoPNCMinNI>
249
250} // end namespace Properties
251} // end namespace Dumux
252
253#endif
Relation for the saturation-dependent effective thermal conductivity.
Represents all relevant thermodynamic quantities of a compositional solid system.
Definition: adapt.hh:29
typename Properties::Detail::GetPropImpl< TypeTag, Property >::type::type GetPropType
get the type alias defined in the property (equivalent to old macro GET_PROP_TYPE(....
Definition: propertysystem.hh:149
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:77
The secondary variables within a sub-control volume.
Definition: common/properties.hh:106
The type of the solid state to use.
Definition: common/properties.hh:161
The employed model for the computation of the effective diffusivity.
Definition: common/properties.hh:163
Model to be used for the calculation of the effective conductivity.
Definition: common/properties.hh:165
Relation for the saturation-dependent effective thermal conductivity.
Definition: somerton.hh:60
Represents all relevant thermodynamic quantities of a compositional solid system.
Definition: compositionalsolidstate.hh:37
Traits class for the two-phase model.
Definition: porousmediumflow/2p/model.hh:117
Class that computes the nonwetting saturation in an scv from the saturation at the global degree of f...
Definition: saturationreconstruction.hh:43
Contains the quantities which are are constant within a finite volume in the two-phase,...
Definition: porousmediumflow/2pnc/volumevariables.hh:60
Definition: porousmediumflow/2pncmin/model.hh:115
std::tuple< TwoPNC > InheritsFrom
Definition: porousmediumflow/2pncmin/model.hh:115
Definition: porousmediumflow/2pncmin/model.hh:116
std::tuple< TwoPNCMin > InheritsFrom
Definition: porousmediumflow/2pncmin/model.hh:116
Adds I/O fields specific to a NCMin model.
Definition: porousmediumflow/mineralization/iofields.hh:39
Element-wise calculation of the local residual for problems using a one/two-phase n-component mineral...
Definition: porousmediumflow/mineralization/localresidual.hh:40
Specifies a number properties of models that consider mineralization proceses.
Definition: porousmediumflow/mineralization/model.hh:50
Contains the quantities which are are constant within a sub-control volume of the finite volume grid ...
Definition: porousmediumflow/mineralization/volumevariables.hh:38
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
Adaption of the fully implicit scheme to the two-phase n-component fully implicit model.
Defines the properties required for compositional porous medium flow models considering mineralizatio...
Adds I/O fields specific to the models considering mineralization processes.
Adds I/O fields specific to non-isothermal models.
Element-wise calculation of the local residual for problems using a compositional model that also con...
Contains the quantities which are constant within a finite volume in the two-phase,...
Contains the quantities which are constant within a sub-control volume of the finite volume grid in t...
Defines the indices used by the non-isothermal two-phase two-component model.