Turn table salt and water into hydrochloric acid and sodium hydroxide with a stack of bipolar, anion and cation membranes. Set current density, number of cell triplets, concentrations, temperature, membrane leak and compartment thickness, then watch the acid and base concentrate, the salt feed deplete, the voltage split into thermodynamic, water-splitting, ohmic and polarization parts, and the energy per kilogram of NaOH climb as the limiting current falls. A Blender-built stack, tanks and power supply with numerical checks of the thermodynamics and mass balance built in.