Achievable logoAchievable logo
FE Civil
Sign in
Sign up
Purchase
Textbook
Practice exams
Support
How it works
Exam catalog
Mountain with a flag at the peak
Textbook
Introduction
1. Mathematics
2. Combinatorics, probability and statistics
3. Engineering economics
4. Statics
5. Materials
6. Dynamics
7. Mechanics of materials
8. Fluid mechanics
8.1 Fluid statics
8.2 Mass and energy conservation
8.3 Pipe hydraulics
8.4 Fluid flow measurement
9. Soil mechanics
10. Structural engineering
11. Concrete structure design
12. Water resources engineering
13. Environmental engineering
14. Transportation engineering
15. Surveying, construction, ethics and professional practice
16. Wrapping up
(change me)
Achievable logoAchievable logo
8.2 Mass and energy conservation
Achievable FE Civil
8. Fluid mechanics
Our FE Civil course is currently in development and is a work-in-progress.

Mass and energy conservation

8 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

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/s)

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:

D12​V1​=D22​V2​

Solve for V2​:

V2​=≈7.99m/s

Energy equation

Definitions

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)

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​≈7.99m/s

Apply Bernoulli (ignoring elevation):

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

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

30.58+0.204=γP2​​+3.25⇒γP2​​=30.784−3.25=27.534

Convert back to pressure:

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

Hydraulic grade line and Energy line

Hydraulic gradient (grade line)

Definitions

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

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 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)

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 (h_f) over a pipe lengthL, we can use following tricks

R=PA​=πDπD2/4​=4D​

S=Lhf​​

and

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

Solve for hf​:

hf​=0.552 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 = 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)
  • K1​= 0.849 for SI units, 1.318 for USCS units

Similarly, to compute head loss (h_f) over a pipe lengthL, we can use following tricks

R=PA​=πDπD2/4​=4D​

S=Lhf​​

and

A=4π​D2

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

Solve for hf​:

hf​≈0.0189 m

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.1 respectively.

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

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  | 8.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

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/s)

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:

D12​V1​=D22​V2​

Solve for V2​:

V2​=≈7.99m/s

Energy equation

Definitions

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)

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​≈7.99m/s

Apply Bernoulli (ignoring elevation):

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

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

30.58+0.204=γP2​​+3.25⇒γP2​​=30.784−3.25=27.534

Convert back to pressure:

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

Hydraulic grade line and Energy line

Hydraulic gradient (grade line)

Definitions

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

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 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)

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 (h_f) over a pipe lengthL, we can use following tricks

R=PA​=πDπD2/4​=4D​

S=Lhf​​

and

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

Solve for hf​:

hf​=0.552 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 = 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)
  • K1​= 0.849 for SI units, 1.318 for USCS units

Similarly, to compute head loss (h_f) over a pipe lengthL, we can use following tricks

R=PA​=πDπD2/4​=4D​

S=Lhf​​

and

A=4π​D2

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

Solve for hf​:

hf​≈0.0189 m

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.1 respectively.

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

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