25#ifndef DUMUX_NAVIERSTOKES_MOMENTUM_DIAMOND_VOLUME_VARIABLES_HH
26#define DUMUX_NAVIERSTOKES_MOMENTUM_DIAMOND_VOLUME_VARIABLES_HH
35template <
class Traits>
38 using Scalar =
typename Traits::PrimaryVariables::value_type;
40 static_assert(Traits::PrimaryVariables::dimension == Traits::ModelTraits::dim());
47 using Indices =
typename Traits::ModelTraits::Indices;
58 template<
class ElementSolution,
class Problem,
class Element,
class SubControlVolume>
59 void update(
const ElementSolution& elemSol,
60 const Problem& problem,
61 const Element& element,
62 const SubControlVolume& scv)
64 priVars_ = elemSol[scv.indexInElement()];
65 extrusionFactor_ = problem.spatialParams().extrusionFactor(element, scv, elemSol);
78 {
return extrusionFactor_; }
84 {
return priVars_[dirIdx]; }
91 {
return priVars_[pvIdx]; }
101 Scalar extrusionFactor_;
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: freeflow/navierstokes/momentum/diamond/volumevariables.hh:37
typename Traits::PrimaryVariables PrimaryVariables
export the type used for the primary variables
Definition: freeflow/navierstokes/momentum/diamond/volumevariables.hh:44
const PrimaryVariables & priVars() const
Return the primary variable vector.
Definition: freeflow/navierstokes/momentum/diamond/volumevariables.hh:96
Scalar extrusionFactor() const
Return how much the sub-control volume is extruded.
Definition: freeflow/navierstokes/momentum/diamond/volumevariables.hh:77
void update(const ElementSolution &elemSol, const Problem &problem, const Element &element, const SubControlVolume &scv)
Update all quantities for a given control volume.
Definition: freeflow/navierstokes/momentum/diamond/volumevariables.hh:59
PrimaryVariables velocity() const
Definition: freeflow/navierstokes/momentum/diamond/volumevariables.hh:80
typename Traits::ModelTraits::Indices Indices
export the indices type
Definition: freeflow/navierstokes/momentum/diamond/volumevariables.hh:47
Scalar velocity(const int dirIdx) const
Definition: freeflow/navierstokes/momentum/diamond/volumevariables.hh:83
Scalar priVar(const int pvIdx) const
Return a component of primary variable vector.
Definition: freeflow/navierstokes/momentum/diamond/volumevariables.hh:90