Fundamentals / Mechanical engineering / Engineering thermodynamics and heat transfer / Notebooks

How much work is lost when two finite bodies touch?

Two bodies in an insulated enclosure begin at different temperatures. A cyclic reversible device could extract work before their temperatures equalise. Compare this with simply putting the bodies in thermal contact. Change the heat capacities and initial temperatures, then rerun.

Interactive calculation · Finite source temperatures

Vary the notebook inputs and compare both plotted observables. The same equations generate the browser curves and the notebook reference; fixed material, geometry and model assumptions are stated in the readout.

Download the editable notebook for this example

Interactive calculation · Finite source work

Vary the notebook inputs and compare both plotted observables. The same equations generate the browser curves and the notebook reference; fixed material, geometry and model assumptions are stated in the readout.

Download the editable notebook for this example

Save notebook (.ipynb)

Python runs on this device. The first run loads the scientific libraries.

Close separate entropy and energy balances

A reversible final state has the initial total entropy. Direct contact preserves the initial total energy. Use these two balances separately to obtain the two different final temperatures.

Follow the reversible path

Transfer equal entropy increments out of the hot body and into the cold one. Work is the difference between the released and absorbed energies. At equal temperatures the marginal work vanishes.

Double the cold body's heat capacity without changing either temperature. Explain why the reversible end temperature approaches the cold initial temperature as the cold capacity becomes very large. Compare the area under the temperature-gap curve with the total delivered work.