12#ifndef DUMUX_NAVIERSTOKES_SCALAR_CONSERVATION_MODEL_VOLUME_VARIABLES_HH 
   13#define DUMUX_NAVIERSTOKES_SCALAR_CONSERVATION_MODEL_VOLUME_VARIABLES_HH 
   22template <
class Traits>
 
   25    using Scalar = 
typename Traits::PrimaryVariables::value_type;
 
   31    using Indices = 
typename Traits::ModelTraits::Indices;
 
   38    static constexpr int numFluidPhases() { 
return Traits::ModelTraits::numFluidPhases(); }
 
   51    template<
class ElementSolution, 
class Problem, 
class Element, 
class SubControlVolume>
 
   52    void update(
const ElementSolution& elemSol,
 
   53                const Problem& problem,
 
   54                const Element& element,
 
   55                const SubControlVolume& scv)
 
   57        priVars_ = elemSol[scv.indexInElement()];
 
   58        extrusionFactor_ = problem.spatialParams().extrusionFactor(element, scv, elemSol);
 
 
 
Volume variables for the single-phase Navier-Stokes model.
Definition scalarvolumevariables.hh:24
typename Traits::FluidSystem FluidSystem
Export the underlying fluid system.
Definition scalarvolumevariables.hh:33
static constexpr int numFluidComponents()
Return number of components considered by the model.
Definition scalarvolumevariables.hh:40
typename Traits::FluidState FluidState
Export the fluid state type.
Definition scalarvolumevariables.hh:35
typename Traits::PrimaryVariables PrimaryVariables
export the type used for the primary variables
Definition scalarvolumevariables.hh:29
Scalar extrusionFactor_
Definition scalarvolumevariables.hh:89
typename Traits::ModelTraits::Indices Indices
export the indices type
Definition scalarvolumevariables.hh:31
PrimaryVariables priVars_
Definition scalarvolumevariables.hh:88
Scalar extrusionFactor() const
Return how much the sub-control volume is extruded.
Definition scalarvolumevariables.hh:70
const PrimaryVariables & priVars() const
Return the primary variable vector.
Definition scalarvolumevariables.hh:84
Scalar priVar(const int pvIdx) const
Return a component of primary variable vector.
Definition scalarvolumevariables.hh:78
static constexpr int numFluidPhases()
Return number of phases considered by the model.
Definition scalarvolumevariables.hh:38
void update(const ElementSolution &elemSol, const Problem &problem, const Element &element, const SubControlVolume &scv)
Update all quantities for a given control volume.
Definition scalarvolumevariables.hh:52