Skip to content

Thermodynamics

On this page the right-hand wall of the box is a piston, and the walls are either insulated (grey) or held at a temperature (coloured). The side panel keeps the first law’s three numbers: the internal energy of the gas, the work done on it, and the heat given to it. At every moment ΔU=Q+W\Delta U = Q + W exactly.

Compressing a gas slowly, at a fixed temperature

Section titled “Compressing a gas slowly, at a fixed temperature”
Live in your browser: every molecule followed by the engine.Open in the playground with sliders and graphs ↗

A molecule that bounces off an advancing piston comes away faster than it arrived, as a ball does off a moving bat. That is how pushing a piston gives a gas energy. Here the walls are held at 300 K, so each molecule that has been speeded up soon hits a wall and leaves with an ordinary speed again. The gas ends no hotter than it began. All the work that went in has come out as heat. On the P–V graph the gas climbs the dashed curve PV=NkTPV = NkT.

Compressing a gas with no heat allowed out

Section titled “Compressing a gas with no heat allowed out”
Live in your browser: every molecule followed by the engine.Open in the playground with sliders and graphs ↗

The same piston and the same squeeze, but now the walls are insulated: a molecule bounces off them with the speed it came with. The energy the piston gives has nowhere to go. The gas gets hotter, and because it is hotter its pressure rises faster than it did at a fixed temperature. The path on the P–V graph is steeper. A bicycle pump getting warm is this.

Live in your browser: every molecule followed by the engine.Open in the playground with sliders and graphs ↗

The gas starts in half the box. Then the wall holding it is whipped away, faster than any molecule can follow, so nothing ever pushes on it. The gas spreads into the empty half and fills the whole box.

It did no work and no heat passed, so its energy is what it was, and so is its temperature. Its pressure has halved. Now watch for it to go back into the left half. It never will. Nothing forbids it: each molecule would only have to be in the left half at the same moment. With 300 molecules the chance is one in 23002^{300}.

Live in your browser: every molecule followed by the engine.Open in the playground with sliders and graphs ↗

Neon on the left and argon on the right, at the same temperature and pressure, with a wall between. Take the wall away. Nothing pushes either gas anywhere, the pressure is the same on both sides, and yet within a few hundred picoseconds they are thoroughly mixed. They will not sort themselves out again. This is diffusion, and like free expansion it only goes one way.

Live in your browser: every molecule followed by the engine.Open in the playground with sliders and graphs ↗

An engine takes heat from something hot, turns part of it into work, and has to throw the rest away to something cold. Carnot asked how large that part can be, and found the best possible engine: four slow strokes.

  1. The gas expands touching the hot reservoir. It does work, and takes in exactly that much heat.
  2. Insulated, it goes on expanding. Now the work comes out of its own energy and it cools, down to the cold reservoir’s temperature.
  3. Touching the cold reservoir, it is compressed. Work goes in and leaves as heat.
  4. Insulated, it is compressed until it is hot again, back where it began.

On the P–V graph the path is a closed loop between the two dashed curves, and the area inside it is the work the engine gives.