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