Skip to content
You Start with one site
Amounts in Start with one site
Control, Measurement & Energy · Course

Continuity and the Energy Equation

Lesson 2 of 10 24 min read
Found this useful?

A pump is ordered for 68 m of head because the tank inlet is 68 m above the water in the borehole. On the first day it delivers far less water than the quotation promised, and the supplier and the owner argue about whose fault it is. The pump is not faulty. The calculation left out the head that the moving water loses in 520 m of pipe. This lesson gives the two rules that prevent this mistake: the flow is the same at every section of a pipe, and every metre of head must be accounted for between two points. You will find the velocity in the rising main and the head the borehole pump must really give. #FluidMechanics #EnergyEquation #Bernoulli

Learning Objectives

By the end of this lesson, you will be able to:

  1. Calculate the mean velocity and the velocity head in a pipe from the flow and the inside diameter
  2. Name the three forms of head and say what each one measures
  3. Write the energy equation between two points with a pump and a loss, and remove the terms that are zero
  4. Explain where Bernoulli’s equation without losses gives a wrong answer
  5. Draw the energy grade line and the hydraulic grade line of a pumped pipe

Real-World System Problem: Choosing the head of a borehole pump



The water system of this course has a borehole pump that sends 12 m³/h to a storage tank. With the pump running at that flow, the water level in the borehole falls from its static level of 42 m to 50 m below ground. The tank inlet is 18 m above ground. Between them is the rising main: 520 m of uPVC pipe with an inside diameter of 63 mm.

The water must be lifted through 68 m, and many pump selections stop at that figure. But moving water rubs against the pipe wall and is disturbed at every bend and valve. That costs head, and the pump is the only source of head. A pump selected for 68 m reaches 68 m only at a flow well below 12 m³/h.

To choose the pump correctly you need the velocity of the water, and an equation that counts every form of its energy from the borehole to the tank.

pumpTANK(2) tank inletz=+18mground, z = 0450 m63 mm pipe, 520 m in total50 m~~~(1)~~~~~~~~pumping water level, z = -50 mz=-70m
The rising main and the two points of the energy equation

Fundamental Theory: Counting flow and counting energy



Continuity: the same flow at every section

The density of water in a pipe does not change in any way that matters here. So in a full pipe with no leak and no branch, the volume that enters one end each second leaves the other end in the same second. This is the continuity rule.

The volume flow is the mean velocity times the area of the pipe section:

Continuity

is in , in and the inside diameter in metres. Between two sections of one pipe, .

Site data give flow in cubic metres per hour. Formulas need cubic metres per second, so divide by 3,600:

That is 3.33 litres in each second.

area A₁area A₂QV₁ (slow)V₂ (fast)QQ=V₁A₁=V₂A₂
Continuity: one flow through two diameters

Because the area depends on the square of the diameter, the velocity depends on the inverse square:

Halve the diameter and the velocity becomes four times larger, as when a thumb partly covers the end of a garden hose.

The three forms of head

The lesson on pressure and head showed that head is energy for each newton of liquid, in metres. Water in a pipe carries that energy in three forms.

FormExpressionWhat it measures
Pressure headThe height to which the pressure could raise the water
Velocity headThe height from which water must fall, from rest, to reach the velocity
Elevation headThe height of the point above a chosen level, the datum

The sum of the three is the total head at that point:

Here is the pressure, the density ( for water at 20 °C), , the mean velocity and the elevation. You may place the datum anywhere, because only differences of matter. In this course the datum is ground level at the borehole.

energy grade lineV²/(2g)velocity headhydraulic grade line(water in an open tube onp/(ρg)the pipe rises to here)pressure headpipe, velocity Vzelevation headdatum, z = 0
The three heads at one point in a pipe

Bernoulli’s equation: the ideal case

Suppose that no energy is lost and none is added between two points along the flow. Then the total head is the same at both:

This is Bernoulli’s equation: the three forms change into one another. Where a pipe narrows, continuity raises the velocity head, so the pressure head must fall; a venturi meter uses this to measure flow. Where a pipe climbs, rises and the pressure falls.

The equation holds under four conditions: the flow is steady, the density is constant, no pump or turbine stands between the two points, and no head is lost to friction.

