COSMO-RS and learned models¶
An activity model need not start from a small empirical pair-parameter table. COSMO-RS uses quantum-chemical surface information; learned models use molecular representations and thermodynamic structure. Their predictions can enter the same liquid activity interface, while their required inputs and validation domains remain different.
COSMO surface information¶
A COSMO quantum-chemical calculation places a molecule in a conducting continuum. The resulting screening charge on its cavity surface is divided into small surface segments with charge density sigma. A sigma profile summarizes how much surface area occurs at each charge density; molecular size and other surface descriptors also enter the parametrization.
A profile records surface polarity information that is unavailable from a simple molecular formula. Geometry, conformer selection, quantum-chemical method, cavity construction and parameter set all affect the input. A SMILES string alone is not a substitute for these computed surface files in the ThermoWeave COSMO-RS workflow.
From surface contacts to chemical potentials¶
COSMO-RS describes interactions between contacting surface segments. Its physical terms include electrostatic misfit and hydrogen bonding, with additional contributions depending on the implementation and parametrization. The electrostatic mismatch has a schematic dependence
Opposite screening charges can complement one another; an unmatched surface charge costs energy. Hydrogen-bond donor/acceptor conditions introduce further selective contacts. A self-consistent statistical treatment of contacts in the mixture determines segment chemical potentials, which are integrated over molecular surfaces. Combinatorial size/shape and conformer contributions complete the model's chemical potentials.
This is the physical route introduced by Klamt (1995) and developed in Klamt, Jonas, Bürger and Lohrenz (1998). Exact contact-energy expressions and parameters belong to the chosen backend; coefficients from different COSMO variants are not automatically interchangeable.
For pure-liquid references, molecular chemical-potential differences give
The subtraction must use a consistent standard state and compatible molecular inputs. Neutral-mixture activities and ionic reference conventions require different care; see the supported assumptions in capabilities.
Learned excess-Gibbs functions¶
A neural network can predict an unconstrained activity curve, or it can be constructed around thermodynamic structure. HANNA uses a constrained excess-Gibbs function and obtains activity coefficients through differentiation. This imposes reference and Gibbs–Duhem consistency through the architecture. The published model is developed and tested on binary-mixture activity data; the predictor assets and their domain determine what a particular adapter can meaningfully evaluate.
Consistency removes a class of thermodynamic contradictions. Prediction error, chemical coverage and extrapolation still need independent validation.
Learned parameters of a physical model¶
SPT-NRTL follows another route: a learned molecular representation outputs the coefficients of an explicit NRTL function. Composition and temperature then enter that thermodynamic model. Once a coefficient set is obtained, an NRTL implementation can evaluate its properties without running the neural network. The NRTL chapter explains its full temperature dependence and the provenance of the published parameter collection.
Match the input to the model¶
| Approach | Molecular information | Thermodynamic representation |
|---|---|---|
| COSMO-RS | COSMO surfaces, conformer information, parametrization | Statistical surface-contact model |
| HANNA | Molecular representations and trained assets | Constrained learned gE |
| SPT-NRTL | Molecular representations; published tables can be looked up by SMILES | Learned NRTL coefficients |
These gE routes supply liquid nonideality. They do not supply a general pressure–volume EoS or the solid reference data needed for SLE/SLLE.
Use in Python: openCOSMO-RS setup, HANNA setup, SPT collection and notebook 09.