24#ifndef DUMUX_FREEFLOW_SHALLOW_WATER_VOLUME_VARIABLES_HH
25#define DUMUX_FREEFLOW_SHALLOW_WATER_VOLUME_VARIABLES_HH
33template <
class Traits>
36 using Indices =
typename Traits::ModelTraits::Indices;
37 using Scalar =
typename Traits::PrimaryVariables::value_type;
42 template<
class ElemSol,
class Problem,
class Element,
class Scv>
44 const Problem &problem,
45 const Element &element,
49 priVars_ = elemSol[scv.localDofIndex()];
50 bedSurface_ = problem.spatialParams().bedSurface(element,scv);
66 return priVars_[Indices::waterdepthIdx];
static unsigned int directionIndex(Vector &&vector)
Returns the dirction index of the facet (0 = x, 1 = y, 2 = z)
Definition: staggeredgeometryhelper.hh:133
Volume variables for the shallow water equations model.
Definition: freeflow/shallowwater/volumevariables.hh:35
Scalar extrusionFactor() const
Return the extrusion factor (dummy variable).
Definition: freeflow/shallowwater/volumevariables.hh:57
Scalar waterDepth() const
Return water detph h inside the sub-control volume.
Definition: freeflow/shallowwater/volumevariables.hh:64
typename Traits::PrimaryVariables PrimaryVariables
Definition: freeflow/shallowwater/volumevariables.hh:40
void update(const ElemSol &elemSol, const Problem &problem, const Element &element, const Scv &scv)
Definition: freeflow/shallowwater/volumevariables.hh:43
Scalar velocity(int directionIndex) const
Return water velocity component inside the sub-control volume.
Definition: freeflow/shallowwater/volumevariables.hh:74
Scalar bedSurface() const
Return the bed surface inside the sub-control volume.
Definition: freeflow/shallowwater/volumevariables.hh:84