This program calculates the pressure drop in height due to friction loss. It also calculates the pressure drop due to pipe bends. It uses the Darcy Weisbach method with a Churchill Friction factor ...
Run the MATLAB program to get a Moddy chart that relates the Darcy-Weisbach friction factor, Reynolds number, and surface roughness for a fully developed flow in a circular pipe.