Where Bernoulli alone is wrong

The fourth condition is never fully true, and in a long pipe it is badly false.

In a straight, level pipe of one diameter, the velocity (by continuity) and the elevation are the same at both ends, so Bernoulli’s equation says the pressure is too, however long the pipe. A gauge at each end of a long main shows that this is wrong: the pressure falls along the pipe, and falls more at a higher flow.

Friction at the pipe wall and turbulence at each fitting turn the missing head into heat, which cannot be recovered as pressure, velocity or height. For the engineer it is a loss. In the rising main of this course at 12 m³/h, the loss is 9.8 m, the same as 96 kPa of pressure.

Use Bernoulli’s equation without losses only over a short distance with a large change of velocity or height: a nozzle, a contraction, a jet leaving a tank. For a pipeline, a pump suction or any length of pipe with fittings, its answer is too optimistic.

The energy equation with a pump and losses

Two terms complete the equation. A pump adds head, . Friction and fittings remove head, . Point 1 is upstream and point 2 is downstream.

The energy equation between point 1 and point 2

The head the water has at point 1, plus the head the pump adds, equals the head it has at point 2, plus the head lost between the two points. Every term is in metres.

Read it as an account: the left side is what is available and the right side is where it went. Three rules keep the account honest.

  • Use the same kind of pressure on both sides, both gauge or both absolute. Gauge is simpler when both ends are open to the air, because both pressure terms are then zero.
  • Measure both elevations from the same datum.
  • is the loss between the two points you chose, and only between them.

Choosing the two points

The equation works between any two points, so choose points where you already know most of the terms. The best are free surfaces open to the air: the gauge pressure is zero, and a surface much wider than the pipe has almost no velocity, so its total head is its elevation alone.

The next best is a point where a gauge is fitted, or where a pipe discharges into the air: the pressure of a free jet is atmospheric.

Energy grade line and hydraulic grade line

Plot the total head at every point along a pipe and you have the energy grade line, written EGL. Plot only the pressure head plus the elevation and you have the hydraulic grade line, written HGL.

Four facts make these lines useful.

  • The EGL always falls in the direction of flow, because of the loss. It rises in one place only: across a pump.
  • The HGL is one velocity head below the EGL. In a pipe of one diameter the two lines are parallel.
  • The HGL is the level to which water would rise in an open tube connected to the pipe. The vertical distance from the pipe up to the HGL is the gauge pressure head in the pipe at that point.
  • If the HGL passes below the pipe, the pressure in the pipe there is below atmospheric. Air can enter at joints, and dissolved gas leaves the water. A pipeline over a hill must be checked for this.

Application 1: Velocity and velocity head in three pipe sizes



Step 1: Velocity in the 63 mm pipe

Click to reveal the velocity
  1. Flow in base units.

    The flow is 0.003333 cubic metres in each second. ✅

  2. Area of the pipe section.

    The area is . ✅

  3. Velocity.

    The water moves at 1.069 m/s, a slow walking pace. ✅

  4. Velocity head.

    The velocity head is 0.058 m, which is 58 mm of water. ✅

Step 2: The other two sizes

Click to reveal the comparison
  1. The 50 mm pipe. .

    The smaller pipe has a higher velocity and a velocity head of 0.147 m. ✅

  2. The 80 mm pipe. .

    The larger pipe has a lower velocity and a velocity head of 0.022 m. ✅

  3. Results together.

    Inside diameterAreaVelocityVelocity head
    50 mm1.698 m/s0.147 m
    63 mm1.069 m/s0.058 m
    80 mm0.663 m/s0.022 m

    From 80 mm to 50 mm the velocity head grows by a factor of 6.6. ✅

  4. Check by scaling. Velocity follows the inverse square of the diameter, so from the 63 mm result:

    This agrees with the direct calculation. The velocity head follows the inverse fourth power: m, which agrees with 0.147 m within rounding. ✅

Step 3: Compare with the lift

