🐍 Interactive Jupyter Notebook: lecture_14_energy_conservation.ipynb
πŸ“₯ Download Page as .ipynb (Python Notebook) πŸ“‘ Download Blank Slides (PDF)

14. Conservation of Energy for Control Volumes and Flow Work

Term: Spring 2026
Instructor: Mukhamad Suhermanto
Primary References:


Learning Objectives:

  1. Derive the flow work rate \(\dot{W}_{\text{flow}} = P v \dot{m}\) required to push fluid across the control surface.
  2. Demonstrate how internal energy and flow work combine naturally into specific enthalpy \(h = u + Pv\).
  3. Formulate the complete Reynolds Transport Theorem energy equation for an unsteady control volume.
  4. State and simplify the Steady Flow Energy Equation (SFEE) for single-inlet/single-outlet and multi-stream devices.
  5. Define stagnation enthalpy \(h_0 = h + \frac{1}{2}\mathcal{V}^2\) and solve open-system energy balances using kilojoule (COE cv36, COE cv20).

14.1 Flow Work and the Emergence of Enthalpy

Unlike a closed system where boundaries move to do work, an open control volume has fluid flowing across its control surface. To introduce an element of fluid of volume \(V\) into the control volume against the resisting pressure \(P\), the upstream fluid must exert a normal force \(F = P A\) over an axial distance \(L\) (Moran et al. 2014), (Wassgren 2025):

\[ W_{\text{flow}} = F \cdot L = (P A) L = P V \tag{14.1} \]

Expressed on a per-unit-mass basis, the specific flow work \(w_{\text{flow}}\) is:

\[ w_{\text{flow}} = \frac{W_{\text{flow}}}{m} = P \left( \frac{V}{m} \right) = P v \tag{14.2} \]

The corresponding time rate of flow work associated with a stream of mass flow rate \(\dot{m}\) is:

\[ \dot{W}_{\text{flow}} = \dot{m} (P v) \tag{14.3} \]

Flow work must be done on the control volume at an inlet (positive energy influx, \(-P_i v_i \dot{m}_i\)) and done by the control volume to push fluid out at an exit (positive work done, \(+P_e v_e \dot{m}_e\)).

14.1.1 The Total Convected Energy (Methalpy)

Every unit mass crossing the control surface carries internal energy \(u\), kinetic energy \(\frac{1}{2}\mathcal{V}^2\), potential energy \(gz\), and performs flow work \(Pv\). Grouping these terms (Moran et al. 2014), (Waitz and Spakovszky 2008):

\[ e_{\text{convected}} = u + Pv + \frac{1}{2}\mathcal{V}^2 + gz = h + \frac{1}{2}\mathcal{V}^2 + gz \equiv \theta \tag{14.4} \]

Key Idea: Why Enthalpy is the Natural Open-System Variable

Enthalpy \(h \equiv u + Pv\) automatically accounts for both the internal thermal energy \(u\) transported with the fluid and the thermodynamic flow work \(Pv\) necessary to move the fluid across the boundary.

14.2 The General First Law for a Control Volume

Applying the Reynolds Transport Theorem with \(B = E\) and \(b = e = u + \frac{1}{2}\mathcal{V}^2 + gz\), and separating work into shaft/shear/electrical work \(\dot{W}_{\text{CV}}\) and boundary flow work \(\dot{W}_{\text{flow}}\) (Moran et al. 2014), (Wassgren 2025):

\[ \frac{dE_{\text{CV}}}{dt} = \dot{Q}_{\text{CV}} - \dot{W}_{\text{CV}} + \sum_{\text{in}} \dot{m}_i \left( h_i + \frac{\mathcal{V}_i^2}{2} + g z_i \right) - \sum_{\text{out}} \dot{m}_e \left( h_e + \frac{\mathcal{V}_e^2}{2} + g z_e \right) \tag{14.5} \]

where:

Caution: Flow Work is Already Absorbed in \(h\)

Do not count flow work twice! When writing the control volume First Law with \(h\), the work term \(\dot{W}_{\text{CV}}\) includes only shaft work, boundary expansion work, and electrical work. It does not include the \(Pv\) flow work.

14.3 The Steady-State Energy Equation (SFEE)

At steady state, properties within the control volume remain constant in time: \(\frac{dE_{\text{CV}}}{dt} = 0\). Eq. (14.5) becomes the celebrated Steady Flow Energy Equation (SFEE) (Moran et al. 2014), (Yan 2022):

