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

23. The Carnot Power and Refrigeration Cycles

Term: Spring 2026
Instructor: Mukhamad Suhermanto
Primary References:


Learning Objectives:

  1. Describe the four internally reversible processes that constitute the Carnot Power Cycle.
  2. Derive the Carnot thermal efficiency \(\eta_{\text{Carnot}} = 1 - T_L/T_H\) for an ideal gas in a closed piston-cylinder system.
  3. Analyze the steady-flow two-phase Carnot vapor power cycle and identify practical engineering limitations.
  4. Formulate the Reversed Carnot Cycle and determine maximum theoretical COPs for refrigeration and heat pumps.

23.1 The Four Processes of the Carnot Power Cycle

The Carnot Cycle, proposed by French engineer Sadi Carnot in 1824 (Moran et al. 2014), is an idealized thermodynamic cycle consisting of four completely reversible processesβ€”two isothermal and two adiabatic (Wassgren 2025):

Carnot Engine Cycle Figure 23.1: The Carnot heat engine cycle showing the closed 4-step loop on the \(P\)-\(V\) plane (left) and the physical piston-cylinder stages with thermal reservoirs and insulating stand (right).

23.1.1 Process Execution in a Closed Piston-Cylinder System

Consider a gas confined within a cylinder fitted with a frictionless piston (Waitz and Spakovszky 2008), (Yan 2022):

  1. Process 1 \(\to\) 2: Reversible Isothermal Heat Addition (\(T_H = \text{const}\))
    The cylinder head is placed in diathermal contact with a high-temperature reservoir at \(T_H\). The gas expands slowly, absorbing heat \(Q_H = Q_{12} > 0\) while maintaining a constant temperature \(T_1 = T_2 = T_H\).

  2. Process 2 \(\to\) 3: Reversible Adiabatic (Isentropic) Expansion (\(Q_{23} = 0\))
    The cylinder head is replaced by an insulating cap. The gas continues to expand reversibly and adiabatically, performing boundary work on the piston as its temperature drops from \(T_H\) to \(T_L\).

  3. Process 3 \(\to\) 4: Reversible Isothermal Heat Rejection (\(T_L = \text{const}\))
    The cylinder head is brought into diathermal contact with a low-temperature sink at \(T_L\). The piston compresses the gas slowly, rejecting waste heat \(Q_L = -Q_{34} > 0\) to the reservoir while maintaining constant temperature \(T_3 = T_4 = T_L\).

  4. Process 4 \(\to\) 1: Reversible Adiabatic (Isentropic) Compression (\(Q_{41} = 0\))
    The insulating cap is replaced. The gas is compressed reversibly and adiabatically, raising its temperature from \(T_L\) back to \(T_H\), restoring the gas to its exact initial State 1.

23.2 Derivation of Carnot Efficiency for an Ideal Gas

We now derive the thermal efficiency of the Carnot cycle for a closed piston-cylinder containing an ideal gas with constant specific heats (Moran et al. 2014), (Wassgren 2025):

23.2.1 Heat Transfers Along Isothermal Paths

For an ideal gas, internal energy depends only on temperature (\(u = u(T)\)). Along the isothermal processes (\(1 \to 2\) and \(3 \to 4\)), \(\Delta u = 0\), so heat transfer equals boundary work:

\[ Q_H = W_{12} = \int_{V_1}^{V_2} P \, dV = m R T_H \ln\left(\frac{V_2}{V_1}\right) \tag{23.1} \]

\[ Q_L = -W_{34} = -\int_{V_3}^{V_4} P \, dV = -m R T_L \ln\left(\frac{V_4}{V_3}\right) = m R T_L \ln\left(\frac{V_3}{V_4}\right) \tag{23.2} \]

23.2.2 Volume Relations Along Isentropic Paths

For the reversible adiabatic processes, the temperature-volume relation for an ideal gas (\(T v^{k-1} = \text{const}\)) gives:

\[ \frac{T_H}{T_L} = \left( \frac{V_3}{V_2} \right)^{k - 1} \tag{23.3} \]

