Practical guide¶
Use ThermoWeave to define a mixture, choose a model and run a calculation. Start with installation if this is your first session, or choose the relevant model and workflow below. For the physical derivations, use Theory.
First steps¶
- Install ThermoWeave in the named Conda environment. The guide covers Linux, macOS and Windows, including optional backend builds.
- Activate
thermoweavein your terminal or select its Jupyter kernel. Your scripts can live in any project folder. - Run the quickstart notebook, or follow the calculation recipes.
Choose a model¶
| You need | Model | Required inputs |
|---|---|---|
| Density, volume, pressure, fugacity and liquid activities | SAFT-γ Mie | Functional groups or SMILES, group parameters, T/P |
| Empirical liquid nonideality with fitted pair coefficients | NRTL | Ordered components and directed interaction parameters |
| Tabulated machine-learning predictions in NRTL form | SPT-NRTL | Component SMILES; cached or downloaded SPT tables |
| Liquid activities from molecular surface interactions | openCOSMO-RS | Compiled backend, compatible COSMO conformers and parametrization |
| Liquid activities from a learned excess-Gibbs model | HANNA | External predictor, dependencies and model assets |
A shared activity interface lets the liquid models use common equilibrium routines. An activity model alone supplies no density/volume EoS. See the theoretical distinction when choosing which properties to request.
Choose a calculation¶
The calculation guide gives executable recipes and units. For longer workflows, use the independent notebooks:
| Calculation | Start here |
|---|---|
| Activities and mixing/excess Gibbs energy | 01 · Activities |
| EoS pressure, density and volume | 03 · EoS properties |
| Derivatives and response functions | 04 · Derivatives |
| Bubble/dew pressure and temperature | 05 · VLE |
| Stability and liquid splitting | 06 · LLE |
| Solubility and liquid/solid flash | 07 · SLE |
| Binary and ternary SLLE | 10–12 · SLLE workflows |
| NRTL, VLE and fitting | 13 · NRTL |
| SPT collection, temperature functions and offline use | 14 · SPT-NRTL |
Parameters, fitting and validation¶
SAFT fitting, NRTL fitting and COSMO-RS parametrization expose different parameterizations through their respective model interfaces. Keep data sources, units, temperature coverage, fit objectives and independent validation with the resulting parameter set. The corpus tools help evaluate larger collections of experimental records.
For each calculation, record model parameters and component order, inspect solver diagnostics and check material balances. Read API and units for exact signatures and capabilities for supported assumptions. Numerical convergence and agreement with measured data answer different questions.