In a design problem, one may select pipe for a particular hydraulic slope S based on the candidate pipe's diameter D and its roughness ε. With these quantities as inputs, the friction factor fD can be expressed in closed form in the Colebrook–White equation or other fitting function, and the flow volume Q and flow velocity V can be calculated therefrom.