\[ \frac{T_H}{T_L} = \left( \frac{V_4}{V_1} \right)^{k - 1} \tag{23.4} \]

Equating the right-hand sides of Eq. (23.3) and Eq. (23.4):

\[ \left( \frac{V_3}{V_2} \right)^{k - 1} = \left( \frac{V_4}{V_1} \right)^{k - 1} \implies \frac{V_3}{V_2} = \frac{V_4}{V_1} \iff \frac{V_2}{V_1} = \frac{V_3}{V_4} \tag{23.5} \]

23.2.3 The Ratio of Heat Transfers and Carnot Thermal Efficiency

Substituting Eq. (23.5) into the ratio of Eq. (23.2) to Eq. (23.1):

\[ \frac{Q_L}{Q_H} = \frac{m R T_L \ln(V_3/V_4)}{m R T_H \ln(V_2/V_1)} = \frac{T_L}{T_H} \tag{23.6} \]

Therefore, the thermal efficiency of the Carnot heat engine is:

\[ \eta_{\text{Carnot}} = 1 - \frac{Q_L}{Q_H} = 1 - \frac{T_L}{T_H} \tag{23.7} \]

Key Idea: Temperature Must Be Absolute

In Eq. (23.7), the reservoir temperatures \(T_H\) and \(T_L\) must always be in absolute units (Kelvin or Rankine). Using Celsius or Fahrenheit produces catastrophic calculation errors!

# Step-by-Step Simulation of an Ideal-Gas Carnot Power Cycle
import kilojoule.idealgas as idealgas
from kilojoule.units import Quantity
import numpy as np

air = idealgas.Properties('Air')
R = air.R
k = 1.40
cv = air.cv(T=Quantity(400, 'K'))

# Reservoir temperatures and system mass
T_H = Quantity(800.0, 'K')       # High-temp reservoir
T_L = Quantity(300.0, 'K')       # Low-temp sink
m = Quantity(0.02, 'kg')         # Mass of air

# Volume specifications
V1 = Quantity(0.005, 'm^3')
V2 = Quantity(0.015, 'm^3')      # Isothermal expansion ratio r_v = 3.0

# 1. State 1 -> 2: Isothermal expansion at T_H
P1 = (m * R * T_H) / V1
P2 = (m * R * T_H) / V2
W12 = (m * R * T_H * np.log((V2 / V1).magnitude)).to('kJ')
Q_H = W12

# 2. State 2 -> 3: Isentropic expansion to T_L
# V3 = V2 * (T_H / T_L)**(1 / (k - 1))
V3 = V2 * ((T_H / T_L).magnitude)**(1.0 / (k - 1.0))
P3 = (m * R * T_L) / V3
W23 = (m * cv * (T_H - T_L)).to('kJ')

# 3. State 3 -> 4: Isothermal compression at T_L (V3 / V4 = V2 / V1)
V4 = V3 / (V2 / V1).magnitude
P4 = (m * R * T_L) / V4
W34 = (m * R * T_L * np.log((V4 / V3).magnitude)).to('kJ')
Q_L = -W34

# 4. State 4 -> 1: Isentropic compression back to T_H
W41 = (m * cv * (T_L - T_H)).to('kJ')

# Net cycle totals
W_net = W12 + W23 + W34 + W41
Q_net = Q_H - Q_L
eta_actual = (W_net / Q_H).magnitude
eta_carnot_formula = 1.0 - (T_L / T_H).magnitude

print(f"Heat Added (Q_H):       {Q_H.to('kJ'):.3f} kJ")
print(f"Heat Rejected (Q_L):    {Q_L.to('kJ'):.3f} kJ")
print(f"Net Work (W_net):       {W_net.to('kJ'):.3f} kJ (Q_net = {Q_net.to('kJ'):.3f} kJ)")
print(f"Calculated Efficiency:  eta = {eta_actual*100:.2f}%")
print(f"Formula (1 - T_L/T_H):  eta = {eta_carnot_formula*100:.2f}% (Exact Match!)")
Heat Added (Q_H):       5.047 kJ
Heat Rejected (Q_L):    1.893 kJ
Net Work (W_net):       3.155 kJ (Q_net = 3.155 kJ)
Calculated Efficiency:  eta = 62.50%
Formula (1 - T_L/T_H):  eta = 62.50% (Exact Match!)

