81#ifndef DUMUX_2PNC_MODEL_HH
82#define DUMUX_2PNC_MODEL_HH
84#include <dune/common/fvector.hh>
113template<
int nComp,
bool useMol,
bool setMoleFractionForFP, TwoPFormulation formulation,
int repCompEqIdx = nComp>
118 static constexpr int numEq() {
return nComp; }
131 static constexpr bool useMoles() {
return useMol; }
137namespace Properties {
151template<
class TypeTag>
155 using PrimaryVariablesVector = Dune::FieldVector<GetPropType<TypeTag, Properties::Scalar>,
162template<
class TypeTag>
182 template<
class BaseTraits,
class DT,
class EDM>
183 struct NCTraits :
public BaseTraits
185 using DiffusionType = DT;
194template<
class TypeTag>
200 static_assert(FluidSystem::numPhases == 2,
"Only fluid systems with 2 fluid phases are supported by the 2p-nc model!");
207template<
class TypeTag>
211template<
class TypeTag>
214template<
class TypeTag>
217template<
class TypeTag>
221template<
class TypeTag>
225template<
class TypeTag>
227template<
class TypeTag>
231template<
class TypeTag>
235template<
class TypeTag>
250template<
class TypeTag>
260template<
class TypeTag>
281 template<
class BaseTraits,
class DT,
class EDM,
class ETCM>
282 struct NCNITraits :
public BaseTraits
284 using DiffusionType = DT;
286 using EffectiveThermalConductivityModel = ETCM;
293template<
class TypeTag>
297template<
class TypeTag>
Defines an enumeration for the formulations accepted by the two-phase model.
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.
TwoPFormulation
Enumerates the formulations which the two-phase model accepts.
Definition formulation.hh:35
@ p0s1
first phase pressure and second phase saturation as primary variables
Definition formulation.hh:36
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
The formulation of the model.
Definition common/properties.hh:176
Set the mole fraction in the wetting or nonwetting phase.
Definition common/properties.hh:191
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/2p/model.hh:112
Class that computes the nonwetting saturation in an scv from the saturation at the global degree of f...
Definition saturationreconstruction.hh:43
The indices for the isothermal two-phase n-component model.
Definition porousmediumflow/2pnc/indices.hh:35
Adds I/O fields specific to the TwoPNC model.
Definition porousmediumflow/2pnc/iofields.hh:39
Specifies a number properties of two-phase n-component models.
Definition porousmediumflow/2pnc/model.hh:115
static constexpr int numFluidPhases()
Definition porousmediumflow/2pnc/model.hh:119
static constexpr int numEq()
Definition porousmediumflow/2pnc/model.hh:118
static constexpr int replaceCompEqIdx()
Definition porousmediumflow/2pnc/model.hh:121
static constexpr bool enableAdvection()
Definition porousmediumflow/2pnc/model.hh:123
static constexpr bool enableMolecularDiffusion()
Definition porousmediumflow/2pnc/model.hh:124
static constexpr bool enableThermalNonEquilibrium()
Definition porousmediumflow/2pnc/model.hh:126
static constexpr int numFluidComponents()
Definition porousmediumflow/2pnc/model.hh:120
static constexpr bool useMoles()
Definition porousmediumflow/2pnc/model.hh:131
static constexpr bool enableChemicalNonEquilibrium()
Definition porousmediumflow/2pnc/model.hh:127
static constexpr TwoPFormulation priVarFormulation()
Definition porousmediumflow/2pnc/model.hh:134
static constexpr bool enableThermalDispersion()
Definition porousmediumflow/2pnc/model.hh:129
static constexpr bool enableCompositionalDispersion()
Definition porousmediumflow/2pnc/model.hh:128
static constexpr bool setMoleFractionsForFirstPhase()
Definition porousmediumflow/2pnc/model.hh:132
TwoPNCIndices Indices
Definition porousmediumflow/2pnc/model.hh:116
static constexpr bool enableEnergyBalance()
Definition porousmediumflow/2pnc/model.hh:125
Definition porousmediumflow/2pnc/model.hh:143
std::tuple< PorousMediumFlow > InheritsFrom
Definition porousmediumflow/2pnc/model.hh:143
Definition porousmediumflow/2pnc/model.hh:144
std::tuple< TwoPNC > InheritsFrom
Definition porousmediumflow/2pnc/model.hh:144
SwitchablePrimaryVariables< PrimaryVariablesVector, int > type
Definition porousmediumflow/2pnc/model.hh:158
TwoPNCVolumeVariables< NCTraits< BaseTraits, DT, EDM > > type
Definition porousmediumflow/2pnc/model.hh:190
TwoPNCModelTraits< FluidSystem::numComponents, getPropValue< TypeTag, Properties::UseMoles >(), getPropValue< TypeTag, Properties::SetMoleFractionsForFirstPhase >(), getPropValue< TypeTag, Properties::Formulation >(), getPropValue< TypeTag, Properties::ReplaceCompEqIdx >()> type
Definition porousmediumflow/2pnc/model.hh:202
GetPropType< TypeTag, Properties::BaseModelTraits > type
Definition porousmediumflow/2pnc/model.hh:208
TwoPNCIOFields type
Definition porousmediumflow/2pnc/model.hh:212
CompositionalLocalResidual< TypeTag > type
Definition porousmediumflow/2pnc/model.hh:215
static constexpr int value
Definition porousmediumflow/2pnc/model.hh:218
static constexpr auto value
Definition porousmediumflow/2pnc/model.hh:223
static constexpr bool value
Definition porousmediumflow/2pnc/model.hh:226
static constexpr bool value
Definition porousmediumflow/2pnc/model.hh:228
DiffusivityMillingtonQuirk< GetPropType< TypeTag, Properties::Scalar > > type
Definition porousmediumflow/2pnc/model.hh:232
CompositionalFluidState< Scalar, FluidSystem > type
Definition porousmediumflow/2pnc/model.hh:242
PorousMediumFlowNIModelTraits< IsothermalTraits > type
Definition porousmediumflow/2pnc/model.hh:256
TwoPNCVolumeVariables< NCNITraits< BaseTraits, DT, EDM, ETCM > > type
Definition porousmediumflow/2pnc/model.hh:289
EnergyIOFields< TwoPNCIOFields > type
Definition porousmediumflow/2pnc/model.hh:294
ThermalConductivitySomerton< Scalar > type
Definition porousmediumflow/2pnc/model.hh:303
Contains the quantities which are are constant within a finite volume in the two-phase,...
Definition porousmediumflow/2pnc/volumevariables.hh:58
Element-wise calculation of the local residual for problems using compositional fully implicit model.
Definition porousmediumflow/compositional/localresidual.hh:46
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
The implicit non-isothermal model.
Element-wise calculation of the local residual for problems using compositional fully implicit model.
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 two-phase n-component model.
Defines the indices used by the non-isothermal two-phase two-component model.
Adds I/O fields specific to the twop-nc model.
Adds I/O fields specific to non-isothermal models.
Contains the quantities which are constant within a finite volume in the two-phase,...