The Physics of the Universe
Home › Simulations › 2D Kinetic Theory & Ideal Gas Chamber Simulator

2D Kinetic Theory & Ideal Gas Chamber Simulator

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.

Presets:
Drag Temperature T upward or compress Chamber Width (Area) with the piston to watch wall impulse pressure and speed distribution spread right.

Key Equations & Physics Model

2D Ideal Gas Law (Area A = V_2D): P_2D A = N k_B T, ⟨KE⟩_2D = k_B T
2D Maxwell–Boltzmann Speed Distribution: f(v) = (m v / k_B T) exp(−m v² / 2 k_B T)

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.

How the Physics Works

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).

2D vs 3D Kinetic Theory Identities

Quantity2D Planar Chamber (This Sim)3D Physical Gas
Degrees of Freedom2 (x, y)3 (x, y, z)
Mean Translational Energy ⟨KE⟩1 k_B T3/2 k_B T
Speed PDF f(v)∝ v exp(−mv² / 2kT)∝ v² exp(−mv² / 2kT)
Mechanical EquationP_2D · Area = N k_B T (F/L)P_3D · Vol = N k_B T (F/A)

How do fast bouncing atoms create ideal gas pressure?

A 38-second animation: wall momentum impulse pressure P = F/L, 2D equipartition ⟨KE⟩ = kT, and 2D speed curves.

Experiments to Try

Verify Boyle's Compression Law

Switch from Standard Chamber (10 m wide) to Compressed Half-Volume (5 m wide) at fixed 300 K: pressure P doubles directly.

Stretch the Speed Histogram

Jump to Superheated 800 K Gas and watch the right-hand speed bars broaden closely along the gold 2D Maxwell–Boltzmann fit.

Frequently Asked Questions

Why does this 2D chamber report ⟨KE⟩ = kT instead of 3/2 kT?

By equipartition, each quadratic degree of freedom gets ½ kT—two dimensions give 2 × ½ kT = kT.

Related Topics & Tools