37#ifndef DUMUX_1PNC_MODEL_HH
38#define DUMUX_1PNC_MODEL_HH
68template<
int nComp,
bool useM,
int enableCompDisp,
int enableThermDisp,
int repCompEqIdx = nComp,
class CDM =
void>
74 static constexpr int numEq() {
return nComp; }
79 static constexpr bool useMoles() {
return useM; }
105template<
class TypeTag>
109template<
class TypeTag>
110struct BaseModelTraits<TypeTag, TTag::OnePNC>
117 getPropValue<TypeTag, Properties::UseMoles>(),
118 getPropValue<TypeTag, Properties::EnableCompositionalDispersion>(),
119 getPropValue<TypeTag, Properties::EnableThermalDispersion>(),
120 getPropValue<TypeTag, Properties::ReplaceCompEqIdx>(),
123template<
class TypeTag>
133template<
class TypeTag>
134struct FluidState<TypeTag, TTag::OnePNC>
145template<
class TypeTag>
146struct EffectiveDiffusivityModel<TypeTag, TTag::OnePNC>
150template<
class TypeTag>
151struct UseMoles<TypeTag, TTag::OnePNC> {
static constexpr bool value =
true; };
154template<
class TypeTag>
158template<
class TypeTag>
159struct VolumeVariables<TypeTag, TTag::OnePNC>
169 static_assert(FSY::numComponents == MT::numFluidComponents(),
"Number of components mismatch between model and fluid system");
170 static_assert(FST::numComponents == MT::numFluidComponents(),
"Number of components mismatch between model and fluid state");
171 static_assert(FSY::numPhases == MT::numFluidPhases(),
"Number of phases mismatch between model and fluid system");
172 static_assert(FST::numPhases == MT::numFluidPhases(),
"Number of phases mismatch between model and fluid state");
177 template<
class BaseTraits,
class DT,
class EDM>
180 using DiffusionType = DT;
181 using EffectiveDiffusivityModel = EDM;
189template<
class TypeTag>
197template<
class TypeTag>
201template<
class TypeTag>
202struct ThermalConductivityModel<TypeTag, TTag::OnePNCNI>
206template<
class TypeTag>
207struct ModelTraits<TypeTag, TTag::OnePNCNI>
216template<
class TypeTag>
217struct VolumeVariables<TypeTag, TTag::OnePNCNI>
227 static_assert(FSY::numComponents == MT::numFluidComponents(),
"Number of components mismatch between model and fluid system");
228 static_assert(FST::numComponents == MT::numFluidComponents(),
"Number of components mismatch between model and fluid state");
229 static_assert(FSY::numPhases == MT::numFluidPhases(),
"Number of phases mismatch between model and fluid system");
230 static_assert(FST::numPhases == MT::numFluidPhases(),
"Number of phases mismatch between model and fluid state");
236 template<
class BaseTraits,
class DT,
class EDM,
class ETCM>
239 using DiffusionType = DT;
240 using EffectiveDiffusivityModel = EDM;
241 using EffectiveThermalConductivityModel = ETCM;
250template<
class OnePNCModelTraits>
256namespace Properties {
269template<
class TypeTag>
273template<
class TypeTag>
276template<
class TypeTag>
277struct ModelTraits<TypeTag, TTag::OnePNCNonEquil>
281 static constexpr bool enableTNE = getPropValue<TypeTag, Properties::EnableThermalNonEquilibrium>();
282 static constexpr bool enableCNE = getPropValue<TypeTag, Properties::EnableChemicalNonEquilibrium>();
283 static constexpr int numEF = getPropValue<TypeTag, Properties::NumEnergyEqFluid>();
284 static constexpr int numES = getPropValue<TypeTag, Properties::NumEnergyEqSolid>();
285 static constexpr auto nf = getPropValue<TypeTag, Properties::NusseltFormulation>();
286 static constexpr auto ns = getPropValue<TypeTag, Properties::SherwoodFormulation>();
294template<
class TypeTag>
295struct EnableChemicalNonEquilibrium<TypeTag, TTag::OnePNCNonEquil> {
static constexpr bool value =
false; };
298template<
class TypeTag>
299struct EquilibriumModelTraits<TypeTag, TTag::OnePNCNonEquil>
304 getPropValue<TypeTag, Properties::UseMoles>(),
305 getPropValue<TypeTag, Properties::EnableCompositionalDispersion>(),
306 getPropValue<TypeTag, Properties::EnableThermalDispersion>(),
307 getPropValue<TypeTag, Properties::ReplaceCompEqIdx>()>;
313template<
class TypeTag>
314struct ThermalConductivityModel<TypeTag, TTag::OnePNCNonEquil>
323template<
class TypeTag>
324struct VolumeVariables<TypeTag, TTag::OnePNCNonEquil>
339 template<
class BaseTraits,
class DT,
class EDM,
class ETCM>
342 using DiffusionType = DT;
343 using EffectiveDiffusivityModel = EDM;
344 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 saturation-dependent effective diffusion coefficient.
Definition: diffusivitymillingtonquirk.hh:40
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
Relation for a simple effective thermal conductivity.
Definition: thermalconductivityaverage.hh:25
Defines all properties used in Dumux.
Represents all relevant thermodynamic quantities of a multi-phase, multi-component fluid system assum...
Relation for the saturation-dependent effective diffusion coefficient.
typename GetProp< TypeTag, Property >::type GetPropType
get the type alias defined in the property
Definition: propertysystem.hh:267
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:70
static constexpr int numEq()
Definition: porousmediumflow/1pnc/model.hh:74
static constexpr bool enableAdvection()
Definition: porousmediumflow/1pnc/model.hh:80
static constexpr int numFluidComponents()
Definition: porousmediumflow/1pnc/model.hh:76
static constexpr int numFluidPhases()
Definition: porousmediumflow/1pnc/model.hh:75
static constexpr int replaceCompEqIdx()
Definition: porousmediumflow/1pnc/model.hh:77
static constexpr bool useMoles()
Definition: porousmediumflow/1pnc/model.hh:79
static constexpr bool enableCompositionalDispersion()
Definition: porousmediumflow/1pnc/model.hh:82
CDM CompositionalDispersionModel
Definition: porousmediumflow/1pnc/model.hh:72
static constexpr bool enableMolecularDiffusion()
Definition: porousmediumflow/1pnc/model.hh:81
static constexpr bool enableThermalDispersion()
Definition: porousmediumflow/1pnc/model.hh:83
static constexpr bool enableEnergyBalance()
Definition: porousmediumflow/1pnc/model.hh:84
Definition: porousmediumflow/1pnc/model.hh:252
static constexpr int numConstraintEq()
Definition: porousmediumflow/1pnc/model.hh:253
Traits class for the volume variables of the single-phase model.
Definition: porousmediumflow/1p/model.hh:74
Specifies a number properties of non-isothermal porous medium flow models based on the specifics of a...
Definition: porousmediumflow/nonisothermal/model.hh:58
GetPropType< TypeTag, Properties::BaseModelTraits > type
Definition: porousmediumflow/1pnc/model.hh:124
Definition: porousmediumflow/1pnc/model.hh:96
std::tuple< PorousMediumFlow > InheritsFrom
Definition: porousmediumflow/1pnc/model.hh:96
Definition: porousmediumflow/1pnc/model.hh:97
std::tuple< OnePNC > InheritsFrom
Definition: porousmediumflow/1pnc/model.hh:97
Definition: porousmediumflow/1pnc/model.hh:261
std::tuple< NonEquilibrium, OnePNC > InheritsFrom
Definition: porousmediumflow/1pnc/model.hh:261
Reation for a simple effective thermal conductivity.