Moody Diagram Calculator






Moody Diagram Calculator – Calculate Friction Factor


Moody Diagram Calculator

Friction Factor Calculator

This Moody Diagram Calculator helps determine the Darcy friction factor (f) for fluid flow in pipes, based on the Reynolds number and relative roughness.


Dimensionless. Enter a value greater than 0.


Dimensionless (e.g., 0.001). Enter a value between 0 and 0.05.



Friction Factor (f): N/A

Flow Regime: N/A

Reynolds Number (Re): N/A

Relative Roughness (ε/D): N/A

For Laminar Flow (Re ≤ 2300): f = 64 / Re.
For Turbulent Flow (Re > 4000): The Swamee-Jain equation is used: f = 0.25 / [log10((ε/D)/3.7 + 5.74/Re^0.9)]^2.
Transition Flow (2300 < Re ≤ 4000) is complex; turbulent formula is used as an estimate.

Simplified Moody Diagram representation: Friction Factor vs. Reynolds Number for various Relative Roughness values. The red dot marks your calculated point. (Axes are linear for simplicity)

What is a Moody Diagram Calculator?

A Moody Diagram Calculator is a tool used in fluid dynamics to determine the Darcy-Weisbach friction factor (f) for fully developed flow in a circular pipe. The friction factor is crucial for calculating pressure drop or head loss due to friction as fluid flows through a pipe. The Moody diagram itself is a graph that plots the friction factor against the Reynolds number (Re) for various values of relative roughness (ε/D).

This calculator essentially automates the process of looking up values on the Moody diagram or solving the underlying equations, such as the Colebrook-White equation or its approximations like the Swamee-Jain equation, which our Moody Diagram Calculator uses for turbulent flow.

Who should use it?

Engineers (especially mechanical, civil, and chemical), fluid mechanics students, and technicians involved in the design and analysis of pipe flow systems should use a Moody Diagram Calculator. It’s essential for sizing pipes, determining pumping power requirements, and analyzing fluid transport systems.

Common Misconceptions

A common misconception is that the friction factor is constant for a given pipe material. In reality, it depends heavily on the flow regime (laminar or turbulent), characterized by the Reynolds number, and the pipe’s relative roughness. The Moody Diagram Calculator correctly accounts for these variables.

Moody Diagram and Friction Factor Formulas

The Moody diagram is based on experimental data and empirical correlations. The key parameters are:

  • Reynolds Number (Re): A dimensionless quantity indicating the ratio of inertial forces to viscous forces (Re = ρVD/μ).
  • Relative Roughness (ε/D): The ratio of the absolute roughness of the pipe’s inner surface (ε) to the pipe’s inner diameter (D).
  • Friction Factor (f): A dimensionless factor representing the resistance to flow.

Formulas Used:

1. Laminar Flow (Re ≤ 2300):

The friction factor is independent of surface roughness and given by:

f = 64 / Re

2. Turbulent Flow (Re > 4000):

The flow is influenced by both Reynolds number and relative roughness. The Colebrook-White equation accurately describes this region, but it’s implicit in f. Our Moody Diagram Calculator uses the explicit Swamee-Jain approximation for direct calculation:

f = 0.25 / [log10((ε/D)/3.7 + 5.74/Re^0.9)]^2

This is valid for 10-6 < ε/D < 10-2 and 5000 < Re < 108.

3. Transition Flow (2300 < Re ≤ 4000):

This region is unstable and the friction factor is uncertain. The flow can oscillate between laminar and turbulent characteristics. Our calculator uses the turbulent flow formula as an estimate but flags it as a transition zone.

Variables Table:

Variable Meaning Unit Typical Range
Re Reynolds Number Dimensionless 1 to 108+
ε/D Relative Roughness Dimensionless 0 (smooth) to 0.05
f Darcy Friction Factor Dimensionless 0.008 to 0.1
ε Absolute Roughness m or ft 10-6 m to 10-3 m
D Pipe Inner Diameter m or ft 0.01 m to 10 m
V Mean Flow Velocity m/s or ft/s 0.1 m/s to 10 m/s
ρ Fluid Density kg/m³ or lb/ft³ 1 kg/m³ to 1000 kg/m³
μ Dynamic Viscosity Pa·s or lb/(ft·s) 10-5 Pa·s to 1 Pa·s
Variables involved in the Moody diagram and friction factor calculations.

Practical Examples

Example 1: Water Flow in a Cast Iron Pipe

Water at 20°C flows through a 10 cm diameter (D=0.1m) cast iron pipe (ε ≈ 0.00026 m) with a velocity of 2 m/s. (ρ ≈ 998 kg/m³, μ ≈ 0.001 Pa·s)

  1. Calculate Re: Re = (998 * 2 * 0.1) / 0.001 = 199,600
  2. Calculate ε/D: ε/D = 0.00026 / 0.1 = 0.0026
  3. Input Re = 199600 and ε/D = 0.0026 into the Moody Diagram Calculator.
  4. Result: The flow is turbulent, and f ≈ 0.0254. This value can then be used in the Darcy-Weisbach equation to find head loss.

Example 2: Oil Flow in a Smooth Pipe