23.3 The Steady-Flow Two-Phase Carnot Vapor Cycle

Instead of a closed gas system, a Carnot power cycle can be executed in steady flow using a two-phase liquid-vapor substance (such as water/steam) operating between two pressure levels (Moran et al. 2014), (Waitz and Spakovszky 2008):

  1. Boiler (\(1 \to 2\)): Constant-pressure, constant-temperature evaporation from saturated liquid (\(x_1 = 0\)) to saturated vapor (\(x_2 = 1.0\)) at \(T_H = T_{\text{sat}}(P_H)\).
  2. Turbine (\(2 \to 3\)): Reversible adiabatic (isentropic) expansion from \(P_H\) to \(P_L\), producing shaft work \(\dot{W}_t = \dot{m}(h_2 - h_3)\).
  3. Condenser (\(3 \to 4\)): Partial condensation at constant \(T_L = T_{\text{sat}}(P_L)\) rejecting \(\dot{Q}_L = \dot{m}(h_3 - h_4)\).
  4. Compressor / Pump (\(4 \to 1\)): Reversible adiabatic compression of the wet two-phase mixture back to saturated liquid at \(P_H\).

23.3.1 Practical Engineering Limitations

Although the Carnot vapor cycle achieves the highest possible efficiency \(\eta_{\text{Carnot}} = 1 - T_L/T_H\), it is never used as a practical power plant cycle because:

  1. Turbine Blade Erosion: Isentropic expansion begins at dry saturated vapor and enters deep into the wet mixture region. High liquid moisture content (\(1 - x_3 > 0.15\)) causes severe droplet impingement and erosion of turbine blades.
  2. Compressor Impracticability: The compressor must handle a two-phase liquid-vapor mixture at State 4 and compress it to saturated liquid. Designing a pump or compressor that reliably handles two-phase mixtures without cavitation, flow separation, and severe mechanical damage is extraordinarily difficult.
  3. Superheat Restriction: To transfer heat isothermally in the gas phase, the pressure would have to drop continuously, severely limiting the maximum cycle temperature and work output.
from kilojoule.templates.default import *
import kilojoule.realfluid as realfluid

water = realfluid.Properties('Water')

# Saturation temperatures
T_H = Quantity(250.0, 'degC')     # Boiler temperature (523.15 K)
T_L = Quantity(40.0, 'degC')      # Condenser temperature (313.15 K)

# State 1: Saturated liquid at T_H
P_H = water.p(T=T_H, x=Quantity(0.0, ''))
h1 = water.h(T=T_H, x=Quantity(0.0, ''))
s1 = water.s(T=T_H, x=Quantity(0.0, ''))

# State 2: Saturated vapor at T_H (Isothermal heat addition)
h2 = water.h(T=T_H, x=Quantity(1.0, ''))
s2 = water.s(T=T_H, x=Quantity(1.0, ''))
q_H = h2 - h1

# State 3: Isentropic expansion through turbine to T_L (s3 = s2)
s3 = s2
P_L = water.p(T=T_L, x=Quantity(0.0, ''))
h3 = water.h(T=T_L, s=s3)
x3 = water.x(T=T_L, s=s3)
w_turbine = h2 - h3

# State 4: Isentropic compression through pump to State 1 (s4 = s1)
s4 = s1
h4 = water.h(T=T_L, s=s4)
x4 = water.x(T=T_L, s=s4)
w_pump = h1 - h4

# Heat rejection in condenser
q_L = h3 - h4

# Efficiency evaluation
w_net = w_turbine - w_pump
eta_cycle = float(w_net / q_H)
eta_carnot = float(1.0 - (T_L.to('K') / T_H.to('K')))

