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

29. Entropy Change of Incompressible Substances (Solids and Liquids)

Term: Spring 2026
Instructor: Mukhamad Suhermanto
Primary References:


Learning Objectives:

  1. Formulate the incompressible substance model for solids and liquids with constant specific volume (Moran et al. 2014).
  2. Derive the specific entropy change \(\Delta s = c \ln(T_2/T_1)\) from the fundamental \(T\,ds\) relations (Wassgren 2025).
  3. Explain why incompressible entropy depends solely on temperature, proving isentropic processes are isothermal (Yan 2022).
  4. Analyze thermal quenching and multi-body equilibration, proving total entropy generation is strictly positive (Waitz and Spakovszky 2008).
  5. Solve conjugate heat transfer and quenching problems (Purdue ME 200 Example SecondLaw_23 (Wassgren 2021)).

29.1 The Incompressible Substance Model

Liquids and solids exhibit negligible changes in volume over wide ranges of temperature and pressure. In engineering thermodynamics, substances whose specific volume remains constant (\(v = \text{constant}\), \(dv = 0\)) are modeled as incompressible substances (Moran et al. 2014), (Wassgren 2025).

29.1.1 Thermodynamic Consequences of Incompressibility

For an incompressible substance:

  1. Specific volume is fixed: \(dv = 0\).
  2. Specific heats coincide: Since work of compression/expansion \(P\,dv = 0\), no distinction exists between constant-volume and constant-pressure heating:

\[ c_p = c_v = c \tag{29.1} \]

  1. Internal energy depends only on temperature:

\[ du = c(T)\,dT \tag{29.2} \]

  1. Enthalpy includes the flow-work term:

\[ dh = du + d(Pv) = c(T)\,dT + v\,dP \tag{29.3} \]

29.2 Derivation of Entropy Change for Incompressible Media

29.2.1 From the First \(T\,ds\) Equation

Recall the First Gibbs relation:

\[ T\,ds = du + P\,dv \tag{29.4} \]

Setting \(dv = 0\) and substituting \(du = c(T)\,dT\):

\[ T\,ds = c(T)\,dT \implies ds = c(T)\,\frac{dT}{T} \tag{29.5} \]

Integrating between state 1 (\(T_1\)) and state 2 (\(T_2\)):

\[ s_2 - s_1 = \int_{T_1}^{T_2} c(T)\,\frac{dT}{T} \tag{29.6} \]

If the specific heat is approximately constant over the temperature range with average value \(c_{\text{avg}}\) (Moran et al. 2014):

\[ \Delta s = s_2 - s_1 = c_{\text{avg}}\,\ln\left(\frac{T_2}{T_1}\right) \tag{29.7} \]

The total entropy change for mass \(m\) is:

\[ \Delta S = m\,\Delta s = m\,c_{\text{avg}}\,\ln\left(\frac{T_2}{T_1}\right) \tag{29.8} \]

Key Idea: Incompressible Entropy Depends Solely on Temperature

Notice that pressure does not appear in Equation (29.7)! For an incompressible substance, entropy is a function of temperature alone: \(s = s(T)\). Pressure changes do not affect entropy.

29.2.2 Isentropic Process of an Incompressible Substance

Consider an isentropic process (\(s_2 = s_1\), so \(\Delta s = 0\)) of an incompressible substance:

\[ c_{\text{avg}}\,\ln\left(\frac{T_2}{T_1}\right) = 0 \implies \frac{T_2}{T_1} = 1 \implies T_2 = T_1 \tag{29.9} \]

Key Idea: Isentropic Implies Isothermal for Incompressible Media

For an incompressible liquid or solid, an isentropic process is necessarily isothermal (\(T_2 = T_1\)). Conversely, an internally reversible isothermal process of an incompressible substance is isentropic.

29.3 Multi-Body Thermal Equilibration & Quenching

A classic demonstration of Second Law irreversibility is the quenching of a hot metal part in an insulated liquid water bath (Wassgren 2025), (Yan 2022).

