67#ifndef DUMUX_3P2CNI_MODEL_HH
68#define DUMUX_3P2CNI_MODEL_HH
70#include <dune/common/fvector.hh>
95template<
bool onlyGasPhase>
100 static constexpr int numEq() {
return 2; }
111namespace Properties {
123template<
class TypeTag>
128 static_assert(FluidSystem::numComponents == 2,
"Only fluid systems with 2 components are supported by the 3p2cni model!");
129 static_assert(FluidSystem::numPhases == 3,
"Only fluid systems with 3 phases are supported by the 3p2cni model!");
140template<
class TypeTag>
150template<
class TypeTag>
154template<
class TypeTag>
158template<
class TypeTag>
162 using PrimaryVariablesVector = Dune::FieldVector<GetPropType<TypeTag, Properties::Scalar>,
169template<
class TypeTag>
173template<
class TypeTag>
189 template<
class BaseTraits,
class DT,
class EDM,
class ETCM>
190 struct NCNITraits :
public BaseTraits
192 using DiffusionType = DT;
194 using EffectiveThermalConductivityModel = ETCM;
202template<
class TypeTag>
207template<
class TypeTag>
211template<
class TypeTag>
215template<
class TypeTag>
A primary variable vector with a state to allow variable switches.
Relation for the saturation-dependent effective diffusion coefficient.
Relation for the saturation-dependent effective thermal conductivity.
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
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
reduces the phasestates to threePhases and wnPhaseOnly
Definition common/properties.hh:203
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 3p2cni model.
Definition porousmediumflow/3pwateroil/indices.hh:35
Element-wise calculation of the local residual for problems using the ThreePWaterOil fully implicit m...
Definition porousmediumflow/3pwateroil/localresidual.hh:41
Specifies a number properties of the three-phase two-component model.
Definition porousmediumflow/3pwateroil/model.hh:97
static constexpr int numFluidComponents()
Definition porousmediumflow/3pwateroil/model.hh:102
ThreePWaterOilIndices Indices
Definition porousmediumflow/3pwateroil/model.hh:98
static constexpr int numFluidPhases()
Definition porousmediumflow/3pwateroil/model.hh:101
static constexpr bool enableMolecularDiffusion()
Definition porousmediumflow/3pwateroil/model.hh:105
static constexpr bool onlyGasPhaseCanDisappear()
Definition porousmediumflow/3pwateroil/model.hh:108
static constexpr int numEq()
Definition porousmediumflow/3pwateroil/model.hh:100
static constexpr bool enableEnergyBalance()
Definition porousmediumflow/3pwateroil/model.hh:106
static constexpr bool enableAdvection()
Definition porousmediumflow/3pwateroil/model.hh:104
Definition porousmediumflow/3pwateroil/model.hh:115
std::tuple< PorousMediumFlow > InheritsFrom
Definition porousmediumflow/3pwateroil/model.hh:115
PorousMediumFlowNIModelTraits< ThreePWaterOilModelTraits< getPropValue< TypeTag, Properties::OnlyGasPhaseCanDisappear >()> > type
Definition porousmediumflow/3pwateroil/model.hh:131
CompositionalFluidState< Scalar, FluidSystem > type
Definition porousmediumflow/3pwateroil/model.hh:146
ThreePWaterOilLocalResidual< TypeTag > type
Definition porousmediumflow/3pwateroil/model.hh:151
static constexpr int value
Definition porousmediumflow/3pwateroil/model.hh:155
SwitchablePrimaryVariables< PrimaryVariablesVector, int > type
Definition porousmediumflow/3pwateroil/model.hh:165
static constexpr bool value
Definition porousmediumflow/3pwateroil/model.hh:170
ThreePWaterOilVolumeVariables< NCNITraits< BaseTraits, DT, EDM, ETCM > > type
Definition porousmediumflow/3pwateroil/model.hh:198
DiffusivityMillingtonQuirk< GetPropType< TypeTag, Properties::Scalar > > type
Definition porousmediumflow/3pwateroil/model.hh:204
static constexpr bool value
Definition porousmediumflow/3pwateroil/model.hh:208
ThermalConductivitySomerton< GetPropType< TypeTag, Properties::Scalar > > type
Definition porousmediumflow/3pwateroil/model.hh:212
EnergyIOFields< ThreePWaterOilIOFields > type
Definition porousmediumflow/3pwateroil/model.hh:216
Contains the quantities which are are constant within a finite volume in the three-phase,...
Definition porousmediumflow/3pwateroil/volumevariables.hh:69
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.
Adaption of the fully implicit scheme to the three-phase three-component 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 3p2cni 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,...