print(f"High Pressure:      P_H       = {P_H.to('bar').magnitude:.2f} bar (T_H = {T_H.to('degC').magnitude:.1f} degC)")
print(f"Low Pressure:       P_L       = {P_L.to('kPa').magnitude:.2f} kPa (T_L = {T_L.to('degC').magnitude:.1f} degC)")
print(f"Turbine Work:       w_t       = {w_turbine.to('kJ/kg').magnitude:.2f} kJ/kg (Exit quality x3 = {float(x3)*100:.1f}%)")
print(f"Compressor Work:    w_p       = {w_pump.to('kJ/kg').magnitude:.2f} kJ/kg (Inlet quality x4 = {float(x4)*100:.1f}%)")
print(f"Net Specific Work:  w_net     = {w_net.to('kJ/kg').magnitude:.2f} kJ/kg")
print(f"Carnot Efficiency:  eta_cycle = {eta_cycle*100:.2f}% | Theoretical: {eta_carnot*100:.2f}%")

# Visualize Carnot vapor power cycle on T-s diagram
T[171] = Quantity(250, 'degC')
x[171] = Quantity(0, '')
states.fix(171, water)

T[172] = Quantity(250, 'degC')
x[172] = Quantity(1, '')
states.fix(172, water)

T[173] = Quantity(40, 'degC')
s[173] = s[172]
states.fix(173, water)

T[174] = Quantity(40, 'degC')
s[174] = s[171]
states.fix(174, water)

Ts23 = water.Ts_diagram()
for l in Ts23.ax.lines[:2]:
    l.set_color('#0055ff')
    l.set_linewidth(2.0)
Ts23.ax.grid(True, which='both', linestyle='--', color='gray', alpha=0.5)
Ts23.ax.axhline(250.0, color='#00e676', linestyle='--', linewidth=1.5, alpha=0.85)
Ts23.ax.axhline(40.0, color='#00e676', linestyle='--', linewidth=1.5, alpha=0.85)
for st in [171, 172, 173, 174]:
    Ts23.plot_state(states[st], label=str(st-170))
Ts23.plot_process(states[171], states[172], path='isothermal', label='1->2 Boiler')
Ts23.plot_process(states[172], states[173], path='isentropic', label='2->3 Turbine')
Ts23.plot_process(states[173], states[174], path='isothermal', label='3->4 Condenser')
Ts23.plot_process(states[174], states[171], path='isentropic', label='4->1 Compressor')
High Pressure:      P_H       = 39.74 bar (T_H = 250.0 Β°C)
Low Pressure:       P_L       = 7.38 kPa (T_L = 40.0 Β°C)
Turbine Work:       w_t       = 841.74 kJ/kg (Exit quality x3 = 71.9%)
Compressor Work:    w_p       = 246.33 kJ/kg (Inlet quality x4 = 30.5%)
Net Specific Work:  w_net     = 595.41 kJ/kg
Carnot Efficiency:  eta_cycle = 40.14% | Theoretical: 40.14%
Carnot Vapor Power Cycle on T-s Diagram

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 β€” Complete Four-State Ideal-Gas Carnot Power Cycle Analysis

A Carnot piston engine uses \(m = 0.15\text{ kg}\) of air (\(R = 0.287\text{ kJ}/(\text{kg}\cdot\text{K})\), \(k = 1.40\)) operating between \(T_H = 900\text{ K}\) and \(T_L = 300\text{ K}\). At State 1 (start of isothermal expansion \(1 \to 2\)), pressure is \(P_1 = 1200\text{ kPa}\). During \(1 \to 2\), the volume ratio is \(V_2/V_1 = 2.50\). Process \(2 \to 3\) is isentropic expansion to \(300\text{ K}\), \(3 \to 4\) is isothermal rejection, and \(4 \to 1\) is isentropic compression back to State 1. Determine: (a) the peak and minimum pressures \(P_1, P_2, P_3, P_4\), (b) specific heat added \(q_H\) and specific net work \(w_{\text{net}}\), and (c) cycle net work \(W_{\text{net}}\) and Carnot efficiency \(\eta_C\).

