Chemistry · Simulator 024
Two kinds of particles start on opposite sides of a box. Lift the barrier and watch them mix through random collisions. Change the temperature, particle count and mass, and track how far particles wander: the mean squared displacement grows in proportion to time.
Class 6–8Class 9–10Class 9 Science: Matter in Our Surroundings (diffusion)
No particle is “trying” to mix. Each one moves in a straight line until it collides, then heads off in a new direction. The resulting random walk spreads particles out because there are vastly more mixed arrangements than separated ones.
For a random walk in two dimensions, the mean squared displacement grows linearly with time:
⟨r²⟩ = 4 D t
where D is the diffusion coefficient. Faster particles diffuse quicker: in this model the typical speed is v ∝ √(T/m), so heavier or colder particles spread more slowly (Graham's law).
The simulator moves particles with hard-disc collisions between them and elastic wall bounces. It measures ⟨r²⟩ directly from the particles' unwrapped displacements and fits D from the slope. A fixed seed makes each run reproducible.
2-D hard-disc model in arbitrary units; speeds are scaled for viewing. Real gas diffusion coefficients depend on pressure and molecular size as well.
If a particle's mean squared displacement is 1 cm² after 10 s, how long until it reaches 2 cm² and 10 cm²? Why does diffusion feel slow over long distances?
⟨r²⟩ ∝ t, so 2 cm² takes 20 s and 10 cm² takes 100 s. Typical distance grows only as √t: to go 10 times as far takes 100 times as long. That is why perfume spreads across a room mainly by air currents, while diffusion handles the last millimetres.
Random walk in two dimensions: the mean squared distance grows as ⟨r²⟩ = 4 D t, so the typical distance grows only with √t.
Glucose in water has D ≈ 6.7 × 10⁻¹⁰ m²/s. To spread about 1 mm takes t = r² / (4D) = 10⁻⁶ / (2.7 × 10⁻⁹) ≈ 370 s, about 6 minutes.
To spread 1 cm (10 times further) takes 100 times longer, about 10 hours. That is why cells rely on diffusion over micrometres but blood flow over centimetres.
Graham's law in this lab: four times the mass halves the typical speed (v ∝ √(T/m)), so the heavier species diffuses more slowly. Make one species 4 times heavier and compare the fitted D values.
The net spreading of particles from where they are crowded to where they are sparse, caused only by their random motion. No force pushes them; mixed arrangements are simply far more likely.
Particles keep moving, but as many move one way as the other, so the overall concentration stops changing. This is dynamic equilibrium.
Higher temperature (faster particles), lighter particles, a shorter distance to travel and a steeper concentration difference.