Thermodynamics — Equations of State
Cubic EoS (Peng-Robinson, SRK) for hydrocarbons/light gases and activity-coefficient models (NRTL, UNIQUAC, electrolyte-NRTL) for polar/non-ideal liquid mixtures — selected per `thermo_package` on the flowsheet schema.
Two families, picked per-flowsheet via thermo_package. Cubic EoS (Peng-Robinson, SRK) model the whole fluid — vapor and liquid — from one equation, good for hydrocarbons/light gases across pressure. Activity-coefficient models (NRTL, UNIQUAC) instead correct an ideal-vapor assumption with a liquid non-ideality factor γᵢ, tuned to real VLE data — the right tool for polar/hydrogen-bonding mixtures like ethanol-water.
Show the governing equations
Failure codes
SPEC_THERMODYNAMICALLY_IMPOSSIBLENRTL/UNIQUAC selected for a component pair with no pinned binary interaction parameters (only ethanol-water is pinned) — the server auto-coerces to Peng-Robinson and attaches a warning rather than crashing.FLASH_NO_SOLUTIONRachford-Rice found no physically valid vapor fraction in [0,1] at the given T/P/composition.NRTL VLE curve
Computed on load by the same NRTL gamma-phi flash the solver runs — including the minimum-boiling ethanol-water azeotrope at ~xethanol ≈ 0.89.