\[ 0 = \dot{Q}_{\text{CV}} - \dot{W}_{\text{CV}} + \sum_{\text{in}} \dot{m}_i \left( h_i + \frac{\mathcal{V}_i^2}{2} + g z_i \right) - \sum_{\text{out}} \dot{m}_e \left( h_e + \frac{\mathcal{V}_e^2}{2} + g z_e \right) \tag{14.6} \]

For a single-inlet, single-outlet device with \(\dot{m}_1 = \dot{m}_2 = \dot{m}\), dividing by \(\dot{m}\) gives the per-unit-mass form:

\[ q - w = (h_2 - h_1) + \frac{\mathcal{V}_2^2 - \mathcal{V}_1^2}{2} + g(z_2 - z_1) \tag{14.7} \]

where \(q = \dot{Q}_{\text{CV}}/\dot{m}\) and \(w = \dot{W}_{\text{CV}}/\dot{m}\).

14.3.1 Stagnation Enthalpy

In high-speed fluid flows where potential energy changes are negligible (\(z_1 \approx z_2\)), we define the stagnation enthalpy \(h_0\) (Waitz and Spakovszky 2008):

\[ h_0 \equiv h + \frac{1}{2}\mathcal{V}^2 \tag{14.8} \]

For an adiabatic device (\(q = 0\)) with no work output (\(w = 0\)), such as a nozzle or diffuser:

\[ h_{0,1} = h_{0,2} \tag{14.9} \]

14.4 Engineering Orders of Magnitude

In thermodynamics, different energy terms have vastly different scales. Always be mindful of conversion units:

\[ \frac{1}{2}(100 \text{ m/s})^2 = 5000 \text{ m}^2/\text{s}^2 = 5 \text{ kJ/kg} \]

\((1000 \text{ m}^2/\text{s}^2 = 1 \text{ kJ/kg})\). Kinetic energy is negligible below \(\approx 30 \text{ m/s}\) but dominant in nozzles and gas turbines!

\[ (9.81 \text{ m/s}^2)(100 \text{ m}) = 981 \text{ m}^2/\text{s}^2 \approx 0.98 \text{ kJ/kg} \]

Potential energy is negligible in almost all thermodynamic devices except hydroelectric turbines and liquid pumps.

from kilojoule.units import Quantity

# Verify conversion of m^2/s^2 to kJ/kg
V1 = Quantity(20, 'm/s')
V2 = Quantity(250, 'm/s')
ke1 = (0.5 * V1**2).to('kJ/kg')
ke2 = (0.5 * V2**2).to('kJ/kg')
Delta_ke = ke2 - ke1

# Potential energy change for 50 m rise
dz = Quantity(50, 'm')
g = Quantity(9.80665, 'm/s^2')
Delta_pe = (g * dz).to('kJ/kg')

print(f"--- Kinetic and Potential Energy Scale Comparison ---")
print(f"Kinetic energy at 20 m/s  : {ke1:.4f}")
print(f"Kinetic energy at 250 m/s : {ke2:.4f}")
print(f"Change in kinetic energy  : {Delta_ke:.4f}")
print(f"Potential energy for 50 m : {Delta_pe:.4f}")
--- Kinetic and Potential Energy Scale Comparison ---
Kinetic energy at 20 m/s  : 0.2000 kJ / kg
Kinetic energy at 250 m/s : 31.2500 kJ / kg
Change in kinetic energy  : 31.0500 kJ / kg
Potential energy for 50 m : 0.4903 kJ / kg

14.5 Worked Example: Direct-Contact Feedwater Heater (COE cv36)

Example 14.1: Open Feedwater Mixing Chamber (COE cv36)

An open feedwater heater operates at steady state at a constant pressure of \(P = 1.0 \text{ MPa}\).

  • Stream 1 (superheated steam bleed): enters at \(T_1 = 200^\circ\text{C}\) with mass flow rate \(\dot{m}_1 = 2.0 \text{ kg/s}\).
  • Stream 2 (compressed liquid water): enters at \(T_2 = 40^\circ\text{C}\).
  • Stream 3 (saturated liquid water): exits at \(P_3 = 1.0 \text{ MPa}\) (\(x_3 = 0\)). The heater is well-insulated (\(\dot{Q} = 0\)), produces no shaft work (\(\dot{W}_{\text{CV}} = 0\)), and kinetic and potential energy changes are negligible.
  1. Determine the required mass flow rate of liquid water \(\dot{m}_2\).
  2. Determine the total exiting mass flow rate \(\dot{m}_3\).

