Achievable logoAchievable logo
FE Civil
Sign in
Sign up
Purchase
Textbook
Practice exams
Support
How it works
Resources
Exam catalog
Mountain with a flag at the peak
Textbook
Introduction
1. Mathematics
2. Combinatorics, probability and statistics
3. Ethics and professional practice
4. Engineering economics
5. Statics
6. Materials
7. Dynamics
8. Mechanics of materials
9. Fluid mechanics
9.1 Fluid statics
9.2 Mass and energy conservation
9.3 Pipe hydraulics
9.4 Fluid flow measurement
10. Soil mechanics
11. Structural engineering
12. Concrete structure design
13. Water resources engineering
14. Environmental engineering
15. Transportation engineering
16. Surveying
17. Construction engineering
Wrapping up
Achievable logoAchievable logo
9.2 Mass and energy conservation
Achievable FE Civil
9. Fluid mechanics

Mass and energy conservation

11 min read
Font
Discuss
Share
Feedback

This chapter covers the following:

  • Continuity equation
  • Energy equation
  • Hydraulic grade line and energy line
  • Head loss due to flow
  • Minor losses in pipe fittings, contractions, and expansions

Continuity equation

Definitions
Continuity equation
The continuity equation is based on the conservation of mass law. It states that for an incompressible fluid flowing in a closed conduit (pipe), the mass flow rate must remain constant from one cross-section to another.

For incompressible flow, a constant mass flow rate means a constant volumetric flow rate. That gives the continuity relationship:

Q=A1​V1​=A2​V2​⇒D12​V1​=D22​V2​

Where:

  • Q = volumetric flow rate (m3/s)
  • A1​,A2​ = cross-sectional areas at sections 1 and 2 (m2)
  • V1​,V2​ = fluid velocities at sections 1 and 2 (m/s)
  • D1​,D2​ = diameter of circular pipe at sections 1 and 2 (m)

Example

Water flows through a pipe that narrows from a diameter of 0.30 m to 0.15 m. If the velocity in the larger section is 2 m/s, what is the velocity in the narrower section?

Given:

  • D1​=0.30m,V1​=2m/s
  • D2​=0.15m

Solution:

Apply the continuity equation and solve for V2​:

V2​=(D2​D1​​)2V1​=(0.150.30​)2⋅2=4⋅2=8m/s

Energy equation

Definitions
Energy equation
The energy equation is derived from the conservation of energy law and applies to steady, incompressible flow along a streamline.

The energy equation (often introduced as Bernoulli’s equation with pumps, turbines, and losses) balances energy per unit weight between two sections:

γP1​​+2gV12​​+z1​+hp​−ht​=γP2​​+2gV22​​+z2​+hL​

Where:

  • P = pressure (Pa)
  • γ = specific weight of fluid (N/m3)
  • V = velocity (m/s)
  • z = elevation head (m)
  • hL​ = head loss (m)
  • hp​ = head added by the pump into the system (m)
  • ht​ = head taken by the turbine from the system (m)

Exam tip: Keep pressures on a consistent basis - if P1​ is given as gauge pressure, P2​ must come out gauge as well; don’t mix gauge and absolute values in the same equation. It also helps to carry a few extra decimal places through the intermediate steps, since rounding too early can shift the final answer.

Example

Water flows through a horizontal pipe that narrows from 0.30 m to 0.15 m in diameter. If the pressure in the wider section is 300 kPa and velocity is 2 m/s, find the pressure in the narrower section.

Given:

  • D1​=0.30m,V1​=2m/s,P1​=300kPa
  • D2​=0.15m,z1​=z2​ (horizontal pipe)

From the previous example, we know:

V2​=8m/s

Apply Bernoulli (ignoring elevation):

γP1​​+2gV12​​=γP2​​+2gV22​​

Substitute the given values and solve for γP2​​:

30.58+0.204=γP2​​+3.262⇒γP2​​=30.784−3.262=27.522

Convert back to pressure:

P2​=27.522⋅9810≈270000Pa=270kPa

Hydraulic grade line and energy line

Hydraulic gradient (grade line)

Definitions
Hydraulic grade line
The hydraulic grade line represents the sum of pressure head and elevation head at any point in a pipe.

