12#ifndef DUMUX_MATERIAL_FLUIDMATRIX_FRICTIONLAW_NIKURADSE_HH
13#define DUMUX_MATERIAL_FLUIDMATRIX_FRICTIONLAW_NIKURADSE_HH
17#include <dune/common/math.hh>
29template <
typename VolumeVariables>
32 using Scalar =
typename VolumeVariables::PrimaryVariables::value_type;
41 : ks_(ks), roughnessHeight_(roughnessHeight) {}
60 Dune::FieldVector<Scalar, 2> shearStress(0.0);
62 const Scalar artificialWaterDepth = this->
limitRoughH(roughnessHeight_, volVars.waterDepth());
63 const Scalar karmanConstant = 0.41;
64 const Scalar dimensionlessFactor = power(karmanConstant, 2)/power(log((12*(volVars.waterDepth() + artificialWaterDepth))/ks_), 2);
65 const Scalar uv = hypot(volVars.velocity(0),volVars.velocity(1));
67 shearStress[0] = dimensionlessFactor * volVars.velocity(0) * uv * volVars.density();
68 shearStress[1] = dimensionlessFactor * volVars.velocity(1) * uv * volVars.density();
75 Scalar roughnessHeight_;
Implementation of the abstract base class for friction laws.
Definition: frictionlaw.hh:31
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:84
Implementation of the friction law after Nikuradse.
Definition: nikuradse.hh:31
Dune::FieldVector< Scalar, 2 > bottomShearStress(const VolumeVariables &volVars) const final
Compute the bottom shear stress.
Definition: nikuradse.hh:54
FrictionLawNikuradse(const Scalar ks, const Scalar roughnessHeight=0.0)
Constructor.
Definition: nikuradse.hh:40