A sealed box you can heat and cool
The simulation shows a flat, sealed glass box holding 100 particles on a heater plate. Every pair of particles attracts when they are a short distance apart and pushes back hard when squeezed together. That single rule is all the program knows. The regular solid, the liquid lump and the spread-out gas are not drawn in by hand: they appear by themselves as energy is added or taken away.
Colour shows speed: blue particles are slow and red ones are fast. Faint lines join close neighbours, so the bonds in a solid show up clearly. A thermometer stands on the left and a bar on the right shows the internal energy, split into its kinetic and potential parts.
Arrangement and motion in each state
Start from the cold solid and the particles sit in neat rows, each one trembling about its own spot. Press Track to ring one particle and draw its path: in the solid the path is a tiny scribble. Heat the box and the rows break up. The particles still touch, but now they jostle and swap places, so the tracked path wanders through the lump. Keep heating and particles escape one by one until every particle flies freely across the box, changing direction only when it meets a wall or another particle.
Where the heater's energy goes
The heater adds energy at a steady rate, so the time axis of each graph also measures the energy supplied. While the solid warms, the particles vibrate harder. The energy is shared between kinetic energy (faster motion) and potential energy (bonds stretched and squashed further), and the temperature climbs quickly. Once the pattern starts to collapse, the temperature line becomes much flatter. The energy graph shows why: Total PE shoots up while Total KE barely moves. The energy is working against the attraction between particles, pulling them apart, rather than speeding them up. In the gas the reverse happens, and almost all of the energy becomes kinetic energy.
Temperature and the motion of particles
The thermometer reads the average kinetic energy of the particles over the last second. On the model scale used here, temperature is proportional to that average, just as it is on the kelvin scale. Double the average kinetic energy and the reading doubles. Zero on both scales is absolute zero. Nothing can be colder, and the particles' kinetic energy is as small as it can be.
Density and conservation of mass
Cooling a gas makes the particles gather into a lump, first as a liquid and then as a solid. The number of particles never changes, so the mass is the same in every state. The Space taken up card shows how much of the box the lump fills. The same mass squeezed into less space has a higher density, which is why solids and liquids are so much denser than gases.
Evidence that particles move
Switch the view to Brownian motion. A large smoke particle hangs in air whose molecules are too small to see. They keep striking it unevenly, so it jerks about along a random path that its trail records. Warmer air means faster molecules and a livelier dance.
To read heating curves with real substances and E = mL, try the latent heat simulation. To explore how moving particles create gas pressure, open the gas laws simulation.