Controls
Presets
Parameters
Model checks
The science
Why wash regolith. Martian surface material contains perchlorate salts at roughly half a percent by mass (measured by the Phoenix lander and later missions). Perchlorate is toxic to plants and to people at high doses, so a planetary greenhouse has to remove it before the regolith becomes growing medium. The simplest process is to pump water through a bed of regolith and recycle or treat the effluent.
Model. Dissolved perchlorate moves with the pore water at velocity v, spreads by mechanical dispersion D = αv (α is the dispersivity of the packing), sticks reversibly to grains (retardation factor R) and can be reduced by perchlorate-reducing bacteria at rate λ: R ∂c/∂t = D ∂²c/∂x² - v ∂c/∂x - λR c. The bed is a finite column with a flux (Danckwerts) inlet condition and a free outlet. It is solved with a conservative finite-volume scheme (120 cells, van Leer MUSCL advection, central dispersion, Heun time stepping). Water use is reported per tonne of regolith assuming porosity 0.4 and bulk density 1.5 t/m³, so one pore volume is 267 L per tonne.
What the checks compare. (1) The simulated profile against the closed-form step response for a flux inlet in a semi-infinite bed (van Genuchten and Alves 1982), which needs no numerical solver. (2) A mass ledger: start inventory plus inflow minus outflow minus bacterial reduction must equal the final inventory, and the outflow rebuilt from sampled effluent values by the trapezoid rule must match the flux ledger. (3) The 50 % breakthrough must occur near R pore volumes, within the O(1/Pe) shift that dispersion causes. (4) With bacterial reduction and a constant inlet, the settled profile must equal the two-exponential steady-state solution that satisfies both boundary conditions.
Simplifications. One dissolved species, linear equilibrium sorption, uniform packing (no channelling or clogging), constant temperature and no precipitation of salts; real regolith leaching also involves dissolution kinetics of the salts, which would add a long tail. The planting target, sorption factor and bacterial rate are illustrative numbers, not a design standard. This is an educational model of leaching, not a ready process design.