Home▸Fluid Dynamics & Aerodynamics▸Reverse Osmosis Desalination (2D)

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.

Fluid Dynamics & Aerodynamics2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
2d-reverse-osmosis-desalination ↗ Open standalone

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.

⚙ Under the hood

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.

reverse osmosisosmotic pressurevan 't hoff equationdesalinationsemipermeable membranesalt rejection

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)