🐍 Interactive Jupyter Notebook: lecture_06_first_law_closed.ipynb
📥 Download Page as .ipynb (Python Notebook) 📑 Download Blank Slides (PDF)

6. Modes of Heat Transfer and the First Law for Closed Systems

Term: Spring 2026
Instructor: Mukhamad Suhermanto
Primary References:


Learning Objectives:

  1. Distinguish heat transfer from thermodynamic work and understand heat as a boundary phenomenon driven by temperature differences.
  2. Formulate rate equations for conduction (Fourier’s law), convection (Newton’s law of cooling), and radiation (Stefan-Boltzmann law).
  3. State the First Law of Thermodynamics for closed systems in integral, differential, and rate forms.
  4. Apply the conservation of energy principle to stationary and moving closed systems undergoing processes and cycles.

6.1 Heat Transfer: Mechanisms and Distinction from Work

Energy can cross the boundary of a closed system in only two forms: Heat (\(Q\)) and Work (\(W\)) (Moran et al. 2014), (Wassgren 2025).

Definition: Thermodynamic Heat Transfer

Heat is energy in transit across the boundary of a thermodynamic system solely by virtue of a temperature difference between the system and its surroundings.

A process during which there is no heat transfer across the boundary (\(Q = 0\)) is called an adiabatic process. An adiabatic system is thermally insulated from its surroundings (\(dQ/dt = 0\)).

6.1.1 Comparison Between Heat and Work

Characteristic Heat Transfer (\(Q\)) Thermodynamic Work (\(W\))
Driving Potential Temperature gradient (\(\Delta T \ne 0\)) Mechanical force, pressure difference, voltage, or torque
Nature of Quantity Boundary interaction (energy in transit) Boundary interaction (energy in transit)
System Property? No! A system contains internal energy \(U\), never heat No! A system does not contain work
Differential Inexact (\(\delta Q\)), path-dependent Inexact (\(\delta W\)), path-dependent
Integral \(\int_1^2 \delta Q = Q_{12}\) (net heat transferred) \(\int_1^2 \delta W = W_{12}\) (net work transferred)

6.2 Modes of Heat Transfer

Heat transfer occurs via three fundamental physical mechanisms (Moran et al. 2014), (Wassgren 2025):

6.2.1 Conduction (Fourier’s Law)

Conduction is the transfer of energy from the more energetic particles of a substance to adjacent, less energetic ones as a result of inter-particle interactions. In one-dimensional Cartesian coordinates:

\[ \dot{Q}_{\text{cond}} = -k A \frac{dT}{dx} \tag{6.1} \]

where \(k\) is thermal conductivity (\(\text{W/(m}\cdot\text{K)}\)) and \(A\) is the cross-sectional area normal to the heat flow direction. For a plane wall of thickness \(L\) with constant \(k\):

\[ \dot{Q}_{\text{cond}} = k A \frac{T_1 - T_2}{L} \tag{6.2} \]

6.2.2 Convection (Newton’s Law of Cooling)

Convection is the mode of energy transfer between a solid surface and the adjacent moving gas or liquid. It encompasses both molecular conduction and bulk macroscopic fluid motion (advection):

\[ \dot{Q}_{\text{conv}} = h A (T_s - T_\infty) \tag{6.3} \]

where \(h\) is the convection heat transfer coefficient (\(\text{W/(m}^2\cdot\text{K)}\)), \(T_s\) is the surface temperature, and \(T_\infty\) is the bulk fluid temperature.

6.2.3 Radiation (Stefan-Boltzmann Law)

Thermal radiation is energy emitted by matter in the form of electromagnetic waves (photons) resulting from molecular and atomic electronic transitions. Unlike conduction and convection, radiation requires no intervening medium and propagates across a vacuum:

\[ \dot{Q}_{\text{rad}} = \epsilon \sigma A (T_s^4 - T_{\text{surr}}^4) \tag{6.4} \]

where \(\epsilon\) is surface emissivity (\(0 \le \epsilon \le 1\)), \(\sigma = 5.670 \times 10^{-8} \, \text{W/(m}^2\cdot\text{K}^4)\) is the Stefan-Boltzmann constant, and \(T_s, T_{\text{surr}}\) must be in absolute temperature (Kelvin).

6.3 The First Law of Thermodynamics for Closed Systems

The First Law is the principle of Conservation of Energy, stating that energy can neither be created nor destroyed, only transformed from one form into another (Moran et al. 2014), (Wassgren 2025).

6.3.1 Integral Form of the First Law

