25#ifndef DUMUX_LOWREKEPSILON_VOLUME_VARIABLES_HH
26#define DUMUX_LOWREKEPSILON_VOLUME_VARIABLES_HH
37template <
class Traits,
class NSVolumeVariables>
43 using Scalar =
typename Traits::PrimaryVariables::value_type;
47 using Indices =
typename Traits::ModelTraits::Indices;
58 template<
class ElementSolution,
class Problem,
class Element,
class SubControlVolume>
59 void update(
const ElementSolution &elemSol,
60 const Problem &problem,
61 const Element &element,
62 const SubControlVolume& scv)
78 template<
class ElementSolution,
class Problem,
class Element,
class SubControlVolume>
80 const Problem &problem,
81 const Element &element,
82 const SubControlVolume& scv)
90 if (problem.useStoredEddyViscosity())
194 return 1.0 - 0.22 * exp(-1.0 * (
reT() *
reT() / 6.0 / 6.0));
The infrastructure to retrieve run-time parameters from Dune::ParameterTrees.
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 low-Re k-epsilons model.
Definition: freeflow/rans/twoeq/lowrekepsilon/volumevariables.hh:40
Scalar storedTurbulentKineticEnergy_
Definition: freeflow/rans/twoeq/lowrekepsilon/volumevariables.hh:209
const Scalar sigmaK() const
Returns the constant.
Definition: freeflow/rans/twoeq/lowrekepsilon/volumevariables.hh:157
Scalar turbulentKineticEnergy() const
Returns the turbulent kinetic energy .
Definition: freeflow/rans/twoeq/lowrekepsilon/volumevariables.hh:110
Scalar storedTurbulentKineticEnergy() const
Returns the turbulent kinetic energy .
Definition: freeflow/rans/twoeq/lowrekepsilon/volumevariables.hh:122
Scalar dissipationTilde() const
Returns an effective dissipation .
Definition: freeflow/rans/twoeq/lowrekepsilon/volumevariables.hh:116
Scalar stressTensorScalarProduct_
Definition: freeflow/rans/twoeq/lowrekepsilon/volumevariables.hh:211
typename Traits::ModelTraits::Indices Indices
export the indices type
Definition: freeflow/rans/twoeq/lowrekepsilon/volumevariables.hh:47
const Scalar fOne() const
Returns the value.
Definition: freeflow/rans/twoeq/lowrekepsilon/volumevariables.hh:187
const Scalar cTwoEpsilon() const
Returns the constant.
Definition: freeflow/rans/twoeq/lowrekepsilon/volumevariables.hh:169
const Scalar fTwo() const
Returns the value.
Definition: freeflow/rans/twoeq/lowrekepsilon/volumevariables.hh:191
Scalar turbulentKineticEnergy_
Definition: freeflow/rans/twoeq/lowrekepsilon/volumevariables.hh:207
Scalar stressTensorScalarProduct() const
Returns the scalar product of the stress tensor.
Definition: freeflow/rans/twoeq/lowrekepsilon/volumevariables.hh:134
const Scalar cMu() const
Returns the constant.
Definition: freeflow/rans/twoeq/lowrekepsilon/volumevariables.hh:153
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/lowrekepsilon/volumevariables.hh:59
Scalar storedDissipationTilde() const
Returns an effective dissipation .
Definition: freeflow/rans/twoeq/lowrekepsilon/volumevariables.hh:128
const Scalar reT() const
Returns the value.
Definition: freeflow/rans/twoeq/lowrekepsilon/volumevariables.hh:138
Scalar storedDissipationTilde_
Definition: freeflow/rans/twoeq/lowrekepsilon/volumevariables.hh:210
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/lowrekepsilon/volumevariables.hh:79
const Scalar eValue() const
Returns the value.
Definition: freeflow/rans/twoeq/lowrekepsilon/volumevariables.hh:198
Scalar calculateEddyViscosity()
Returns the dynamic eddy viscosity .
Definition: freeflow/rans/twoeq/lowrekepsilon/volumevariables.hh:101
Scalar dissipationTilde_
Definition: freeflow/rans/twoeq/lowrekepsilon/volumevariables.hh:208
const Scalar cOneEpsilon() const
Returns the constant.
Definition: freeflow/rans/twoeq/lowrekepsilon/volumevariables.hh:165
const Scalar dValue() const
Returns the value.
Definition: freeflow/rans/twoeq/lowrekepsilon/volumevariables.hh:173
const Scalar sigmaEpsilon() const
Returns the constant.
Definition: freeflow/rans/twoeq/lowrekepsilon/volumevariables.hh:161
const Scalar fMu() const
Returns the value.
Definition: freeflow/rans/twoeq/lowrekepsilon/volumevariables.hh:180
const Scalar reY() const
Returns the value.
Definition: freeflow/rans/twoeq/lowrekepsilon/volumevariables.hh:145
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:221
Scalar wallDistance() const
Return the wall distance of the control volume.
Definition: freeflow/rans/volumevariables.hh:150
Scalar yPlus() const
Return the dimensionless wall distance .
Definition: freeflow/rans/volumevariables.hh:168
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
Scalar setDynamicEddyViscosity_(Scalar value)
Sets the dynamic eddy viscosity .
Definition: freeflow/rans/volumevariables.hh:266
Scalar kinematicViscosity() const
Return the kinematic viscosity of the fluid within the control volume.
Definition: freeflow/rans/volumevariables.hh:202
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:210
unsigned int elementIdx() const
Return the element Idx of the control volume.
Definition: freeflow/rans/volumevariables.hh:120