29.3.1 First Law: Final Equilibrium Temperature

Consider solid mass \(m_s\) (initial temperature \(T_{s,1}\), specific heat \(c_s\)) placed in an insulated tank of liquid water mass \(m_w\) (initial temperature \(T_{w,1}\), specific heat \(c_w\)).
For the combined closed, insulated system (\(Q = 0, W = 0\)):

\[ \Delta U_{\text{total}} = \Delta U_s + \Delta U_w = 0 \tag{29.10} \]

\[ m_s c_s (T_f - T_{s,1}) + m_w c_w (T_f - T_{w,1}) = 0 \tag{29.11} \]

Solving for the final equilibrium temperature \(T_f\):

\[ T_f = \frac{m_s c_s T_{s,1} + m_w c_w T_{w,1}}{m_s c_s + m_w c_w} \tag{29.12} \]

29.3.2 Second Law: Total Entropy Generation

Because the container is insulated from the outside environment (\(Q = 0\)), the total entropy generation equals the sum of the entropy changes of both bodies (Moran et al. 2014):

\[ \sigma_{\text{total}} = \Delta S_{\text{total}} = \Delta S_s + \Delta S_w = m_s c_s \ln\left(\frac{T_f}{T_{s,1}}\right) + m_w c_w \ln\left(\frac{T_f}{T_{w,1}}\right) \tag{29.13} \]

Because heat flows across a finite temperature difference (\(T_{s,1} > T_f > T_{w,1}\)), the entropy gained by the water exceeds the entropy lost by the solid: \(\sigma_{\text{total}} > 0\). Thermal equilibration is inherently irreversible!

29.4 Worked Examples (Purdue ME 200)

Example 29.1: Quenching of a Copper Ingot in a Water Bath (SecondLaw_23)

A \(m_{\text{Cu}} = 5.0\text{ kg}\) copper block initially at \(T_{\text{Cu},1} = 500^\circ\text{C} = 773.15\text{ K}\) is submerged into an insulated tank containing \(m_w = 20.0\text{ kg}\) of liquid water at \(T_{w,1} = 20^\circ\text{C} = 293.15\text{ K}\) (Wassgren 2021). Specific heats: \(c_{\text{Cu}} = 0.386\text{ kJ/(kg}\cdot\text{K)}\), \(c_w = 4.184\text{ kJ/(kg}\cdot\text{K)}\). Determine:

  1. The final equilibrium temperature \(T_f\).
  2. The entropy change of the copper block \(\Delta S_{\text{Cu}}\).
  3. The entropy change of the water \(\Delta S_w\).
  4. The total entropy generated \(\sigma_{\text{total}}\) and verify the Second Law.

Solution / Analysis

  1. Thermal heat capacities: \(C_{\text{Cu}} = m_{\text{Cu}} c_{\text{Cu}} = 5.0 \times 0.386 = 1.93\text{ kJ/K}\). \(C_w = m_w c_w = 20.0 \times 4.184 = 83.68\text{ kJ/K}\). Final temperature: \(T_f = \frac{1.93 \times 773.15 + 83.68 \times 293.15}{1.93 + 83.68} = \frac{1492.18 + 24530.79}{85.61} = 303.97\text{ K} = 30.82^\circ\text{C}\).

  2. Copper entropy change: \(\Delta S_{\text{Cu}} = 1.93 \times \ln(303.97 / 773.15) = 1.93 \times (-0.9335) = -1.8016\text{ kJ/K}\).

  3. Water entropy change: \(\Delta S_w = 83.68 \times \ln(303.97 / 293.15) = 83.68 \times (+0.03625) = +3.0334\text{ kJ/K}\).

  4. Total entropy generation: \(\sigma_{\text{total}} = \Delta S_{\text{Cu}} + \Delta S_w = -1.8016 + 3.0334 = +1.2318\text{ kJ/K} > 0\). Verified: Heat transfer across finite \(\Delta T\) generates positive entropy!

