Watch elastic hard-sphere gas atoms collide inside a 2D thermal chamber with spatial-hash collision detection—matching live time-averaged 2D pressure against P = N k T / A and the 2D Maxwell–Boltzmann speed curve.
Strictly honors 2D kinetic theory: two translational degrees of freedom give ⟨KE⟩ = kT (not 3/2 kT) and speed PDF proportional to v·exp(−mv²/2kT). Mobile views cap particle count cleanly.
Gas pressure is simply millions of tiny elastic rebounds transferring momentum Δp = 2 m v_⊥ per unit wall length every second. Compressing the piston into half the width doubles the wall collision rate, doubling pressure at constant temperature.
Inter-atomic hard-sphere collisions continuously redistribute energy until speeds trace the smooth 2D Maxwell–Boltzmann Rayleigh curve f(v) ∝ v exp(−mv²/2kT).
| Quantity | 2D Planar Chamber (This Sim) | 3D Physical Gas |
|---|---|---|
| Degrees of Freedom | 2 (x, y) | 3 (x, y, z) |
| Mean Translational Energy ⟨KE⟩ | 1 k_B T | 3/2 k_B T |
| Speed PDF f(v) | ∝ v exp(−mv² / 2kT) | ∝ v² exp(−mv² / 2kT) |
| Mechanical Equation | P_2D · Area = N k_B T (F/L) | P_3D · Vol = N k_B T (F/A) |
A 38-second animation: wall momentum impulse pressure P = F/L, 2D equipartition ⟨KE⟩ = kT, and 2D speed curves.
Switch from Standard Chamber (10 m wide) to Compressed Half-Volume (5 m wide) at fixed 300 K: pressure P doubles directly.
Jump to Superheated 800 K Gas and watch the right-hand speed bars broaden closely along the gold 2D Maxwell–Boltzmann fit.
By equipartition, each quadratic degree of freedom gets ½ kT—two dimensions give 2 × ½ kT = kT.