24#ifndef DUMUX_NAVIERSTOKES_SCALAR_CONSERVATION_MODEL_VOLUME_VARIABLES_HH
25#define DUMUX_NAVIERSTOKES_SCALAR_CONSERVATION_MODEL_VOLUME_VARIABLES_HH
34template <
class Traits>
37 using Scalar =
typename Traits::PrimaryVariables::value_type;
43 using Indices =
typename Traits::ModelTraits::Indices;
50 static constexpr int numFluidPhases() {
return Traits::ModelTraits::numFluidPhases(); }
63 template<
class ElementSolution,
class Problem,
class Element,
class SubControlVolume>
64 void update(
const ElementSolution& elemSol,
65 const Problem& problem,
66 const Element& element,
67 const SubControlVolume& scv)
69 priVars_ = elemSol[scv.indexInElement()];
70 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: scalarvolumevariables.hh:36
typename Traits::FluidSystem FluidSystem
Export the underlying fluid system.
Definition: scalarvolumevariables.hh:45
static constexpr int numFluidComponents()
Return number of components considered by the model.
Definition: scalarvolumevariables.hh:52
typename Traits::FluidState FluidState
Export the fluid state type.
Definition: scalarvolumevariables.hh:47
typename Traits::PrimaryVariables PrimaryVariables
export the type used for the primary variables
Definition: scalarvolumevariables.hh:41
Scalar extrusionFactor_
Definition: scalarvolumevariables.hh:101
typename Traits::ModelTraits::Indices Indices
export the indices type
Definition: scalarvolumevariables.hh:43
PrimaryVariables priVars_
Definition: scalarvolumevariables.hh:100
Scalar extrusionFactor() const
Return how much the sub-control volume is extruded.
Definition: scalarvolumevariables.hh:82
const PrimaryVariables & priVars() const
Return the primary variable vector.
Definition: scalarvolumevariables.hh:96
Scalar priVar(const int pvIdx) const
Return a component of primary variable vector.
Definition: scalarvolumevariables.hh:90
static constexpr int numFluidPhases()
Return number of phases considered by the model.
Definition: scalarvolumevariables.hh:50
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:64