The hydraulic grade line (HGL) tracks how the pressure head plus elevation head changes along a pipe. A practical way to picture it is with piezometers: if you installed piezometer tubes along the pipe, the HGL would connect the water levels in those tubes.

HGL=z+γp​

Energy gradient (grade line)

Definitions
Energy grade line
The energy grade line represents the total head, including velocity head.

The energy grade line (EGL) includes everything in the HGL plus the velocity head. In other words, it represents the total head above a horizontal datum.

The difference between the EGL and the HGL is the velocity head term 2gv2​.

EGL=z+γp​+2gv2​

Head loss due to flow

Definitions
Head loss
Head loss is the reduction in total mechanical energy due to friction and turbulence as fluid flows through a pipe.

In fluid mechanics, head loss is the drop in the fluid’s total mechanical energy (head) as it moves through a pipe or conduit. The main causes are friction along the pipe wall and turbulence in the flow.

Types of head loss

There are two primary types of head loss:

  1. Major head loss - due to friction in straight pipe sections.
  2. Minor head loss - due to fittings, bends, valves, entrances, exits, etc.

Major head loss (Darcy-Weisbach equation)

A common way to compute friction loss in straight pipe flow is the Darcy-Weisbach equation:

hf​=f⋅DL​⋅2gv2​

Where:

  • hf​ = head loss (m)
  • f = Darcy friction factor
  • L = length of the pipe (m)
  • D = diameter of the pipe (m)
  • v = average velocity of fluid (m/s)

Example

Problem: Water flows through a 50 m long, 0.1 m diameter pipe with a velocity of 2 m/s. The Darcy friction factor is 0.02. Calculate the major head loss.

Given:

  • L=50m
  • D=0.1m
  • v=2m/s
  • f=0.02

Solution:

Using the Darcy-Weisbach equation:

hf​=0.02⋅0.150​⋅2⋅9.8122​

hf​=2.04m

Answer: The major head loss is 2.04 m.

Head loss due to flow (Manning’s and Hazen-Williams equations)

Two other widely used empirical equations to estimate head loss are:

  • Manning’s equation (typically used for open channel flow and full-flowing circular pipes)
  • Hazen-Williams equation (commonly used for pressurized pipe flow with water)

Watch the units: Manning’s K (1.486 for USCS units, 1.0 for SI units) and Hazen-Williams K1​ (1.318 for USCS units, 0.849 for SI units) must match the unit system of the given data - using the wrong K silently produces a plausible-looking wrong answer. All examples on this page use SI units.

Manning’s equation

Manning’s equation estimates the velocity of flow in an open channel or full-flowing pipe:

Q=nK​AR2/3S1/2

V=nK​R2/3S1/2

Where:

  • V = velocity of flow (m/s or ft/s)
  • n = Manning’s roughness coefficient
  • R = hydraulic radius (m or ft), R=PA​
  • S = slope of the energy grade line
  • A = cross-sectional area of flow (m2 or ft2)
  • P = wetted perimeter (m or ft)
  • K = 1.486 for USCS units, 1.0 for SI units

To compute head loss (hf​) over a pipe length L for a full-flowing circular pipe, it helps to rewrite R, S, and A in terms of the pipe diameter and length. These relations are reused in the Hazen-Williams example below as well:

R=PA​=πDπD2/4​=4D​,S=Lhf​​,A=4π​D2

Example

A 300 mm diameter concrete pipe (n=0.013) is flowing full. Flow velocity is 1.5 m/s, and the pipe length is 200 m.

V=n1​(4D​)2/3(Lhf​​)1/2

Substitute the given values:

1.5=0.0131​(40.3​)2/3(200hf​​)1/2

Simplify the constant term and isolate the square-root term:

1.5=76.92⋅0.1778⋅(200hf​​)1/2=13.68⋅(200hf​​)1/2

(200hf​​)1/2=13.681.5​≈0.1097

Square both sides and solve for hf​:

hf​≈(0.1097)2⋅200≈2.41 m

Hazen-Williams equation

Hazen-Williams equation is used for water flow in pressurized pipes:

V=K1​⋅C⋅R0.63⋅S0.54

Q=K1​⋅C⋅A⋅R0.63⋅S0.54

