34#ifndef DUMUX_FREEFLOW_NAVIERSTOKES_1P_MODEL_HH
35#define DUMUX_FREEFLOW_NAVIERSTOKES_1P_MODEL_HH
68 static constexpr int numEq() {
return 1; }
130template<
class TypeTag>
131struct ModelTraits<TypeTag,
TTag::NavierStokesMassOneP>
140template<
class TypeTag>
141struct FluidState<TypeTag,
TTag::NavierStokesMassOneP>
151template<
class TypeTag>
152struct LocalResidual<TypeTag,
TTag::NavierStokesMassOneP>
156template<
class TypeTag>
157struct LocalResidual<TypeTag,
TTag::NavierStokesMassOnePFE>
161template<
class TypeTag>
162struct VolumeVariables<TypeTag,
TTag::NavierStokesMassOneP>
170 static_assert(FSY::numPhases == MT::numFluidPhases(),
"Number of phases mismatch between model and fluid system");
171 static_assert(FST::numPhases == MT::numFluidPhases(),
"Number of phases mismatch between model and fluid state");
172 static_assert(!FSY::isMiscible(),
"The Navier-Stokes model only works with immiscible fluid systems.");
180template<
class TypeTag>
181struct Variables<TypeTag,
TTag::NavierStokesMassOneP>
195template<
class TypeTag>
196struct SpatialParams<TypeTag,
TTag::NavierStokesMassOnePFE>
198 template<
class GG,
class S>
205 using ParentType::ParentType;
214template<
class TypeTag>
215struct VolumeVariables<TypeTag,
TTag::NavierStokesMassOnePFE>
223 static_assert(FSY::numPhases == MT::numFluidPhases(),
"Number of phases mismatch between model and fluid system");
224 static_assert(FST::numPhases == MT::numFluidPhases(),
"Number of phases mismatch between model and fluid state");
225 static_assert(!FSY::isMiscible(),
"The Navier-Stokes model only works with immiscible fluid systems.");
233template<
class TypeTag>
234struct FluxVariables<TypeTag,
TTag::NavierStokesMassOneP>
239 struct DiffusiveFluxTypes {};
244 Problem, ModelTraits, DiffusiveFluxTypes, ElementVolumeVariables, ElementFluxVariablesCache
249template<
class TypeTag>
252template<
class TypeTag>
256 using type =
struct EmptyCouplingManager {};
260template<
class TypeTag>
261struct SpatialParams<TypeTag,
TTag::NavierStokesMassOneP>
272template<
class TypeTag>
273struct IOFields<TypeTag,
TTag::NavierStokesMassOnePNI>
277template<
class TypeTag>
278struct ModelTraits<TypeTag,
TTag::NavierStokesMassOnePNI>
282template<
class TypeTag>
283struct VolumeVariables<TypeTag,
TTag::NavierStokesMassOnePNI>
291 static_assert(FSY::numPhases == MT::numFluidPhases(),
"Number of phases mismatch between model and fluid system");
292 static_assert(FST::numPhases == MT::numFluidPhases(),
"Number of phases mismatch between model and fluid state");
293 static_assert(!FSY::isMiscible(),
"The Navier-Stokes model only works with immiscible fluid systems.");
298 struct NITraits :
public BaseTraits
300 using EffectiveThermalConductivityModel = ETCM;
301 using HeatConductionType = HCT;
308template<
class TypeTag>
309struct ThermalConductivityModel<TypeTag,
TTag::NavierStokesMassOnePNI>
313 template<
class VolVars>
316 return volVars.fluidThermalConductivity();
321template<
class TypeTag>
322struct HeatConductionType<TypeTag,
TTag::NavierStokesMassOnePNI>
326template<
class TypeTag>
327struct FluxVariables<TypeTag,
TTag::NavierStokesMassOnePNI>
333 struct DiffusiveFluxTypes
343 Problem, ModelTraits, DiffusiveFluxTypes, ElementVolumeVariables, ElementFluxVariablesCache
347template<
class TypeTag>
348struct FluxVariablesCache<TypeTag,
TTag::NavierStokesMassOnePNI>
354template<
class TypeTag>
355struct FluxVariablesCacheFiller<TypeTag,
TTag::NavierStokesMassOnePNI>
368template<
class TypeTag>
369struct SolutionDependentHeatConduction<TypeTag,
TTag::NavierStokesMassOnePNI>
370{
static constexpr bool value =
true; };
The interface of the coupling manager for multi domain problems.
Definition multidomain/couplingmanager.hh:37
The base class for spatial parameters used with finite-volume or finite-element schemes.
Definition common/spatialparams.hh:34
Definition of the spatial parameters for the freeflow problems.
Definition freeflow/spatialparams.hh:117
Represents all relevant thermodynamic quantities of a multi-phase fluid system assuming immiscibility...
Definition immiscible.hh:30
Element-wise calculation of the Navier-Stokes mass residual for single-phase flow when using fe discr...
Definition mass/1p/felocalresidual.hh:149
The flux variables class for the single-phase flow Navier-Stokes model.
Definition freeflow/navierstokes/mass/1p/fluxvariables.hh:39
Adds I/O fields for the Navier-Stokes model.
Definition freeflow/navierstokes/mass/1p/iofields.hh:25
Element-wise calculation of the Navier-Stokes residual for single-phase flow.
Definition freeflow/navierstokes/mass/1p/localresidual.hh:45
Variables for the single-phase Navier-Stokes mass model.
Definition freeflow/navierstokes/mass/1p/variables.hh:28
Volume variables for the single-phase Navier-Stokes model.
Definition freeflow/navierstokes/mass/1p/volumevariables.hh:29
Defines a type tags and some fundamental properties for all models.
Defines all properties used in Dumux.
Basic spatial parameters to be used with finite-volume or finite-element schemes.
Diffusive heat flux according to Fourier's law.
A single-phase, non-isothermal free-flow model.
The flux variables class for the single-phase flow Navier-Stokes model.
The common indices for the isothermal Navier-Stokes mass conservation model.
Adds I/O fields for the Navier-Stokes model.
Element-wise calculation of the Navier-Stokes residual for single-phase flow.
Variables for the single-phase Navier-Stokes mass model.
Volume variables for the single-phase Navier-Stokes model.
Definition of the spatial parameters for the freeflow problems.
FouriersLawImplementation< TypeTag, typename GetPropType< TypeTag, Properties::GridGeometry >::DiscretizationMethod > FouriersLaw
Evaluates the heat conduction flux according to Fouriers's law.
Definition fourierslaw_fwd.hh:31
FreeFlowScalarFluxVariablesCacheFillerImplementation< Problem, ModelTraits, diffusionIsSolDependent, heatConductionIsSolDependent, typename ProblemTraits< Problem >::GridGeometry::DiscretizationMethod > FreeFlowScalarFluxVariablesCacheFiller
The flux variables cache filler class for free flow.
Definition scalarfluxvariablescachefiller.hh:36
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
Represents all relevant thermodynamic quantities of a multi-phase fluid system assuming immiscibility...
Element-wise calculation of the Navier-Stokes mass residual for single-phase flow when using fe discr...
Type tag for numeric models.
Definition grid.hh:24
The energy balance equation for a porous solid.
Definition common/properties.hh:26
A helper class to fill the flux variables cache.
Adds I/O fields specific to non-isothermal free-flow models.
Definition freeflow/navierstokes/energy/iofields.hh:25
Specifies a number properties of non-isothermal free-flow flow models based on the specifics of a giv...
Definition freeflow/navierstokes/energy/model.hh:55
The common indices for the isothermal Navier-Stokes mass conservation model.
Definition freeflow/navierstokes/mass/1p/indices.hh:22
Traits for the single-phase flow Navier-Stokes mass model.
Definition freeflow/navierstokes/mass/1p/model.hh:65
static constexpr bool enableMolecularDiffusion()
The one-phase one-component model has no molecular diffusion.
Definition freeflow/navierstokes/mass/1p/model.hh:80
static constexpr bool enableAdvection()
Enable advection.
Definition freeflow/navierstokes/mass/1p/model.hh:77
static constexpr int numFluidComponents()
The number of components is 1.
Definition freeflow/navierstokes/mass/1p/model.hh:74
NavierStokesMassOnePIndices Indices
the indices
Definition freeflow/navierstokes/mass/1p/model.hh:86
static constexpr bool enableEnergyBalance()
The model is isothermal.
Definition freeflow/navierstokes/mass/1p/model.hh:83
static constexpr int numEq()
Definition freeflow/navierstokes/mass/1p/model.hh:68
static constexpr int numFluidPhases()
The number of phases is 1.
Definition freeflow/navierstokes/mass/1p/model.hh:71
Traits class for the volume variables of the Navier-Stokes model.
Definition freeflow/navierstokes/mass/1p/model.hh:103
FST FluidState
Definition freeflow/navierstokes/mass/1p/model.hh:106
PV PrimaryVariables
Definition freeflow/navierstokes/mass/1p/model.hh:104
FSY FluidSystem
Definition freeflow/navierstokes/mass/1p/model.hh:105
MT ModelTraits
Definition freeflow/navierstokes/mass/1p/model.hh:107
struct EmptyCouplingManager {} type
Definition freeflow/navierstokes/mass/1p/model.hh:256
Dumux::ImmiscibleFluidState< Scalar, FluidSystem > type
Definition freeflow/navierstokes/mass/1p/model.hh:147
NavierStokesMassOnePFluxVariables< Problem, ModelTraits, DiffusiveFluxTypes, ElementVolumeVariables, ElementFluxVariablesCache > type
Definition freeflow/navierstokes/mass/1p/model.hh:243
NavierStokesMassOnePFluxVariables< Problem, ModelTraits, DiffusiveFluxTypes, ElementVolumeVariables, ElementFluxVariablesCache > type
Definition freeflow/navierstokes/mass/1p/model.hh:342
Definition freeflow/navierstokes/mass/1p/model.hh:351
FreeFlowScalarFluxVariablesCacheFiller< Problem, ModelTraits, diffusionIsSolDependent, heatConductionIsSolDependent > type
Definition freeflow/navierstokes/mass/1p/model.hh:363
GetPropType< TypeTag, Properties::Problem > Problem
Definition freeflow/navierstokes/mass/1p/model.hh:357
GetPropType< TypeTag, Properties::ModelTraits > ModelTraits
Definition freeflow/navierstokes/mass/1p/model.hh:358
static constexpr bool diffusionIsSolDependent
Definition freeflow/navierstokes/mass/1p/model.hh:359
static constexpr bool heatConductionIsSolDependent
Definition freeflow/navierstokes/mass/1p/model.hh:361
FouriersLaw< TypeTag > type
Definition freeflow/navierstokes/mass/1p/model.hh:323
NavierStokesMassOnePIOFields type
Definition freeflow/navierstokes/mass/1p/model.hh:250
NavierStokesEnergyIOFields< NavierStokesMassOnePIOFields > type
Definition freeflow/navierstokes/mass/1p/model.hh:274
NavierStokesMassOnePLocalResidual< TypeTag > type
Definition freeflow/navierstokes/mass/1p/model.hh:153
NavierStokesMassOnePFELocalResidual< TypeTag > type
Definition freeflow/navierstokes/mass/1p/model.hh:158
NavierStokesMassOnePModelTraits type
Definition freeflow/navierstokes/mass/1p/model.hh:132
NavierStokesEnergyModelTraits< NavierStokesMassOnePModelTraits > type
Definition freeflow/navierstokes/mass/1p/model.hh:279
static constexpr bool value
Definition freeflow/navierstokes/mass/1p/model.hh:370
Definition freeflow/navierstokes/mass/1p/model.hh:201
FreeFlowDefaultSpatialParams< GridGeometry, Scalar > type
Definition freeflow/navierstokes/mass/1p/model.hh:265
GetPropType< TypeTag, Properties::GridGeometry > GridGeometry
Definition freeflow/navierstokes/mass/1p/model.hh:263
GetPropType< TypeTag, Properties::Scalar > Scalar
Definition freeflow/navierstokes/mass/1p/model.hh:264
GetPropType< TypeTag, Properties::GridGeometry > GridGeometry
Definition freeflow/navierstokes/mass/1p/model.hh:208
Dumux::Experimental::SpatialParams< GridGeometry, Scalar, DefaultSpatialParams< GridGeometry, Scalar > > type
Definition freeflow/navierstokes/mass/1p/model.hh:210
GetPropType< TypeTag, Properties::Scalar > Scalar
Definition freeflow/navierstokes/mass/1p/model.hh:209
Assembles the continuity equation in weak form instead of as a control volume flux balance.
Definition freeflow/navierstokes/mass/1p/model.hh:126
std::tuple< NavierStokesMassOneP > InheritsFrom
Definition freeflow/navierstokes/mass/1p/model.hh:126
The type tag for the single-phase, isothermal Navier-Stokes model.
Definition freeflow/navierstokes/mass/1p/model.hh:123
std::tuple< ModelProperties > InheritsFrom
Definition freeflow/navierstokes/mass/1p/model.hh:123
Definition freeflow/navierstokes/mass/1p/model.hh:124
std::tuple< NavierStokesMassOneP > InheritsFrom
Definition freeflow/navierstokes/mass/1p/model.hh:124
Definition freeflow/navierstokes/mass/1p/model.hh:312
static auto effectiveThermalConductivity(const VolVars &volVars)
Definition freeflow/navierstokes/mass/1p/model.hh:314
NavierStokesMassOnePVariables< Traits > type
Definition freeflow/navierstokes/mass/1p/model.hh:190
NavierStokesMassOnePVolumeVariables< Traits > type
Definition freeflow/navierstokes/mass/1p/model.hh:176
NavierStokesMassOnePVariables< Traits > type
Definition freeflow/navierstokes/mass/1p/model.hh:229
NavierStokesMassOnePVolumeVariables< NITraits > type
Definition freeflow/navierstokes/mass/1p/model.hh:304