Animations › Where gas pressure comes from

Where gas pressure comes from

Molecules in a cylinder hit the walls and bounce back. Each hit changes a molecule's momentum, and together the hits make the pressure. Then the gas is squashed to half its volume, and heated to double its kelvin temperature, and the pressure is measured each time. B.3 Gas laws

What the animation shows

This is a simplified two-dimensional simulation of 120 molecules, worked out step by step: every collision, with the walls and between molecules, is elastic. The colour of each molecule shows its speed (blue slower, gold faster). The pressure is measured from the momentum the molecules actually give to the walls, so the results shown are measured in the simulation, not typed in.

  1. Molecules in a gas. A sealed cylinder with a piston holds a gas. The molecules move at random, in straight lines between collisions, with a range of speeds. They bounce off the walls and off each other, and no kinetic energy is lost in the collisions.
  2. One hit. A close-up of one molecule hitting the piston. Only the part of its velocity perpendicular to the wall, $u$, reverses; the part parallel to the wall doesn't change. Its momentum perpendicular to the wall changes from $+mu$ to $-mu$, a change of $-2mu$. By Newton's third law the molecule gives the wall an equal and opposite impulse, $+2mu$.
  3. Many hits. Each hit on the piston flashes. The graph underneath shows the force on the piston: it flickers, because each hit is a separate tiny push, but its average stays steady. In a real gas there are vast numbers of hits every second, so the force is steady. The pressure is the force perpendicular to a surface per unit area, $P = \dfrac{F}{A}$.
  4. Predict: the piston is pushed in to halve the volume, keeping the temperature the same. What happens to the pressure?
  5. Halving the volume. The piston moves in slowly, in four steps. A moving piston would speed up the molecules that hit it and warm the gas, so the simulation scales their speeds back each moment, as if heat flowed out to the surroundings: the temperature stays the same. After each step the pressure is measured and plotted on a graph of $P$ against $V$.
  6. At half the volume, the simulation measures that each part of the wall is hit 2.0 times as often, but the momentum change per hit is the same (×1.0). So the pressure is 2.0 times as large. The points lie on the curve $PV = \text{constant}$: Boyle's law.
  7. Predict: the piston is locked, so the volume stays the same. If the kelvin temperature doubles, what happens to the pressure?
  8. Heating at constant volume. The gas is heated in steps from 300 K to 600 K, shown on the thermometer. The average kinetic energy of the molecules is proportional to the kelvin temperature, so doubling $T$ makes the molecules move $\sqrt{2} \approx 1.41$ times as fast (in the simulation every speed is scaled by $\sqrt{2}$).
  9. The simulation measures that the molecules hit the walls 1.4 times as often and give 1.4 times as much momentum per hit, so the pressure is $1.41 \times 1.41 = 2.0$ times as large. The points on the graph of $P$ against $T$ lie on a straight line through the origin: $P \propto T$, with $T$ in kelvin (the pressure law).
  10. The kinetic model of an ideal gas. Its main assumptions: the molecules are tiny compared with the gaps between them, there are no forces between molecules except during collisions, all collisions are elastic and take negligible time, and the molecules move at random with a range of speeds. At low pressure, real gases behave almost like this.
  11. Worked through in three dimensions, adding up the momentum changes gives $P = \tfrac{1}{3}\rho v_{\text{rms}}^2$, where $\rho$ is the density of the gas. With the ideal gas equation, $PV = Nk_BT = nRT$, this shows that the average kinetic energy of a molecule is $\tfrac{3}{2}k_BT$.
  12. Gas pressure comes from molecules changing momentum at the walls: $P = \dfrac{F}{A}$.

Read more in B.3: section 1, pressure, section 3, the kinetic model of an ideal gas, section 4, the empirical gas laws, section 6, pressure from molecular collisions and section 7, temperature, speed and internal energy.