Click to reveal the comparison with 68 m
  1. As a share of the lift.

    In the installed pipe the velocity head is less than one part in a thousand of the lift. ✅

  2. The worst of the three. In the 50 mm pipe it is percent. It is still far below the uncertainty of any site measurement. ✅

  3. When it is not small. At 3 m/s the velocity head is m. Against a pump suction that has only a few metres of head available, or across a flow meter, that is a large part of the total. ✅

  4. Check with the script. The Python script below, working from the flow and the diameters, prints 1.698, 1.069 and 0.663 m/s, and 0.147, 0.058 and 0.022 m, the values in the table. ✅

Application 2: The head the borehole pump must give



Step 1: Choose the points and remove the zero terms

Click to reveal the simplified equation
  1. Point 1: the water surface in the borehole. It is open to the air, so gauge. The surface falls very slowly compared with the water in the pipe, so . With ground level as datum, m. ✅

  2. Point 2: the end of the pipe at the tank inlet. The water leaves the pipe as a jet into the air, so gauge. The water still has the pipe velocity, m/s. The elevation is m. ✅

  3. Write the equation and remove the zeros.

    The pump head is the lift, plus the velocity head of the water that leaves, plus the loss. ✅

Step 2: Calculate the pump head

Click to reveal the pump head
  1. Lift.

    The lift is 68.0 m. The depth of the pump, 70 m, does not appear. ✅

  2. Velocity head at the exit. From Application 1, m. ✅

  3. Pump head.

    The pump must give 77.9 m of head at 12 m³/h. ✅

  4. Size of each term. The lift is 87.3 percent of the total, the loss is 12.6 percent and the exit velocity head is 0.07 percent. The velocity head is negligible. The velocity of the water surface in the borehole was already taken as zero. The loss is not negligible: it is one eighth of the work of the pump. ✅

Step 3: The two grade lines

The loss is taken as spread evenly along the 520 m of pipe. This is a simplification, because the fittings are at particular places, but they are only 0.40 m of the 9.8 m.

Click to reveal the grade lines
  1. Before the pump. The water in the borehole is at rest and open to the air, so its total head is its surface elevation: m. ✅

  2. At the pump outlet (A). The pump adds its head.

    The outlet is at m, so the pressure head there is m, which is 957 kPa or 9.57 bar gauge. ✅

  3. At ground level (B), after 70 m of pipe. The loss so far is m.

    The pipe is at , so a gauge here reads 26.48 m of water: kPa, or 2.59 bar. ✅

  4. At the tank inlet (C), after 520 m.

    The HGL meets the pipe at 18 m, so the gauge pressure is zero, as it must be for a jet in the air. ✅

head (m)27.9A26.5BEGL (the HGL is 0.06 m lower)18.1Ctank inlet, 18 mpump0.0addspipe on the ground77.9 m-50.01 ~~~~~~~~~~water level (point 1)pipe in the borehole-70.0[pump]A pump outletB ground levelC tank inlet
Grade lines of the rising main at 12 m³/h (not to scale)
PointPipe elevationEGLHGLGauge pressure
Water surface (1)-50 m-50.00 m-50.00 m0 bar
Pump outlet (A)-70 m27.86 m27.80 m9.57 bar
Ground level (B)0 m26.54 m26.48 m2.59 bar
Tank inlet (C)18 m18.06 m18.00 m0 bar

Step 4: Check the answer

Click to reveal the checks
  1. Against the pressure at rest. With no flow, a gauge at ground level reads 1.76 bar, the column of 18 m to the tank inlet. With flow it reads 2.59 bar. The difference is 0.83 bar, or m. The loss in the 450 m of pipe beyond the gauge is m. The two agree. ✅

  2. What Bernoulli without losses would say. Set and the equation gives m. That is 9.8 m too low. A pump that gives only 68 m at 12 m³/h cannot deliver 12 m³/h through this pipe. ✅

  3. With the script. The Python script below, from the given data, prints the same pump head of 77.86 m, the same three grade line values and 2.59 bar at ground level. ✅

Verify It in Python



The script calculates the velocity and velocity head for the three diameters, solves the energy equation for the pump head, and prints and plots the grade lines with the pipe.

