Skip to content

Matter and pressure simulation

Gas Laws and Particles Simulation

A cylinder of colliding gas particles with a piston, a heater and a pressure gauge. Record pressure against volume at constant temperature and pressure against temperature at constant volume, then watch a fast push on the piston warm the gas.

Loading simulation…
Show symbols for

Predict first

Question 1 of 3

A sealed cylinder holds gas at about 100 kPa in a volume of 300 cm³. A thermostat keeps the gas at 300 K while the piston is pushed slowly in until the volume is 150 cm³. What will the gauge read once it settles?

Try this

  1. 1Press Play and wait for the Pressure card to say 4 s average, with the volume at its starting value of 300 cm³. Press Record. Then drag the piston handle, or the Volume slider, to 200, 150 and 100 cm³, recording each settled reading.
  2. 2Look at the p against 1/V graph of your results. Do the points lie on a straight line through the origin? Compare its gradient with the Pressure × volume card.
  3. 3Choose Constant volume from the Experiment menu. Press Cool or Heat between recordings to visit five or six temperatures, then read where the line on the °C graph reaches zero pressure.
  4. 4Choose Work done (thermostat off) from the Experiment menu. Set the Volume slider to 300 cm³ and press Reset, then press Push in. Watch the thermometer and the colours of the particles. Then press Pull out: does the temperature return to where it started?
  5. 5Choose Constant temperature, with 300 cm³ and 300 K. Set the Number of particles to 120 and predict the new reading before the gauge settles.

A cylinder you can see inside

The simulation shows a gas as a few dozen particles in a metal cylinder with a glass front. A piston with a handle seals the right-hand end, a heater sits underneath, a dial gauge shows the pressure and a digital thermometer shows the temperature. Each particle is coloured by its speed, from blue for slow to red for fast, and a small histogram beside the cylinder shows how the speeds are spread.

The particles travel in straight lines until they meet a wall or one another. Every collision is perfectly elastic, so no kinetic energy is lost when they bounce. Nothing is faked: the gauge, the thermometer and the graphs all come from these collisions.

Where the pressure comes from

Watch a wall closely and you will see tiny flashes. Each one marks a particle bouncing back. As it reverses, its momentum changes, and the wall receives an equal push the other way. The meter adds up all of these pushes over a short time (one second for the gauge needle, four seconds for the Pressure card), then divides by the time and by the size of the walls. That gives the force per unit area, which is the pressure. With only sixty particles the reading wobbles slightly, and that is honest too. A real gas holds so many molecules that its pressure looks perfectly steady.

Squeezing at constant temperature

In the first experiment a thermostat holds the temperature fixed while you move the piston. Push it in and the particles, still moving at the same average speed, have less room. Every stretch of wall now takes more hits per second, so the pressure rises. Halving the volume doubles the pressure, which is the rule pV=constantpV = \text{constant}, often written p1V1=p2V2p_1V_1 = p_2V_2, for a fixed mass of gas. Record several readings and plot pressure against 1/V: the points lie close to a straight line through the origin. Plotting pressure against volume gives a curve instead.

Heating at constant volume

In the second experiment the piston stays still while the heater or the cooling plate changes the temperature. Hotter particles move faster, so they arrive at the walls more often and strike them harder. The pressure is proportional to the temperature in kelvin, found with T=θ+273T = \theta + 273. Plot your results against the Celsius temperature and extend the line backwards: it reaches zero pressure close to −273 °C. That is absolute zero, where the particles would have the least kinetic energy they can.

Doing work on a gas

The third experiment switches the thermostat off, so no energy can flow in or out as heat. Push the piston in quickly. Particles that meet the moving piston rebound faster, like a ball struck by a swinging bat. The work done by the piston raises the internal energy of the gas, and the thermometer climbs. This is why a bicycle pump warms up. Pull the piston out and the gas does work on it instead, so the gas cools.

What the model leaves out

The box is flat, so its particles move in only two directions. It stands for a real cylinder through a stated scale: the full box is shown as 300 cm³, and pressures are scaled so that sixty particles at 300 K read 100 kPa for an ideal gas. Because the particles take up a little of the space, the reading sits slightly above that ideal value, which is shown beside it. A flat gas also warms far more than real air when squeezed. Finally, the particles move much more slowly than real air molecules, which travel at hundreds of metres per second, so that your eyes can follow them.

Equations

  • Pressure and volume of a gas

    p1=p2V2V1

    pressure × volume = constant (fixed mass of gas at constant temperature), so p₁V₁ = p₂V₂

    Open calculator →
  • Kelvin and Celsius

    T=θ+273

    temperature in kelvin = temperature in degrees Celsius + 273

    Open calculator →

Check your understanding

8 questions

  1. 1.A gas at 120 kPa fills 250 cm³. At constant temperature it is squeezed into 100 cm³. What is its new pressure?
  2. 2.What is −73 °C on the kelvin scale?
  3. 3.Why does a gas push on the walls of its container?
  4. 4.A sealed rigid can of gas is warmed from 200 K to 400 K. What happens to the pressure inside?
  5. 5.At constant temperature, what does a graph of pressure against 1/volume look like for a fixed mass of gas?
  6. 6.Which statement about absolute zero is correct?
  7. 7.A bicycle pump gets warm when the handle is pushed in quickly many times. What is the main reason the air inside warms up?
  8. 8.At the same volume and temperature, the number of gas particles in a container is doubled. What happens to the pressure?

For teachers

Embed it in your site or open it full-screen for the projector.

Read more