24#ifndef DUMUX_ZEROEQ_VOLUME_VARIABLES_HH
25#define DUMUX_ZEROEQ_VOLUME_VARIABLES_HH
29#include <dune/common/exceptions.hh>
38template <
class Traits,
class NSVolumeVariables>
44 using Scalar =
typename Traits::PrimaryVariables::value_type;
48 using Indices =
typename Traits::ModelTraits::Indices;
59 template<
class ElementSolution,
class Problem,
class Element,
class SubControlVolume>
60 void update(
const ElementSolution &elemSol,
61 const Problem &problem,
62 const Element &element,
63 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)
100 template<
class ElementSolution,
class Problem,
class Element,
class SubControlVolume>
102 const Problem &problem,
103 const Element &element,
104 const SubControlVolume& scv,
105 const std::string modelName)
115 if (modelName.compare(
"none") == 0)
119 else if (modelName.compare(
"prandtl") == 0)
124 else if (modelName.compare(
"vanDriest") == 0)
131 else if (modelName.compare(
"baldwinLomax") == 0)
137 DUNE_THROW(Dune::NotImplemented,
138 "The eddy viscosity model \"" << modelName <<
"\" is not implemented.");
Adaption of the non-isothermal two-phase two-component flow model to problems with CO2.
Definition: adapt.hh:29
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 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
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 uStar() const
Return the wall friction velocity .
Definition: freeflow/rans/volumevariables.hh:162
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
Scalar kinematicEddyViscosity() const
Return the kinematic eddy viscosity of the flow within the control volume.
Definition: freeflow/rans/volumevariables.hh:195
unsigned int elementIdx() const
Return the element Idx of the control volume.
Definition: freeflow/rans/volumevariables.hh:120
DimMatrix velocityGradients() const
Return the velocity gradients at the control volume center.
Definition: freeflow/rans/volumevariables.hh:144
Volume variables for the single-phase 0-Eq. model.
Definition: freeflow/rans/zeroeq/volumevariables.hh:41
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/zeroeq/volumevariables.hh:60
Scalar wallDistanceRough() const
Return the wall distance including an additional roughness length.
Definition: freeflow/rans/zeroeq/volumevariables.hh:147
typename Traits::ModelTraits::Indices Indices
export the indices type
Definition: freeflow/rans/zeroeq/volumevariables.hh:48
Scalar yPlusRough() const
Return the dimensionless wall distance including an additional roughness length.
Definition: freeflow/rans/zeroeq/volumevariables.hh:153
Scalar additionalRoughnessLength_
Definition: freeflow/rans/zeroeq/volumevariables.hh:157
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/zeroeq/volumevariables.hh:78
Scalar calculateEddyViscosity(const ElementSolution &elemSol, const Problem &problem, const Element &element, const SubControlVolume &scv, const std::string modelName)
Calculate and set the dynamic eddy viscosity.
Definition: freeflow/rans/zeroeq/volumevariables.hh:101
Scalar yPlusRough_
Definition: freeflow/rans/zeroeq/volumevariables.hh:158