13#ifndef DUMUX_MATERIAL_FLUIDMATRIX_FRICTIONLAW_MANNING_HH
14#define DUMUX_MATERIAL_FLUIDMATRIX_FRICTIONLAW_MANNING_HH
18#include <dune/common/math.hh>
50template <
typename VolumeVariables>
53 using Scalar =
typename VolumeVariables::PrimaryVariables::value_type;
62 FrictionLawManning(
const Scalar gravity,
const Scalar manningN,
const Scalar roughnessHeight=0.0)
63 : gravity_(gravity), manningN_(manningN), roughnessHeight_(roughnessHeight) {}
82 Dune::FieldVector<Scalar, 2> shearStress(0.0);
84 const Scalar artificialWaterDepth = this->
limitRoughH(roughnessHeight_, volVars.waterDepth());
86 const Scalar c = pow(volVars.waterDepth() + artificialWaterDepth, 1.0/6.0) * 1.0/(manningN_);
87 const Scalar uv = hypot(volVars.velocity(0), volVars.velocity(1));
88 const Scalar dimensionlessFactor = gravity_/(c*c);
90 shearStress[0] = dimensionlessFactor * volVars.velocity(0) * uv * volVars.density();
91 shearStress[1] = dimensionlessFactor * volVars.velocity(1) * uv * volVars.density();
99 Scalar roughnessHeight_;
Implementation of the abstract base class for friction laws.
Definition: frictionlaw.hh:37
Scalar limitRoughH(const Scalar roughnessHeight, const Scalar waterDepth, const Scalar eps=1.0e-12) const
Limit the friction for small water depth.
Definition: frictionlaw.hh:90
Implementation of the friction law after Manning.
Definition: manning.hh:52
FrictionLawManning(const Scalar gravity, const Scalar manningN, const Scalar roughnessHeight=0.0)
Constructor.
Definition: manning.hh:62
Dune::FieldVector< Scalar, 2 > bottomShearStress(const VolumeVariables &volVars) const final
Compute the bottom shear stress.
Definition: manning.hh:76
Implementation of the abstract base class for friction laws.