Solution / Analysis

Mass conservation: \(\dot{m}_1 + \dot{m}_2 = \dot{m}_3\). Energy conservation: \(\dot{m}_1 h_1 + \dot{m}_2 h_2 = \dot{m}_3 h_3 = (\dot{m}_1 + \dot{m}_2) h_3\). Rearranging: \(\dot{m}_1 (h_1 - h_3) = \dot{m}_2 (h_3 - h_2) \implies \dot{m}_2 = \dot{m}_1 \frac{h_1 - h_3}{h_3 - h_2}\).

import kilojoule.realfluid as realfluid
from kilojoule.units import Quantity

water = realfluid.Properties('Water')
P = Quantity(1.0, 'MPa')
m_dot_1 = Quantity(2.0, 'kg/s')
T1 = Quantity(200, 'degC')
T2 = Quantity(40, 'degC')

# State 1: Superheated steam at 1.0 MPa, 200 degC
h1 = water.h(p=P, T=T1)

# State 2: Compressed liquid at 1.0 MPa, 40 degC
h2 = water.h(p=P, T=T2)

# State 3: Saturated liquid at 1.0 MPa (x = 0)
h3 = water.h(p=P, x=Quantity(0, ''))
T3 = water.T(p=P, x=Quantity(0, '')).to('degC')

# Mass balance: m_dot_2 = m_dot_1 * (h1 - h3) / (h3 - h2)
m_dot_2 = (m_dot_1 * (h1 - h3) / (h3 - h2)).to('kg/s')
m_dot_3 = m_dot_1 + m_dot_2

print(f"--- COE cv36 Open Feedwater Heater Results ---")
print(f"State 1 Enthalpy h1 : {h1.to('kJ/kg').magnitude:.2f} kJ/kg")
print(f"State 2 Enthalpy h2 : {h2.to('kJ/kg').magnitude:.2f} kJ/kg")
print(f"State 3 Enthalpy h3 : {h3.to('kJ/kg').magnitude:.2f} kJ/kg (T_sat = {T3.magnitude:.2f} degC)")
print(f"Required Liquid Inflow m_dot_2 : {m_dot_2.magnitude:.3f} kg/s")
print(f"Total Exit Flow Rate m_dot_3   : {m_dot_3.magnitude:.3f} kg/s")
--- COE cv36 Open Feedwater Heater Results ---
State 1 Enthalpy h1 : 2828.32 kJ / kg
State 2 Enthalpy h2 : 168.49 kJ / kg
State 3 Enthalpy h3 : 762.51 kJ / kg (T_sat = 179.88 degC)
Required Liquid Inflow m_dot_2 : 6.950 kg / s
Total Exit Flow Rate m_dot_3   : 8.950 kg / s

Engineering Practice Problems (Self-Study Exercises)

Try each problem on paper first using the principles from this chapter, then expand the step-by-step solution to check your derivation.

Practice Problem 1 β€” Flow Work (\(Pv\)) vs.Β Internal Energy (\(u\)) in Steam vs.Β Liquid Water Lines

Both a boiler feedwater pump outlet and a main steam header operate at \(P = 3.0\text{ MPa}\):

πŸ” Click to View Complete Step-by-Step Solution
  1. Line A (Subcooled Liquid at \(3.0\text{ MPa}\)): \[(Pv)_A = (3000\text{ kPa})(0.001003\text{ m}^3/\text{kg}) = 3.01\text{ kJ/kg}\] \[h_A = u_A + (Pv)_A = 125.45 + 3.01 = 128.46\text{ kJ/kg} \quad \left(\frac{Pv}{h} = 2.34\%\right)\]

  2. Line B (Superheated Steam at \(3.0\text{ MPa},\; 400^\circ\text{C}\)): \[(Pv)_B = (3000\text{ kPa})(0.09938\text{ m}^3/\text{kg}) = 298.1\text{ kJ/kg}\] \[h_B = u_B + (Pv)_B = 2933.5 + 298.1 = 3231.7\text{ kJ/kg} \quad \left(\frac{Pv}{h} = 9.23\%\right)\]

  3. Insight: Flow work is tiny (\(<3\%\)) for dense liquids at \(3\text{ MPa}\) but accounts for nearly one-tenth (\(9.23\%\)) of the total convected energy (\(h\)) in steam! Final Result: Liquid \(h = 128.46\text{ kJ/kg}\) (\(Pv = 3.01\)); Steam \(h = 3231.7\text{ kJ/kg}\) (\(Pv = 298.1\)).


