A dissolved reagent enters the gel from above. A threshold front advances while precipitate appears in separated bands.
Locate the diffusion front
Sample the concentration profile along the tube, find where it crosses the nucleation threshold, then compare that measured depth with the diffusion solution.
Independent numerical checks
03 / 03The science
Two ideas make the pattern
Liesegang bands are periodic precipitate deposits that can form when one dissolved reactant diffuses through a gel containing another. The simulation combines a one-dimensional diffusion solution with the empirical spacing law; it is not a molecular-scale reaction solver.
C(x,t) = C₀ erfc(x / 2√(Dt))xₙ = x₁(1 + p)ⁿtₙ = xₙ² / [4D · erfc⁻¹(f)²]ℓ = 2√(Dt)What is simplified: the gel is treated as a uniform semi-infinite medium with a constant concentration at its upper boundary. The resident reactant is not explicitly transported. Precipitation is represented by bands placed according to the measured-style geometric spacing rule, and the threshold-crossing time determines when each band appears.
What is illustrative: the diffusivity, threshold fraction, spacing parameter, initial band offset, deposit darkness and tube dimensions are adjustable teaching values, not a fit to a named laboratory recipe. Real systems depend on ion activities, gel chemistry, temperature, nucleation kinetics and depletion.
Constants: time is converted using 3,600 s h⁻¹ and concentration is reported in mol m⁻³. The complementary error function and its inverse are evaluated numerically. No real chemicals are present or required.