24#ifndef DUMUX_MATERIAL_FLUIDMATRIX_FRICTIONLAW_MANNING_HH
25#define DUMUX_MATERIAL_FLUIDMATRIX_FRICTIONLAW_MANNING_HH
29#include <dune/common/math.hh>
40template <
typename VolumeVariables>
43 using Scalar =
typename VolumeVariables::PrimaryVariables::value_type;
52 : gravity_(gravity), manningN_(manningN) {}
73 Scalar roughnessHeight = power(25.68/(1.0/manningN_), 6);
74 roughnessHeight = this->
limitRoughH(roughnessHeight, volVars.waterDepth());
76 const Scalar c = pow(volVars.waterDepth() + roughnessHeight, 1.0/6.0) * 1.0/(manningN_);
77 const Scalar uv = hypot(volVars.velocity(0), volVars.velocity(1));
79 const Scalar dimensionlessFactor = gravity_/(c*c);
80 shearStress[0] = dimensionlessFactor * volVars.velocity(0) * uv * volVars.density();
81 shearStress[1] = dimensionlessFactor * volVars.velocity(1) * uv * volVars.density();
Implementation of the abstract base class for friction laws.
Definition: frictionlaw.hh:42
virtual Dune::FieldVector< Scalar, 2 > shearStress(const VolumeVariables &volVars) const
Definition: frictionlaw.hh:59
Scalar limitRoughH(const Scalar roughnessHeight, const Scalar waterDepth) const
Limit the friction for small water depth.
Definition: frictionlaw.hh:91
Implementation of the friction law after Manning.
Definition: manning.hh:42
Dune::FieldVector< Scalar, 2 > bottomShearStress(const VolumeVariables &volVars) const final
Compute the bottom shear stress.
Definition: manning.hh:65
FrictionLawManning(const Scalar gravity, const Scalar manningN)
Constructor.
Definition: manning.hh:51