24#ifndef DUMUX_MATERIAL_FLUIDMATRIX_FRICTIONLAW_MANNING_HH
25#define DUMUX_MATERIAL_FLUIDMATRIX_FRICTIONLAW_MANNING_HH
39template <
typename VolumeVariables>
42 using Scalar =
typename VolumeVariables::PrimaryVariables::value_type;
51 : gravity_(gravity), manningN_(manningN) {}
64 Dune::FieldVector<Scalar, 2>
shearStress(
const VolumeVariables& volVars)
const final
71 Scalar roughnessHeight = pow(25.68/(1.0/manningN_),6.0);
72 roughnessHeight = this->
limitRoughH(roughnessHeight, volVars.waterDepth());
73 const Scalar c = pow((volVars.waterDepth() + roughnessHeight),1.0/6.0) * 1.0/(manningN_);
74 const Scalar uv = hypot(volVars.velocity(0),volVars.velocity(1));
76 shearStress[0] = -gravity_/(c*c) * volVars.velocity(0) * uv;
77 shearStress[1] = -gravity_/(c*c) * volVars.velocity(1) * uv;
make the local view function available whenever we use the grid geometry
Definition: adapt.hh:29
Implementation of the abstract base class for friction laws.
Definition: frictionlaw.hh:42
Scalar limitRoughH(const Scalar roughnessHeight, const Scalar waterDepth) const
Limit the friction for small water depth.
Definition: frictionlaw.hh:88
Implementation of the friction law after Manning.
Definition: manning.hh:41
Dune::FieldVector< Scalar, 2 > shearStress(const VolumeVariables &volVars) const final
Compute the shear stress.
Definition: manning.hh:64
FrictionLawManning(const Scalar gravity, const Scalar manningN)
Constructor.
Definition: manning.hh:50