24#ifndef DUMUX_KEPSILON_VOLUME_VARIABLES_HH
25#define DUMUX_KEPSILON_VOLUME_VARIABLES_HH
36template <
class Traits,
class NSVolumeVariables>
42 using Scalar =
typename Traits::PrimaryVariables::value_type;
57 template<
class ElementSolution,
class Problem,
class Element,
class SubControlVolume>
58 void update(
const ElementSolution &elemSol,
59 const Problem &problem,
60 const Element &element,
61 const SubControlVolume& scv)
77 template<
class ElementSolution,
class Problem,
class Element,
class SubControlVolume>
79 const Problem &problem,
80 const Element &element,
81 const SubControlVolume& scv)
96 if (problem.useStoredEddyViscosity_)
The infrastructure to retrieve run-time parameters from Dune::ParameterTrees.
make the local view function available whenever we use the grid geometry
Definition: adapt.hh:29
Property tag Indices
Definition: porousmediumflow/sequential/properties.hh:59
std::string density(int phaseIdx) noexcept
I/O name of density for multiphase systems.
Definition: name.hh:65
Volume variables for the isothermal single-phase k-epsilon model.
Definition: freeflow/rans/twoeq/kepsilon/volumevariables.hh:39
Scalar stressTensorScalarProduct() const
Returns the scalar product of the stress tensor.
Definition: freeflow/rans/twoeq/kepsilon/volumevariables.hh:152
bool inNearWallRegion_
Definition: freeflow/rans/twoeq/kepsilon/volumevariables.hh:214
bool isMatchingPoint() const
Returns if an element is the matching point.
Definition: freeflow/rans/twoeq/kepsilon/volumevariables.hh:168
typename Traits::ModelTraits::Indices Indices
export the indices type
Definition: freeflow/rans/twoeq/kepsilon/volumevariables.hh:46
const Scalar sigmaK() const
Returns the constant.
Definition: freeflow/rans/twoeq/kepsilon/volumevariables.hh:178
bool isMatchingPoint_
Definition: freeflow/rans/twoeq/kepsilon/volumevariables.hh:215
Scalar storedDissipation() const
Returns an effective dissipation .
Definition: freeflow/rans/twoeq/kepsilon/volumevariables.hh:144
Scalar storedTurbulentKineticEnergy_
Definition: freeflow/rans/twoeq/kepsilon/volumevariables.hh:208
Scalar turbulentKineticEnergy_
Definition: freeflow/rans/twoeq/kepsilon/volumevariables.hh:206
Scalar storedTurbulentKineticEnergy() const
Returns the turbulent kinetic energy .
Definition: freeflow/rans/twoeq/kepsilon/volumevariables.hh:136
bool inNearWallRegion() const
Definition: freeflow/rans/twoeq/kepsilon/volumevariables.hh:160
const Scalar sigmaEpsilon() const
Returns the constant.
Definition: freeflow/rans/twoeq/kepsilon/volumevariables.hh:182
void updateRANSProperties(const ElementSolution &elemSol, const Problem &problem, const Element &element, const SubControlVolume &scv)
Update all turbulent quantities for a given control volume.
Definition: freeflow/rans/twoeq/kepsilon/volumevariables.hh:78
Scalar storedDissipation_
Definition: freeflow/rans/twoeq/kepsilon/volumevariables.hh:209
Scalar uPlusNominal_
Definition: freeflow/rans/twoeq/kepsilon/volumevariables.hh:212
Scalar uPlusNominal() const
Return the nominal dimensionless velocity .
Definition: freeflow/rans/twoeq/kepsilon/volumevariables.hh:202
Scalar stressTensorScalarProduct_
Definition: freeflow/rans/twoeq/kepsilon/volumevariables.hh:210
Scalar yPlusNominal_
Definition: freeflow/rans/twoeq/kepsilon/volumevariables.hh:211
const Scalar cOneEpsilon() const
Returns the constant.
Definition: freeflow/rans/twoeq/kepsilon/volumevariables.hh:186
const Scalar cTwoEpsilon() const
Returns the constant.
Definition: freeflow/rans/twoeq/kepsilon/volumevariables.hh:190
Scalar yPlusNominal() const
Return the nominal dimensionless wall distance .
Definition: freeflow/rans/twoeq/kepsilon/volumevariables.hh:196
Scalar cMu_
Definition: freeflow/rans/twoeq/kepsilon/volumevariables.hh:213
const Scalar cMu() const
Returns the constant.
Definition: freeflow/rans/twoeq/kepsilon/volumevariables.hh:174
Scalar turbulentKineticEnergy() const
Returns the turbulent kinetic energy .
Definition: freeflow/rans/twoeq/kepsilon/volumevariables.hh:120
Scalar dissipation() const
Returns an effective dissipation .
Definition: freeflow/rans/twoeq/kepsilon/volumevariables.hh:128
Scalar calculateEddyViscosity()
Returns the dynamic eddy viscosity .
Definition: freeflow/rans/twoeq/kepsilon/volumevariables.hh:111
void update(const ElementSolution &elemSol, const Problem &problem, const Element &element, const SubControlVolume &scv)
Update all quantities for a given control volume.
Definition: freeflow/rans/twoeq/kepsilon/volumevariables.hh:58
Scalar dissipation_
Definition: freeflow/rans/twoeq/kepsilon/volumevariables.hh:207
Volume variables for the isothermal single-phase Reynolds-Averaged Navier-Stokes models.
Definition: freeflow/rans/volumevariables.hh:42
void calculateEddyThermalConductivity(const Problem &problem)
Calculates the eddy thermal conductivity based on the kinematic eddy viscosity and the turbulent Pra...
Definition: freeflow/rans/volumevariables.hh:209
Scalar wallDistance() const
Return the wall distance of the control volume.
Definition: freeflow/rans/volumevariables.hh:138
void updateNavierStokesVolVars(const ElementSolution &elemSol, const Problem &problem, const Element &element, const SubControlVolume &scv)
Update all quantities for a given control volume.
Definition: freeflow/rans/volumevariables.hh:65
DimVector velocity() const
Return the velocity vector at the control volume center.
Definition: freeflow/rans/volumevariables.hh:120
Scalar setDynamicEddyViscosity_(Scalar value)
Sets the dynamic eddy viscosity .
Definition: freeflow/rans/volumevariables.hh:259
void updateRANSProperties(const ElementSolution &elemSol, const Problem &problem, const Element &element, const SubControlVolume &scv)
Update all turbulent quantities for a given control volume.
Definition: freeflow/rans/volumevariables.hh:85
void calculateEddyDiffusivity(const Problem &problem)
Calculates the eddy diffusivity based on the kinematic eddy viscosity and the turbulent Schmidt numb...
Definition: freeflow/rans/volumevariables.hh:198
unsigned int elementIdx() const
Return the element Idx of the control volume.
Definition: freeflow/rans/volumevariables.hh:114