where hf is the head loss due to friction, calculated from: a friction factor f, the ratio of the length to diameter of the pipe L/D, the velocity of the flow V, and the standard constant for acceleration due to gravity g.
The friction factor f varies according to the parameters of the pipe and the velocity of the flow, and is known to high accuracy within certain flow regimes. However, data on its variation with velocity was initially lacking, so this equation was outperformed at first by the empirical Prony equation in many cases. In later years it was eschewed in many special-case situations in favor of a variety of empirical equations, notably the Hazen-Williams equation, most of which were significantly easier to use in calculations. However, since the advent of the calculator, ease of calculation is no longer a major issue, and so the Darcy-Weisbach equation's generality has made it the preferred one.