×

Directions

This simulation calculates and displays the pressure drop in a pipe due to friction as a function of the liquid’s volumetric flow rate, the pipe’s diameter, length, and degree of roughness, and the liquid’s density and viscosity. It also calculates and displays the liquid’s mass flow rate, the Reynolds number, and the corresponding friction factor. You can choose one of the following plots to display: the friction factor versus Reynolds number (Moody diagram) or the pressure drop versus the flow rate, the pipe’s diameter, or its length.

×

Details

The average velocity in the pipe is

$$u=\dfrac{4Q}{\pi D^{2}}$$

and the Reynolds number is

$$Re=\dfrac{\rho\,u\,D}{\mu}$$

The (Darcy) friction factor, used in the Moody diagram, is obtained from

$$f=\dfrac{64}{Re}\ \ \text{for } Re\le 3000 \text{ (laminar flow)}$$
$$\dfrac{1}{\sqrt{f}}=-2\log_{10}\!\left(\dfrac{\varepsilon/D}{3.7}+\dfrac{2.51}{Re\sqrt{f}}\right)\ \ \text{for } Re>3000 \text{ (turbulent flow, Colebrook equation)}$$

and the frictional pressure drop is given by the Darcy–Weisbach equation

$$\Delta P_{f}=f\,\dfrac{L}{D}\,\dfrac{\rho\,u^{2}}{2}$$

The mass flow rate is

$$\dot m=\rho\,Q$$

Definitions of symbols

  • Q – volumetric flow rate (m3/min)
  • D – pipe diameter (cm)
  • L – pipe length (m)
  • ε/D – relative pipe roughness (dimensionless)
  • ρ – liquid density (kg/m3)
  • μ – liquid viscosity (Pa·s)
  • u – average liquid velocity in the pipe (m/s)
  • Re – Reynolds number (dimensionless)
  • f – Darcy (Moody) friction factor (dimensionless); note this is four times the Fanning friction factor
  • ΔPf – frictional pressure drop (kPa)
  • ṁ – mass flow rate (kg/min)
×

About

This simulation was created in the Department of Chemical and Biological Engineering at University of Colorado Boulder for LearnChemE.com by John L. Falconer using Claude AI. It is a JavaScript/HTML5 implementation of a Mathematica simulation by Mark D. Normand and Micha Peleg. It was prepared with financial support from the National Science Foundation (DUE 2336987 and 2336988). Address any questions or comments to LearnChemE@gmail.com.

volumetric flow rate, Q (m³/min)
pipe diameter, D (cm)
pipe length, L (m)
roughness index, ε/D
density, ρ (kg/m³)
viscosity, μ (Pa·s)
⚠️ Simulation Under ReviewThis content is still being reviewed for quality and accuracy and may be updated in the future. Feel free to send us feedback.