13#ifndef DUMUX_NAVIERSTOKES_MOMENTUM_VOLUME_VARIABLES_HH
14#define DUMUX_NAVIERSTOKES_MOMENTUM_VOLUME_VARIABLES_HH
23template <
class Traits>
26 using Scalar =
typename Traits::PrimaryVariables::value_type;
28 static_assert(Traits::PrimaryVariables::dimension == 1);
35 using Indices =
typename Traits::ModelTraits::Indices;
47 template<
class ElementSolution,
class Problem,
class Element,
class SubControlVolume>
48 void update(
const ElementSolution& elemSol,
49 const Problem& problem,
50 const Element& element,
51 const SubControlVolume& scv)
53 priVars_ = elemSol[scv.indexInElement()];
54 extrusionFactor_ = problem.spatialParams().extrusionFactor(element, scv, elemSol);
Volume variables for the single-phase Navier-Stokes model.
Definition: freeflow/navierstokes/momentum/volumevariables.hh:25
PrimaryVariables priVars_
Definition: freeflow/navierstokes/momentum/volumevariables.hh:87
Scalar extrusionFactor_
Definition: freeflow/navierstokes/momentum/volumevariables.hh:88
typename Traits::PrimaryVariables PrimaryVariables
export the type used for the primary variables
Definition: freeflow/navierstokes/momentum/volumevariables.hh:32
Scalar velocity() const
Definition: freeflow/navierstokes/momentum/volumevariables.hh:69
Scalar extrusionFactor() const
Return how much the sub-control volume is extruded.
Definition: freeflow/navierstokes/momentum/volumevariables.hh:66
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:48
Scalar priVar(const int pvIdx) const
Return a component of primary variable vector.
Definition: freeflow/navierstokes/momentum/volumevariables.hh:77
const PrimaryVariables & priVars() const
Return the primary variable vector.
Definition: freeflow/navierstokes/momentum/volumevariables.hh:83
typename Traits::ModelTraits::Indices Indices
export the indices type
Definition: freeflow/navierstokes/momentum/volumevariables.hh:35