Rigorous Separations — The MESH Solver
A Wang-Henke bubble-point MESH solve (tridiagonal Thomas algorithm at fixed K/flows, outer loop refreshing K and stage temperatures) is the Phase-1 column; an inside-out / Newton path and a Naphtali-Sandholm simultaneous multi-liquid-phase (VLLE) stage matrix solver extend it for tougher and heterogeneous-reflux columns.
Every equilibrium-stage column (distillation, absorption, extraction) solves the same four equation families per stage — Material balance, Equilibrium, Summation, Heat balance — the textbook "MESH" system. The default path is a Wang-Henke bubble-point solve at constant molal overflow; an inside-out/Newton path and a Naphtali-Sandholm simultaneous solver extend it for harder and heterogeneous-reflux (VLLE) columns.
Show the governing equations
SDK
unit("COL", "distillation", n_stages=8, feed_stage=4,
reflux_ratio=2.5, distillate_rate=3.0, pressure=101325)
# After a run, from the simulation's notebook (or any Simulator bound to it):
Simulator.block_table().loc["COL", ["condenser_duty", "reboiler_duty"]]
stages = Simulator.result()["unit_results"]["COL"]["stages"] # the converged MESH profile
[round(s["T"], 1) for s in stages] # stage temperatures [K], stage 1 at the topNONCONVERGENCE_MAX_ITERSSuccessive substitution converges linearly — tall columns (>=12 stages) may hit the iteration cap; the column returns unconverged with a usable partial stage profile, never raises.
The example as it opens in the workbench. Click to enlarge.