For a closed system undergoing a finite process from state 1 to state 2:

\[ \Delta E = E_2 - E_1 = Q_{\text{into}} - W_{\text{by}} \tag{6.5} \]

Expanding total energy \(E = U + KE + PE\):

\[ (U_2 - U_1) + \frac{1}{2}m(\mathcal{V}_2^2 - \mathcal{V}_1^2) + mg(z_2 - z_1) = Q_{\text{into}} - W_{\text{by}} \tag{6.6} \]

For a stationary closed system (\(\Delta KE \approx 0, \Delta PE \approx 0\)):

\[ \Delta U = U_2 - U_1 = Q_{\text{into}} - W_{\text{by}} \tag{6.7} \]

6.3.2 Differential and Rate Forms

For an infinitesimal process:

\[ dE = \delta Q - \delta W \tag{6.8} \]

Dividing by the time increment \(dt\) yields the instantaneous Rate Form of the First Law:

\[ \frac{dE}{dt} = \dot{Q}_{\text{into}} - \dot{W}_{\text{by}} \tag{6.9} \]

6.3.3 Cyclic Processes

For any thermodynamic cycle, the initial and final states are identical (\(\Delta E_{\text{cycle}} \equiv 0\)):

\[ \oint dE = 0 \implies W_{\text{net,by}} = Q_{\text{net,into}} \tag{6.10} \]

The net work produced by a power cycle over a complete cycle equals the net heat absorbed by the cycle.

Caution: Energy Balance Sign Conventions

When using \(\Delta E = Q_{\text{into}} - W_{\text{by}}\), remember that \(Q_{\text{into}}\) is positive for heat added to the system and negative for heat rejected. Conversely, \(W_{\text{by}}\) is positive for work done by the system and negative for work done on the system.

6.4 Engineering Applications & Worked Examples

Example 6.1: Closed System with Combined Work and Heat Interactions

A stationary closed cylinder containing \(m = 2.0\text{ kg}\) of saturated liquid water at \(100^\circ\text{C}\) is heated at constant pressure until it completely vaporizes into saturated vapor. The expansion does boundary work against the piston. Determine the boundary work \(W_b\), the change in internal energy \(\Delta U\), and the total heat transfer \(Q_{\text{into}}\).

Solution / Analysis

  • From saturated water tables at \(T_1 = 100^\circ\text{C}\): \(P_{\text{sat}} = 101.42\text{ kPa}\), \(v_f = 0.001044\text{ m}^3/\text{kg}\), \(v_g = 1.6718\text{ m}^3/\text{kg}\), \(u_f = 419.06\text{ kJ/kg}\), \(u_g = 2506.0\text{ kJ/kg}\).

  • Constant-pressure boundary work: \(W_b = m P (v_g - v_f) = (2.0\text{ kg})(101.42\text{ kPa})(1.6718 - 0.001044\text{ m}^3/\text{kg}) = 338.88\text{ kJ}\).

  • Change in internal energy: \(\Delta U = m (u_g - u_f) = (2.0\text{ kg})(2506.0 - 419.06\text{ kJ/kg}) = 4173.9\text{ kJ}\).

  • Applying the First Law: \(Q_{\text{into}} = \Delta U + W_b = 4173.9\text{ kJ} + 338.9\text{ kJ} = 4512.8\text{ kJ}\).

from kilojoule.units import Quantity
import numpy as np

# Pipe heat loss analysis (combined convection and radiation)
D = Quantity(0.1, 'm')
L = Quantity(25.0, 'm')
A = (np.pi * D * L).to('m^2')

T_s_K = Quantity(150.0 + 273.15, 'K')
T_inf_K = Quantity(25.0 + 273.15, 'K')
h = Quantity(12.0, 'W/(m^2*K)')
eps = 0.85
sigma = Quantity(5.670374e-8, 'W/(m^2*K^4)')

# Calculate heat transfer rates
Q_conv = (h * A * (T_s_K - T_inf_K)).to('W')
Q_rad = (eps * sigma * A * (T_s_K**4 - T_inf_K**4)).to('W')
Q_total = (Q_conv + Q_rad).to('kW')

print(f"Surface Area:         {A:~.3f}")
print(f"Convection Heat Rate: {Q_conv:~.1f}")
print(f"Radiation Heat Rate:  {Q_rad:~.1f}")
print(f"Total Heat Loss Rate: {Q_total:~.2f}")
Surface Area:         7.854 m ** 2
Convection Heat Rate: 11781.0 W
Radiation Heat Rate:  9145.3 W
Total Heat Loss Rate: 20.93 kW
import kilojoule.realfluid as realfluid
from kilojoule.units import Quantity

