48#ifndef DUMUX_1PNC_MODEL_HH
49#define DUMUX_1PNC_MODEL_HH
79template<
int nComp,
bool useM,
int enableCompDisp,
int enableThermDisp,
int repCompEqIdx = nComp,
class CDM =
void>
85 static constexpr int numEq() {
return nComp; }
90 static constexpr bool useMoles() {
return useM; }
116template<
class TypeTag>
120template<
class TypeTag>
121struct BaseModelTraits<TypeTag,
TTag::OnePNC>
134template<
class TypeTag>
144template<
class TypeTag>
145struct FluidState<TypeTag,
TTag::OnePNC>
156template<
class TypeTag>
157struct EffectiveDiffusivityModel<TypeTag,
TTag::OnePNC>
161template<
class TypeTag>
162struct UseMoles<TypeTag,
TTag::OnePNC> {
static constexpr bool value =
true; };
165template<
class TypeTag>
169template<
class TypeTag>
170struct VolumeVariables<TypeTag,
TTag::OnePNC>
180 static_assert(FSY::numComponents == MT::numFluidComponents(),
"Number of components mismatch between model and fluid system");
181 static_assert(FST::numComponents == MT::numFluidComponents(),
"Number of components mismatch between model and fluid state");
182 static_assert(FSY::numPhases == MT::numFluidPhases(),
"Number of phases mismatch between model and fluid system");
183 static_assert(FST::numPhases == MT::numFluidPhases(),
"Number of phases mismatch between model and fluid state");
188 template<
class BaseTraits,
class DT,
class EDM>
189 struct NCTraits :
public BaseTraits
191 using DiffusionType = DT;
192 using EffectiveDiffusivityModel = EDM;
200template<
class TypeTag>
208template<
class TypeTag>
212template<
class TypeTag>
213struct ThermalConductivityModel<TypeTag,
TTag::OnePNCNI>
217template<
class TypeTag>
218struct ModelTraits<TypeTag,
TTag::OnePNCNI>
227template<
class TypeTag>
228struct VolumeVariables<TypeTag,
TTag::OnePNCNI>
238 static_assert(FSY::numComponents == MT::numFluidComponents(),
"Number of components mismatch between model and fluid system");
239 static_assert(FST::numComponents == MT::numFluidComponents(),
"Number of components mismatch between model and fluid state");
240 static_assert(FSY::numPhases == MT::numFluidPhases(),
"Number of phases mismatch between model and fluid system");
241 static_assert(FST::numPhases == MT::numFluidPhases(),
"Number of phases mismatch between model and fluid state");
247 template<
class BaseTraits,
class DT,
class EDM,
class ETCM>
248 struct NCNITraits :
public BaseTraits
250 using DiffusionType = DT;
251 using EffectiveDiffusivityModel = EDM;
252 using EffectiveThermalConductivityModel = ETCM;
261template<
class OnePNCModelTraits>
267namespace Properties {
280template<
class TypeTag>
284template<
class TypeTag>
287template<
class TypeTag>
288struct ModelTraits<TypeTag,
TTag::OnePNCNonEquil>
305template<
class TypeTag>
306struct EnableChemicalNonEquilibrium<TypeTag,
TTag::OnePNCNonEquil> {
static constexpr bool value =
false; };
309template<
class TypeTag>
310struct EquilibriumModelTraits<TypeTag,
TTag::OnePNCNonEquil>
324template<
class TypeTag>
325struct ThermalConductivityModel<TypeTag,
TTag::OnePNCNonEquil>
334template<
class TypeTag>
335struct VolumeVariables<TypeTag,
TTag::OnePNCNonEquil>
350 template<
class BaseTraits,
class DT,
class EDM,
class ETCM>
351 struct NCNITraits :
public BaseTraits
353 using DiffusionType = DT;
354 using EffectiveDiffusivityModel = EDM;
355 using EffectiveThermalConductivityModel = ETCM;
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:35
Relation for the effective diffusion coefficient after Millington and Quirk.
Definition diffusivitymillingtonquirk.hh:43
Adds I/O fields specific to non-isothermal models.
Definition porousmediumflow/nonisothermal/iofields.hh:27
Adds I/O fields specific to the OnePNC model.
Definition porousmediumflow/1pnc/iofields.hh:26
Contains the quantities which are are constant within a finite volume in the one-phase,...
Definition porousmediumflow/1pnc/volumevariables.hh:38
Effective thermal conductivity based on weighted arithmetic average.
Definition thermalconductivityaverage.hh:49
Defines all properties used in Dumux.
Represents all relevant thermodynamic quantities of a multi-phase, multi-component fluid system assum...
Relation for the effective diffusion coefficient after Millington and Quirk.
constexpr auto getPropValue()
get the value data member of a property
Definition propertysystem.hh:310
typename GetProp< TypeTag, Property >::type GetPropType
get the type alias defined in the property
Definition propertysystem.hh:296
Type tag for numeric models.
Definition grid.hh:24
NonEquilibriumVolumeVariablesImplementation< Traits, EquilibriumVolumeVariables, Traits::ModelTraits::enableChemicalNonEquilibrium(), Traits::ModelTraits::enableThermalNonEquilibrium(), Traits::ModelTraits::numEnergyEqFluid()> NonEquilibriumVolumeVariables
Definition porousmediumflow/nonequilibrium/volumevariables.hh:40
A single-phase, isothermal flow model using the fully implicit scheme.
Defines the primary variable and equation indices used by the 1pnc model.
Adds I/O fields specific to the OnePNC model.
Quantities required by the single-phase, n-component box model defined on a vertex.
Element-wise calculation of the local residual for problems using compositional fully implicit model.
This specifies models which are able to capture non-equilibrium mass and / or energy transfer.
This class contains the volume variables required for the modules which require the specific interfac...
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.
Specifies a number properties of porous-medium flow non-equilibrium models.
Definition porousmediumflow/nonequilibrium/model.hh:45
The indices for the isothermal one-phase n-component model.
Definition porousmediumflow/1pnc/indices.hh:26
Specifies a number properties of models that consider a single-phase with multiple components.
Definition porousmediumflow/1pnc/model.hh:81
static constexpr int numEq()
Definition porousmediumflow/1pnc/model.hh:85
static constexpr bool enableAdvection()
Definition porousmediumflow/1pnc/model.hh:91
static constexpr int numFluidComponents()
Definition porousmediumflow/1pnc/model.hh:87
static constexpr int numFluidPhases()
Definition porousmediumflow/1pnc/model.hh:86
static constexpr int replaceCompEqIdx()
Definition porousmediumflow/1pnc/model.hh:88
static constexpr bool useMoles()
Definition porousmediumflow/1pnc/model.hh:90
static constexpr bool enableCompositionalDispersion()
Definition porousmediumflow/1pnc/model.hh:93
CompositionalDispersionModel CompositionalDispersionModel
Definition porousmediumflow/1pnc/model.hh:83
static constexpr bool enableMolecularDiffusion()
Definition porousmediumflow/1pnc/model.hh:92
static constexpr bool enableThermalDispersion()
Definition porousmediumflow/1pnc/model.hh:94
static constexpr bool enableEnergyBalance()
Definition porousmediumflow/1pnc/model.hh:95
OnePNCIndices Indices
Definition porousmediumflow/1pnc/model.hh:82
Definition porousmediumflow/1pnc/model.hh:263
static constexpr int numConstraintEq()
Definition porousmediumflow/1pnc/model.hh:264
Traits class for the volume variables of the single-phase model.
Definition porousmediumflow/1p/model.hh:83
Specifies a number properties of non-isothermal porous medium flow models based on the specifics of a...
Definition porousmediumflow/nonisothermal/model.hh:76
OnePNCModelTraits< FluidSystem::numComponents, getPropValue< TypeTag, Properties::UseMoles >(), getPropValue< TypeTag, Properties::EnableCompositionalDispersion >(), getPropValue< TypeTag, Properties::EnableThermalDispersion >(), getPropValue< TypeTag, Properties::ReplaceCompEqIdx >(), CDM > type
Definition porousmediumflow/1pnc/model.hh:127
DiffusivityMillingtonQuirk< GetPropType< TypeTag, Properties::Scalar > > type
Definition porousmediumflow/1pnc/model.hh:158
static constexpr bool value
Definition porousmediumflow/1pnc/model.hh:306
OnePNCIOFields type
Definition porousmediumflow/1pnc/model.hh:285
CompositionalLocalResidual< TypeTag > type
Definition porousmediumflow/1pnc/model.hh:281
OnePNCUnconstrainedModelTraits< EquilibriumTraits > type
Definition porousmediumflow/1pnc/model.hh:320
CompositionalFluidState< Scalar, FluidSystem > type
Definition porousmediumflow/1pnc/model.hh:152
OnePNCIOFields type
Definition porousmediumflow/1pnc/model.hh:201
EnergyIOFields< OnePNCIOFields > type
Definition porousmediumflow/1pnc/model.hh:209
CompositionalLocalResidual< TypeTag > type
Definition porousmediumflow/1pnc/model.hh:166
GetPropType< TypeTag, Properties::BaseModelTraits > type
Definition porousmediumflow/1pnc/model.hh:135
PorousMediumFlowNIModelTraits< IsothermalTraits, TDM > type
Definition porousmediumflow/1pnc/model.hh:224
NonEquilTraits type
Definition porousmediumflow/1pnc/model.hh:301
static constexpr int value
Definition porousmediumflow/1pnc/model.hh:117
Definition porousmediumflow/1pnc/model.hh:107
std::tuple< PorousMediumFlow > InheritsFrom
Definition porousmediumflow/1pnc/model.hh:107
Definition porousmediumflow/1pnc/model.hh:108
std::tuple< OnePNC > InheritsFrom
Definition porousmediumflow/1pnc/model.hh:108
Definition porousmediumflow/1pnc/model.hh:272
std::tuple< NonEquilibrium, OnePNC > InheritsFrom
Definition porousmediumflow/1pnc/model.hh:272
ThermalConductivityAverage< GetPropType< TypeTag, Properties::Scalar > > type
Definition porousmediumflow/1pnc/model.hh:214
ThermalConductivityAverage< Scalar > type
Definition porousmediumflow/1pnc/model.hh:330
static constexpr bool value
Definition porousmediumflow/1pnc/model.hh:162
OnePNCVolumeVariables< NCTraits< BaseTraits, DT, EDM > > type
Definition porousmediumflow/1pnc/model.hh:196
OnePNCVolumeVariables< NCNITraits< BaseTraits, DT, EDM, ETCM > > type
Definition porousmediumflow/1pnc/model.hh:256
NonEquilibriumVolumeVariables< NCNITraits< BaseTraits, DT, EDM, ETCM >, EquilibriumVolVars > type
Definition porousmediumflow/1pnc/model.hh:360
Effective thermal conductivity based on weighted arithmetic average.