12#ifndef DUMUX_NAVIERSTOKES_MOMENTUM_CVFE_VARIABLES_HH
13#define DUMUX_NAVIERSTOKES_MOMENTUM_CVFE_VARIABLES_HH
15#include <dumux/common/concepts/ipdata_.hh>
23template <
class Traits>
26 using Scalar =
typename Traits::PrimaryVariables::value_type;
28 static_assert(Traits::PrimaryVariables::dimension == Traits::ModelTraits::dim());
35 using Indices =
typename Traits::ModelTraits::Indices;
46 template<
class ElementSolution,
class Problem,
class FVElementGeometry, Concept::LocalDofIpData IpData>
47 void update(
const ElementSolution& elemSol,
48 const Problem& problem,
49 const FVElementGeometry& fvGeometry,
52 priVars_ = elemSol[ipData.localDofIndex()];
53 extrusionFactor_ = problem.spatialParams().extrusionFactor(fvGeometry, ipData, elemSol);
66 {
return extrusionFactor_; }
72 {
return priVars_[dirIdx]; }
79 {
return priVars_[pvIdx]; }
89 Scalar extrusionFactor_;
Variables for the single-phase Navier-Stokes model.
Definition: freeflow/navierstokes/momentum/cvfe/variables.hh:25
typename Traits::ModelTraits::Indices Indices
export the indices type
Definition: freeflow/navierstokes/momentum/cvfe/variables.hh:35
Scalar priVar(const int pvIdx) const
Return a component of primary variable vector.
Definition: freeflow/navierstokes/momentum/cvfe/variables.hh:78
void update(const ElementSolution &elemSol, const Problem &problem, const FVElementGeometry &fvGeometry, const IpData &ipData)
Update all quantities for a local dof.
Definition: freeflow/navierstokes/momentum/cvfe/variables.hh:47
const PrimaryVariables & priVars() const
Return the primary variable vector.
Definition: freeflow/navierstokes/momentum/cvfe/variables.hh:84
PrimaryVariables velocity() const
Definition: freeflow/navierstokes/momentum/cvfe/variables.hh:68
typename Traits::PrimaryVariables PrimaryVariables
export the type used for the primary variables
Definition: freeflow/navierstokes/momentum/cvfe/variables.hh:32
Scalar extrusionFactor() const
Return how much the localDof is extruded.
Definition: freeflow/navierstokes/momentum/cvfe/variables.hh:65
Scalar velocity(const int dirIdx) const
Definition: freeflow/navierstokes/momentum/cvfe/variables.hh:71