24#ifndef DUMUX_NAVIERSTOKES_SCALAR_CONSERVATION_MODEL_VOLUME_VARIABLES_HH
25#define DUMUX_NAVIERSTOKES_SCALAR_CONSERVATION_MODEL_VOLUME_VARIABLES_HH
35template <
class Traits>
38 using Scalar =
typename Traits::PrimaryVariables::value_type;
44 using Indices =
typename Traits::ModelTraits::Indices;
51 static constexpr int numFluidPhases() {
return Traits::ModelTraits::numFluidPhases(); }
64 template<
class ElementSolution,
class Problem,
class Element,
class SubControlVolume>
65 void update(
const ElementSolution& elemSol,
66 const Problem& problem,
67 const Element& element,
68 const SubControlVolume& scv)
70 priVars_ = elemSol[scv.indexInElement()];
71 extrusionFactor_ = Deprecated::extrusionFactor(problem, element, scv, elemSol);
Volume variables for the single-phase Navier-Stokes model.
Definition: scalarvolumevariables.hh:37
typename Traits::FluidSystem FluidSystem
Export the underlying fluid system.
Definition: scalarvolumevariables.hh:46
static constexpr int numFluidComponents()
Return number of components considered by the model.
Definition: scalarvolumevariables.hh:53
typename Traits::FluidState FluidState
Export the fluid state type.
Definition: scalarvolumevariables.hh:48
typename Traits::PrimaryVariables PrimaryVariables
export the type used for the primary variables
Definition: scalarvolumevariables.hh:42
Scalar extrusionFactor_
Definition: scalarvolumevariables.hh:102
typename Traits::ModelTraits::Indices Indices
export the indices type
Definition: scalarvolumevariables.hh:44
PrimaryVariables priVars_
Definition: scalarvolumevariables.hh:101
Scalar extrusionFactor() const
Return how much the sub-control volume is extruded.
Definition: scalarvolumevariables.hh:83
const PrimaryVariables & priVars() const
Return the primary variable vector.
Definition: scalarvolumevariables.hh:97
Scalar priVar(const int pvIdx) const
Return a component of primary variable vector.
Definition: scalarvolumevariables.hh:91
static constexpr int numFluidPhases()
Return number of phases considered by the model.
Definition: scalarvolumevariables.hh:51
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:65