Heat a box of atoms and watch matter change state in front of you. Cold, the atoms lock into a vibrating solid crystal. Add heat and the lattice breaks apart and starts to flow — it melts into a liquid. Add more and the fastest atoms tear free and fill the box — it boils into a gas. Remove heat and it all runs backwards. Nothing here is a canned animation: the atoms attract and repel through the real Lennard-Jones force, and the temperature and phase you read are measured from their own motion. Pick a substance, work the heat control, and it all runs on your device.
You are in the Physics lab.
What the bonds, the colours and the thermometer are telling you.
Faint lines join atoms that are close enough to feel each other. In a solid those bonds form a rigid, repeating triangular mesh; warm it to a liquid and the mesh keeps reforming as atoms slide past one another; heat it to a gas and the bonds all but vanish because the atoms are too far apart and too fast to hold together. The colour of the atoms, bonds and thermometer all shift with the phase — blue for solid, green for liquid, orange for gas.
The gauge on the right tracks the temperature read from the atoms' motion, with the three phase bands drawn on it. As you add heat the column climbs out of the blue solid band, through the green liquid band, and into the orange gas band — and the label in the box changes at exactly the same moment, because both come from the same measured temperature.
Seven substances span a wide range of bond strength, from helium — so weakly bound it stays a gas until within a few degrees of absolute zero — up through neon, nitrogen, oxygen, argon and krypton to water, which needs by far the most heat to melt and boil. The atoms behave the same way in reduced units; the substance just relabels the temperature in kelvin using its own Lennard-Jones ε, so the same melting you see happens at a very different reading for helium than for water.
Real forces between atoms, a heat control, and phases that emerge on their own.
Each atom attracts its neighbours at a distance and repels them when squeezed too close, following the Lennard-Jones potential. The tool integrates their motion step by step, so the crystal, the puddle and the gas are all consequences of those forces — not pre-drawn shapes.
The heat control sets a target temperature. Raise it and a thermostat feeds energy in, speeding the atoms up; lower it and energy is drawn out. Watch the ordered lattice loosen and melt, then boil, as you push the control up — and re-freeze as you bring it back down.
The temperature is computed from the atoms' average kinetic energy and labelled in kelvin using the chosen substance's interaction strength. The phase — solid, liquid or gas — is read straight from that temperature, so the label changes exactly when the atoms' behaviour does.
Teaching or blogging about matter and heat? You can embed this simulator on your own site free — one line of code, no sign-up.