mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
8 lines
263 B
C
8 lines
263 B
C
{
|
|
// Stabilisation of friction factor calculation
|
|
// Friction factor is defined with standard gravity
|
|
frictionFactor.primitiveFieldRef() =
|
|
mag(2*9.81*sqr(manningField.primitiveField())/
|
|
pow(mag(h.primitiveField()) + 1e-7, 1.0/3.0));
|
|
}
|