Fundamentals / Physics / Thermodynamics and statistical physics

Heat, work and the limits of a cycle

Track changes of internal energy around a gas cycle and derive the temperature bound on the efficiency of a reversible engine.

From first principles

Derive the reversible engine efficiency from two balances

A working substance in a cyclic engine returns to its initial state. Its internal energy is a state function, so the energy gained from a hot reservoir must equal the useful work plus the heat delivered to a cold reservoir. Let \(Q_h,Q_c\) be positive heat magnitudes and \(W\) positive work delivered by the engine. Energy conservation gives

\[W=Q_h-Q_c,\]
\[\eta=\frac{W}{Q_h}=1-\frac{Q_c}{Q_h}.\]

To determine the smallest possible heat rejection, apply the second law. Reservoirs at constant absolute temperatures \(T_h>T_c\) lose entropy \(Q_h/T_h\) and gain entropy \(Q_c/T_c\) respectively. The engine itself returns to its original entropy. The total entropy production is therefore

\[S_{\rm gen}=\frac{Q_c}{T_c}-\frac{Q_h}{T_h}\ge0,\qquad \eta\le1-\frac{T_c}{T_h}.\]

A reversible cycle attains equality. Friction or heat transfer across finite temperature differences produces entropy and reduces efficiency at fixed reservoir temperatures. The ratio uses absolute temperatures because reservoir entropy changes are defined by reversible heat divided by thermodynamic temperature.

Derivation and applications

Derive the efficiency of an idealized four-stroke gas cycle

A compression ratio predicts an efficiency for a model cycle only after the heat-transfer paths are specified. Consider a fixed amount of ideal gas with constant molar heat capacities and \(\gamma=C_p/C_V>1\). In the Otto model the gas undergoes reversible adiabatic compression from state 1 to 2, heat addition at fixed volume from 2 to 3, reversible adiabatic expansion from 3 to 4, then heat rejection at fixed volume back to 1. Use positive magnitudes \(Q_h,Q_c\) for the absorbed and rejected heat.

For either adiabat the first law gives

\[nC_VdT=-p\,dV=-nRT\,dV/V.\]

Separation and integration give

\[TV^{\gamma-1}=\mathrm{constant}.\]

Introducing \(r=V_1/V_2=V_4/V_3>1\) sets both adiabatic temperature ratios,

\[\frac{T_2}{T_1}=\frac{T_3}{T_4}=r^{\gamma-1}.\]

The two fixed-volume steps do no boundary work. Their respective heats are internal energy changes, and cyclic energy conservation converts the heat ratio to efficiency,

\[Q_h=nC_V(T_3-T_2),\]
\[Q_c=nC_V(T_4-T_1),\]
\[\eta=1-\frac{Q_c}{Q_h}.\]

Substitute \(T_3=r^{\gamma-1}T_4\) and \(T_2=r^{\gamma-1}T_1\). Both temperature differences contain the same factor \(T_4-T_1\), which cancels and leaves

\[\eta=1-r^{1-\gamma}.\]

The gas absorbs and rejects heat over intervals of temperature. Its efficiency therefore depends on the chosen paths even with reversible adiabatic strokes. At \(r=1\) the pressure-volume loop collapses and produces no net work. Increasing the compression ratio also raises the temperature reached before heat addition, which can invalidate a constant-\(\gamma\) model.

Worked example

Close a cycle with measured endpoint temperatures

For one mole with \(r=8.00\), \(\gamma=1.40\), \(T_1=300\,\mathrm K\) and \(T_3=1600\,\mathrm K\), the adiabatic factor is 2.297. Hence \(T_2=689\,\mathrm K\), \(T_4=696\,\mathrm K\), and \(C_V=R/0.40=20.8\,\mathrm{J/(mol\,K)}\). The gas absorbs \(18.9\,\mathrm{kJ}\) and rejects \(8.24\,\mathrm{kJ}\), yielding \(10.7\,\mathrm{kJ}\) of work and efficiency \(0.565\).

Second application

Infer a compression ratio for a different working gas

A model monatomic gas has \(\gamma=5/3\). Achieving efficiency \(0.600\) requires

\[r=(1-0.600)^{-1/(\gamma-1)}=3.95.\]

Starting at \(280\,\mathrm K\), its temperature at the end of compression is

\[280/(1-0.600)=700\,\mathrm K.\]

A cycle whose hottest temperature were \(650\,\mathrm K\) could not realize the specified heat-addition stroke with this initial state.

Try it · Otto

Vary the physical parameters in the derived relation. Use the units and assumptions in the readout to connect the curves to the two worked examples. A parameter study can test the forward prediction; the same relation can then be inverted to infer a parameter from a measurement.

OneSimulation laboratory

Separate the equilibrium temperature from the relaxation time

Start from this chapter. Write the first law for each insulated block and add the balances. Use the conserved weighted mean to predict the final temperature before changing the bridge conductance.

