← Explorables

Random walk model of diffusion

Try it: press Play and watch the cloud spread. Then press A, B, C or D above "Spread against time" to see which curve matches, or change a slider and press Play again. Notes explains the theory.

Play runs the simulation; One step moves every molecule once; Reset puts them all back at the start.

Simulation against the predictionaverages over all N molecules now, beside the values theory predicts

QuantitySimulationPrediction

Spread against timehow far the molecules typically are from where they started

Which curve fits?

Concentration profile along xhow many molecules are at each position

Average position against timewhere the molecules are on average; theory says it stays at 0