Oil (ρ ≈ 850 kg/m³, μ ≈ 0.01 Pa·s) flows through a 5 cm diameter (D=0.05m) smooth pipe (ε ≈ 0) at 0.5 m/s.

  1. Calculate Re: Re = (850 * 0.5 * 0.05) / 0.01 = 2125
  2. Calculate ε/D: ε/D ≈ 0 (or a very small number like 1e-6)
  3. Input Re = 2125 and ε/D = 0 into the Moody Diagram Calculator.
  4. Result: The flow is laminar (or just entering transition), and f = 64 / 2125 ≈ 0.0301.

How to Use This Moody Diagram Calculator

  1. Enter Reynolds Number (Re): Input the calculated dimensionless Reynolds number for your flow conditions. Ensure it’s a positive number.
  2. Enter Relative Roughness (ε/D): Input the dimensionless relative roughness of the pipe. This is the absolute roughness (ε) divided by the pipe’s inner diameter (D). It should be between 0 (perfectly smooth) and about 0.05.
  3. Calculate: Click the “Calculate” button or simply change the input values. The friction factor and flow regime will update automatically.
  4. Read Results:
    • The “Friction Factor (f)” is the primary output.
    • “Flow Regime” indicates whether the flow is Laminar, Transition, or Turbulent.
    • The input values of Re and ε/D used are also displayed.
  5. Reset: Use the “Reset” button to return to default example values.
  6. Copy Results: Use “Copy Results” to copy the input and output values to your clipboard.
  7. View Chart: The chart below the results visually represents a simplified Moody diagram, plotting your calculated point (red dot) against curves for different relative roughness values.

The Moody Diagram Calculator provides a quick way to find ‘f’ without manually reading the diagram or solving complex equations.

Key Factors That Affect Friction Factor Results

  1. Reynolds Number (Re): This is the most crucial factor determining the flow regime (laminar, transition, turbulent) and thus heavily influences ‘f’. It depends on fluid velocity, density, viscosity, and pipe diameter.
  2. Relative Roughness (ε/D): In turbulent flow, the roughness of the pipe’s inner surface relative to its diameter significantly affects ‘f’. Smoother pipes have lower ‘f’ for the same Re in the turbulent fully rough zone.
  3. Flow Velocity (V): Directly affects Re (Re ∝ V). Higher velocities generally lead to higher Re and turbulent flow, impacting ‘f’.
  4. Pipe Diameter (D): Affects both Re (Re ∝ D) and ε/D. Larger diameters tend to decrease ε/D (for the same ε) and increase Re (for the same V), both influencing ‘f’.
  5. Fluid Viscosity (μ): Affects Re (Re ∝ 1/μ). More viscous fluids have lower Re for the same V and D, potentially leading to laminar flow and a different ‘f’.
  6. Fluid Density (ρ): Affects Re (Re ∝ ρ). Denser fluids have higher Re.
  7. Absolute Roughness (ε): The material and condition of the pipe’s inner surface determine ε. Corrosion or scaling can increase ε over time, increasing ‘f’ in turbulent flow.

Using an accurate Moody Diagram Calculator helps account for these factors correctly.

Frequently Asked Questions (FAQ)

Q1: What is the Moody diagram?
A1: The Moody diagram (also known as the Moody chart) is a graph in non-dimensional form that relates the Darcy-Weisbach friction factor (f), Reynolds number (Re), and relative roughness (ε/D) for fully developed flow in a circular pipe. Our Moody Diagram Calculator automates its use.
Q2: What is the Darcy friction factor?
A2: The Darcy friction factor (f) is a dimensionless quantity used in the Darcy-Weisbach equation to describe frictional losses in pipe flow due to the fluid’s viscosity and the pipe’s roughness.
Q3: How is Reynolds number calculated?
A3: Reynolds number is calculated as Re = (ρ * V * D) / μ, where ρ is fluid density, V is mean velocity, D is pipe diameter, and μ is dynamic viscosity.
Q4: How do I find the absolute roughness (ε) of a pipe?
A4: Absolute roughness values for various pipe materials (e.g., steel, cast iron, PVC) are typically found in fluid mechanics textbooks or engineering handbooks.
Q5: What is the difference between laminar and turbulent flow?
A5: Laminar flow is characterized by smooth, orderly fluid motion (low Re), while turbulent flow is chaotic and irregular (high Re). The friction factor behaves differently in these regimes, as shown by the Moody Diagram Calculator.
Q6: Why is the transition zone (2300 < Re ≤ 4000) uncertain?
A6: In the transition zone, the flow can switch between laminar and turbulent behavior, and the friction factor is difficult to predict accurately and can vary.
Q7: Can this calculator be used for non-circular pipes?
A7: For non-circular pipes or ducts, the hydraulic diameter (D_h = 4 * Area / Wetted Perimeter) is used instead of D to calculate Re and ε/D_h, but the Moody diagram (and this Moody Diagram Calculator) is most accurate for circular pipes.
Q8: What if my relative roughness is very small (smooth pipe)?
A8: For smooth pipes (ε/D → 0), the friction factor in turbulent flow still depends on Re until very high Re values (fully rough region is not reached for smooth pipes). Enter a very small number like 1e-7 or 0 for ε/D in the Moody Diagram Calculator for smooth pipes.

© 2023 Your Company. All rights reserved. | Moody Diagram Calculator


Leave a Reply

Your email address will not be published. Required fields are marked *