# Example 6.1: Closed system First Law water vaporization
water = realfluid.Properties('Water')
m = Quantity(2.0, 'kg')
T = Quantity(100.0, 'degC')

# Saturated liquid (x = 0) and saturated vapor (x = 1)
u1 = water.u(T=T, x=0.0)
u2 = water.u(T=T, x=1.0)
P_sat = water.p(T=T, x=0.0)
v1 = water.v(T=T, x=0.0)
v2 = water.v(T=T, x=1.0)

# Calculate energy balance terms
W_b = (m * P_sat * (v2 - v1)).to('kJ')
delta_U = (m * (u2 - u1)).to('kJ')
Q_into = delta_U + W_b

print(f"Saturation Pressure: {P_sat.to('kPa'):~.2f}")
print(f"Internal Energy Change Delta U: {delta_U:~.2f}")
print(f"Boundary Work Done W_b:         {W_b:~.2f}")
print(f"Heat Input Required Q_into:     {Q_into:~.2f}")
Saturation Pressure: 101.42 kPa
Internal Energy Change Delta U: 4173.92 kJ
Boundary Work Done W_b:         338.88 kJ
Heat Input Required Q_into:     4512.81 kJ

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 — Conduction, Convection, and Radiation Heat Loss from an Autoclave Jacket

A flat mineral-wool insulation panel (\(k = 0.048\text{ W}/(\text{m}\cdot\text{K})\), thickness \(L = 6.0\text{ cm}\), area \(A = 3.2\text{ m}^2\)) covers the wall of an industrial curing oven. Under steady operation, the outer surface stays at \(T_s = 38^\circ\text{C}\) inside a \(T_\infty = T_{\text{surr}} = 22^\circ\text{C}\) factory bay, losing heat by free convection (\(h = 8.5\text{ W}/(\text{m}^2\cdot\text{K})\)) and thermal radiation (surface emissivity \(\varepsilon = 0.80\), \(\sigma = 5.67\times 10^{-8}\text{ W}/(\text{m}^2\cdot\text{K}^4)\)). Compute: (a) the convective and radiative heat loss rates \(\dot{Q}_{\text{conv}}\) and \(\dot{Q}_{\text{rad}}\) in \(\text{W}\), and (b) the steady inner wall temperature \(T_{\text{in}}\) required to sustain this total heat flux by 1D conduction.

🔍 Click to View Complete Step-by-Step Solution
  1. Convection and Radiation Heat Loss Rates from Outer Surface: \[\dot{Q}_{\text{conv}} = h A (T_s - T_\infty) = (8.5)(3.2)(38 - 22) = 435.2\text{ W}\] \[\dot{Q}_{\text{rad}} = \varepsilon \sigma A (T_s^4 - T_{\text{surr}}^4) = (0.80)(5.67\times 10^{-8})(3.2)\left[(311.15)^4 - (295.15)^4\right] = 259.0\text{ W}\]

  2. Total Heat Loss: \[\dot{Q}_{\text{tot}} = 435.2 + 259.0 = 694.2\text{ W}\]

  3. Fourier’s Law Across Insulation Layer: At steady state \(\dot{Q}_{\text{cond}} = \dot{Q}_{\text{tot}}\): \[\Delta T_{\text{wall}} = \frac{\dot{Q}_{\text{tot}} L}{k A} = \frac{(694.2)(0.06)}{(0.048)(3.2)} = 271.2^\circ\text{C} \implies T_{\text{in}} = 38 + 271.2 = 309.2^\circ\text{C}\] Final Answers: \(\dot{Q}_{\text{conv}} = 435.2\text{ W}\), \(\dot{Q}_{\text{rad}} = 259.0\text{ W}\), \(T_{\text{in}} = 309.2^\circ\text{C}\).


Practice Problem 2 — Closed-System First Law with Combined Heating and Boundary/Electrical Work

A closed vertical cylinder holds \(m = 3.2\text{ kg}\) of gas initially at \(u_1 = 210\text{ kJ/kg}\) and negligible bulk kinetic or potential energy. An immersed electric coil consumes \(120\text{ kJ}\) of electrical work while an external burner adds heat \(Q\), causing the gas to expand and deliver \(195\text{ kJ}\) of boundary work to a load piston. At the end of the process, the specific internal energy is \(u_2 = 345\text{ kJ/kg}\). Determine the magnitude and direction of the heat transfer \(Q\).

