80#ifndef DUMUX_2PNC_MODEL_HH
81#define DUMUX_2PNC_MODEL_HH
83#include <dune/common/fvector.hh>
112template<
int nComp,
bool useMol,
bool setMoleFractionForFP, TwoPFormulation formulation,
int repCompEqIdx = nComp>
117 static constexpr int numEq() {
return nComp; }
130 static constexpr bool useMoles() {
return useMol; }
136namespace Properties {
150template<
class TypeTag>
151struct PrimaryVariables<TypeTag, TTag::TwoPNC>
154 using PrimaryVariablesVector = Dune::FieldVector<GetPropType<TypeTag, Properties::Scalar>,
161template<
class TypeTag>
162struct VolumeVariables<TypeTag, TTag::TwoPNC>
173 static constexpr bool enableIS = getPropValue<TypeTag, Properties::EnableBoxInterfaceSolver>();
181 template<
class BaseTraits,
class DT,
class EDM>
184 using DiffusionType = DT;
185 using EffectiveDiffusivityModel = EDM;
193template<
class TypeTag>
194struct BaseModelTraits<TypeTag, TTag::TwoPNC>
199 static_assert(FluidSystem::numPhases == 2,
"Only fluid systems with 2 fluid phases are supported by the 2p-nc model!");
202 getPropValue<TypeTag, Properties::UseMoles>(),
203 getPropValue<TypeTag, Properties::SetMoleFractionsForFirstPhase>(),
204 getPropValue<TypeTag, Properties::Formulation>(), getPropValue<TypeTag, Properties::ReplaceCompEqIdx>()>;
206template<
class TypeTag>
210template<
class TypeTag>
213template<
class TypeTag>
216template<
class TypeTag>
220template<
class TypeTag>
221struct Formulation<TypeTag, TTag::TwoPNC>
224template<
class TypeTag>
225struct SetMoleFractionsForFirstPhase<TypeTag, TTag::TwoPNC> {
static constexpr bool value =
true; };
226template<
class TypeTag>
227struct UseMoles<TypeTag, TTag::TwoPNC> {
static constexpr bool value =
true; };
230template<
class TypeTag>
234template<
class TypeTag>
235struct FluidState<TypeTag, TTag::TwoPNC>
249template<
class TypeTag>
250struct ModelTraits<TypeTag, TTag::TwoPNCNI>
259template<
class TypeTag>
260struct VolumeVariables<TypeTag, TTag::TwoPNCNI>
271 static constexpr bool enableIS = getPropValue<TypeTag, Properties::EnableBoxInterfaceSolver>();
280 template<
class BaseTraits,
class DT,
class EDM,
class ETCM>
283 using DiffusionType = DT;
284 using EffectiveDiffusivityModel = EDM;
285 using EffectiveThermalConductivityModel = ETCM;
292template<
class TypeTag>
296template<
class TypeTag>
297struct ThermalConductivityModel<TypeTag, TTag::TwoPNCNI>
Represents all relevant thermodynamic quantities of a multi-phase, multi-component fluid system assum...
Definition: compositional.hh:35
Element-wise calculation of the local residual for problems using compositional fully implicit model.
Definition: porousmediumflow/compositional/localresidual.hh:33
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: somerton.hh:46
Adds I/O fields specific to the TwoPNC model.
Definition: porousmediumflow/2pnc/iofields.hh:27
Contains the quantities which are are constant within a finite volume in the two-phase,...
Definition: porousmediumflow/2pnc/volumevariables.hh:46
Class that computes the nonwetting saturation in an scv from the saturation at the global degree of f...
Definition: saturationreconstruction.hh:31
Defines all properties used in Dumux.
typename GetProp< TypeTag, Property >::type GetPropType
get the type alias defined in the property
Definition: propertysystem.hh:296
TwoPFormulation
Enumerates the formulations which the two-phase model accepts.
Definition: formulation.hh:23
@ p0s1
first phase pressure and second phase saturation as primary variables
Element-wise calculation of the local residual for problems using compositional fully implicit 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.
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/2pnc/model.hh:207
Definition: porousmediumflow/2pnc/model.hh:142
std::tuple< PorousMediumFlow > InheritsFrom
Definition: porousmediumflow/2pnc/model.hh:142
Definition: porousmediumflow/2pnc/model.hh:143
std::tuple< TwoPNC > InheritsFrom
Definition: porousmediumflow/2pnc/model.hh:143
The indices for the isothermal two-phase n-component model.
Definition: porousmediumflow/2pnc/indices.hh:23
Specifies a number properties of two-phase n-component models.
Definition: porousmediumflow/2pnc/model.hh:114
static constexpr int numFluidPhases()
Definition: porousmediumflow/2pnc/model.hh:118
static constexpr int numEq()
Definition: porousmediumflow/2pnc/model.hh:117
static constexpr int replaceCompEqIdx()
Definition: porousmediumflow/2pnc/model.hh:120
static constexpr bool enableAdvection()
Definition: porousmediumflow/2pnc/model.hh:122
static constexpr bool enableMolecularDiffusion()
Definition: porousmediumflow/2pnc/model.hh:123
static constexpr bool enableThermalNonEquilibrium()
Definition: porousmediumflow/2pnc/model.hh:125
static constexpr int numFluidComponents()
Definition: porousmediumflow/2pnc/model.hh:119
static constexpr bool useMoles()
Definition: porousmediumflow/2pnc/model.hh:130
static constexpr bool enableChemicalNonEquilibrium()
Definition: porousmediumflow/2pnc/model.hh:126
static constexpr TwoPFormulation priVarFormulation()
Definition: porousmediumflow/2pnc/model.hh:133
static constexpr bool enableThermalDispersion()
Definition: porousmediumflow/2pnc/model.hh:128
static constexpr bool enableCompositionalDispersion()
Definition: porousmediumflow/2pnc/model.hh:127
static constexpr bool setMoleFractionsForFirstPhase()
Definition: porousmediumflow/2pnc/model.hh:131
static constexpr bool enableEnergyBalance()
Definition: porousmediumflow/2pnc/model.hh:124
Traits class for the two-phase model.
Definition: porousmediumflow/2p/model.hh:107
A primary variable vector with a state to allow variable switches.