ThermoWeave documentation
Thermodynamics,from theory to calculation.¶
Understand the models. Build a mixture. Calculate properties and phase equilibria with SAFT-γ Mie, NRTL, openCOSMO-RS and HANNA.
Different physical descriptions, connected through a common thermodynamic interface.
Choose your starting point
Understand an equation, or put a model to work.
01 / Theory
How the models work¶
Physical assumptions, thermodynamic potentials and the equations that connect molecular interactions to phase behaviour.
02 / Practical guide
Run a calculation¶
Install the library, define components and parameters, then calculate properties, fit a model or solve a phase equilibrium.
Learn by running the models
Binary & ternary SLLE¶
Phase boundaries, liquid splitting and solid–liquid–liquid coexistence with actual SAFT and COSMO-RS models.
NRTL & parameter fitting¶
Activities, excess properties and VLE, followed by a fitted NRTL representation of SAFT predictions.
SPT-NRTL predictions¶
Load published parameter predictions, inspect their provenance and work with the full temperature dependence.
A first calculation¶
After installation, construct a water/ethanol model from SMILES. The same object supplies liquid density, molar volume, pressure and activities.
from thermoweave import SAFTgammaMie
model = SAFTgammaMie.from_smiles(
{"water": "O", "ethanol": "CCO"}, pressure_Pa=101325.0
)
T, x = 298.15, [0.8, 0.2]
rho = model.density(T, x) # mol/m³
volume = 1.0 / rho # m³/mol
pressure = model.pressure(T, x, rho) # Pa
ln_gamma = model.ln_activity_coefficients(T, x)
print(rho, volume, pressure, ln_gamma)
The printed assignment report shows how atoms were mapped to SAFT groups. Manual group definitions are also supported. Continue with the calculation guide or the quickstart notebook.
Access and reproducibility¶
The ThermoWeave library repository is private; obtain access from the TUM-BTX maintainers before cloning it. The practical guide identifies the parameters, backend installations and external inputs needed by each model.
The notebooks show saved calculations with their inputs and parameter sources. COSMO conformer databases, neural-network weights and external engines are obtained separately. See capabilities and assumptions when interpreting model predictions and numerical stability checks.