Where:

  • V = velocity of flow (m/s or ft/s)
  • C = Hazen-Williams roughness coefficient (C-factor)
  • R = hydraulic radius (m or ft), R=PA​
  • S = slope of the energy grade line
  • A = cross-sectional area of flow (m2 or ft2)
  • P = wetted perimeter (m or ft)
  • K1​ = 0.849 for SI units, 1.318 for USCS units

The same relations for R, S, and A from the Manning’s equation section above apply here as well.

Example

Water flows through a 150 mm diameter PVC pipe (C=140) at a rate of 0.03 m3/s over 100 m.

Q=K1​⋅C⋅(4π​D2)⋅(4D​)0.63⋅(100hf​​)0.54

Substitute the given values:

0.03=0.849⋅140⋅(4π​0.152)⋅(40.15​)0.63⋅(100hf​​)0.54

Simplify the constant term and isolate (100hf​​)0.54:

0.03=0.2655⋅(100hf​​)0.54⇒(100hf​​)0.54=0.26550.03​≈0.1130

Since the exponent on the right is 0.54, raise both sides to the power 0.541​ to solve for hf​:

100hf​​=(0.1130)1/0.54≈0.0176⇒hf​≈1.76 m

This is consistent with the standard SI Hazen-Williams head-loss form, hf​=C1.852⋅D4.8710.67⋅L⋅Q1.852​, which gives the same result.

Minor losses in pipe fittings, contractions, and expansions

Minor losses are calculated using the formula:

hm​=Km​⋅2gv2​

Where:

  • hm​ = minor head loss (m)
  • Km​ = loss coefficient (depends on fitting type)
  • v = velocity of fluid (m/s)

For sharp exit, protruding pipe entrance, sharp entrance, and round entrance the value of Km​ will be 1.0, 0.8, 0.5, and 0.04 respectively.

Total head loss hL​ will be major loss hf​ plus hm​, therefore, hL​=hf​+hm​.

Example

Water flows at 3 m/s through a 100 m long, 0.2 m diameter pipe with a Darcy friction factor of 0.02. The pipe has a sharp entrance (Km​=0.5). Find the total head loss.

Given:

  • L=100m,D=0.2m,v=3m/s,f=0.02,Km​=0.5

Solution:

First, find the major head loss:

hf​=f⋅DL​⋅2gv2​=0.02⋅0.2100​⋅2⋅9.8132​=10⋅0.459≈4.59 m

Then find the minor head loss from the entrance, using the same 2gv2​ term:

hm​=Km​⋅2gv2​=0.5⋅0.459≈0.23 m

Add the two together for the total head loss:

hL​=hf​+hm​=4.59+0.23≈4.82 m

Answer: The total head loss is 4.82 m.

Continuity equation

  • Conservation of mass: Q=A1​V1​=A2​V2​
  • For circular pipes: D12​V1​=D22​V2​
  • Volumetric flow rate (Q) constant for incompressible flow

Energy equation

  • Conservation of energy for steady, incompressible flow
  • General form: racP1​eta+racV12​2g+z1​+hp​−ht​=racP2​eta+racV22​2g+z2​+hL​
  • Accounts for pressure, velocity, elevation, pumps (hp​), turbines (ht​), and head loss (hL​)

Hydraulic grade line and energy line

  • Hydraulic Grade Line (HGL): z+racpeta
    • Represents pressure head plus elevation head
  • Energy Grade Line (EGL): z+racpeta+racv22g
    • Includes velocity head; always above HGL by racv22g

Head loss due to flow

  • Head loss: energy reduction due to friction and turbulence
  • Two types:
    • Major head loss: friction in straight pipes (Darcy-Weisbach)
    • Minor head loss: fittings, bends, valves, entrances/exits

Major head loss (Darcy-Weisbach equation)

  • hf​=f⋅DL​⋅2gv2​
    • f: Darcy friction factor
    • L: pipe length, D: diameter, v: velocity

Manning’s and Hazen-Williams equations

  • Manning’s equation (full-flowing pipes/open channels):
    • V=nK​R2/3S1/2, Q=VA
    • R=4D​ for full pipe, S=Lhf​​
    • n: roughness coefficient
  • Hazen-Williams equation (pressurized water pipes):
    • V=K1​CR0.63S0.54, Q=VA
    • C: roughness coefficient, K1​: unit-dependent constant

