This repository has been archived on 2023-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
foam-extend4.1-coherent-io/applications/solvers/finiteArea/liquidFilmFoam/calcFrictionFactor.H
2015-05-12 15:55:51 +01:00

7 lines
257 B
C++

{
// Stabilisation of friction factor calculation
// Friction factor is defined with standard gravity
frictionFactor.internalField() =
mag(2*9.81*sqr(manningField.internalField())/
pow(mag(h.internalField()) + 1e-7, 1.0/3.0));
}