from kilojoule.units import Quantity
import numpy as np

# Purdue ME 200 Example SecondLaw_23: Quenching copper block in water
m_cu = Quantity(5.0, 'kg')
T_cu1 = Quantity(500.0, 'degC').to('K')
c_cu = Quantity(0.386, 'kJ/(kg*K)')

m_w = Quantity(20.0, 'kg')
T_w1 = Quantity(20.0, 'degC').to('K')
c_w = Quantity(4.184, 'kJ/(kg*K)')

# Heat capacities
C_cu = m_cu * c_cu
C_w = m_w * c_w

# Final equilibrium temperature: C_cu*(T_f - T_cu1) + C_w*(T_f - T_w1) = 0
T_final = (C_cu * T_cu1 + C_w * T_w1) / (C_cu + C_w)

# Entropy changes: Delta S = C * ln(T_final / T_initial)
Delta_S_cu = (C_cu * np.log((T_final / T_cu1).magnitude)).to('kJ/K')
Delta_S_w = (C_w * np.log((T_final / T_w1).magnitude)).to('kJ/K')
sigma_total = Delta_S_cu + Delta_S_w

print(f"Final Equilibrium Temp: {T_final.magnitude:.2f} K ({T_final.to('degC').magnitude:.2f} degC)")
print(f"Copper Entropy Change:  {Delta_S_cu.magnitude:.4f} kJ/K (negative: cooled)")
print(f"Water Entropy Change:   {Delta_S_w.magnitude:.4f} kJ/K (positive: warmed)")
print(f"Total Entropy Gen:      {sigma_total.magnitude:.4f} kJ/K (> 0, Irreversible!)")
Initial Copper Temp: 773.15 K (500.0 Β°C)
Initial Water Temp:  293.15 K (20.0 Β°C)
Final Equilibrium T: 303.97 K (30.82 Β°C)

Delta S (Copper):    -1.8016 kJ/K
Delta S (Water):     3.0334 kJ/K
Total Entropy Gen:   1.2318 kJ/K

29.4.2 Isentropic Pumping of an Incompressible Liquid

Example 29.2: Isentropic Compression of Subcooled Liquid Water

Subcooled liquid water at \(P_1 = 1.0\text{ bar}\) and \(T_1 = 20^\circ\text{C}\) is pumped reversibly and adiabatically to \(P_2 = 100\text{ bar}\) (Moran et al. 2014). Determine the final temperature \(T_2\), enthalpy change \(\Delta h\), and pump work \(w_p\).

Solution / Analysis

For an internally reversible, adiabatic process: \(s_2 = s_1\). Because liquid water is modeled as incompressible: \(\Delta s = c\ln(T_2/T_1) = 0 \implies T_2 = T_1 = 20^\circ\text{C}\). From the enthalpy relation: \(dh = c\,dT + v\,dP = v\,dP\) (since \(dT = 0\)). Integrating: \(\Delta h = v\,(P_2 - P_1)\). With \(v \approx 0.001002\text{ m}^3/\text{kg}\) and \(\Delta P = 99\text{ bar} = 9900\text{ kPa}\): \(w_p = \Delta h = 0.001002 \times 9900 = 9.92\text{ kJ/kg}\).

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

# Isentropic pumping of liquid water
water = realfluid.Properties('Water')

P1 = Quantity(1.0, 'bar')
T1 = Quantity(20.0, 'degC')
h1 = water.h(p=P1, T=T1)
s1 = water.s(p=P1, T=T1)
v1 = water.v(p=P1, T=T1)

P2 = Quantity(100.0, 'bar')
# Isentropic pump: s2 = s1
h2 = water.h(p=P2, s=s1)

w_pump = (h2 - h1).to('kJ/kg')
w_incompressible = (v1 * (P2 - P1)).to('kJ/kg')
error_pct = float(abs(w_pump - w_incompressible) / w_pump * 100)