Minor losses in pipe fittings, contractions, and expansions

  • Minor loss: hm​=Km​⋅2gv2​
    • Km​: loss coefficient (varies by fitting)
      • Sharp exit: 1.0, protruding entrance: 0.8, sharp entrance: 0.5, round entrance: 0.1
  • Total head loss: hL​=hf​+hm​

Sign up for free to take 5 quiz questions on this topic

Previous
Next  | 9.3 Pipe hydraulics
All rights reserved ©2016 - 2026 Achievable, Inc.

Mass and energy conservation

This chapter covers the following:

  • Continuity equation
  • Energy equation
  • Hydraulic grade line and energy line
  • Head loss due to flow
  • Minor losses in pipe fittings, contractions, and expansions

Continuity equation

Definitions
Continuity equation
The continuity equation is based on the conservation of mass law. It states that for an incompressible fluid flowing in a closed conduit (pipe), the mass flow rate must remain constant from one cross-section to another.

For incompressible flow, a constant mass flow rate means a constant volumetric flow rate. That gives the continuity relationship:

Q=A1​V1​=A2​V2​⇒D12​V1​=D22​V2​

Where:

  • Q = volumetric flow rate (m3/s)
  • A1​,A2​ = cross-sectional areas at sections 1 and 2 (m2)
  • V1​,V2​ = fluid velocities at sections 1 and 2 (m/s)
  • D1​,D2​ = diameter of circular pipe at sections 1 and 2 (m)

Example

Water flows through a pipe that narrows from a diameter of 0.30 m to 0.15 m. If the velocity in the larger section is 2 m/s, what is the velocity in the narrower section?

Given:

  • D1​=0.30m,V1​=2m/s
  • D2​=0.15m

Solution:

Apply the continuity equation and solve for V2​:

V2​=(D2​D1​​)2V1​=(0.150.30​)2⋅2=4⋅2=8m/s

Energy equation

Definitions
Energy equation
The energy equation is derived from the conservation of energy law and applies to steady, incompressible flow along a streamline.

The energy equation (often introduced as Bernoulli’s equation with pumps, turbines, and losses) balances energy per unit weight between two sections:

γP1​​+2gV12​​+z1​+hp​−ht​=γP2​​+2gV22​​+z2​+hL​

Where:

  • P = pressure (Pa)
  • γ = specific weight of fluid (N/m3)
  • V = velocity (m/s)
  • z = elevation head (m)
  • hL​ = head loss (m)
  • hp​ = head added by the pump into the system (m)
  • ht​ = head taken by the turbine from the system (m)

Exam tip: Keep pressures on a consistent basis - if P1​ is given as gauge pressure, P2​ must come out gauge as well; don’t mix gauge and absolute values in the same equation. It also helps to carry a few extra decimal places through the intermediate steps, since rounding too early can shift the final answer.

Example

Water flows through a horizontal pipe that narrows from 0.30 m to 0.15 m in diameter. If the pressure in the wider section is 300 kPa and velocity is 2 m/s, find the pressure in the narrower section.

Given:

  • D1​=0.30m,V1​=2m/s,P1​=300kPa
  • D2​=0.15m,z1​=z2​ (horizontal pipe)

From the previous example, we know:

V2​=8m/s

Apply Bernoulli (ignoring elevation):

γP1​​+2gV12​​=γP2​​+2gV22​​

Substitute the given values and solve for γP2​​:

30.58+0.204=γP2​​+3.262⇒γP2​​=30.784−3.262=27.522

Convert back to pressure:

P2​=27.522⋅9810≈270000Pa=270kPa

Hydraulic grade line and energy line

Hydraulic gradient (grade line)

Definitions
Hydraulic grade line
The hydraulic grade line represents the sum of pressure head and elevation head at any point in a pipe.

The hydraulic grade line (HGL) tracks how the pressure head plus elevation head changes along a pipe. A practical way to picture it is with piezometers: if you installed piezometer tubes along the pipe, the HGL would connect the water levels in those tubes.

HGL=z+γp​

Energy gradient (grade line)

Definitions
Energy grade line
The energy grade line represents the total head, including velocity head.

The energy grade line (EGL) includes everything in the HGL plus the velocity head. In other words, it represents the total head above a horizontal datum.

