25#ifndef DUMUX_NAVIERSTOKES_MOMENTUM_VOLUME_VARIABLES_HH
26#define DUMUX_NAVIERSTOKES_MOMENTUM_VOLUME_VARIABLES_HH
35template <
class Traits>
38 using Scalar =
typename Traits::PrimaryVariables::value_type;
40 static_assert(Traits::PrimaryVariables::dimension == 1);
47 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)
65 priVars_ = elemSol[scv.indexInElement()];
66 extrusionFactor_ = problem.spatialParams().extrusionFactor(element, scv, elemSol);
Adaption of the non-isothermal two-phase two-component flow model to problems with CO2.
Definition: adapt.hh:29
Volume variables for the single-phase Navier-Stokes model.
Definition: freeflow/navierstokes/momentum/volumevariables.hh:37
PrimaryVariables priVars_
Definition: freeflow/navierstokes/momentum/volumevariables.hh:99
Scalar extrusionFactor_
Definition: freeflow/navierstokes/momentum/volumevariables.hh:100
typename Traits::PrimaryVariables PrimaryVariables
export the type used for the primary variables
Definition: freeflow/navierstokes/momentum/volumevariables.hh:44
Scalar velocity() const
Definition: freeflow/navierstokes/momentum/volumevariables.hh:81
Scalar extrusionFactor() const
Return how much the sub-control volume is extruded.
Definition: freeflow/navierstokes/momentum/volumevariables.hh:78
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:60
Scalar priVar(const int pvIdx) const
Return a component of primary variable vector.
Definition: freeflow/navierstokes/momentum/volumevariables.hh:89
const PrimaryVariables & priVars() const
Return the primary variable vector.
Definition: freeflow/navierstokes/momentum/volumevariables.hh:95
typename Traits::ModelTraits::Indices Indices
export the indices type
Definition: freeflow/navierstokes/momentum/volumevariables.hh:47