24#ifndef DUMUX_MATERIAL_FLUIDMATRIX_FRICTIONLAW_NIKURADSE_HH
25#define DUMUX_MATERIAL_FLUIDMATRIX_FRICTIONLAW_NIKURADSE_HH
29#include <dune/common/math.hh>
40template <
typename VolumeVariables>
43 using Scalar =
typename VolumeVariables::PrimaryVariables::value_type;
70 Dune::FieldVector<Scalar, 2> shearStress(0.0);
72 Scalar roughnessHeight = ks_;
73 roughnessHeight = this->
limitRoughH(roughnessHeight, volVars.waterDepth());
74 const Scalar karmanConstant = 0.41;
75 const Scalar dimensionlessFactor = power(karmanConstant, 2)/power(log((12*(volVars.waterDepth() + roughnessHeight))/ks_), 2);
76 const Scalar uv = hypot(volVars.velocity(0),volVars.velocity(1));
78 shearStress[0] = dimensionlessFactor * volVars.velocity(0) * uv * volVars.density();
79 shearStress[1] = dimensionlessFactor * volVars.velocity(1) * uv * volVars.density();
Adaption of the non-isothermal two-phase two-component flow model to problems with CO2.
Definition: adapt.hh:29
Implementation of the abstract base class for friction laws.
Definition: frictionlaw.hh:42
Scalar limitRoughH(const Scalar roughnessHeight, const Scalar waterDepth) const
Limit the friction for small water depth.
Definition: frictionlaw.hh:87
Implementation of the friction law after Nikuradse.
Definition: nikuradse.hh:42
Dune::FieldVector< Scalar, 2 > bottomShearStress(const VolumeVariables &volVars) const final
Compute the bottom shear stress.
Definition: nikuradse.hh:64
FrictionLawNikuradse(const Scalar ks)
Constructor.
Definition: nikuradse.hh:50