The difference between the EGL and the HGL is the velocity head term 2gv2​.

EGL=z+γp​+2gv2​

Head loss due to flow

Definitions
Head loss
Head loss is the reduction in total mechanical energy due to friction and turbulence as fluid flows through a pipe.

In fluid mechanics, head loss is the drop in the fluid’s total mechanical energy (head) as it moves through a pipe or conduit. The main causes are friction along the pipe wall and turbulence in the flow.

Types of head loss

There are two primary types of head loss:

  1. Major head loss - due to friction in straight pipe sections.
  2. Minor head loss - due to fittings, bends, valves, entrances, exits, etc.

Major head loss (Darcy-Weisbach equation)

A common way to compute friction loss in straight pipe flow is the Darcy-Weisbach equation:

hf​=f⋅DL​⋅2gv2​

Where:

  • hf​ = head loss (m)
  • f = Darcy friction factor
  • L = length of the pipe (m)
  • D = diameter of the pipe (m)
  • v = average velocity of fluid (m/s)

Example

Problem: Water flows through a 50 m long, 0.1 m diameter pipe with a velocity of 2 m/s. The Darcy friction factor is 0.02. Calculate the major head loss.

Given:

  • L=50m
  • D=0.1m
  • v=2m/s
  • f=0.02

Solution:

Using the Darcy-Weisbach equation:

hf​=0.02⋅0.150​⋅2⋅9.8122​

hf​=2.04m

Answer: The major head loss is 2.04 m.

Head loss due to flow (Manning’s and Hazen-Williams equations)

Two other widely used empirical equations to estimate head loss are:

  • Manning’s equation (typically used for open channel flow and full-flowing circular pipes)
  • Hazen-Williams equation (commonly used for pressurized pipe flow with water)

Watch the units: Manning’s K (1.486 for USCS units, 1.0 for SI units) and Hazen-Williams K1​ (1.318 for USCS units, 0.849 for SI units) must match the unit system of the given data - using the wrong K silently produces a plausible-looking wrong answer. All examples on this page use SI units.

Manning’s equation

Manning’s equation estimates the velocity of flow in an open channel or full-flowing pipe:

Q=nK​AR2/3S1/2

V=nK​R2/3S1/2

Where:

  • V = velocity of flow (m/s or ft/s)
  • n = Manning’s roughness coefficient
  • R = hydraulic radius (m or ft), R=PA​
  • S = slope of the energy grade line
  • A = cross-sectional area of flow (m2 or ft2)
  • P = wetted perimeter (m or ft)
  • K = 1.486 for USCS units, 1.0 for SI units

To compute head loss (hf​) over a pipe length L for a full-flowing circular pipe, it helps to rewrite R, S, and A in terms of the pipe diameter and length. These relations are reused in the Hazen-Williams example below as well:

R=PA​=πDπD2/4​=4D​,S=Lhf​​,A=4π​D2

Example

A 300 mm diameter concrete pipe (n=0.013) is flowing full. Flow velocity is 1.5 m/s, and the pipe length is 200 m.

V=n1​(4D​)2/3(Lhf​​)1/2

Substitute the given values:

1.5=0.0131​(40.3​)2/3(200hf​​)1/2

Simplify the constant term and isolate the square-root term:

1.5=76.92⋅0.1778⋅(200hf​​)1/2=13.68⋅(200hf​​)1/2

(200hf​​)1/2=13.681.5​≈0.1097

Square both sides and solve for hf​:

hf​≈(0.1097)2⋅200≈2.41 m

Hazen-Williams equation

Hazen-Williams equation is used for water flow in pressurized pipes:

V=K1​⋅C⋅R0.63⋅S0.54

Q=K1​⋅C⋅A⋅R0.63⋅S0.54

Where:

  • V = velocity of flow (m/s or ft/s)
  • C = Hazen-Williams roughness coefficient (C-factor)
  • R = hydraulic radius (m or ft), R=PA​
  • S = slope of the energy grade line
  • A = cross-sectional area of flow (m2 or ft2)
  • P = wetted perimeter (m or ft)
  • K1​ = 0.849 for SI units, 1.318 for USCS units

The same relations for R, S, and A from the Manning’s equation section above apply here as well.

Example

Water flows through a 150 mm diameter PVC pipe (C=140) at a rate of 0.03 m3/s over 100 m.