Compare recorded OneSimulation runs on this page. To test your own inputs, download the notebook and model files and run the model in an activated OneSimulation environment.

The notebook couples two thermal capacities through their temperature inputs. Run its parameter, solve and comparison cells for each setting. The log-slope of \(T_1-T_2\) provides a measured decay rate. Its inverse is the measured relaxation time. Use the capacity-weighted mean at every stored time to estimate \(T_*\), since the two temperatures still differ at the final stored sample. Two-body thermal exchange model.

  1. Baseline. Start with heat capacities of 500 and 1500 J/K, initial temperatures of 360 and 300 K, and a 2 W/K bridge. Compare the time for the initial temperature difference to fall by a factor \(e\) with 187.5 s. Check entropy by calculating \(C_1\ln(T_1/T_{1,0})+C_2\ln(T_2/T_{2,0})\) across the stored history.
  2. Improve the bridge. Change conductance from 2 to 4 W/K and rerun. Predict which of the weighted mean and decay rate will double.
  3. Change the hot body. Restore the conductance and set heat_capacity_1 = 1500.0 J/K. Examine how the fitted rate and weighted mean both change. For each run compare the fitted rate with \(1/\tau\) within 0.1%, and check that the weighted mean drifts by less than 0.001 K.
Stored temperature histories from the coupled model
Thermal contactWeighted mean (K)Fitted decay rate (s⁻¹)Relaxation time (s)
500 J/K hot block, 2 W/K bridge315.000.005333187.50
500 J/K hot block, 4 W/K bridge315.000.01066793.75
1500 J/K hot block, 2 W/K bridge330.000.002667375.00
Doubling the bridge conductance cuts the relaxation time from 187.5 to 93.75 s. Increasing the hot block’s heat capacity instead doubles the time to 375 s.
Doubling the bridge conductance cuts the relaxation time from 187.5 to 93.75 s. Increasing the hot block’s heat capacity instead doubles the time to 375 s.
Download experiment files (ZIP) Extract the files together and open two_mass_thermal_exchange.ipynb in a local OneSimulation environment.
Try it · Two blocks approaching thermal equilibrium

The initial temperatures are the notebook’s 360 K and 300 K, with heat capacities 500 and 1500 J/K and conductance 2 W/K. Double the conductance to halve the relaxation time; restore it and set the first capacity to 1500 J/K to move the equilibrium to 330 K. These curves solve the same constant-property ODE analytically.

Open the corresponding OneSimulation notebook, code and output

Problem sheet 6 · Identify a heat capacity and a bridge conductance

Read the model setup and preparatory problems

Put signs on a physical boundary

Enclose a gas inside a movable cylinder. When the gas expands, it can raise an external weight. When heated at fixed volume, it can increase its temperature while doing no boundary work. To fix signs, take heat \(Q\) into the gas as positive and work \(W\) done by the gas as positive. The first law is

\[\Delta U=Q-W.\]

Internal energy is a state property; the other two quantities describe transfer during a process. A cyclic device returns to its initial state, so its net work equals its net heat input.

For a quasistatic expansion, a piston moving distance \(dx\) under external pressure \(p_{\rm ext}\) receives work \(p_{\rm ext}A\,dx=p_{\rm ext}dV\). In mechanical equilibrium \(p_{\rm ext}\) approaches the gas pressure, giving the usual area under a pressure–volume curve. A suddenly expanding gas is not generally uniform or in mechanical equilibrium. Extending the equilibrium pressure formula to an unconstrained free expansion would predict work when no piston or other boundary force actually receives it.

Follow an ideal gas along two paths

For a calorically ideal gas, \(dU=nC_{V,m}dT\) with constant molar heat capacity. Reversible isothermal expansion from \(V_1\) to \(V_2\) therefore gives zero internal energy change and \(Q=W=nRT\ln(V_2/V_1)\). Revise the process so that the gas is thermally insulated but still expands reversibly. Then \(nC_{V,m}dT=-p\,dV=-nRT\,dV/V\). Integrating and introducing \(\gamma=C_{p,m}/C_{V,m}=1+R/C_{V,m}\) gives

\[TV^{\gamma-1}=\text{constant}.\]

Temperature now falls because the gas supplies work from its energy store.

The two paths can pass through a common starting state but they generally end at different pressures and temperatures for a given final volume. If one wants to compare work between identical endpoints one must specify a connecting step as well. This prevents a common misreading of a pressure–volume plot: an isotherm and an adiabat through the same point have different slopes and cannot serve as alternate paths to the same later point without additional processes.

Construct a reversible two-reservoir cycle

Let the gas expand isothermally at \(T_h\), then expand adiabatically down to \(T_c\), compress isothermally there and return adiabatically to the original state. If the first isotherm changes volume by a factor \(r\), the two adiabatic relations force the cold compression to change volume by the reciprocal factor. The hot heat input is \(Q_h=nRT_h\ln r\). The magnitude of heat expelled during cold compression is \(Q_c=nRT_c\ln r\). Thus

