Reaction and diffusion
Electrolyte A enters from the bath and diffuses through a gel containing B. The local ion product is Q = cAcB. A new nucleus appears when Q reaches the nucleation threshold.
∂cA/∂t = DA ∂²cA/∂x² − R
∂cB/∂t = DB ∂²cB/∂x² − R
∂p/∂t = R; Q = cAcB
Once nucleated, a zone grows at R = k max(Q − 1.15Ksp, 0). New zones require Q ≥ SnKsp. The illustrative solubility product is 3.5 × 10⁻⁴ (mol/L)².
Numerical method
A 240-cell one-dimensional finite-difference grid is advanced with a fixed 80 s forward-Euler step. The largest diffusion Fourier number is 0.384, below the 0.5 stability limit for this explicit one-dimensional scheme. Reaction is capped so neither dissolved reagent can become negative.
What is simplified
The model uses a generic 1:1 salt, a phenomenological nucleation threshold and a single growth coefficient. It omits detailed aqueous speciation, activity coefficients, gel swelling, crystal aggregation, stochastic nucleation, heat flow and three-dimensional tube effects. Band positions are qualitative, not a prediction for a particular laboratory salt.
All displayed model parameters are illustrative; SI units are used where applicable. The erfc benchmark and the two conservation checks are computed independently of the precipitation pattern.