40#ifndef DUMUX_FREEFLOW_NC_MODEL_HH
41#define DUMUX_FREEFLOW_NC_MODEL_HH
74template<
int dimension,
int nComp,
bool useM,
int repCompEqIdx = nComp>
79 static constexpr int numEq() {
return dimension+nComp; }
85 static constexpr bool useMoles() {
return useM; }
127template<
class TypeTag>
128struct ModelTraits<TypeTag,
TTag::NavierStokesNC>
132 static constexpr int dim = GridView::dimension;
134 static constexpr int numComponents = FluidSystem::numComponents;
142template<
class TypeTag>
143struct UseMoles<TypeTag,
TTag::NavierStokesNC> {
static constexpr bool value =
false; };
144template<
class TypeTag>
145struct ReplaceCompEqIdx<TypeTag,
TTag::NavierStokesNC> {
static constexpr int value = 0; };
146template<
class TypeTag>
147struct NormalizePressure<TypeTag,
TTag::NavierStokesNC> {
static constexpr bool value =
true; };
150template<
class TypeTag>
154template<
class TypeTag>
158template<
class TypeTag>
159struct VolumeVariables<TypeTag,
TTag::NavierStokesNC>
166 static_assert(FSY::numComponents == MT::numFluidComponents(),
"Number of components mismatch between model and fluid system");
167 static_assert(FST::numComponents == MT::numFluidComponents(),
"Number of components mismatch between model and fluid state");
168 static_assert(FSY::numPhases == MT::numFluidPhases(),
"Number of phases mismatch between model and fluid system");
169 static_assert(FST::numPhases == MT::numFluidPhases(),
"Number of phases mismatch between model and fluid state");
173 template<
class BaseTraits,
class DT>
174 struct NCTraits :
public BaseTraits {
using DiffusionType = DT; };
180template<
class TypeTag>
184template<
class TypeTag>
193template<
class TypeTag>
194struct FluidState<TypeTag,
TTag::NavierStokesNC>
208template<
class TypeTag>
209struct ModelTraits<TypeTag,
TTag::NavierStokesNCNI>
213 static constexpr int dim = GridView::dimension;
215 static constexpr int numComponents = FluidSystem::numComponents;
224template<
class TypeTag>
225struct IOFields<TypeTag,
TTag::NavierStokesNCNI>
234template<
class TypeTag>
A gaseous phase consisting of a single component.
A liquid phase consisting of a single component.
Represents all relevant thermodynamic quantities of a multi-phase, multi-component fluid system assum...
Definition compositional.hh:35
Volume variables for the single-phase, multi-component free-flow model.
Definition freeflow/compositional/volumevariables.hh:28
Defines all properties used in Dumux.
Represents all relevant thermodynamic quantities of a multi-phase, multi-component fluid system assum...
Diffusive mass flux according to Fick's law.
Diffusive heat flux according to Fourier's law.
The flux variables class for the multi-component free-flow model. This is a convenience alias for tha...
Adds I/O fields specific to the FreeflowNC model.
The local residual class for the multi-component free-flow model (balance equations)....
Volume variables for the single-phase, multi-component free-flow model.
A single-phase, isothermal Navier-Stokes model.
Indices for the non-isothermal Navier-Stokes model.
Adds I/O fields specific to non-isothermal free-flow models.
A single-phase, non-isothermal free-flow model.
FicksLawImplementation< TypeTag, typename GetPropType< TypeTag, Properties::GridGeometry >::DiscretizationMethod, referenceSystem > FicksLaw
Evaluates the diffusive mass flux according to Fick's law.
Definition fickslaw_fwd.hh:33
FouriersLawImplementation< TypeTag, typename GetPropType< TypeTag, Properties::GridGeometry >::DiscretizationMethod > FouriersLaw
Evaluates the heat conduction flux according to Fouriers's law.
Definition fourierslaw_fwd.hh:31
@ none
Definition turbulencemodel.hh:27
FreeflowNCFluxVariablesImpl< TypeTag, typename GetPropType< TypeTag, Properties::GridGeometry >::DiscretizationMethod > FreeflowNCFluxVariables
The flux variables class for the multi-component free-flow model. This is a convenience alias for tha...
Definition freeflow/compositional/fluxvariables.hh:32
FreeflowNCResidualImpl< TypeTag, typename GetPropType< TypeTag, Properties::GridGeometry >::DiscretizationMethod > FreeflowNCResidual
The local residual class for the multi-component free-flow model (balance equations)....
Definition freeflow/compositional/localresidual.hh:34
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
The energy balance equation for a porous solid.
Definition common/properties.hh:26
Calculates the element-wise residual for the staggered FV scheme.
Adds I/O fields specific to the FreeflowNC model.
Definition freeflow/compositional/iofields.hh:26
Specifies a number properties of non-isothermal free-flow flow models based on the specifics of a giv...
Definition freeflow/nonisothermal/model.hh:47
Adds I/O fields specific to non-isothermal free-flow models.
Definition freeflow/nonisothermal/iofields.hh:26
The common indices for the isothermal Navier-Stokes model.
Definition freeflow/navierstokes/indices.hh:25
Traits for the Navier-Stokes model.
Definition freeflow/navierstokes/model.hh:63
Traits for the multi-component free-flow model.
Definition navierstokesncmodel.hh:76
static constexpr int replaceCompEqIdx()
Index of of a component balance eq. to be replaced by a total mass/mole balance.
Definition navierstokesncmodel.hh:91
static constexpr auto turbulenceModel()
return the type of turbulence model used
Definition navierstokesncmodel.hh:97
static constexpr bool useMoles()
Use moles or not.
Definition navierstokesncmodel.hh:85
static constexpr bool enableMolecularDiffusion()
The one-phase model has no molecular diffusion.
Definition navierstokesncmodel.hh:88
static constexpr int numFluidComponents()
The number of components.
Definition navierstokesncmodel.hh:82
NavierStokesIndices< dimension > Indices
the indices
Definition navierstokesncmodel.hh:101
static constexpr bool usesTurbulenceModel()
The model does not include a turbulence model.
Definition navierstokesncmodel.hh:94
static constexpr int numEq()
Definition navierstokesncmodel.hh:79
Traits class for the volume variables of the Navier-Stokes model.
Definition freeflow/navierstokes/model.hh:111
CompositionalFluidState< Scalar, FluidSystem > type
Definition navierstokesncmodel.hh:200
FreeflowNCFluxVariables< TypeTag > type
Definition navierstokesncmodel.hh:181
FouriersLaw< TypeTag > type
Definition navierstokesncmodel.hh:235
FreeflowNCIOFields< NavierStokesIOFields > type
Definition navierstokesncmodel.hh:185
FreeflowNonIsothermalIOFields< IsothermalIOFields > type
Definition navierstokesncmodel.hh:230
FreeflowNCResidual< TypeTag > type
Definition navierstokesncmodel.hh:151
NavierStokesNCModelTraits< dim, numComponents, useMoles, replaceCompEqIdx > type
Definition navierstokesncmodel.hh:139
FreeflowNIModelTraits< IsothermalModelTraits > type
Definition navierstokesncmodel.hh:220
FicksLaw< TypeTag > type
Definition navierstokesncmodel.hh:155
static constexpr bool value
Definition navierstokesncmodel.hh:147
static constexpr int value
Definition navierstokesncmodel.hh:145
The type tag for the single-phase, multi-component isothermal free-flow model.
Definition navierstokesncmodel.hh:116
std::tuple< FreeFlow > InheritsFrom
Definition navierstokesncmodel.hh:116
The type tag for the single-phase, multi-component non-isothermal free-flow model.
Definition navierstokesncmodel.hh:119
std::tuple< NavierStokesNC > InheritsFrom
Definition navierstokesncmodel.hh:119
static constexpr bool value
Definition navierstokesncmodel.hh:143
FreeflowNCVolumeVariables< NCTraits< BaseTraits, DT > > type
Definition navierstokesncmodel.hh:176