\[W=Q_h-Q_c,\]
\[\eta=\frac W{Q_h}=1-\frac{T_c}{T_h}.\]

The working gas provides one explicit construction. More generally a reversible cycle exchanges entropy \(Q_h/T_h\) with the hot reservoir and returns exactly that entropy to the cold one. For an irreversible cyclic engine between the same two reservoirs, the reservoir entropy change \(Q_c/T_c-Q_h/T_h\) is nonnegative. This gives the same expression as an upper bound on efficiency. The temperatures must be absolute and must refer to the reservoirs actually exchanging heat.

Test a proposed engine

An engine receives 1.50 kJ per cycle from a 450 K reservoir and rejects heat to a 300 K sink. Reversibility permits at most 0.500 kJ of useful work. A measured cycle delivering 0.360 kJ must reject 1.140 kJ by the first law. The working fluid’s entropy returns to its original value, while the two reservoirs together gain \(1140/300-1500/450=0.467\) J/K per cycle.

The energy and entropy balances answer different design questions. Energy accounting gives the amount of rejected heat. Entropy generation explains why some of the available work has been lost relative to the reversible limit. Raising the running frequency can increase power even at lower efficiency, since power depends on work per unit time. The reversible limit describes a thermodynamic bound, and achieving a useful power output additionally depends on finite rates of heat transfer and mechanical motion.

Extract work from two finite heat reservoirs

The usual Carnot limit assumes two fixed reservoir temperatures. Two finite bodies instead change temperature as a reversible engine transfers energy between them. Consider insulated hot and cold blocks with constant heat capacities \(C_h,C_c\). A cyclic engine operating between them can deliver work to an external mechanical store. The block temperatures vary slowly relative to internal equilibration, and the reversible engine draws and rejects each small amount of heat at its corresponding instantaneous block temperature.

If an infinitesimal amount of entropy passes through the engine reversibly, the hot block loses exactly the amount gained by the cold block. Integrating until both reach a common final temperature \(T_f\) yields

\[C_h\ln(T_f/T_{h,0})+C_c\ln(T_f/T_{c,0})=0,\]
\[T_f=T_{h,0}^{C_h/(C_h+C_c)}T_{c,0}^{C_c/(C_h+C_c)}.\]

The logarithms contain temperature ratios, so the product expression is dimensionally a temperature. Once temperatures coincide a cyclic engine has no thermal difference left from which to extract work. Conservation of energy gives

\[W_{\max}=C_h(T_{h,0}-T_f)+C_c(T_{c,0}-T_f).\]

Any irreversible entropy production raises the attainable common temperature relative to the reversible result at the same initial conditions, leaving more energy in the blocks and less exported as work.

Compare a reversible engine with passive contact

Let \(C_h=C_c=1.00\) kJ/K, \(T_{h,0}=400\) K and \(T_{c,0}=300\) K. The reversible common temperature is the geometric mean \(\sqrt{400\times300}=346.41\) K. The engine receives 53.59 kJ from the hot block and transfers 46.41 kJ to the cold block; their difference is 7.18 kJ of work. The overall work fraction of extracted hot-side heat is 0.134. At the beginning the instantaneous reversible efficiency is \(1-300/400=0.250\), falling to zero at the end. Applying that initial efficiency throughout would overestimate the work.

Now put the same blocks directly in thermal contact without an engine. Energy conservation gives the arithmetic mean of 350 K and zero work. The positive entropy produced is

\[1000\ln[350^2/(400\times300)]=20.6\,\mathrm{J/K}.\]

The final temperature exceeds the reversible result by 3.59 K for each block, precisely accounting for 7.18 kJ retained as thermal energy. In the limit of a very small initial temperature difference the geometric and arithmetic means coincide to first order. Recoverable work thus starts at second order in the initial difference even though the heat passed between the blocks is first order, explaining why small temperature contrasts are poor resources for mechanical work.

The arithmetic and geometric means also reveal how sensitive the possible work is to initial temperature calibration. For equal heat capacities, write initial temperatures as \(T_m+\delta\) and \(T_m-\delta\). The reversible common value is

\[\sqrt{T_m^2-\delta^2}\simeq T_m-\delta^2/(2T_m).\]

Multiplying the difference from the arithmetic mean by the combined heat capacity gives

\[W_{\max}\simeq C\delta^2/T_m.\]

Thus a small absolute error in a temperature difference can have a doubled relative effect on the predicted maximum work. Measuring both blocks with matched instruments matters more here than obtaining many digits for the mean temperature alone.

Study the full derivation

Work fluctuations and equilibrium free-energy differences · Statistical mechanics from microscopic counting to material response

Repeated rapid changes of a laboratory control can give a broad distribution of work even when every run follows the same prescribed protocol. Derive why a particular exponential average retrieves an equilibrium free-energy difference, why the average work is generally larger, and why a finite experiment can miss the rare trajectories that make the equality true.