67#ifndef DUMUX_ONEEQ_MODEL_HH
68#define DUMUX_ONEEQ_MODEL_HH
91template<
int dimension>
95 static constexpr int dim() {
return dimension; }
99 static constexpr int numEq() {
return dim()+1+1; }
123template<
class TypeTag>
124struct ModelTraits<TypeTag, TTag::OneEq>
128 static constexpr int dim = GridView::dimension;
134template<
class TypeTag>
135struct FluxVariables<TypeTag, TTag::OneEq>
144template<
class TypeTag>
145struct LocalResidual<TypeTag, TTag::OneEq>
154template<
class TypeTag>
155struct VolumeVariables<TypeTag, TTag::OneEq>
163 static_assert(FSY::numPhases == MT::numFluidPhases(),
"Number of phases mismatch between model and fluid system");
164 static_assert(FST::numPhases == MT::numFluidPhases(),
"Number of phases mismatch between model and fluid state");
165 static_assert(!FSY::isMiscible(),
"The Navier-Stokes model only works with immiscible fluid systems.");
174template<
class TypeTag>
188template<
class TypeTag>
189struct ModelTraits<TypeTag, TTag::OneEqNI>
193 static constexpr int dim = GridView::dimension;
200template<
class TypeTag>
201struct VolumeVariables<TypeTag, TTag::OneEqNI>
209 static_assert(FSY::numPhases == MT::numFluidPhases(),
"Number of phases mismatch between model and fluid system");
210 static_assert(FST::numPhases == MT::numFluidPhases(),
"Number of phases mismatch between model and fluid state");
211 static_assert(!FSY::isMiscible(),
"The Navier-Stokes model only works with immiscible fluid systems.");
220template<
class TypeTag>
The flux variables class for the Navier-Stokes model using the staggered grid discretization.
Definition: freeflow/navierstokes/fluxvariables.hh:23
Element-wise calculation of the Navier-Stokes residual for models using the staggered discretization.
Definition: freeflow/navierstokes/localresidual.hh:23
Volume variables for the single-phase Navier-Stokes model.
Definition: freeflow/navierstokes/volumevariables.hh:26
The flux variables class for the one-equation model by Spalart-Allmaras using the staggered grid disc...
Definition: freeflow/rans/oneeq/fluxvariables.hh:23
Element-wise calculation of the residual for one-equation turbulence models using the staggered discr...
Definition: freeflow/rans/oneeq/localresidual.hh:24
Volume variables for the isothermal single-phase one-equation turbulence model by Spalart-Allmaras.
Definition: freeflow/rans/oneeq/volumevariables.hh:30
Defines all properties used in Dumux.
Defines a type tag and some properties for free flow models.
A single-phase, isothermal Reynolds-Averaged Navier-Stokes model.
typename GetProp< TypeTag, Property >::type GetPropType
get the type alias defined in the property
Definition: propertysystem.hh:296
The energy balance equation for a porous solid.
Definition: common/properties.hh:26
Base class for the flux variables in porous medium models.
Defines the primary variable and equation indices used by the isothermal tracer model.
Adds I/O fields specific to the tracer model.
Element-wise calculation of the local residual for problems using fully implicit tracer model.
Python wrapper for volume variables (finite volume schemes)
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 class for the volume variables of the Navier-Stokes model.
Definition: freeflow/navierstokes/model.hh:111
Adds I/O fields for the one-equation turbulence model by Spalart-Allmaras.
Definition: freeflow/rans/oneeq/iofields.hh:24
The common indices for the isothermal one-equation turbulence model by Spalart-Allmaras.
Definition: freeflow/rans/oneeq/indices.hh:29
Traits for the Spalart-Allmaras model.
Definition: freeflow/rans/oneeq/model.hh:93
static constexpr int numEq()
Definition: freeflow/rans/oneeq/model.hh:99
static constexpr int dim()
The dimension of the model.
Definition: freeflow/rans/oneeq/model.hh:95
static constexpr auto turbulenceModel()
return the type of turbulence model used
Definition: freeflow/rans/oneeq/model.hh:108
static constexpr int numFluidComponents()
The number of components.
Definition: freeflow/rans/oneeq/model.hh:102
Traits for the Reynolds-averaged Navier-Stokes model.
Definition: freeflow/rans/model.hh:61
The type tag for the single-phase, isothermal Spalart-Allmaras model.
Definition: freeflow/rans/oneeq/model.hh:119
std::tuple< RANS > InheritsFrom
Definition: freeflow/rans/oneeq/model.hh:119
The type tag for the single-phase, non-isothermal Spalart-Allmaras model.
Definition: freeflow/rans/oneeq/model.hh:184
std::tuple< OneEq, RANSNI > InheritsFrom
Definition: freeflow/rans/oneeq/model.hh:184
The available free flow turbulence models in Dumux.