Reynolds number
Pipe Friction and Fitting Losses
On this page
A pipe one size too small is bought once and paid for every day after. The pump works against friction that a larger pipe would not have, the tank fills slowly, and the electricity bill carries the difference for as long as the pipe stays in the ground. Nobody sees this loss, because the water still arrives. This lesson shows how to calculate the head that a pipe and its fittings take from the water, and how to turn that head into a yearly cost. You will find the loss in a real rising main, then compare three pipe sizes for the same flow. #FluidMechanics #PipeFriction #DarcyWeisbach
Learning Objectives
By the end of this lesson, you will be able to:
- Calculate the Reynolds number of a pipe flow and say whether the flow is laminar or turbulent
- Find the friction factor from the Swamee-Jain formula and check it against the Colebrook equation
- Calculate the friction loss in a pipe and the loss in its fittings from their K values
- Explain why the loss depends on roughly the inverse fifth power of the diameter
- Convert a friction loss into energy per cubic metre and a yearly cost
Real-World System Problem: A rising main from a borehole to a tank
A site takes its water from a borehole. A submersible pump pushes the water up 70 m of pipe inside the borehole and then along 450 m of pipe on the ground to a storage tank on a stand. The pipe is uPVC with an inside diameter of 63 mm. On the way the water passes a non-return valve, four bends and a gate valve, and then leaves the pipe into the tank.
The pump must lift the water and also push it through the pipe. The lift is fixed by the levels. The push is friction, which depends on the flow, the length, the diameter and the inside surface of the pipe. Guess the friction too low and the pump delivers less than promised. Choose a small pipe to save money on the day of purchase and the site pays for the extra friction in electricity for twenty years.
The site uses 110 m³ of water a day, so every metre of head lost in this pipe is lost 110 times a day.
Fundamental Theory: Where the head goes
Friction turns head into heat
Water touches the pipe wall, and the layer of water at the wall does not move. The water in the middle moves fastest. Between the two, layers of water slide past each other and rub. That rubbing turns useful energy into a very small amount of heat, which is lost. In the energy equation it appears as the term
The loss has two parts. The friction loss
Two kinds of flow and the Reynolds number
At low speed, water moves in smooth parallel layers, like cars that keep to their lanes: laminar flow. At higher speed the layers break into small eddies that mix across the pipe, like a crowd crossing a market: turbulent flow, and the mixing makes the loss much larger.
One number tells you which kind you have: the Reynolds number, which compares the momentum of the flow with the viscous forces that keep it orderly.
For flow in a round pipe:
below about : laminar from about to : transitional, unsteady and hard to predict above about : turbulent
Water in working pipes is nearly always turbulent. In the 63 mm rising main, the flow would have to fall to about 0.41 m³/h before it became laminar. Laminar flow matters for thick liquids such as oil, and for water in very small tubes.
The Darcy-Weisbach equation
The friction loss in a straight pipe of length
Friction loss in a pipe
Read the equation in three pieces. The velocity head
The friction factor in laminar flow
In laminar flow the friction factor has an exact formula, and the roughness of the wall does not matter.
Do not use this formula for turbulent flow. At
The friction factor in turbulent flow
In turbulent flow,
The Colebrook equation gives
It has
The Swamee-Jain formula gives nearly the same answer in one step.
Swamee-Jain friction factor
It agrees with Colebrook to within about 1 to 3 percent for
The Moody chart as a picture
The Moody chart plots the Colebrook equation. You do not need it to calculate, but its shape tells you what
Three things follow from the picture.
- On the left, the single straight line is laminar flow. Roughness has no effect there.
- For a smooth pipe,
keeps falling as rises. A uPVC pipe is close to this lowest curve. - For a rough pipe at high
, the line becomes flat. Then depends only on , and the loss is exactly proportional to .
For water in ordinary pipes,
Losses in fittings
Each fitting loses a number of velocity heads. That number is the loss coefficient
Typical values: a 90° bend 0.9, a fully open gate valve 0.2, a swing non-return valve 2.0, a strainer 2.5 when clean, an exit into a tank 1.0. The values change with the size and the maker of the fitting, so treat any table as typical and use the maker’s figure when you have it. Because the fittings on one pipe share the same velocity, you add their K values and multiply once.
The exit value of 1.0 is exact, not typical. Water that leaves a pipe into a tank loses all of its velocity head, whatever the shape of the pipe end.
Equivalent length
Some designers prefer to turn fittings into extra pipe. The equivalent length
You then add
How strongly the loss depends on diameter
Replace the velocity by the flow, using
Friction loss written with flow
For a fixed flow and a fixed friction factor, the loss is proportional to
This is the inverse-fifth-power rule. A pipe with 20 percent less diameter has about
The rule is approximate because
Application 1: Friction and fitting loss in the rising main
Step 1: Velocity and Reynolds number
Click to reveal the velocity and the flow regime
-
Convert the flow. The formulas need m³/s.
The flow is 3.33 litres per second. ✅
-
Pipe area.
The inside area is 0.003117 m². ✅
-
Velocity and velocity head.
The water moves at 1.069 m/s and carries a velocity head of 0.0583 m. ✅
-
Reynolds number.
This is far above
, so the flow is turbulent and the laminar formula does not apply. ✅
Step 2: Friction factor
Click to reveal the friction factor by two methods
-
Relative roughness.
The pipe is very nearly smooth. ✅
-
Swamee-Jain. The two terms inside the logarithm are
The second term is forty times the first. In this pipe the Reynolds number sets the friction, and the roughness has almost no part. ✅
-
Result.
The Swamee-Jain friction factor is 0.01957, which rounds to 0.0196. ✅
-
Colebrook by repetition. Start from
and put it into the right side of the Colebrook equation. The successive values are , , . The Colebrook friction factor is 0.01968. ✅ -
Compare. Swamee-Jain is lower by
percent. The K values of the fittings are known less well than that, so the one-step formula is good enough. This lesson continues with . ✅
Step 3: Friction loss, fitting loss and total
Click to reveal the losses
-
Friction loss in 520 m of pipe.
The pipe is
diameters long and loses 9.41 m of head. ✅ -
Sum of the K values.
The fittings together lose 6.8 velocity heads. ✅
-
Fitting loss.
The fittings lose 0.40 m. ✅
-
Total loss.
The rising main loses 9.81 m of head at 12 m³/h, which is a pressure of
. ✅ -
Check a second way. The equivalent length of the fittings is
. One Darcy-Weisbach calculation with gives . The Python script below prints the same 9.81 m. ✅
Application 2: The same flow in a smaller and a larger pipe
Step 1: Friction loss in each pipe
Click to reveal the three losses
-
Repeat the method of Application 1 for each diameter. Each pipe has its own velocity, Reynolds number and friction factor.
(mm) (m/s) (m) 50 1.698 84,500 0.01867 28.52 63 1.069 67,100 0.01957 9.41 80 0.663 52,800 0.02058 3.00 The loss falls from 28.52 m to 3.00 m as the diameter rises from 50 mm to 80 mm. ✅
-
Read the table. The larger pipe has the higher friction factor, because its Reynolds number is lower. Its loss is still far smaller, because its velocity head is much smaller. A friction factor alone says nothing about which pipe is better. ✅
Step 2: Energy and yearly cost
Click to reveal the cost of friction
-
Energy per cubic metre for the friction head. Lifting one cubic metre through a head
needs joules of hydraulic energy. The electrical energy is larger, because the pump and the motor both lose some. For the 63 mm pipe:
Friction in the 63 mm pipe takes 0.0503 kWh for every cubic metre. ✅
-
Volume in a year.
The site pumps
m³ a year. ✅ -
Yearly energy and cost for each pipe.
(mm) kWh per m³ kWh per year Cost per year (currency units) 50 0.1526 6,126 73,516 63 0.0503 2,021 24,257 80 0.0160 644 7,729 Friction costs
currency units a year in the 63 mm pipe. ✅ -
Difference against the 63 mm pipe. The 50 mm pipe costs
more each year. The 80 mm pipe costs less each year. ✅
Step 3: Test the inverse-fifth-power rule
Click to reveal the test
-
From 63 mm to 50 mm. The rule predicts
. The calculated ratio is . The rule is 5 percent high. ✅ -
From 63 mm to 80 mm. The rule predicts
. The calculated ratio is . The rule is 5 percent low. ✅ -
The true exponent. Between the 50 mm and 80 mm pipes,
The loss follows
in this smooth pipe, a little weaker than the fifth power, because the friction factor rises as the Reynolds number falls. ✅ -
Check with the script. The Python script prints the same three losses, the ratios 3.031 and 0.319, and the same yearly costs. ✅
Verify It in Python
The script calculates the loss in the rising main, solves the Colebrook equation by repetition to check the Swamee-Jain value, then compares the three diameters and their yearly costs. It saves a plot of friction loss against diameter with the fifth-power rule drawn beside it.
"""Friction and fitting losses in a rising main, and what the diameter costs."""import numpy as npimport matplotlib.pyplot as plt
RHO, G, NU = 998.0, 9.81, 1.004e-6 # water at 20 degCEPS = 0.0015e-3 # m, uPVC roughness (typical)LENGTH = 520.0 # mK_SUM = 2.0 + 4 * 0.9 + 0.2 + 1.0 # non-return, 4 bends, gate valve, exitETA_PUMP, ETA_MOTOR = 0.62, 0.82PRICE = 12.00 # currency units per kWhDAILY = 110.0 # m3 per day
def swamee_jain(re, rel): return 0.25 / np.log10(rel / 3.7 + 5.74 / re**0.9) ** 2
def colebrook(re, rel, f=0.02): """Solve the Colebrook equation by repeated substitution.""" for _ in range(50): f = 1.0 / (-2.0 * np.log10(rel / 3.7 + 2.51 / (re * np.sqrt(f)))) ** 2 return f
def pipe(q_m3h, d, length=LENGTH, eps=EPS): """Return V, Re, f (Swamee-Jain), velocity head, friction loss.""" q = q_m3h / 3600.0 v = q / (np.pi * d**2 / 4.0) re = v * d / NU f = swamee_jain(re, eps / d) hv = v**2 / (2.0 * G) return v, re, f, hv, f * length / d * hv
# ---------- Application 1: rising main, 63 mm, 12 m3/h ----------Q, D = 12.0, 0.063v, re, f, hv, hf = pipe(Q, D)fc = colebrook(re, EPS / D)hm = K_SUM * hvprint("Application 1: rising main, 63 mm, 12 m3/h")print(f" V = {v:.3f} m/s, Re = {re:.0f}, velocity head = {hv:.4f} m")print(f" f Swamee-Jain = {f:.5f}, f Colebrook = {fc:.5f}, " f"difference = {100 * (f - fc) / fc:.2f} %")print(f" laminar formula 64/Re would give {64 / re:.5f} (not valid here)")print(f" friction loss = {hf:.2f} m, sum of K = {K_SUM:.1f}, " f"fitting loss = {hm:.3f} m, total = {hf + hm:.2f} m")print(f" equivalent length of the fittings = {K_SUM * D / f:.1f} m")print(f" pressure lost = {RHO * G * (hf + hm) / 1000:.1f} kPa")
# ---------- Application 2: three diameters ----------print("Application 2: 12 m3/h through 520 m, three diameters")rows = {}for d in (0.050, 0.063, 0.080): v, re, f, hv, hf = pipe(Q, d) kwh_m3 = RHO * G * hf / (ETA_PUMP * ETA_MOTOR) / 3.6e6 cost = kwh_m3 * DAILY * 365 * PRICE rows[d] = (hf, cost) print(f" D = {1000 * d:.0f} mm: V = {v:.3f} m/s, Re = {re:.0f}, f = {f:.5f}, " f"h_f = {hf:.2f} m, {kwh_m3:.4f} kWh/m3, " f"{kwh_m3 * DAILY * 365:.0f} kWh/year, cost {cost:.0f} per year")base_h, base_c = rows[0.063]for d in (0.050, 0.080): h, c = rows[d] print(f" {1000 * d:.0f} mm against 63 mm: loss ratio {h / base_h:.3f}, " f"fifth-power rule {(0.063 / d) ** 5:.3f}, " f"cost difference {c - base_c:+.0f} per year")
# ---------- Plot: friction loss against diameter ----------dd = np.linspace(0.045, 0.110, 200)loss = np.array([pipe(Q, d)[4] for d in dd])fig, ax = plt.subplots(figsize=(7, 4.5))ax.plot(1000 * dd, loss, label="Darcy-Weisbach with Swamee-Jain")ax.plot(1000 * dd, base_h * (0.063 / dd) ** 5, "--", label="fifth-power rule from 63 mm")for d in rows: ax.plot(1000 * d, rows[d][0], "o", color="black")ax.set_xlabel("inside diameter (mm)")ax.set_ylabel("friction loss over 520 m (m)")ax.set_title("12 m3/h of water: loss against pipe diameter")ax.set_yscale("log")ax.legend()fig.tight_layout()fig.savefig("friction_rising_main.png", dpi=120)print("Saved friction_rising_main.png")Expected output
Application 1: rising main, 63 mm, 12 m3/h V = 1.069 m/s, Re = 67099, velocity head = 0.0583 m f Swamee-Jain = 0.01957, f Colebrook = 0.01968, difference = -0.60 % laminar formula 64/Re would give 0.00095 (not valid here) friction loss = 9.41 m, sum of K = 6.8, fitting loss = 0.396 m, total = 9.81 m equivalent length of the fittings = 21.9 m pressure lost = 96.0 kPaApplication 2: 12 m3/h through 520 m, three diameters D = 50 mm: V = 1.698 m/s, Re = 84544, f = 0.01867, h_f = 28.52 m, 0.1526 kWh/m3, 6126 kWh/year, cost 73516 per year D = 63 mm: V = 1.069 m/s, Re = 67099, f = 0.01957, h_f = 9.41 m, 0.0503 kWh/m3, 2021 kWh/year, cost 24257 per year D = 80 mm: V = 0.663 m/s, Re = 52840, f = 0.02058, h_f = 3.00 m, 0.0160 kWh/m3, 644 kWh/year, cost 7729 per year 50 mm against 63 mm: loss ratio 3.031, fifth-power rule 3.176, cost difference +49259 per year 80 mm against 63 mm: loss ratio 0.319, fifth-power rule 0.303, cost difference -16528 per yearSaved friction_rising_main.pngOn the plot, the calculated curve and the fifth-power line cross at 63 mm and separate slowly on both sides. Over one pipe size the rule is within 5 percent, which is enough for a first choice of diameter.
Common Mistakes
- Using the nominal size of the pipe as the diameter. A 75 mm nominal uPVC pipe has an inside diameter of about 63 mm. Because of the fifth power, that difference more than doubles the loss.
- Leaving the flow in m³/h inside the formulas. Convert to m³/s first, or the velocity is wrong by a factor of 3,600.
- Applying
to turbulent flow. It is valid only below a Reynolds number of about . - Taking a Fanning friction factor from a table and using it in the Darcy-Weisbach equation. The loss comes out four times too small.
- Using one friction factor for every flow and every diameter. In a smooth pipe,
changes with the Reynolds number, so calculate it again for each case. - Ignoring the fittings in a short pipe, or giving them great attention in a long one. Compare the sum of K with
to see which part matters.
Summary
- Friction in a pipe turns head into heat. The Darcy-Weisbach equation gives the loss as the friction factor, times the length in diameters, times the velocity head.
- The Reynolds number decides the kind of flow. Below about
the flow is laminar and . Water in working pipes is nearly always turbulent. - In turbulent flow the friction factor comes from the Colebrook equation or, in one step, from the Swamee-Jain formula. In the rising main the two differ by 0.6 percent.
- Each fitting loses K velocity heads. In the 520 m rising main at 12 m³/h the pipe loses 9.41 m and the fittings 0.40 m, a total of 9.81 m.
- At a fixed flow the loss follows roughly the inverse fifth power of the diameter, so the choice of pipe size sets the energy cost for the life of the pipe.
Exercises
1. Water at 20 °C (
Answer
2. Water at 20 °C flows at 18 m³/h in a commercial steel pipe of 80 mm inside diameter,
Answer
3. The pipe of Exercise 2 has a strainer (
Answer
4. The flow in the rising main of Application 1 rises to 15 m³/h. Find the new friction factor, the friction loss, the fitting loss and the total loss.
Answer
5. For the flow of Application 2, find the friction loss in a uPVC pipe of 100 mm inside diameter and 520 m length. Compare it with the value that the inverse-fifth-power rule gives from the 63 mm result.
Answer
6. An 80 mm pipe costs 150 currency units per metre more than a 63 mm pipe, bought and laid. Using the yearly friction costs of Application 2 for 520 m, find the extra cost and the time it takes to pay back.
Answer
Extra cost
References
- F. M. White, Fluid Mechanics, 8th edition, McGraw-Hill, 2016.
- Y. A. Çengel and J. M. Cimbala, Fluid Mechanics: Fundamentals and Applications, 4th edition, McGraw-Hill, 2018.
- Crane Co., Flow of Fluids Through Valves, Fittings and Pipe, Technical Paper No. 410.
- P. K. Swamee and A. K. Jain, “Explicit equations for pipe-flow problems”, Journal of the Hydraulics Division, ASCE, vol. 102, 1976.
Water flows at 12 m³/h through 520 m of smooth pipe with an inside diameter of 100 mm. The pipe is replaced by one of 50 mm, half the diameter, and the flow is held the same. By about how much does the friction loss rise?
The bars show the friction loss in the five pipe sizes at the same flow, length and roughness. The gold bar is the chosen size. The right-hand plot has the shape of the Moody chart: the friction factor against the Reynolds number, both on logarithmic axes, for the three roughness choices at the chosen diameter. The dot is the operating point. The friction factor comes from the Swamee-Jain formula, as in the lesson. Only the straight pipe is counted, with no fittings. The yearly energy and cost use the lesson's assumptions: 110 m³ a day on every day of the year, a pump efficiency of 0.62, a motor efficiency of 0.82 and 12.00 currency units per kWh. The flow is held at the chosen value, but a real pump delivers less when the friction is larger.
Check yourself
Three questions. Each wrong choice is a mistake people really make, so read the note after you answer.
1. The 63 mm rising main loses 9.41 m in 520 m at 12 m³/h. The flow is doubled to 24 m³/h. What is the friction loss now?
2. At 12 m³/h the friction factor is 0.0187 in a 50 mm pipe and 0.0206 in an 80 mm pipe. Both pipes are smooth and 520 m long. Which pipe loses more head?
3. After many years the inside of a 63 mm pipe is as rough as 0.5 mm, in place of 0.0015 mm when it was new. The flow is still 12 m³/h and the length 520 m. What happens to the friction loss?
- A fitting loses K velocity heads. At 12 m³/h in 63 mm, one velocity head is 0.058 m.
- Non-return valve 2.0, four bends 0.9 each, gate valve 0.2: together 5.8.
- The exit into the tank loses all of its velocity head, 1.0. ΣK = 6.8, a loss of 0.40 m.
- As pipe: Lₑ = K D ÷ f = 6.8 × 0.063 ÷ 0.0196 = 21.9 m.
- One calculation with 541.9 m gives 9.81 m. The fittings are only 4 % of it.
Discussion
No comments yet. Questions, results from your own build, a better way to explain it: all welcome.
My notes on this page
Kept on this device only. Nothing is sent anywhere.
Tip: select words in the lesson, or tap a figure or an equation, to put a note right there.
Notes on earlier wording
The lesson has changed and these words are no longer in it. Your notes are kept, with the words you chose.