energy_equation_rising_main.py
"""Continuity and the energy equation for the borehole rising main."""
import numpy as np
import matplotlib.pyplot as plt
RHO = 998.0 # kg/m3, water at 20 degC
G = 9.81 # m/s2
Q_H = 12.0 # m3/h
Q = Q_H / 3600.0 # m3/s
Z1 = -50.0 # m, pumping water level (ground level is zero)
Z2 = 18.0 # m, tank inlet
Z_PUMP = -70.0 # m, pump
H_LOSS = 9.8 # m, loss in the rising main at 12 m3/h (given)
L_BORE, L_TOTAL = 70.0, 520.0 # m of pipe in the borehole, and in total
def velocity(q, d):
"""Mean velocity in m/s for a flow q (m3/s) in a pipe of inside diameter d (m)."""
return q / (np.pi * d**2 / 4.0)
print(f"Flow: {Q_H:.0f} m3/h = {Q * 1000:.3f} L/s = {Q:.6f} m3/s")
print("Application 1: velocity and velocity head")
for d_mm in (50.0, 63.0, 80.0):
v = velocity(Q, d_mm / 1000.0)
print(f" {d_mm:.0f} mm: area {np.pi * (d_mm / 1000.0)**2 / 4.0 * 1e6:.0f} mm2, "
f"V = {v:.3f} m/s, velocity head = {v**2 / (2 * G):.3f} m")
print("Application 2: energy equation, water surface to tank inlet")
v2 = velocity(Q, 0.063)
hv2 = v2**2 / (2 * G)
lift = Z2 - Z1
h_pump = lift + hv2 + H_LOSS
print(f" elevation term: {lift:.1f} m ({100 * lift / h_pump:.1f} % of the total)")
print(f" loss term: {H_LOSS:.1f} m ({100 * H_LOSS / h_pump:.1f} % of the total)")
print(f" velocity head: {hv2:.3f} m ({100 * hv2 / h_pump:.2f} % of the total)")
print(f" pump head needed: {h_pump:.2f} m")
print(f" without losses the equation gives: {lift + hv2:.2f} m "
f"({h_pump - lift - hv2:.1f} m too low)")
# Grade lines, with the loss spread evenly along the pipe (a simplification)
x = np.array([0.0, L_BORE, L_TOTAL]) # m of pipe from the pump
egl = Z1 + h_pump - H_LOSS * x / L_TOTAL
hgl = egl - hv2
z_pipe = np.array([Z_PUMP, 0.0, Z2])
p_gauge = np.round(RHO * G * (hgl - z_pipe), 6) + 0.0
print("Grade lines (ground level is zero)")
for name, i in (("pump outlet", 0), ("ground level", 1), ("tank inlet", 2)):
print(f" {name:<12}: EGL {egl[i]:6.2f} m, HGL {hgl[i]:6.2f} m, "
f"gauge pressure {p_gauge[i] / 1e5:5.2f} bar")
print(f" gauge at ground level with no flow: {RHO * G * Z2 / 1e5:.2f} bar")
# ---------- Plot ----------
fig, ax = plt.subplots(figsize=(8, 5))
ax.plot(x, egl, label="energy grade line")
ax.plot(x, hgl, "--", label="hydraulic grade line")
ax.plot(x, z_pipe, color="gray", label="pipe")
ax.plot([-40.0, 0.0], [Z1, Z1], ":", label="energy of the water in the borehole")
ax.annotate("pump adds\n%.1f m" % h_pump, xy=(0.0, (Z1 + egl[0]) / 2.0),
xytext=(60.0, -30.0), arrowprops={"arrowstyle": "->"})
ax.set_xlabel("distance along the pipe from the pump (m)")
ax.set_ylabel("head above ground level (m)")
ax.set_title("Grade lines of the rising main at 12 m3/h")
ax.grid(True, alpha=0.3)
ax.legend(loc="lower right")
fig.tight_layout()
fig.savefig("energy_equation_rising_main.png", dpi=120)
print("Saved energy_equation_rising_main.png")

Expected output

