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