Skip to content

Calculation tutorials

Read the notebooks directly on this site, including their saved figures and outputs. Each notebook page includes its source download so you can run it locally after installation. The site build does not execute notebooks or download external data.

Solid–liquid–liquid equilibrium

Calculation Notebook Additional inputs
Binary benzene/water SAFT: SLE/LLE boundaries and invariant temperature 10 · Binary SLLE Bundled SAFT parameters; cited benzene fusion data
Ternary benzene/water/ethanol SAFT: phase amounts, tie triangle, phase survey 11 · Ternary SLLE Same standalone SAFT setup
Commented COSMO-RS walkthrough: binary SLE/LLE boundaries and ternary phase map 12 · COSMO-RS SLLE Compatible backend, conformers and parametrization

The examples use measured benzene fusion properties and explicitly identify model parameters. Their solid model is pure benzene(s), constant fusion enthalpy and ΔCp=0, above the other components' melting temperatures. Results are model predictions, not a demonstration of agreement with measured SLLE.

Notebook 12 is a step-by-step walkthrough: it explains why the neutral mixtures use identity ReducedChart matrices, comments the construction and flash calls, and checks phase compositions and amounts. Its saved figures include a binary T–x diagram with two boundary zooms, a ternary SLLE tie triangle, and a survey of 99 feeds with LLE/SLE tie lines. The coloured survey points are sampled feed assemblages, rather than fitted phase-boundary curves.

Main course

Notebook What you learn
00 · Quickstart Model construction, units and a first EOS evaluation
01 · Activities and gE Real SAFT activity and excess-Gibbs curves
02 · Molecules Automatic/manual groups and parameter coverage
03 · EOS properties Density, volume, pressure and fugacity
04 · Derivatives Enthalpy, response functions and KB integrals
05 · VLE Water/ethanol with SAFT activities and saturation pressures
06 · Stability and LLE Benzene/water stability and liquid splitting
07 · SLE Benzene solubility and liquid/solid flash
08 · Fitting Actual SAFT parameter fitting with labelled synthetic recovery targets
14 · SPT-NRTL collection Load actual predictions, cache/offline use, full temperature dependence and ternary activities
13 · NRTL and fitting Water/ethanol NRTL, VLE and fitting to actual SAFT predictions with held-out validation
09 · External models Actual COSMO-RS activities and optional HANNA setup

Notebooks are independent; run each from its first cell. When downloading an individual notebook, keep it inside a checkout's tutorials/ folder, or download its _support.py and data/real_mixtures.json companions. Keep the JSON file in a data/ subfolder beside the notebook. The read-only web pages need no Python environment.

Optional analytic theory examples

These explain custom interfaces using explicitly synthetic models; they are separate from the actual-model application course: