Reverse Osmosis Desalination (2D)
A 2D companion to the 3D osmosis lab: a real van 't Hoff osmotic-pressure model drives a semipermeable membrane where water and salt particles cross (or don't) based on the actual balance between applied and osmotic pressure.
This 2D companion strips the reverse-osmosis lab down to the physics that actually govern it: the van 't Hoff equation π = iMRT computes a genuine osmotic pressure from the feed's salt concentration and temperature, and every water or salt particle drawn on the canvas only crosses the membrane when the numbers say it should. Push the applied-pressure slider above the current osmotic pressure and clean water streams through while salt is mostly rejected; drop it below, and the net driving pressure goes negative — forward osmosis takes over and the membrane stops producing fresh water, exactly as a real RO plant would. The feed chamber concentrates as pure water is drawn off, so the osmotic pressure climbs over time even at a fixed salinity setting, and the rejection slider controls how much salt leaks through a real membrane's imperfect selectivity.
2D reverse-osmosis lab driven by the van 't Hoff osmotic-pressure equation (π = iMRT), a semipermeable membrane whose water/salt crossing probabilities depend on the live net driving pressure, and a feed chamber that concentrates in real time as permeate is drawn off.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install