Flow: 12 m3/h = 3.333 L/s = 0.003333 m3/s
Application 1: velocity and velocity head
50 mm: area 1963 mm2, V = 1.698 m/s, velocity head = 0.147 m
63 mm: area 3117 mm2, V = 1.069 m/s, velocity head = 0.058 m
80 mm: area 5027 mm2, V = 0.663 m/s, velocity head = 0.022 m
Application 2: energy equation, water surface to tank inlet
elevation term: 68.0 m (87.3 % of the total)
loss term: 9.8 m (12.6 % of the total)
velocity head: 0.058 m (0.07 % of the total)
pump head needed: 77.86 m
without losses the equation gives: 68.06 m (9.8 m too low)
Grade lines (ground level is zero)
pump outlet : EGL 27.86 m, HGL 27.80 m, gauge pressure 9.57 bar
ground level: EGL 26.54 m, HGL 26.48 m, gauge pressure 2.59 bar
tank inlet : EGL 18.06 m, HGL 18.00 m, gauge pressure 0.00 bar
gauge at ground level with no flow: 1.76 bar
Saved energy_equation_rising_main.png

In the plot the two grade lines cannot be told apart, because they are 0.058 m apart on an axis that spans 100 m. The gap between the grade lines and the pipe is widest at the pump and closes to nothing at the tank inlet.

Common Mistakes



  • Selecting a pump from the lift alone. The pump must also supply the loss in the pipe and fittings, which is 9.8 m in this system and can exceed the lift in a long, small pipe.
  • Using the nominal or outside diameter in . The inside diameter sets the area, and the error is squared in the velocity and raised to the fourth power in the velocity head.
  • Putting the flow into a formula in cubic metres per hour. Divide by 3,600 first.
  • Applying Bernoulli’s equation without losses to a long pipe and concluding that the pressure at the far end equals the pressure at the pump, less the height.
  • Mixing a gauge pressure at one point with an absolute pressure at the other, or measuring the two elevations from different levels.
  • Counting the exit of the pipe twice, as a fitting loss and again as a velocity head.

Summary



  • Continuity: in a full pipe with no branch, is the same at every section. Velocity follows the inverse square of the inside diameter.
  • Water carries head in three forms: pressure head, velocity head and elevation head. Their sum is the total head.
  • Bernoulli’s equation keeps the total head constant. It is correct only where losses are negligible, over short distances with a large change of velocity or height.
  • The energy equation adds the pump head on the upstream side and the loss on the downstream side. Choose points where the pressure and velocity are known, such as free surfaces.
  • In the rising main at 12 m³/h, the velocity is 1.069 m/s and the velocity head is 0.058 m. The pump must give 77.9 m: 68.0 m of lift, 9.8 m of loss and a negligible velocity head.
  • The energy grade line falls along the flow and rises only at a pump. The hydraulic grade line is one velocity head below it, and its height above the pipe is the gauge pressure head.

Exercises



Use and .

1. A pipe with an inside diameter of 100 mm carries of water. Find the mean velocity.

Answer

and , so m/s.

2. A pipe of 80 mm inside diameter narrows to 50 mm. The flow is . Find the velocity and the velocity head in each part.

Answer

. In the 80 mm part, m/s and the velocity head is 0.050 m. In the 50 mm part, m/s and the velocity head is 0.331 m.

3. The contraction of Exercise 2 is short, smooth and level. The gauge pressure in the 80 mm part is 300 kPa. Use Bernoulli’s equation without losses to find the pressure in the 50 mm part. Say why the equation is acceptable here.

Answer

Pa, so 297.3 kPa. The fall of 2.7 kPa is the rise of velocity head, 0.280 m of water. The contraction is short and smooth, so the loss inside it is small compared with that change.

4. A pump moves water from an open tank into a closed vessel held at 200 kPa gauge. The water surface in the vessel is 25 m above the surface in the tank. The loss in the pipe is 6.5 m. Both surfaces are wide. Find the pump head.

Answer

With both velocities zero, m.

5. Two gauges are fitted 200 m apart on a pipe of constant diameter that carries a steady flow. The upstream gauge reads 410 kPa. Find the head lost between them if (a) the pipe is level and the downstream gauge reads 385 kPa, and (b) the downstream gauge is 6.0 m higher than the upstream gauge and reads 330 kPa.

Answer

The velocity heads are equal and cancel, so . (a) m. (b) m. In (b) most of the fall of pressure is height gained, and only 2.17 m is loss.

