Governing equations
For dissolved reagents A and B and soluble product C:
∂A/∂t = Dₐ ∂²A/∂x² − kAB
∂B/∂t = Dᵦ ∂²B/∂x² − kAB
∂C/∂t = D꜀ ∂²C/∂x² + kAB − P
∂S/∂t = P
A site nucleates when C reaches its local threshold Cₙ. After nucleation, P = kₚ max(C − Cₑ, 0). The solid S is immobile.
Numerical method
Diffusion uses a fixed-step, one-dimensional forward-time centred-space update. The local A + B reaction is integrated with its exact 1:1 solution; precipitation relaxes exponentially toward Cₑ. These local reaction updates are operator-split from diffusion. Δx = 0.25 mm and Δt = 0.05 min. The largest allowed A diffusivity gives a diffusion number DₐΔt/Δx² = 0.48, below the one-dimensional FTCS limit of 0.5.
What is simplified
This is a one-dimensional effective gel model, displayed as a tube. It does not resolve pore geometry, convection, electroneutrality, activity coefficients, crystal habit, elastic stress or changing porosity. Nucleation is a local threshold with small seeded heterogeneity, not a molecular nucleation calculation.
Illustrative, not a chemical recipe
No named salt or reagent pair is represented. Diffusivities, concentrations and kinetic rates are illustrative values with physical units, selected to show the pattern-forming mechanism. The simulation is not a quantitative prediction for a particular laboratory mixture.