24#ifndef DUMUX_LOWREKEPSILON_PROBLEM_HH
25#define DUMUX_LOWREKEPSILON_PROBLEM_HH
45template<
class TypeTag>
63 RANSProblemImpl(std::shared_ptr<const GridGeometry> gridGeometry,
const std::string& paramGroup =
"")
64 : ParentType(gridGeometry, paramGroup)
91 for (
const auto& element : elements(this->gridGeometry().gridView()))
93 unsigned int elementIdx = this->gridGeometry().elementMapper().index(element);
95 auto fvGeometry =
localView(this->gridGeometry());
96 fvGeometry.bindElement(element);
97 for (
auto&& scv : scvs(fvGeometry))
99 const int dofIdx = scv.dofIndex();
100 const auto& cellCenterPriVars = curSol[GridGeometry::cellCenterIdx()][dofIdx];
107 VolumeVariables volVars;
108 volVars.update(elemSol, asImp_(), element, scv);
122 Implementation &asImp_()
123 {
return *
static_cast<Implementation *
>(
this); }
126 const Implementation &asImp_()
const
127 {
return *
static_cast<const Implementation *
>(
this); }
Base class for all staggered fv problems.
Free function to get the local view of a grid cache object.
The available discretization methods in Dumux.
The available free flow turbulence models in Dumux.
TurbulenceModel
The available free flow turbulence models in Dumux.
Definition turbulencemodel.hh:37
@ lowrekepsilon
Definition turbulencemodel.hh:38
GridCache::LocalView localView(const GridCache &gridCache)
Free function to get the local view of a grid cache object.
Definition localview.hh:38
auto elementSolution(const Element &element, const SolutionVector &sol, const GridGeometry &gg) -> std::enable_if_t< GridGeometry::discMethod==DiscretizationMethod::box, BoxElementSolution< typename GridGeometry::LocalView, std::decay_t< decltype(std::declval< SolutionVector >()[0])> > >
Make an element solution for box schemes.
Definition box/elementsolution.hh:115
PrimaryVariables makePriVarsFromCellCenterPriVars(const CellCenterPrimaryVariables &cellCenterPriVars)
Helper function to create a PrimaryVariables object from CellCenterPrimaryVariables.
Definition staggered/elementsolution.hh:41
T getParamFromGroup(Args &&... args)
A free function to get a parameter from the parameter tree singleton with a model group.
Definition parameters.hh:375
typename Properties::Detail::GetPropImpl< TypeTag, Property >::type::type GetPropType
get the type alias defined in the property (equivalent to old macro GET_PROP_TYPE(....
Definition propertysystem.hh:149
void updateDynamicWallProperties(const SolutionVector &curSol)
Update the dynamic (solution dependent) relations to the walls.
Definition freeflow/rans/problem.hh:225
void updateStaticWallProperties()
Update the static (solution independent) relations to the walls.
Definition freeflow/rans/problem.hh:98
RANSProblemBase(std::shared_ptr< const GridGeometry > gridGeometry, const std::string ¶mGroup="")
The constructor.
Definition freeflow/rans/problem.hh:88
bool useStoredEddyViscosity_
Definition freeflow/rans/twoeq/lowrekepsilon/problem.hh:118
void updateStaticWallProperties()
Correct size of the static (solution independent) wall variables.
Definition freeflow/rans/twoeq/lowrekepsilon/problem.hh:72
std::vector< Scalar > storedTurbulentKineticEnergy_
Definition freeflow/rans/twoeq/lowrekepsilon/problem.hh:117
RANSProblemImpl(std::shared_ptr< const GridGeometry > gridGeometry, const std::string ¶mGroup="")
The constructor sets the gravity, if desired by the user.
Definition freeflow/rans/twoeq/lowrekepsilon/problem.hh:63
std::vector< Scalar > storedDissipationTilde_
Definition freeflow/rans/twoeq/lowrekepsilon/problem.hh:115
void updateDynamicWallProperties(const SolutionVector &curSol)
Update the dynamic (solution dependent) relations to the walls.
Definition freeflow/rans/twoeq/lowrekepsilon/problem.hh:87
std::vector< Scalar > storedDynamicEddyViscosity_
Definition freeflow/rans/twoeq/lowrekepsilon/problem.hh:116
Declares all properties used in Dumux.
A single-phase, isothermal low-Reynolds k-epsilon model.
The local element solution class for staggered methods.
the turbulence-model-specfic RANS problem