print(f"Initial State: P1 = {P1.magnitude:.1f} bar, T1 = {T1.magnitude:.1f} degC, v1 = {v1.magnitude:.6f} m^3/kg")
print(f"Exit Pressure: P2 = {P2.magnitude:.1f} bar")
print(f"Actual Isentropic Enthalpy Rise:  w_p = h2 - h1 = {w_pump.magnitude:.3f} kJ/kg")
print(f"Incompressible Approximation:     w_p = v*(P2-P1) = {w_incompressible.magnitude:.3f} kJ/kg")
print(f"Approximation Error:              {error_pct:.2f}%")
Inlet:  P1 = 1.0 bar, T1 = 20.0 Β°C, s1 = 0.2965 kJ/(kgΒ·K)
Exit:   P2 = 100.0 bar, T2 = 20.14 Β°C, s2 = 0.2965 kJ/(kgΒ·K)
Actual Work (Real Fluid):       9.988 kJ/kg
Incompressible Approx v*DeltaP: 9.920 kJ/kg

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 β€” Entropy Rise of an Annealed Steel Shaft During Induction Heating

An \(8.0\text{ kg}\) forged carbon-steel axle (\(c = 0.490\text{ kJ}/(\text{kg}\cdot\text{K})\)) is heated in an induction coil from \(T_1 = 25^\circ\text{C}\) to \(T_2 = 420^\circ\text{C}\) under ambient atmospheric pressure. Modeling the solid axle as an incompressible substance, compute its specific entropy change \(\Delta s\) and total entropy change \(\Delta S\).

πŸ” Click to View Complete Step-by-Step Solution
  1. Incompressible Solid Entropy Model (\(dv \approx 0 \implies ds = c\,dT/T\)): Convert \(T_1 = 298.15\text{ K}\) and \(T_2 = 693.15\text{ K}\): \[\Delta s = c\ln\left(\frac{T_2}{T_1}\right) = 0.490\ln\left(\frac{693.15}{298.15}\right) = +0.4134\text{ kJ}/(\text{kg}\cdot\text{K})\]

  2. Total Entropy Change: \[\Delta S = m \Delta s = (8.0)(0.4134) = +3.307\text{ kJ/K}\]

  3. Result: \(\Delta s = +0.4134\text{ kJ}/(\text{kg}\cdot\text{K})\), \(\Delta S = +3.307\text{ kJ/K}\).


Practice Problem 2 β€” Equilibrium Temperature & Entropy Generation in an Adiabatic Water Calorimeter

A \(2.80\text{ kg}\) aluminum heatsink (\(c_{\text{Al}} = 0.900\text{ kJ}/(\text{kg}\cdot\text{K})\)) at \(T_{\text{Al},1} = 280^\circ\text{C}\) is quenched inside a well-insulated tank holding \(12.0\text{ kg}\) of liquid water (\(c_w = 4.184\text{ kJ}/(\text{kg}\cdot\text{K})\)) at \(T_{w,1} = 20^\circ\text{C}\). Calculate: (a) final equilibrium temperature \(T_f\) in \(^\circ\text{C}\) and \(\text{K}\), (b) \(\Delta S_{\text{Al}}\) and \(\Delta S_w\), and (c) net entropy generation \(S_{\text{gen}}\).

