74#ifndef DUMUX_3P3C_MODEL_HH
75#define DUMUX_3P3C_MODEL_HH
77#include <dune/common/fvector.hh>
103template<
bool useCS,
bool useMol>
108 static constexpr int numEq() {
return 3; }
117 static constexpr bool useMoles() {
return useMol; }
120namespace Properties {
134template<
class TypeTag>
139 static_assert(FluidSystem::numComponents == 3,
"Only fluid systems with 3 components are supported by the 3p3c model!");
140 static_assert(FluidSystem::numPhases == 3,
"Only fluid systems with 3 phases are supported by the 3p3c model!");
144template<
class TypeTag>
148template<
class TypeTag>
152template<
class TypeTag>
160template<
class TypeTag>
170template<
class TypeTag>
174template<
class TypeTag>
178 using PrimaryVariablesVector = Dune::FieldVector<GetPropType<TypeTag, Properties::Scalar>,
185template<
class TypeTag>
200 template<
class BaseTraits,
class DT,
class EDM>
201 struct NCTraits :
public BaseTraits
203 using DiffusionType = DT;
212template<
class TypeTag>
216template<
class TypeTag>
220template<
class TypeTag>
228template<
class TypeTag>
238template<
class TypeTag>
254 template<
class BaseTraits,
class DT,
class EDM,
class ETCM>
255 struct NCNITraits :
public BaseTraits
257 using DiffusionType = DT;
259 using EffectiveThermalConductivityModel = ETCM;
266template<
class TypeTag>
270template<
class TypeTag>
A primary variable vector with a state to allow variable switches.
Represents all relevant thermodynamic quantities of a multi-phase, multi-component fluid system assum...
Relation for the saturation-dependent effective diffusion coefficient.
Relation for the saturation-dependent effective thermal conductivity.
constexpr auto getPropValue()
get the value data member of a property
Definition propertysystem.hh:154
typename Properties::Detail::GetPropImpl< TypeTag, Property >::type::type GetPropType
get the type alias defined in the property
Definition propertysystem.hh:150
Type tag for numeric models.
Definition grid.hh:36
A vector of primary variables.
Definition common/properties.hh:49
Traits class encapsulating model specifications.
Definition common/properties.hh:53
Model traits to be used as a base for nonisothermal, mineralization ... models.
Definition common/properties.hh:55
A class helping models to define input and output fields.
Definition common/properties.hh:63
Definition common/properties.hh:74
Property whether to use moles or kg as amount unit for balance equations.
Definition common/properties.hh:85
The component balance index that should be replaced by the total mass/mole balance.
Definition common/properties.hh:87
The secondary variables within a sub-control volume.
Definition common/properties.hh:107
The type of the fluid state to use.
Definition common/properties.hh:164
The employed model for the computation of the effective diffusivity.
Definition common/properties.hh:170
Model to be used for the calculation of the effective conductivity.
Definition common/properties.hh:172
Whether to use a contraint solver for computing the secondary variables.
Definition common/properties.hh:179
Relation for the saturation-dependent effective thermal conductivity.
Definition somerton.hh:60
Relation for the saturation-dependent effective diffusion coefficient.
Definition diffusivitymillingtonquirk.hh:52
Represents all relevant thermodynamic quantities of a multi-phase, multi-component fluid system assum...
Definition compositional.hh:47
Traits class for the two-phase model.
Definition porousmediumflow/3p/model.hh:101
The indices for the isothermal three-phase three-component model.
Definition porousmediumflow/3p3c/indices.hh:35
Adds I/O fields specific to the three-phase three-component model.
Definition porousmediumflow/3p3c/iofields.hh:38
Element-wise calculation of the Jacobian matrix for problems using the three-phase three-component fu...
Definition porousmediumflow/3p3c/localresidual.hh:42
Specifies a number properties of two-phase models.
Definition porousmediumflow/3p3c/model.hh:105
static constexpr bool useMoles()
Definition porousmediumflow/3p3c/model.hh:117
static constexpr int numFluidComponents()
Definition porousmediumflow/3p3c/model.hh:110
static constexpr int numFluidPhases()
Definition porousmediumflow/3p3c/model.hh:109
static constexpr bool enableMolecularDiffusion()
Definition porousmediumflow/3p3c/model.hh:113
static constexpr bool useConstraintSolver()
Definition porousmediumflow/3p3c/model.hh:116
ThreePThreeCIndices Indices
Definition porousmediumflow/3p3c/model.hh:106
static constexpr bool enableAdvection()
Definition porousmediumflow/3p3c/model.hh:112
static constexpr int numEq()
Definition porousmediumflow/3p3c/model.hh:108
static constexpr bool enableEnergyBalance()
Definition porousmediumflow/3p3c/model.hh:114
The type tags for the isothermal three-phase three-component model.
Definition porousmediumflow/3p3c/model.hh:124
std::tuple< PorousMediumFlow > InheritsFrom
Definition porousmediumflow/3p3c/model.hh:124
The type tags for the non-isothermal three-phase three-component model.
Definition porousmediumflow/3p3c/model.hh:126
std::tuple< ThreePThreeC > InheritsFrom
Definition porousmediumflow/3p3c/model.hh:126
ThreePThreeCModelTraits< getPropValue< TypeTag, Properties::UseConstraintSolver >(), getPropValue< TypeTag, Properties::UseMoles >()> type
Definition porousmediumflow/3p3c/model.hh:142
GetPropType< TypeTag, Properties::BaseModelTraits > type
Definition porousmediumflow/3p3c/model.hh:145
static constexpr bool value
Definition porousmediumflow/3p3c/model.hh:149
static constexpr int value
Definition porousmediumflow/3p3c/model.hh:153
CompositionalFluidState< Scalar, FluidSystem > type
Definition porousmediumflow/3p3c/model.hh:166
ThreePThreeCLocalResidual< TypeTag > type
Definition porousmediumflow/3p3c/model.hh:171
SwitchablePrimaryVariables< PrimaryVariablesVector, int > type
Definition porousmediumflow/3p3c/model.hh:181
ThreePThreeCVolumeVariables< NCTraits< BaseTraits, DT, EDM > > type
Definition porousmediumflow/3p3c/model.hh:208
DiffusivityMillingtonQuirk< GetPropType< TypeTag, Properties::Scalar > > type
Definition porousmediumflow/3p3c/model.hh:213
ThreePThreeCIOFields type
Definition porousmediumflow/3p3c/model.hh:217
static constexpr bool value
Definition porousmediumflow/3p3c/model.hh:221
PorousMediumFlowNIModelTraits< IsothermalTraits > type
Definition porousmediumflow/3p3c/model.hh:234
ThreePThreeCVolumeVariables< NCNITraits< BaseTraits, DT, EDM, ETCM > > type
Definition porousmediumflow/3p3c/model.hh:262
EnergyIOFields< ThreePThreeCIOFields > type
Definition porousmediumflow/3p3c/model.hh:267
ThermalConductivitySomerton< GetPropType< TypeTag, Properties::Scalar > > type
Definition porousmediumflow/3p3c/model.hh:271
Contains the quantities which are are constant within a finite volume in the three-phase three-compon...
Definition porousmediumflow/3p3c/volumevariables.hh:62
A primary variable vector with a state to allow variable switches.
Definition switchableprimaryvariables.hh:40
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 three-phase flow model.
The implicit non-isothermal model.
Element-wise calculation of the Jacobian matrix for problems using the three-phase three-component fu...
Declares all properties used in Dumux.
Defines a type tag and some properties for models using the box scheme.
Defines the indices required for the three-phase three-component fully implicit model.
Defines the indices used by the non-isothermal two-phase two-component model.
Adds I/O fields specific to the three-phase three-component model.
Adds I/O fields specific to non-isothermal models.
Contains the quantities which are constant within a finite volume in the three-phase three-component ...