Animations › The first law and heat engines

The first law and heat engines HL

A gas in a cylinder is heated, cooled, squeezed and allowed to expand while its p–V diagram draws itself beside it. Watch where the energy goes in each kind of process, why the work done is an area on the graph, and how a Carnot engine turns heat into work. B.4 Thermodynamics

What the animation shows

The gas is 0.080 mol of an ideal monatomic gas (more exactly 0.0802 mol, chosen so that $nR = \tfrac{2}{3}$ $\text{J K}^{-1}$), using $R = 8.31$ $\text{J K}^{-1}\,\text{mol}^{-1}$. The piston is frictionless, and every change is slow, so the gas always has a definite pressure and temperature (the Carnot cycle is fully reversible). The signs follow the notes: $Q$ is the thermal energy supplied to the gas and $W$ is the work done by the gas, so $Q = \Delta U + W$. For a monatomic ideal gas $\Delta U = \tfrac{3}{2}nR\Delta T = \tfrac{3}{2}\Delta(PV)$. The bars under the cylinder show $Q$, $\Delta U$ and $W$ for the process that is running, all to the same scale. The particles are drawn hugely enlarged, and their speeds are proportional to $\sqrt{T}$, as for a real gas.

  1. State A: $P = 1.0 \times 10^5$ Pa and $V = 2.0 \times 10^{-3}$ $\text{m}^3$, so $PV = 200$ J and $T = \dfrac{PV}{nR} = 300$ K.
  2. Isobaric expansion (constant pressure) from A to B, at $V = 5.0 \times 10^{-3}$ $\text{m}^3$. The work done by the gas is the shaded area under the graph: $W = P\Delta V = 1.0 \times 10^5 \times 3.0 \times 10^{-3} = 300$ J. The gas is now at 750 K, so $\Delta U = \tfrac{3}{2}\Delta(PV) = 1.5 \times (500 - 200) = 450$ J. The heat supplied was $Q = \Delta U + W = 450 + 300 = 750$ J.
  3. Isovolumetric heating from A: the piston is locked, so $W = 0$ and $Q = \Delta U = 1.5 \times (400 - 200) = 300$ J. The pressure doubles to $2.0 \times 10^5$ Pa and the temperature doubles to 600 K.
  4. Isothermal expansion from A to $V = 4.0 \times 10^{-3}$ $\text{m}^3$, slowly, in a water bath at 300 K: the temperature stays the same, so $\Delta U = 0$ and $Q = W$. The pressure halves, to $0.50 \times 10^5$ Pa. The area under the curve, the work done, is 139 J, so 139 J of heat flows in from the bath. (The area can be found as $nRT\ln\frac{V_2}{V_1} = 200 \ln 2 = 138.6$ J, but you won't be asked to use this formula.)
  5. Adiabatic expansion from A to $V = 4.0 \times 10^{-3}$ $\text{m}^3$, slowly, with the cylinder insulated: $Q = 0$, so the gas does work using its own internal energy and cools. With $PV^{5/3}$ constant, $P = 1.0 \times 10^5 \times 0.5^{5/3} = 0.315 \times 10^5$ Pa, so $PV = 126$ J, $T = 189$ K and $\Delta U = 1.5 \times (126 - 200) = -111$ J, so $W = 111$ J.
  6. Through the same point A, the adiabat ($PV^{5/3}$ = constant) is steeper than the isotherm ($PV$ = constant): in an adiabatic expansion the gas also cools, so its pressure falls faster.
  7. A Carnot cycle between a hot reservoir at 500 K and a cold one at 300 K. State 1: $V = 2.0 \times 10^{-3}$ $\text{m}^3$, $P = 1.67 \times 10^5$ Pa.
    • 1 → 2, isothermal expansion at 500 K to $4.0 \times 10^{-3}$ $\text{m}^3$: $\Delta U = 0$, and the gas takes in $Q_h = 231$ J from the hot reservoir and does 231 J of work.
    • 2 → 3, adiabatic expansion to $8.6 \times 10^{-3}$ $\text{m}^3$: $Q = 0$; the gas does 200 J of work ($\Delta U = \tfrac{3}{2}nR\Delta T = 1.5 \times \tfrac{2}{3} \times (-200) = -200$ J) and cools to 300 K.
    • 3 → 4, isothermal compression at 300 K to $4.3 \times 10^{-3}$ $\text{m}^3$: 139 J of work is done on the gas, and it gives out $Q_c = 139$ J to the cold reservoir.
    • 4 → 1, adiabatic compression: 200 J of work done on the gas warms it back to 500 K.
  8. Predict: over one whole cycle, what is the change in internal energy? It is zero, because the gas is back at the same temperature. So the net work done equals the net heat taken in: $W = Q_h - Q_c = 231 - 139 = 92$ J. On the graph this is the area enclosed by the loop; going round clockwise, the gas does more work than is done on it. The flow diagram (to scale) shows 231 J in, 92 J of work and 139 J out.
  9. Efficiency: $\eta = \dfrac{W}{Q_h} = \dfrac{92}{231} = 0.40$. For a Carnot engine $\eta_{\text{Carnot}} = 1 - \dfrac{T_c}{T_h} = 1 - \dfrac{300}{500} = 0.40$, the same, as it must be. No engine working between these two temperatures can do better. Real engines do less well, because of friction, turbulence and heat leaks.

The cycle then repeats. Why can no engine turn all its heat into work? See the second law and entropy: Entropy and the second law.

Read more in B.4 section 1: systems and the sign convention, section 2: the first law, section 3: work done by a gas, section 4: change in internal energy, section 5: four types of process, section 6: adiabatic processes, section 7: cycles and heat engines and section 8: the Carnot cycle.