13#ifndef DUMUX_MATERIAL_FLUIDMATRIX_FRICTIONLAW_NIKURADSE_HH
14#define DUMUX_MATERIAL_FLUIDMATRIX_FRICTIONLAW_NIKURADSE_HH
23#include <dune/common/math.hh>
56template <
typename VolumeVariables>
59 using Scalar =
typename VolumeVariables::PrimaryVariables::value_type;
68 : ks_(ks), roughnessHeight_(roughnessHeight) {}
87 Dune::FieldVector<Scalar, 2> shearStress(0.0);
89 const Scalar artificialWaterDepth = this->
limitRoughH(roughnessHeight_, volVars.waterDepth());
90 const Scalar karmanConstant = 0.41;
91 const Scalar dimensionlessFactor = power(karmanConstant, 2)/power(log((12*(volVars.waterDepth() + artificialWaterDepth))/ks_), 2);
92 const Scalar uv = hypot(volVars.velocity(0),volVars.velocity(1));
94 shearStress[0] = dimensionlessFactor * volVars.velocity(0) * uv * volVars.density();
95 shearStress[1] = dimensionlessFactor * volVars.velocity(1) * uv * volVars.density();
102 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 Nikuradse.
Definition: nikuradse.hh:58
Dune::FieldVector< Scalar, 2 > bottomShearStress(const VolumeVariables &volVars) const final
Compute the bottom shear stress.
Definition: nikuradse.hh:81
FrictionLawNikuradse(const Scalar ks, const Scalar roughnessHeight=0.0)
Constructor.
Definition: nikuradse.hh:67
Implementation of the abstract base class for friction laws.