https://github.com/sedfoam/sedfoam/blob/master/solver/calculateUfall.H file

Original source file calculateUfall.H