12#ifndef DUMUX_COMMON_BASIC_VOLUME_VARIABLES_HH 
   13#define DUMUX_COMMON_BASIC_VOLUME_VARIABLES_HH 
   19template <
class Traits>
 
   22    using Scalar = 
typename Traits::PrimaryVariables::value_type;
 
   30    template<
class ElementSolution, 
class Problem, 
class Element, 
class SubControlVolume>
 
   31    void update(
const ElementSolution& elemSol,
 
   32                const Problem& problem,
 
   33                const Element& element,
 
   34                const SubControlVolume& scv)
 
   36        priVars_ = elemSol[scv.indexInElement()];
 
 
   40    { 
return priVars_[pvIdx]; }
 
 
   50    PrimaryVariables priVars_;
 
 
Definition common/volumevariables.hh:21
const PrimaryVariables & priVars() const
Definition common/volumevariables.hh:42
Scalar priVar(const int pvIdx) const
Definition common/volumevariables.hh:39
Scalar extrusionFactor() const
Definition common/volumevariables.hh:46
typename Traits::PrimaryVariables PrimaryVariables
export the type used for the primary variables
Definition common/volumevariables.hh:25
void update(const ElementSolution &elemSol, const Problem &problem, const Element &element, const SubControlVolume &scv)
Update all quantities for a given control volume.
Definition common/volumevariables.hh:31