Kinetic Gas Simulator
Bounce 150 molecules in a box: raise temperature, watch the pressure gauge climb from their own collisions.
Learn the physics first
Pressure is not a substance — it is bookkeeping. Every time a molecule strikes a wall, its momentum reverses and the wall receives an impulse of 2m|v⊥|. Add up countless such taps per second per unit area and you have pressure: the kinetic theory result P = ⅓ρ⟨v²⟩, or equivalently P = NkT/V for N molecules in volume V. In this lab the gauge is fed only by counted wall impulses from 150 hard-sphere molecules (each carrying a full 3D velocity even though you watch a 2D slice) — the ideal-gas formula is shown only as the target the count converges to.
Temperature enters as the agent that fixes the average molecular kinetic energy: ½m⟨v²⟩ = (3/2)kT, which rearranges into the molar speed v_rms = √(3RT/M). At 300 K that is about 484 m/s for oxygen and a brisk 1934 m/s for hydrogen — same energy each, wildly different speeds, because the masses differ. The speed histogram the molecules paint is the Maxwell–Boltzmann distribution: right-skewed, with its peak below v_rms. The model is honest about its limits: hard spheres, elastic collisions, no intermolecular forces, thermostatted temperature.
Model assumptions. A nanoscale box (32 × 19.2 × 10 nm) holds 150 molecules — with real molecular masses this genuinely sits near atmospheric pressure at 300 K. Time runs at 10 ps per real second. The thermostat rescales speeds when you move the temperature slider; wall collisions are perfectly elastic, so with the thermostat idle the total kinetic energy is conserved exactly.
Experiment
Speed histogram
Maxwell–Boltzmann, v_rms markedControls
Run lets the ensemble fly. The pressure gauge needs a few seconds of wall hits to settle — statistics costs patience.
Live measurements
Try this. At 300 K confirm oxygen’s v_rms ≈ 484 m/s on both readouts, then switch to hydrogen — four times faster at the same temperature. Slide T from 300 K to 1200 K: speeds and pressure both double-ish (v_rms ∝ √T, P ∝ T). Now halve the volume at fixed T: Boyle from the molecular side — same collisions, twice the crowd at the walls, doubled pressure.
Understand
Predict before you run
Oxygen molecules (M = 0.032 kg/mol) at T = 300 K. Predict their root-mean-square speed, v_rms = √(3RT/M) with R = 8.314 J/(mol·K).
Experiment completion
Match v_rms measured to theory in two gases, watch the counted pressure agree with NkT/V, then pass the quiz.
Where to go next
- Kinetic Theory of Gases lesson
- Gas Laws Apparatus — Boyle, Charles, Gay-Lussac as piston moves
- Internal Energy Lab — where all this KE is bookkept