59#ifndef DUMUX_3P3C_MODEL_HH
60#define DUMUX_3P3C_MODEL_HH
62#include <dune/common/fvector.hh>
88template<
bool useCS,
bool useMol>
93 static constexpr int numEq() {
return 3; }
102 static constexpr bool useMoles() {
return useMol; }
105namespace Properties {
119template<
class TypeTag>
120struct BaseModelTraits<TypeTag, TTag::ThreePThreeC>
124 static_assert(FluidSystem::numComponents == 3,
"Only fluid systems with 3 components are supported by the 3p3c model!");
125 static_assert(FluidSystem::numPhases == 3,
"Only fluid systems with 3 phases are supported by the 3p3c model!");
129template<
class TypeTag>
133template<
class TypeTag>
134struct UseConstraintSolver<TypeTag, TTag::ThreePThreeC> {
static constexpr bool value =
false; };
137template<
class TypeTag>
145template<
class TypeTag>
146struct FluidState<TypeTag, TTag::ThreePThreeC>{
155template<
class TypeTag>
159template<
class TypeTag>
160struct PrimaryVariables<TypeTag, TTag::ThreePThreeC>
163 using PrimaryVariablesVector = Dune::FieldVector<GetPropType<TypeTag, Properties::Scalar>,
170template<
class TypeTag>
171struct VolumeVariables<TypeTag, TTag::ThreePThreeC>
185 template<
class BaseTraits,
class DT,
class EDM>
188 using DiffusionType = DT;
189 using EffectiveDiffusivityModel = EDM;
197template<
class TypeTag>
201template<
class TypeTag>
205template<
class TypeTag>
206struct UseMoles<TypeTag, TTag::ThreePThreeC> {
static constexpr bool value =
true; };
213template<
class TypeTag>
214struct ModelTraits<TypeTag, TTag::ThreePThreeCNI>
223template<
class TypeTag>
224struct VolumeVariables<TypeTag, TTag::ThreePThreeCNI>
239 template<
class BaseTraits,
class DT,
class EDM,
class ETCM>
242 using DiffusionType = DT;
243 using EffectiveDiffusivityModel = EDM;
244 using EffectiveThermalConductivityModel = ETCM;
251template<
class TypeTag>
255template<
class TypeTag>
Represents all relevant thermodynamic quantities of a multi-phase, multi-component fluid system assum...
Definition: compositional.hh:35
Relation for the saturation-dependent effective diffusion coefficient.
Definition: diffusivitymillingtonquirk.hh:40
Adds I/O fields specific to non-isothermal models.
Definition: porousmediumflow/nonisothermal/iofields.hh:27
A primary variable vector with a state to allow variable switches.
Definition: switchableprimaryvariables.hh:28
Relation for the saturation-dependent effective thermal conductivity.
Definition: somerton.hh:48
Adds I/O fields specific to the three-phase three-component model.
Definition: porousmediumflow/3p3c/iofields.hh:26
The indices for the isothermal three-phase three-component model.
Definition: porousmediumflow/3p3c/indices.hh:23
Element-wise calculation of the Jacobian matrix for problems using the three-phase three-component fu...
Definition: porousmediumflow/3p3c/localresidual.hh:30
Contains the quantities which are are constant within a finite volume in the three-phase three-compon...
Definition: porousmediumflow/3p3c/volumevariables.hh:50
Defines all properties used in Dumux.
Represents all relevant thermodynamic quantities of a multi-phase, multi-component fluid system assum...
Relation for the saturation-dependent effective diffusion coefficient.
typename GetProp< TypeTag, Property >::type GetPropType
get the type alias defined in the property
Definition: propertysystem.hh:267
Adaption of the fully implicit scheme to the three-phase flow model.
Defines the indices used by the non-isothermal two-phase two-component model.
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.
Element-wise calculation of the local residual for problems using fully implicit tracer model.
Python wrapper for volume variables (finite volume schemes)
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/3p3c/model.hh:130
The type tags for the isothermal three-phase three-component model.
Definition: porousmediumflow/3p3c/model.hh:109
std::tuple< PorousMediumFlow > InheritsFrom
Definition: porousmediumflow/3p3c/model.hh:109
The type tags for the non-isothermal three-phase three-component model.
Definition: porousmediumflow/3p3c/model.hh:111
std::tuple< ThreePThreeC > InheritsFrom
Definition: porousmediumflow/3p3c/model.hh:111
Specifies a number properties of two-phase models.
Definition: porousmediumflow/3p3c/model.hh:90
static constexpr bool useMoles()
Definition: porousmediumflow/3p3c/model.hh:102
static constexpr int numFluidComponents()
Definition: porousmediumflow/3p3c/model.hh:95
static constexpr int numFluidPhases()
Definition: porousmediumflow/3p3c/model.hh:94
static constexpr bool enableMolecularDiffusion()
Definition: porousmediumflow/3p3c/model.hh:98
static constexpr bool useConstraintSolver()
Definition: porousmediumflow/3p3c/model.hh:101
static constexpr bool enableAdvection()
Definition: porousmediumflow/3p3c/model.hh:97
static constexpr int numEq()
Definition: porousmediumflow/3p3c/model.hh:93
static constexpr bool enableEnergyBalance()
Definition: porousmediumflow/3p3c/model.hh:99
Traits class for the two-phase model.
Definition: porousmediumflow/3p/model.hh:86
A primary variable vector with a state to allow variable switches.
Relation for the saturation-dependent effective thermal conductivity.