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>
128 getPropValue<TypeTag, Properties::UseMoles>(),
129 getPropValue<TypeTag, Properties::EnableCompositionalDispersion>(),
130 getPropValue<TypeTag, Properties::EnableThermalDispersion>(),
131 getPropValue<TypeTag, Properties::ReplaceCompEqIdx>(),
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>
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>
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>
292 static constexpr bool enableTNE = getPropValue<TypeTag, Properties::EnableThermalNonEquilibrium>();
293 static constexpr bool enableCNE = getPropValue<TypeTag, Properties::EnableChemicalNonEquilibrium>();
294 static constexpr int numEF = getPropValue<TypeTag, Properties::NumEnergyEqFluid>();
295 static constexpr int numES = getPropValue<TypeTag, Properties::NumEnergyEqSolid>();
296 static constexpr auto nf = getPropValue<TypeTag, Properties::NusseltFormulation>();
297 static constexpr auto ns = getPropValue<TypeTag, Properties::SherwoodFormulation>();
305template<
class TypeTag>
306struct EnableChemicalNonEquilibrium<TypeTag, TTag::OnePNCNonEquil> {
static constexpr bool value =
false; };
309template<
class TypeTag>
310struct EquilibriumModelTraits<TypeTag, TTag::OnePNCNonEquil>
315 getPropValue<TypeTag, Properties::UseMoles>(),
316 getPropValue<TypeTag, Properties::EnableCompositionalDispersion>(),
317 getPropValue<TypeTag, Properties::EnableThermalDispersion>(),
318 getPropValue<TypeTag, Properties::ReplaceCompEqIdx>()>;
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>
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: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
This class contains the volume variables required for the modules which require the specific interfac...
Definition: porousmediumflow/nonequilibrium/volumevariables.hh:37
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:43
Defines all properties used in Dumux.
Represents all relevant thermodynamic quantities of a multi-phase, multi-component fluid system assum...
typename GetProp< TypeTag, Property >::type GetPropType
get the type alias defined in the property
Definition: propertysystem.hh:296
A single-phase, isothermal flow model using the fully implicit scheme.
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.
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 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
CDM 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
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
GetPropType< TypeTag, Properties::BaseModelTraits > type
Definition: porousmediumflow/1pnc/model.hh:135
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