24#ifndef DUMUX_DAM_BREAK_SPATIAL_PARAMETERS_HH
25#define DUMUX_DAM_BREAK_SPATIAL_PARAMETERS_HH
36template<
class Gr
idGeometry,
class Scalar>
39 DamBreakSpatialParams<GridGeometry, Scalar>>
43 using GridView =
typename GridGeometry::GridView;
44 using FVElementGeometry =
typename GridGeometry::LocalView;
45 using SubControlVolume =
typename FVElementGeometry::SubControlVolume;
46 using Element =
typename GridView::template Codim<0>::Entity;
47 using GlobalPosition =
typename Element::Geometry::GlobalCoordinate;
66 Scalar
gravity(
const GlobalPosition& globalPos)
const
78 const SubControlVolume& scv)
const
85 static constexpr Scalar gravity_ = 9.81;
The base class for spatial parameters of multi-phase problems using a fully implicit discretization m...
make the local view function available whenever we use the grid geometry
Definition adapt.hh:29
FVSpatialParams(std::shared_ptr< const GridGeometry > gridGeometry)
Definition fv.hh:67
const GridGeometry & gridGeometry() const
Definition fv1p.hh:334
Scalar bedSurface(const Element &element, const SubControlVolume &scv) const
Define the bed surface.
Definition freeflow/shallowwater/dambreak/spatialparams.hh:77
Scalar porosityAtPos(const GlobalPosition &globalPos) const
Define the porosity in [-].
Definition freeflow/shallowwater/dambreak/spatialparams.hh:58
Scalar gravity(const GlobalPosition &globalPos) const
Define the gravitation.
Definition freeflow/shallowwater/dambreak/spatialparams.hh:66
DamBreakSpatialParams(std::shared_ptr< const GridGeometry > gridGeometry)
Definition freeflow/shallowwater/dambreak/spatialparams.hh:50