🔍 Click to View Complete Step-by-Step Solution
  1. Closed-System Energy Balance: With \(\Delta KE = \Delta PE = 0\), the First Law is \(Q - W_{\text{net}} = \Delta U\), where \(W_{\text{net}} = W_b + W_{\text{elec}}\).

  2. Compute \(\Delta U\) and \(W_{\text{net}}\): Note \(W_b = +195\text{ kJ}\) (out) and \(W_{\text{elec}} = -120\text{ kJ}\) (in): \[\Delta U = m(u_2 - u_1) = 3.2(345 - 210) = 432.0\text{ kJ}\] \[W_{\text{net}} = W_b + W_{\text{elec}} = +195 + (-120) = +75.0\text{ kJ}\]

  3. Solve for Heat Transfer \(Q\): \[Q = \Delta U + W_{\text{net}} = 432.0 + 75.0 = +507.0\text{ kJ}\] Final Result: \(Q = +507.0\text{ kJ}\) (heat transferred INTO the gas).


Practice Problem 3 — Complete Cycle Property & Energy Ledger for a Closed Three-Process Engine

A closed thermodynamic gas cycle \(1 \to 2 \to 3 \to 1\) has initial internal energy \(U_1 = 300\text{ kJ}\) and undergoes three steps:

🔍 Click to View Complete Step-by-Step Solution
  1. Process \(1 \to 2\) (Find \(U_2\)): \[U_2 - U_1 = Q_{12} - W_{12} = 240 - 90 = +150\text{ kJ} \implies U_2 = 300 + 150 = 450.0\text{ kJ}\]

  2. Process \(2 \to 3\) (\(Q_{23}\)) and Process \(3 \to 1\) (\(W_{31}\)): \[Q_{23} = (U_3 - U_2) + W_{23} = (180 - 450) + 0 = -270.0\text{ kJ}\] \[W_{31} = Q_{31} - (U_1 - U_3) = 75 - (300 - 180) = -45.0\text{ kJ}\]

  3. Cycle Net Work & Thermal Efficiency: \[W_{\text{net}} = W_{12} + W_{23} + W_{31} = 90 + 0 - 45 = 45.0\text{ kJ} \quad (\text{check: } Q_{\text{net}} = 240 - 270 + 75 = 45.0\text{ kJ})\] \[Q_{\text{in}} = Q_{12} + Q_{31} = 240 + 75 = 315.0\text{ kJ} \implies \eta_{\text{th}} = \frac{45.0}{315.0} = 0.1429 \; (14.29\%)\] Final Result: \(U_2 = 450\text{ kJ}\), \(Q_{23} = -270\text{ kJ}\), \(W_{31} = -45\text{ kJ}\), \(W_{\text{net}} = 45\text{ kJ}\), \(\eta_{\text{th}} = 14.29\%\).


Practice Problem 4 — Energy Balance on a Non-Adiabatic Viscous Oil Stirring Bath

An insulated calibration tank contains \(m = 12.0\text{ kg}\) of thermal oil (\(c = 2.10\text{ kJ}/(\text{kg}\cdot\text{K})\)) initially at \(T_1 = 24.0^\circ\text{C}\). A mechanical mixer delivers \(0.65\text{ kW}\) of continuous shaft work for \(20\text{ min}\), during which imperfect insulation leaks \(140\text{ kJ}\) of heat to the laboratory room. Calculate the net change in internal energy \(\Delta U\) and the final oil temperature \(T_2\).

🔍 Click to View Complete Step-by-Step Solution
  1. Assign Signs to Heat and Work: Work into the fluid is negative (\(W = -\dot{W}\Delta t\)), and heat leaving the tank is negative (\(Q = -140\text{ kJ}\)): \[W = -(0.65\text{ kW})(20 \times 60\text{ s}) = -780.0\text{ kJ}\]

  2. Apply Closed-System First Law (\(\Delta U = Q - W\)): \[\Delta U = -140 - (-780.0) = +640.0\text{ kJ}\]

  3. Final Oil Temperature: For an incompressible liquid \(\Delta U = m c (T_2 - T_1)\): \[\Delta T = \frac{640.0}{(12.0)(2.10)} = 25.40^\circ\text{C} \implies T_2 = 24.0 + 25.40 = 49.40^\circ\text{C}\] Final Result: \(\Delta U = +640.0\text{ kJ}\), \(T_2 = 49.40^\circ\text{C}\).

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.