πŸ” Click to View Complete Step-by-Step Solution
  1. Calculate Corner Pressures Using Isothermal (\(P_1 V_1 = P_2 V_2\)) and Isentropic (\(P \propto T^{k/(k-1)}\)) Laws: Here \(k/(k-1) = 3.5\): \[P_2 = \frac{P_1}{V_2/V_1} = \frac{1200}{2.50} = 480.0\text{ kPa}\] \[P_3 = P_2\left(\frac{T_L}{T_H}\right)^{3.5} = 480.0\left(\frac{300}{900}\right)^{3.5} = 10.26\text{ kPa}, \qquad P_4 = 1200\left(\frac{300}{900}\right)^{3.5} = 25.66\text{ kPa}\]

  2. Heat Transfers, Specific Net Work, and Efficiency: \[q_H = R T_H \ln(2.50) = (0.287)(900)\ln(2.50) = 236.68\text{ kJ/kg}\] \[q_L = R T_L \ln(2.50) = (0.287)(300)\ln(2.50) = 78.89\text{ kJ/kg}, \qquad w_{\text{net}} = q_H - q_L = 157.79\text{ kJ/kg}\]

  3. Total Net Work & Thermal Efficiency Check: \[W_{\text{net}} = m w_{\text{net}} = (0.15)(157.79) = 23.67\text{ kJ}, \qquad \eta_C = \frac{157.79}{236.68} = 1 - \frac{300}{900} = 66.67\%\] Final Result: \(P_3 = 10.26\text{ kPa}\) (min), \(q_H = 236.7\text{ kJ/kg}\), \(W_{\text{net}} = 23.67\text{ kJ}\), \(\eta_C = 66.67\%\).


Practice Problem 2 β€” Carnot Vapor Power Cycle Inside the Steam Saturation Dome

A steady-flow Carnot vapor power cycle uses water exclusively inside the two-phase dome between boiler pressure \(P_H = 2.0\text{ MPa}\) (\(T_H = 212.38^\circ\text{C}\), \(h_{fg} = 1889.8\text{ kJ/kg}\), \(s_f = 2.4468\), \(s_g = 6.3390\text{ kJ}/(\text{kg}\cdot\text{K})\)) and condenser pressure \(P_L = 40\text{ kPa}\) (\(T_L = 75.86^\circ\text{C}\), \(s_f = 1.0261\), \(s_{fg} = 6.6429\text{ kJ}/(\text{kg}\cdot\text{K})\)). Saturated liquid (\(s_2 = s_f(2\text{ MPa})\)) vaporizes completely to saturated vapor (\(s_3 = s_g(2\text{ MPa})\)) in the boiler, expands isentropically through the turbine to State 4, condenses isothermally to State 1, and is compressed isentropically back to State 2. Determine: (a) Carnot efficiency \(\eta_C\), (b) turbine exit quality \(x_4\) and compressor inlet quality \(x_1\), and (c) net work per unit mass \(w_{\text{net}}\).

πŸ” Click to View Complete Step-by-Step Solution
  1. Carnot Thermal Efficiency: Using Kelvin temperatures \(T_H = 485.53\text{ K}\) and \(T_L = 349.01\text{ K}\): \[\eta_C = 1 - \frac{349.01}{485.53} = 0.2812 \; (28.12\%)\]

  2. Isentropic Vapor Qualities at \(P_L = 40\text{ kPa}\): Since \(s_4 = s_3 = s_g(2\text{ MPa})\) and \(s_1 = s_2 = s_f(2\text{ MPa})\): \[x_4 = \frac{6.3390 - 1.0261}{6.6429} = 0.7998, \qquad x_1 = \frac{2.4468 - 1.0261}{6.6429} = 0.2139\]

  3. Boiler Heat Addition & Net Specific Work: \[q_H = h_{fg}(2\text{ MPa}) = 1889.8\text{ kJ/kg} \implies w_{\text{net}} = \eta_C q_H = (0.2812)(1889.8) = 531.4\text{ kJ/kg}\] Final Result: \(\eta_C = 28.12\%\), \(x_4 = 0.7998\), \(x_1 = 0.2139\), \(w_{\text{net}} = 531.4\text{ kJ/kg}\).


