where h f is the head loss due to friction, calculated from: the ratio of the length to diameter of the pipe L/D, the velocity of the flow V, and two empirical factors a and b to account for friction.