Practice Problem 2 β€” Steady-Flow Electric Air Heater with Enthalpy & Kinetic Energy Accounting

Air (\(R = 0.287\), \(c_p = 1.005\text{ kJ}/(\text{kg}\cdot\text{K})\)) enters a horizontal electric duct heater of diameter \(D = 22\text{ cm}\) at \(P_1 = 120\text{ kPa}\), \(T_1 = 290\text{ K}\), and \(\mathcal{V}_1 = 18.0\text{ m/s}\), and exits at \(P_2 = 115\text{ kPa}\) and \(T_2 = 410\text{ K}\). Compute: (a) the mass flow rate \(\dot{m}\) and exit velocity \(\mathcal{V}_2\), (b) the specific enthalpy vs.Β kinetic energy changes (\(\Delta h\) vs.Β \(\Delta ke\)), and (c) the required electrical heating power \(\dot{Q}_{\text{in}}\) (treating the heating element inside the CV or heater power as heat input).

πŸ” Click to View Complete Step-by-Step Solution
  1. Mass Flow Rate & Exit Velocity: With \(A = \pi(0.22)^2/4 = 0.03801\text{ m}^2\): \[\rho_1 = \frac{120}{(0.287)(290)} = 1.4418\text{ kg/m}^3 \implies \dot{m} = (1.4418)(0.03801)(18.0) = 0.9865\text{ kg/s}\] \[\rho_2 = \frac{115}{(0.287)(410)} = 0.9773\text{ kg/m}^3 \implies \mathcal{V}_2 = \frac{0.9865}{(0.9773)(0.03801)} = 26.55\text{ m/s}\]

  2. Compare Thermal Enthalpy Change vs.Β Kinetic Energy Change: \[\Delta h = c_p(T_2 - T_1) = 1.005(410 - 290) = 120.60\text{ kJ/kg}\] \[\Delta ke = \frac{\mathcal{V}_2^2 - \mathcal{V}_1^2}{2000} = \frac{26.55^2 - 18.0^2}{2000} = 0.1906\text{ kJ/kg}\]

  3. SFEE Heating Power (\(\Delta pe = 0, \dot{W}_{\text{cv}} = 0\)): Note \(\Delta ke\) is under \(0.2\%\) of \(\Delta h\): \[\dot{Q}_{\text{in}} = \dot{m}(\Delta h + \Delta ke) = 0.9865(120.60 + 0.1906) = 119.16\text{ kW}\] Final Result: \(\dot{m} = 0.9865\text{ kg/s}\), \(\mathcal{V}_2 = 26.55\text{ m/s}\), \(\dot{Q}_{\text{in}} = 119.16\text{ kW}\).


Practice Problem 3 β€” Wellhead Temperature Prediction for a Vertical Geothermal Riser Pipe

Compressed liquid geothermal water (\(c = 4.30\text{ kJ}/(\text{kg}\cdot\text{K})\), constant \(v = 0.00110\text{ m}^3/\text{kg}\)) flows upward through a uniform-diameter vertical production riser at \(\dot{m} = 28.0\text{ kg/s}\). At the downhole intake (\(z_1 = 0\text{ m}\)), \(P_1 = 3.20\text{ MPa}\) and \(T_1 = 165.0^\circ\text{C}\); at the surface wellhead (\(z_2 = 180\text{ m}\)), pressure has dropped to \(P_2 = 900\text{ kPa}\) and heat loss to surrounding rock equals \(\dot{Q}_{\text{loss}} = 420\text{ kW}\). Neglecting kinetic energy change, apply the Steady-Flow Energy Equation (\(g = 9.807\text{ m/s}^2\)) to find the wellhead temperature \(T_2\).