6. In a dry season the pumping water level of Application 2 falls to 56 m below ground. The flow is held at , so the loss stays at 9.8 m and the exit velocity head at 0.058 m. Find the new pump head and the new reading of the gauge at ground level.

Answer

m, which is 6.0 m more than before. The grade line at the pump outlet is m, the same as before, so the gauge at ground level still reads 2.59 bar. Everything downstream of the pump is unchanged at the same flow. The extra 6 m is hidden below ground, and only a level measurement in the borehole reveals it.

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.
  • I. J. Karassik, J. P. Messina, P. Cooper and C. C. Heald, Pump Handbook, 4th edition, McGraw-Hill, 2008.


© 2021-2026 SiliconWit®. All rights reserved.
Predict first

Water flows through a short, smooth, level pipe that narrows from 80 mm to 50 mm. Gauges are fitted in the wide part and in the narrow part. Which gauge reads higher?

80 mm63 mm50 mm 0.66 m/s1.07 m/s1.70 m/s Same 12 m³/h. Half the diameter: four times the speed.
See it: faster water, lower pressure

Velocity, wide part (80 mm)
Velocity, throat
Pressure in the throat

The pipe is level and has 300 kPa gauge in its wide part, as in the lesson's Exercise 3. Only the top of each open tube is drawn: the water stands 30.6 m above the wide pipe, and the drawing shows only the top of each column, to scale. The contraction is taken as ideal, with no loss, so the pressure comes back in full after the throat. A real one gives back a little less.

lift68.0 mlift68.0 m + loss 9.8 m ordered: 68 m needed: 77.9 m Moving water loses head. The pump pays for it.

Check yourself

Three questions. Each wrong choice is a mistake people really make, so read the note after you answer.

1. A pipe of 50 mm inside diameter carries 20 m³/h at 2.83 m/s. It is replaced by a pipe of 100 mm inside diameter carrying the same flow. What is the new velocity?

2. A pipe of one diameter rises to a tank inlet 25 m above a gauge at ground level, and discharges into the air. With the pump running, 10 m of head is lost in the whole pipe: 6 m before the gauge and 4 m after it. What does the gauge read?

3. A water main crosses a small hill. With the design flow, the hydraulic grade line at the crest is 3 m below the pipe. What is the state of the water in the pipe at the crest?

Watch it build: the grade lines of the rising main
1 pump EGL 27.9 18.1 +77.9 loss 9.8 m HGL (dashed): 0.06 munder the EGL, toothin to see here ground: 26.5 min the tube,a gauge reads 2.59 bar crest 24 m, HGL 19.6 mpressure head −4.4 m:air enters at the joints
  1. The total head along the main, the EGL: 27.9 m after the pump, 18.1 m at the tank.
  2. The EGL rises 77.9 m across the pump, from the water at −50 m, then loses 9.8 m.
  3. The HGL is one velocity head, 0.06 m, under the EGL. In this pipe the lines nearly touch.
  4. A tube at ground level fills to the HGL, 26.5 m: the gauge there reads 2.59 bar.
  5. A crest at 24 m rises above the HGL of 19.6 m: the pressure there is below atmospheric.
tank (2) tank inlet z = +18 m ground, z = 0 450 m along the ground 63 mm pipe, 520 m in total 50 m (1) pumping water level z = −50 m pump, z = −70 m
The rising main and the two points of the energy equation
area A₁ area A₂ V₁, slow V₂, fast Q Q = V₁ A₁ = V₂ A₂ the same flow Q passes every section
Continuity: one flow through two diameters
datum, z = 0 velocity V pipe energy grade line hydraulic grade line z, elevation head p/(ρg), pressure head V²/(2g), velocity head water in an open tube rises to here
The three heads at one point in a pipe (an example, not to scale)
0 70 200 300 400 520 −70 −50 −25 0 18 28 distance along the main from the pump, m head, m 1: water level, −50.0 m pump adds 77.9 m A 27.9 m B 26.5 m C 18.1 m EGL; the HGL (dashed) is 0.06 m lower pipe on the ground pipe in the borehole tank inlet, 18 m
Grade lines of the rising main at 12 m³/h
Found this useful?

Discussion

    Comments show your name. Be kind, stay on the topic.