Carnallite Brine Decomposition — KCl Recovery (2D)
A 2D mass-balance lab for the industrial carnallite "decomposition" step: dissolve KCl·MgCl2·6H2O ore in water, tune temperature, water:ore dilution and stirring, and watch solid KCl precipitate out while Mg2+ builds up in the mother-liquor brine.
Carnallite (KCl·MgCl2·6H2O) does not dissolve congruently: when the mineral meets water, the highly soluble MgCl2 dissolves into the brine much faster than the comparatively insoluble KCl, so instead of a clear solution you get a mother liquor rich in Mg2+ with solid potassium chloride left behind — the basis of the real industrial "decomposition" step used to recover potash from carnallite ore. This 2D lab isolates that mass balance from the 3D plant's equipment: temperature and the water:ore dilution ratio together set the equilibrium decomposition yield (too little water starves the reaction, too much heat lets KCl's own solubility redissolve the product, so the yield curve on the right peaks at a moderate temperature rather than rising forever), stirring rate sets how fast that equilibrium is actually reached, and the readout panel tracks decomposition degree, KCl recovered and the Mg2+ concentration building up in the brine as the tank fills with a settling bed of precipitate.
First-order relaxation toward a temperature- and dilution-dependent equilibrium decomposition degree D_eq(T,R), with a stirring-dependent rate constant; KCl recovered and brine Mg2+ concentration are derived from D(t) via the ore's real mass fractions (KCl 26.8%, MgCl2 34.3% of carnallite by molar mass).
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install