Controls
Presets
Parameters
Model checks
The science
Osmotic power. Where river water meets the sea, mixing releases free energy. A semipermeable membrane lets water through but not salt; with a pressure dP applied on the salty draw side, water still flows toward the salt as long as dP is below the osmotic pressure difference, and the pressurised, enlarged draw flow can drive a turbine. The van 't Hoff osmotic pressure is π = i c R T with i = 2 for NaCl: about 30 bar for 35 g/L at 20 °C.
Flux with internal concentration polarisation. Salt that diffuses into the porous support layer dilutes the effective draw side: J = A [πD e-JK - πF eJ/k - dP], K = S/D. It is solved by bisection (the right side decreases monotonically in J). Power density is W = J·dP; for an ideal membrane Wmax = Aπ²/4 at dP = π/2. Along the module the draw flow gains the permeate, dq/da = J, and the conserved salt dilutes it: πD(q) = π0φ/q. This is integrated with RK4.
Checks. (1) a golden-section search for the ideal peak power against Aπ²/4; (2) the exact implicit solution of the ideal module; (3) the second-law cap: extracted work cannot exceed ∫π dV, the reversible mixing work; (4) the trapezoid-integrated flux against the draw-flow gain.
Simplifications. No reverse salt leakage, constant feed concentration and perfectly mixed channels, no pressure drop along the channel, ideal (van 't Hoff) solutions, constant permeability, no fouling. Real modules reach a few W/m²; the model shows the trade-offs, it is not a design tool.