πŸ” Click to View Complete Step-by-Step Solution
  1. Steady-Flow Energy Equation (Uniform Area \(\implies \Delta ke \approx 0\), No Shaft Work): \[\frac{\dot{Q}}{\dot{m}} = (h_2 - h_1) + g(z_2 - z_1) = c(T_2 - T_1) + v(P_2 - P_1) + g(z_2 - z_1)\]

  2. Evaluate Specific Heat Loss, Flow-Work Change, and Elevation Term: \[q = \frac{-420}{28.0} = -15.00\text{ kJ/kg}, \qquad v(P_2 - P_1) = (0.00110)(900 - 3200) = -2.530\text{ kJ/kg}\] \[\Delta pe = \frac{(9.807)(180)}{1000} = +1.765\text{ kJ/kg}\]

  3. Solve for Exit Temperature \(T_2\): Notice the negative \(v\Delta P\) slightly offsets heat loss + gravity rise: \[4.30(T_2 - 165.0) = -15.00 - (-2.530) - (1.765) = -14.235\text{ kJ/kg}\] \[T_2 = 165.0 + \frac{-14.235}{4.30} = 161.69^\circ\text{C}\] Final Result: \(T_2 = 161.69^\circ\text{C}\) (remaining compressed liquid since \(T_2 < T_{\text{sat}}(900\text{ kPa}) = 175.35^\circ\text{C}\)).


Practice Problem 4 β€” Boiler Heat Duty & Fuel Flow Sizing via Control Volume Enthalpy Balance

A steady industrial water-tube boiler converts \(\dot{m}_s = 12.5\text{ kg/s}\) of compressed liquid feedwater at \(P_1 = 4.0\text{ MPa}\), \(T_1 = 95^\circ\text{C}\) (\(h_1 = 401.08\text{ kJ/kg}\)) into superheated steam at \(P_2 = 4.0\text{ MPa}\), \(T_2 = 480^\circ\text{C}\) (\(h_2 = 3400.2\text{ kJ/kg}\)). Neglecting kinetic and potential energy changes, find the heat transfer rate \(\dot{Q}_{\text{boiler}}\) in \(\text{MW}\), and determine the natural-gas fuel flow rate \(\dot{m}_{\text{fuel}}\) needed if the furnace transfers \(88\%\) of the fuel lower heating value (\(\text{LHV} = 48,000\text{ kJ/kg}\)) into the water.

πŸ” Click to View Complete Step-by-Step Solution
  1. Steady-Flow Boiler Heat Input Rate (\(\dot{W}_{\text{cv}} = 0\)): \[\dot{Q}_{\text{boiler}} = \dot{m}_s (h_2 - h_1) = 12.5(3400.2 - 401.08) = 37489.1\text{ kW} = 37.489\text{ MW}\]

  2. Required Fuel Mass Flow Rate: With furnace efficiency \(\eta_b = \dot{Q}_{\text{boiler}} / (\dot{m}_{\text{fuel}} \cdot \text{LHV}) = 0.88\): \[\dot{m}_{\text{fuel}} = \frac{\dot{Q}_{\text{boiler}}}{0.88 \cdot \text{LHV}} = \frac{37489.1\text{ kW}}{(0.88)(48,000\text{ kJ/kg})} = 0.8875\text{ kg/s}\]

  3. Result: \(\dot{Q}_{\text{boiler}} = 37.49\text{ MW}\), \(\dot{m}_{\text{fuel}} = 0.8875\text{ kg/s}\).

Summary & Key Takeaways


References, Suggested Reading & Video Lectures

Moran, Michael J., Howard N. Shapiro, Daisie D. Boettner, and Margaret B. Bailey. 2014. Fundamentals of Engineering Thermodynamics. 8th ed. Hoboken, NJ: John Wiley & Sons.
Waitz, Ian A., and Zoltan S. Spakovszky. 2008. 16.unified: Thermodynamics and Propulsion. Cambridge, MA: MIT OpenCourseWare, Massachusetts Institute of Technology.
Wassgren, Carl. 2021. Thermodynamics I (ME 200) Video Lecture Series. School of Mechanical Engineering, Purdue University. https://www.youtube.com/@cw2306/playlists.
β€”β€”β€”. 2025. Notes on Thermodynamics, Fluid Mechanics, and Gas Dynamics. West Lafayette, IN: School of Mechanical Engineering, Purdue University. https://engineering.purdue.edu/~wassgren/notes/NotesOnThermodynamicsFluidMechanicsAndGasDynamics_Wassgren.pdf.
Yan, Claire Yu. 2022. Introduction to Engineering Thermodynamics. BCcampus Open Education. https://open.umn.edu/opentextbooks/textbooks/introduction-to-engineering-thermodynamics.