πŸ” Click to View Complete Step-by-Step Solution
  1. Energy Conservation (\(C_{\text{Al}} = 2.52\text{ kJ/K}\), \(C_w = 50.21\text{ kJ/K}\)): \[T_f = \frac{C_{\text{Al}} T_{\text{Al},1} + C_w T_{w,1}}{C_{\text{Al}} + C_w} = \frac{(2.52)(553.15) + (50.21)(293.15)}{52.73} = 305.58\text{ K} \; (32.43^\circ\text{C})\]

  2. Individual Entropy Changes: \[\Delta S_{\text{Al}} = 2.52\ln\left(\frac{305.58}{553.15}\right) = -1.4954\text{ kJ/K}, \qquad \Delta S_w = 50.21\ln\left(\frac{305.58}{293.15}\right) = +2.0843\text{ kJ/K}\]

  3. Isolated Composite \(S_{\text{gen}}\) (\(Q_{\text{ext}} = 0\)): \[S_{\text{gen}} = \Delta S_{\text{Al}} + \Delta S_w = -1.4954 + 2.0843 = +0.5889\text{ kJ/K} > 0\] Final Result: \(T_f = 32.43^\circ\text{C}\), \(\Delta S_{\text{Al}} = -1.4954\), \(\Delta S_w = +2.0843\), \(S_{\text{gen}} = +0.5889\text{ kJ/K}\).


Practice Problem 3 β€” Why Liquid Entropy Barely Changes Under Pressure: Isothermal Compression Test

Liquid water at constant temperature \(T = 25^\circ\text{C}\) is compressed isothermally from \(P_1 = 100\text{ kPa}\) to \(P_2 = 20.0\text{ MPa}\) in a high-pressure hydrostatic test bench. Exact CoolProp values report:

πŸ” Click to View Complete Step-by-Step Solution
  1. Exact Real-Fluid Shifts: \[\Delta s = 0.36187 - 0.36720 = -0.00533\text{ kJ}/(\text{kg}\cdot\text{K}) \; (-1.45\%)\] \[\Delta u = 103.317 - 104.819 = -1.501\text{ kJ/kg} \; (-1.43\%)\]

  2. Thermodynamic Explanation: For an idealized incompressible liquid (\(dv = 0\)), \(T\,ds = du = c\,dT\), making both \(u\) and \(s\) functions of \(T\) alone. Thus an adiabatic reversible (isentropic) pump causes zero temperature change (\(\Delta s = c\ln(T_2/T_1) = 0 \implies T_2 = T_1\)), and squeezing water at constant \(T\) up to \(200\text{ bar}\) shifts \(s\) by barely \(1\%\)!


Practice Problem 4 β€” Steady-State Entropy Generation in a Hot/Cold Liquid Mixing Tee

An insulated mixing valve blends \(\dot{m}_1 = 3.0\text{ kg/s}\) of hot liquid water at \(T_1 = 80^\circ\text{C}\) with \(\dot{m}_2 = 5.0\text{ kg/s}\) of cold liquid water at \(T_2 = 20^\circ\text{C}\), both at ambient \(100\text{ kPa}\) (\(c_w = 4.184\text{ kJ}/(\text{kg}\cdot\text{K})\)). Determine the exit stream temperature \(T_3\) and the steady rate of entropy generation \(\dot{S}_{\text{gen}}\) in \(\text{kW/K}\).

πŸ” Click to View Complete Step-by-Step Solution
  1. Adiabatic Energy Balance (Incompressible \(h_i - h_j \approx c_w(T_i - T_j)\)): \[T_3 = \frac{\dot{m}_1 T_1 + \dot{m}_2 T_2}{\dot{m}_1 + \dot{m}_2} = \frac{3.0(80) + 5.0(20)}{8.0} = 42.50^\circ\text{C} \; (315.65\text{ K})\]

  2. Steady-Flow Entropy Balance (\(\dot{Q} = 0\)): \(\dot{S}_{\text{gen}} = \dot{m}_1(s_3 - s_1) + \dot{m}_2(s_3 - s_2)\): \[\dot{S}_{\text{gen}} = 4.184\left[3.0\ln\left(\frac{315.65}{353.15}\right) + 5.0\ln\left(\frac{315.65}{293.15}\right)\right] = +0.1380\text{ kW/K}\]

  3. Result: Mixing unequal-temperature streams generates \(+\dot{S}_{\text{gen}} = 0.1380\text{ kW/K}\) at \(T_3 = 42.50^\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.