25#ifndef DUMUX_NAVIERSTOKES_MOMENTUM_VOLUME_VARIABLES_HH
26#define DUMUX_NAVIERSTOKES_MOMENTUM_VOLUME_VARIABLES_HH
36template <
class Traits>
39 using Scalar =
typename Traits::PrimaryVariables::value_type;
41 static_assert(Traits::PrimaryVariables::dimension == 1);
48 using Indices =
typename Traits::ModelTraits::Indices;
60 template<
class ElementSolution,
class Problem,
class Element,
class SubControlVolume>
61 void update(
const ElementSolution& elemSol,
62 const Problem& problem,
63 const Element& element,
64 const SubControlVolume& scv)
66 priVars_ = elemSol[scv.indexInElement()];
67 extrusionFactor_ = Deprecated::extrusionFactor(problem, element, scv, elemSol);
Volume variables for the single-phase Navier-Stokes model.
Definition: freeflow/navierstokes/momentum/volumevariables.hh:38
PrimaryVariables priVars_
Definition: freeflow/navierstokes/momentum/volumevariables.hh:100
Scalar extrusionFactor_
Definition: freeflow/navierstokes/momentum/volumevariables.hh:101
typename Traits::PrimaryVariables PrimaryVariables
export the type used for the primary variables
Definition: freeflow/navierstokes/momentum/volumevariables.hh:45
Scalar velocity() const
Definition: freeflow/navierstokes/momentum/volumevariables.hh:82
Scalar extrusionFactor() const
Return how much the sub-control volume is extruded.
Definition: freeflow/navierstokes/momentum/volumevariables.hh:79
void update(const ElementSolution &elemSol, const Problem &problem, const Element &element, const SubControlVolume &scv)
Update all quantities for a given control volume.
Definition: freeflow/navierstokes/momentum/volumevariables.hh:61
Scalar priVar(const int pvIdx) const
Return a component of primary variable vector.
Definition: freeflow/navierstokes/momentum/volumevariables.hh:90
const PrimaryVariables & priVars() const
Return the primary variable vector.
Definition: freeflow/navierstokes/momentum/volumevariables.hh:96
typename Traits::ModelTraits::Indices Indices
export the indices type
Definition: freeflow/navierstokes/momentum/volumevariables.hh:48