Practice Problem 3 β€” Minimum Work Input for a Cold-Storage Reversed Carnot Freezer

A food processing blast freezer maintains a cold vault at \(T_L = -18^\circ\text{C}\) while rejecting condenser heat to an outdoor dry cooler at \(T_H = 35^\circ\text{C}\). For a continuous refrigeration load of \(\dot{Q}_L = 42.0\text{ kW}\), compute the reversed Carnot \(\text{COP}_{R,\max}\), the absolute theoretical minimum compressor power \(\dot{W}_{\min}\), and the corresponding condenser heat rejection \(\dot{Q}_H\).

πŸ” Click to View Complete Step-by-Step Solution
  1. Reversed Carnot \(\text{COP}_R\) (Kelvin Temperatures Mandatory!): \(T_L = 255.15\text{ K}\) and \(T_H = 308.15\text{ K}\): \[\text{COP}_{R,\text{Carnot}} = \frac{T_L}{T_H - T_L} = \frac{255.15}{308.15 - 255.15} = 4.814\]

  2. Minimum Theoretical Compressor Power & Heat Rejection: \[\dot{W}_{\min} = \frac{\dot{Q}_L}{\text{COP}_{R,\text{Carnot}}} = \frac{42.0}{4.814} = 8.72\text{ kW}\] \[\dot{Q}_H = \dot{Q}_L + \dot{W}_{\min} = 42.0 + 8.72 = 50.72\text{ kW}\]

  3. Result: \(\text{COP}_{R,\text{Carnot}} = 4.814\), \(\dot{W}_{\min} = 8.72\text{ kW}\), \(\dot{Q}_H = 50.72\text{ kW}\).


Practice Problem 4 β€” Coupled Carnot Heat-Engine / Heat-Pump Fuel Utilization Factor

A thermally driven cogeneration concept burns fuel in a Carnot heat engine receiving \(\dot{Q}_{\text{src}} = 100.0\text{ kW}\) at \(T_{\text{src}} = 500\text{ K}\) and rejecting engine waste heat to winter ambient air at \(T_0 = 265\text{ K}\). All work produced by the engine directly drives a Carnot heat pump that extracts heat from that same \(265\text{ K}\) ambient air and delivers heating \(\dot{Q}_{\text{house}}\) into a building at \(T_{\text{house}} = 295\text{ K}\). Compute the engine work \(\dot{W}\), the building heat delivered \(\dot{Q}_{\text{house}}\), and the overall thermal amplification ratio \(\dot{Q}_{\text{house}} / \dot{Q}_{\text{src}}\).

πŸ” Click to View Complete Step-by-Step Solution
  1. Carnot Heat Engine Work Output: \[\eta_C = 1 - \frac{265}{500} = 0.470 \implies \dot{W} = (0.470)(100.0) = 47.0\text{ kW}\]

  2. Carnot Heat Pump \(\text{COP}_{\text{HP}}\) and Building Heat Delivery: \[\text{COP}_{\text{HP,C}} = \frac{295}{295 - 265} = 9.833 \implies \dot{Q}_{\text{house}} = (9.833)(47.0) = 462.2\text{ kW}\]

  3. Thermodynamic Amplification Factor: Even without recovering engine waste heat at \(265\text{ K}\), driving a heat pump delivers \(\dot{Q}_{\text{house}} / \dot{Q}_{\text{src}} = 4.62\)β€”over four times more heat than burning the fuel directly in a furnace! Final Result: \(\dot{W} = 47.0\text{ kW}\), \(\dot{Q}_{\text{house}} = 462.2\text{ kW}\) (Ratio = \(4.62\)).

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.