26#ifndef DUMUX_POROUSMEDIUMFLOW_VOLUME_VARIABLES_HH
27#define DUMUX_POROUSMEDIUMFLOW_VOLUME_VARIABLES_HH
43 using Scalar =
typename Traits::PrimaryVariables::value_type;
49 using Indices =
typename Traits::ModelTraits::Indices;
52 static constexpr int numFluidPhases() {
return Traits::ModelTraits::numFluidPhases(); }
65 template<
class ElemSol,
class Problem,
class Element,
class Scv>
67 const Problem& problem,
68 const Element& element,
71 priVars_ = elemSol[scv.localDofIndex()];
72 extrusionFactor_ = Deprecated::extrusionFactor(problem, element, scv, elemSol);
87 {
return priVars_[pvIdx]; }
99 {
return extrusionFactor_; }
103 Scalar extrusionFactor_;
The isothermal base class.
Definition: porousmediumflow/volumevariables.hh:42
static constexpr int numFluidComponents()
Return number of components considered by the model.
Definition: porousmediumflow/volumevariables.hh:54
Scalar priVar(const int pvIdx) const
Returns a component of primary variable vector.
Definition: porousmediumflow/volumevariables.hh:86
Scalar extrusionFactor() const
Returns how much the sub-control volume is extruded.
Definition: porousmediumflow/volumevariables.hh:98
const PrimaryVariables & priVars() const
Returns the vector of primary variables.
Definition: porousmediumflow/volumevariables.hh:78
static constexpr int numFluidPhases()
Return number of phases considered by the model.
Definition: porousmediumflow/volumevariables.hh:52
void update(const ElemSol &elemSol, const Problem &problem, const Element &element, const Scv &scv)
Updates all quantities for a given control volume.
Definition: porousmediumflow/volumevariables.hh:66
typename Traits::PrimaryVariables PrimaryVariables
Export the type used for the primary variables.
Definition: porousmediumflow/volumevariables.hh:47
typename Traits::ModelTraits::Indices Indices
Export the type encapsulating primary variable indices.
Definition: porousmediumflow/volumevariables.hh:49