69#ifndef DUMUX_3P3C_MODEL_HH
70#define DUMUX_3P3C_MODEL_HH
72#include <dune/common/fvector.hh>
98template<
bool useCS,
bool useMol>
103 static constexpr int numEq() {
return 3; }
112 static constexpr bool useMoles() {
return useMol; }
115namespace Properties {
129template<
class TypeTag>
130struct BaseModelTraits<TypeTag, TTag::ThreePThreeC>
134 static_assert(FluidSystem::numComponents == 3,
"Only fluid systems with 3 components are supported by the 3p3c model!");
135 static_assert(FluidSystem::numPhases == 3,
"Only fluid systems with 3 phases are supported by the 3p3c model!");
139template<
class TypeTag>
143template<
class TypeTag>
144struct UseConstraintSolver<TypeTag, TTag::ThreePThreeC> {
static constexpr bool value =
false; };
147template<
class TypeTag>
155template<
class TypeTag>
156struct FluidState<TypeTag, TTag::ThreePThreeC>{
165template<
class TypeTag>
169template<
class TypeTag>
170struct PrimaryVariables<TypeTag, TTag::ThreePThreeC>
173 using PrimaryVariablesVector = Dune::FieldVector<GetPropType<TypeTag, Properties::Scalar>,
180template<
class TypeTag>
181struct VolumeVariables<TypeTag, TTag::ThreePThreeC>
195 template<
class BaseTraits,
class DT,
class EDM>
198 using DiffusionType = DT;
199 using EffectiveDiffusivityModel = EDM;
207template<
class TypeTag>
211template<
class TypeTag>
215template<
class TypeTag>
216struct UseMoles<TypeTag, TTag::ThreePThreeC> {
static constexpr bool value =
true; };
223template<
class TypeTag>
224struct ModelTraits<TypeTag, TTag::ThreePThreeCNI>
233template<
class TypeTag>
234struct VolumeVariables<TypeTag, TTag::ThreePThreeCNI>
249 template<
class BaseTraits,
class DT,
class EDM,
class ETCM>
252 using DiffusionType = DT;
253 using EffectiveDiffusivityModel = EDM;
254 using EffectiveThermalConductivityModel = ETCM;
261template<
class TypeTag>
265template<
class TypeTag>
Represents all relevant thermodynamic quantities of a multi-phase, multi-component fluid system assum...
Definition: compositional.hh:35
Relation for the effective diffusion coefficient after Millington and Quirk.
Definition: diffusivitymillingtonquirk.hh:37
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
Effective thermal conductivity after Somerton.
Definition: thermalconductivitysomerton3p.hh:46
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...
typename GetProp< TypeTag, Property >::type GetPropType
get the type alias defined in the property
Definition: propertysystem.hh:296
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:76
GetPropType< TypeTag, Properties::BaseModelTraits > type
Definition: porousmediumflow/3p3c/model.hh:140
The type tags for the isothermal three-phase three-component model.
Definition: porousmediumflow/3p3c/model.hh:119
std::tuple< PorousMediumFlow > InheritsFrom
Definition: porousmediumflow/3p3c/model.hh:119
The type tags for the non-isothermal three-phase three-component model.
Definition: porousmediumflow/3p3c/model.hh:121
std::tuple< ThreePThreeC > InheritsFrom
Definition: porousmediumflow/3p3c/model.hh:121
Specifies a number properties of two-phase models.
Definition: porousmediumflow/3p3c/model.hh:100
static constexpr bool useMoles()
Definition: porousmediumflow/3p3c/model.hh:112
static constexpr int numFluidComponents()
Definition: porousmediumflow/3p3c/model.hh:105
static constexpr int numFluidPhases()
Definition: porousmediumflow/3p3c/model.hh:104
static constexpr bool enableMolecularDiffusion()
Definition: porousmediumflow/3p3c/model.hh:108
static constexpr bool useConstraintSolver()
Definition: porousmediumflow/3p3c/model.hh:111
static constexpr bool enableAdvection()
Definition: porousmediumflow/3p3c/model.hh:107
static constexpr int numEq()
Definition: porousmediumflow/3p3c/model.hh:103
static constexpr bool enableEnergyBalance()
Definition: porousmediumflow/3p3c/model.hh:109
Traits class for the two-phase model.
Definition: porousmediumflow/3p/model.hh:96
A primary variable vector with a state to allow variable switches.