24#ifndef DUMUX_KOMEGA_PROBLEM_HH
25#define DUMUX_KOMEGA_PROBLEM_HH
45template<
class TypeTag>
61 using Element =
typename GridGeometry::GridView::template Codim<0>::Entity;
62 using DimVector =
typename Element::Geometry::GlobalCoordinate;
65 RANSProblemImpl(std::shared_ptr<const GridGeometry> gridGeometry,
const std::string& paramGroup =
"")
66 : ParentType(gridGeometry, paramGroup)
95 for (
const auto& element : elements(this->gridGeometry().gridView()))
97 unsigned int elementIdx = this->gridGeometry().elementMapper().index(element);
99 auto fvGeometry =
localView(this->gridGeometry());
100 fvGeometry.bindElement(element);
101 for (
auto&& scv : scvs(fvGeometry))
103 const int dofIdx = scv.dofIndex();
104 const auto& cellCenterPriVars = curSol[GridGeometry::cellCenterIdx()][dofIdx];
111 VolumeVariables volVars;
112 volVars.update(elemSol, asImp_(), element, scv);
118 for (
const auto& element : elements(this->gridGeometry().gridView()))
120 unsigned int elementIdx = this->gridGeometry().elementMapper().index(element);
122 for (
unsigned int dimIdx = 0; dimIdx < DimVector::dimension; ++dimIdx)
156 Implementation &asImp_()
157 {
return *
static_cast<Implementation *
>(
this); }
160 const Implementation &asImp_()
const
161 {
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
@ komega
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
std::vector< std::array< std::array< unsigned int, 2 >, dim > > neighborIdx_
Definition freeflow/rans/problem.hh:535
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
std::vector< GlobalPosition > cellCenter_
Definition freeflow/rans/problem.hh:536
RANSProblemBase(std::shared_ptr< const GridGeometry > gridGeometry, const std::string ¶mGroup="")
The constructor.
Definition freeflow/rans/problem.hh:88
std::vector< Scalar > storedTurbulentKineticEnergy_
Definition freeflow/rans/twoeq/komega/problem.hh:150
void updateDynamicWallProperties(const SolutionVector &curSol)
Update the dynamic (solution dependent) relations to the walls.
Definition freeflow/rans/twoeq/komega/problem.hh:91
bool useStoredEddyViscosity_
Definition freeflow/rans/twoeq/komega/problem.hh:152
std::vector< DimVector > storedTurbulentKineticEnergyGradient_
Definition freeflow/rans/twoeq/komega/problem.hh:151
void updateStaticWallProperties()
Correct size of the static (solution independent) wall variables.
Definition freeflow/rans/twoeq/komega/problem.hh:74
std::vector< DimVector > storedDissipationGradient_
Definition freeflow/rans/twoeq/komega/problem.hh:149
RANSProblemImpl(std::shared_ptr< const GridGeometry > gridGeometry, const std::string ¶mGroup="")
Definition freeflow/rans/twoeq/komega/problem.hh:65
std::vector< Scalar > storedDynamicEddyViscosity_
Definition freeflow/rans/twoeq/komega/problem.hh:147
std::vector< Scalar > storedDissipation_
Definition freeflow/rans/twoeq/komega/problem.hh:148
const Scalar betaOmega() const
Returns the constant.
Definition freeflow/rans/twoeq/komega/problem.hh:141
Declares all properties used in Dumux.
A single-phase, isothermal k-omega 2-Eq. model.
The local element solution class for staggered methods.
the turbulence-model-specfic RANS problem