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;
44 template<
class ElemSol,
class Problem,
class Element,
class Scv>
46 const Problem &problem,
47 const Element &element,
51 priVars_ = elemSol[scv.localDofIndex()];
52 bedSurface_ = problem.spatialParams().bedSurface(element,scv);
72 return priVars_[Indices::waterdepthIdx];
101 static_assert(!FluidSystem::isCompressible(0),
102 "The shallow water model assumes incompressible fluids"
static unsigned int directionIndex(Vector &&vector)
Returns the dirction index of the facet (0 = x, 1 = y, 2 = z)
Definition: staggeredgeometryhelper.hh:133
std::string density(int phaseIdx) noexcept
I/O name of density for multiphase systems.
Definition: name.hh:65
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:59
Scalar waterDepth() const
Return water detph h inside the sub-control volume.
Definition: freeflow/shallowwater/volumevariables.hh:70
typename Traits::FluidSystem FluidSystem
export the underlying fluid system
Definition: freeflow/shallowwater/volumevariables.hh:42
const PrimaryVariables & priVars() const
Return the vector of primary variables.
Definition: freeflow/shallowwater/volumevariables.hh:63
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:45
Scalar density(int phaseIdx=0) const
Return the fluid density.
Definition: freeflow/shallowwater/volumevariables.hh:99
Scalar velocity(int directionIndex) const
Return water velocity component inside the sub-control volume.
Definition: freeflow/shallowwater/volumevariables.hh:80
Scalar bedSurface() const
Return the bed surface inside the sub-control volume.
Definition: freeflow/shallowwater/volumevariables.hh:90