Product(s): |
WaterGEMS, WaterCAD, HAMMER | |

Version(s): |
08.XX.XX.XX, 10.XX.XX.XX | |

Area: |
Calculations |

# Problem

What is the process that WaterCAD and WaterGEMS use to compute headloss using the Darcy Weisbach friction method, considering the ColeBrook-White and Swamee-Jain equations, Reynolds number and Moody diagram?

Also applies to the initial conditions in HAMMER.

Problem ID#: 63735

# Solution

Below is the process used by WaterCAD and WaterGEMS (and the initial conditions solver in HAMMER) to compute pipe headloss with the Darcy-Weisbach friction method:

1) The user enters:

- Roughness
- Kinematic viscosity
- Diameter

2) The EPANET-based hydraulic engine calculates velocity

3) The program uses this to calculate the Reynolds number and relative roughness.

4) The program inserts those values into the Swamee-Jain equation (essentially the same thing as the Moody diagram) to calculate the friction factor.

5) The program uses the friction factor along with the diameter, length, and velocity to calculate head loss.

If you want verification that the equations are correct, please see Swamee, P. K. and Jain, A. K. 1976 Explicit equations for pipe flow problems. J. of Hydraulic. Engg., 102(5), 657-664.

In a paper that Dr. Tom Walski co-authored , it was shown that the Swamee-Jain equation and Colebrook-White differed by an average of 1% using roughly 90 million randomly generated test points.

Given that both equations are essentially empirical curve fits to lab data, they should be accurate for any engineering application.

Engineers all over the world use WaterCAD/GEMS and EPANET, which uses the same solver for the past few decades.

# See Also

Darcy-Weisbach friction calculation in StormCAD and SewerCAD

What is the difference between Darcy-Weisbach roughness coefficients e and f ?