In typical engineering applications, there will be a set of given or known quantities. The acceleration of gravity g and the kinematic viscosity of the fluid ν are known, as are the diameter of the pipe D and its roughness height ε. If as well the head loss per unit length S is a known quantity, then the friction factor f D can be calculated directly from the chosen fitting function. Solving the Darcy–Weisbach equation for √ f D,