Q=K1​⋅C⋅(4π​D2)⋅(4D​)0.63⋅(100hf​​)0.54

Substitute the given values:

0.03=0.849⋅140⋅(4π​0.152)⋅(40.15​)0.63⋅(100hf​​)0.54

Simplify the constant term and isolate (100hf​​)0.54:

0.03=0.2655⋅(100hf​​)0.54⇒(100hf​​)0.54=0.26550.03​≈0.1130

Since the exponent on the right is 0.54, raise both sides to the power 0.541​ to solve for hf​:

100hf​​=(0.1130)1/0.54≈0.0176⇒hf​≈1.76 m

This is consistent with the standard SI Hazen-Williams head-loss form, hf​=C1.852⋅D4.8710.67⋅L⋅Q1.852​, which gives the same result.

Minor losses in pipe fittings, contractions, and expansions

Minor losses are calculated using the formula:

hm​=Km​⋅2gv2​

Where:

  • hm​ = minor head loss (m)
  • Km​ = loss coefficient (depends on fitting type)
  • v = velocity of fluid (m/s)

For sharp exit, protruding pipe entrance, sharp entrance, and round entrance the value of Km​ will be 1.0, 0.8, 0.5, and 0.04 respectively.

Total head loss hL​ will be major loss hf​ plus hm​, therefore, hL​=hf​+hm​.

Example

Water flows at 3 m/s through a 100 m long, 0.2 m diameter pipe with a Darcy friction factor of 0.02. The pipe has a sharp entrance (Km​=0.5). Find the total head loss.

Given:

  • L=100m,D=0.2m,v=3m/s,f=0.02,Km​=0.5

Solution:

First, find the major head loss:

hf​=f⋅DL​⋅2gv2​=0.02⋅0.2100​⋅2⋅9.8132​=10⋅0.459≈4.59 m

Then find the minor head loss from the entrance, using the same 2gv2​ term:

hm​=Km​⋅2gv2​=0.5⋅0.459≈0.23 m

Add the two together for the total head loss:

hL​=hf​+hm​=4.59+0.23≈4.82 m

Answer: The total head loss is 4.82 m.

Key points

Continuity equation

  • Conservation of mass: Q=A1​V1​=A2​V2​
  • For circular pipes: D12​V1​=D22​V2​
  • Volumetric flow rate (Q) constant for incompressible flow

Energy equation

  • Conservation of energy for steady, incompressible flow
  • General form: racP1​eta+racV12​2g+z1​+hp​−ht​=racP2​eta+racV22​2g+z2​+hL​
  • Accounts for pressure, velocity, elevation, pumps (hp​), turbines (ht​), and head loss (hL​)

Hydraulic grade line and energy line

  • Hydraulic Grade Line (HGL): z+racpeta
    • Represents pressure head plus elevation head
  • Energy Grade Line (EGL): z+racpeta+racv22g
    • Includes velocity head; always above HGL by racv22g

Head loss due to flow

  • Head loss: energy reduction due to friction and turbulence
  • Two types:
    • Major head loss: friction in straight pipes (Darcy-Weisbach)
    • Minor head loss: fittings, bends, valves, entrances/exits

Major head loss (Darcy-Weisbach equation)

  • hf​=f⋅DL​⋅2gv2​
    • f: Darcy friction factor
    • L: pipe length, D: diameter, v: velocity

Manning’s and Hazen-Williams equations

  • Manning’s equation (full-flowing pipes/open channels):
    • V=nK​R2/3S1/2, Q=VA
    • R=4D​ for full pipe, S=Lhf​​
    • n: roughness coefficient
  • Hazen-Williams equation (pressurized water pipes):
    • V=K1​CR0.63S0.54, Q=VA
    • C: roughness coefficient, K1​: unit-dependent constant

Minor losses in pipe fittings, contractions, and expansions

  • Minor loss: hm​=Km​⋅2gv2​
    • Km​: loss coefficient (varies by fitting)
      • Sharp exit: 1.0, protruding entrance: 0.8, sharp entrance: 0.5, round entrance: 0.1
  • Total head loss: hL​=hf​+hm​

More from Fluid mechanics

  • Fluid statics
  • Pipe hydraulics
  • Fluid flow measurement