From σ-profile to activity coefficient, step by step
An activity coefficient comes from a σ-profile in seven steps, from averaging the screening charges to the segment chemical potential and the size term.
Updated November 28, 2026
An activity coefficient comes out of a σ-profile in seven steps. Average the screening charges, bin them into a σ-profile, mix the component profiles into a solvent profile, solve for the chemical potential of each σ value in that solvent, integrate over the solute's profile, add a combinatorial term for size and shape, and subtract the same quantity for the pure solute. The result divided by RT is ln γ. None of the steps is hard. The order and the parameters are what matter.
Step one and two, average and bin
The calculation starts with a σ-surface for every component, a list of cavity segments with position, area and screening charge density. A .mfsig file is one such list, computed with C-PCM at ε = 80. Its σ values are raw. They are not the averaged σ-profile COSMO-RS or COSMO-SAC parameterisations expect, and must not be fed to those theories as they stand. The first step is therefore to average each segment over its neighbours within the radius of your chosen theory, as set out in σ-averaging in COSMO-RS.
The second step is to bin the averaged values into a histogram p_i(σ) of surface area against σ. COSMO-SAC codes use a fixed grid from −0.025 to +0.025 e/Ų in 51 bins of 0.001 e/Ų. The choice of grid and the treatment of segments that straddle a bin edge are covered in how σ-profiles are binned. After this step each pure component i has a profile p_i(σ) whose integral is its total surface area A_i.
Step three, build the solvent profile
A mixture has no σ-surface of its own. Its σ-profile is the area-weighted sum of the component profiles,
p_S(σ) = Σ_i x_i · p_i(σ) / Σ_i x_i · A_i
where x_i is the mole fraction. The normalisation by total area turns the profile into a probability of finding a given σ on a randomly chosen patch of surface in the liquid. For a pure solvent, p_S is just the normalised profile of that solvent. For a binary at infinite dilution of the solute, p_S is the pure solvent profile and the solute enters only in step five.
Step four, solve for μ_S(σ)
The heart of COSMO-RS is a self-consistent equation for the chemical potential μ_S(σ) of a patch with charge density σ in solvent S,
μ_S(σ) = −(RT/a_eff) · ln ∫ p_S(σ') · exp[(a_eff/RT) · (μ_S(σ') − E(σ, σ'))] dσ'
where E(σ, σ') is the sum of the misfit energy and the hydrogen-bond term per unit area. The unknown appears on both sides. Start from μ_S(σ) = 0, evaluate the right side, repeat until the change is small. Convergence takes a few dozen iterations on a 51-bin grid. In COSMO-SAC the same equation is written for the segment activity coefficient Γ_S(σ) = exp(−μ_S(σ)/RT),
import numpy as np
def segment_gamma(p_s, e_pair, a_eff, rt, n_iter=200):
"""p_s: normalised solvent σ-profile on the grid, e_pair: E(σ,σ') matrix."""
gamma = np.ones_like(p_s)
for _ in range(n_iter):
gamma_new = 1.0 / (p_s * gamma * np.exp(-a_eff * e_pair / rt)).sum(1)
if np.max(np.abs(gamma_new - gamma)) < 1e-10:
break
gamma = 0.5 * (gamma + gamma_new)
return gammaThe guide on the segment chemical potential μ(σ) explains what the converged curve means.
Step five and six, integrate and add the combinatorial term
The residual chemical potential of solute X in solvent S is the integral of μ_S(σ) over the solute's own profile,
μ_S^X,res = ∫ p_X(σ) · μ_S(σ) dσ
Every patch of the solute pays the price the solvent sets for its σ value. A solute with mostly near-zero surface pays little in hexane and much in water. A solute with large hydrogen-bonding peaks does the opposite.
The σ-profile knows nothing about molecular size or shape beyond total area. Mixing a small molecule with a large one changes the number of arrangements available, an entropic effect. A combinatorial term accounts for it. COSMO-SAC uses the Staverman–Guggenheim expression from UNIQUAC, built from the normalised volume and area of each component. COSMO-RS uses its own expression with fitted coefficients. Both add to the residual chemical potential.
Step seven, reference to the pure liquid and take the log
A chemical potential has no absolute zero, so COSMO-RS references the solute to its own pure liquid,
ln γ_X^S = (μ_S^X − μ_X^X) / RT
where μ_X^X is computed with the same equations, using the pure solute as the solvent. For an ideal mixture the two are equal and γ = 1. For a solute that is more comfortable in the solvent than among its own kind, γ < 1. For one that is less comfortable, γ > 1. The result is a thermodynamic activity coefficient at the specified composition and temperature, ready for a vapour–liquid equilibrium or a solubility equation. The guide on predicting solubility from σ-profiles shows the solubility step.
Worked example: ethanol in water, qualitatively
Ethanol, SMILES CCO, has a donor peak, an acceptor peak and a large alkyl peak near zero. Water has large donor and acceptor peaks and almost no near-zero surface.
In pure ethanol, the donor and acceptor peaks pair up and the alkyl surface pairs with alkyl surface. Misfit is low everywhere. μ_ethanol(σ) is modest for all σ. In water, ethanol's donor and acceptor peaks find excellent partners and gain a hydrogen-bond reward. Its alkyl surface, however, must touch water's charged patches and pays a high misfit. The integral over ethanol's profile is therefore higher in water than in pure ethanol at infinite dilution, and γ is above one. The combinatorial term, with ethanol larger than water, adds a small negative contribution. The net ln γ is positive and moderate, which matches the known positive deviation of ethanol–water from Raoult's law without demixing.
Key points
- Seven steps take a σ-surface to ln γ. Average, bin, mix, solve for μ_S(σ), integrate, add the combinatorial term, reference to the pure liquid.
- The self-consistent equation for μ_S(σ) is the core. It converges in a few dozen iterations on a standard grid.
- The combinatorial term adds the entropy of size and shape that a surface histogram cannot carry.
- A .mfsig file supplies the raw per-segment input for step one. Averaging with the radius of your theory comes before everything else.
Questions people ask
- How does COSMO-RS compute an activity coefficient from a σ-profile?
- It averages the screening charges, bins them into a σ-profile, builds the solvent profile as an area-weighted mixture, solves a self-consistent equation for the chemical potential of each σ value in that solvent, integrates over the solute's profile, adds a combinatorial size term, and takes the difference against the pure solute as RT ln γ.
- What is the combinatorial term and why is it needed?
- The σ-profile describes surface interactions only. Molecules of different sizes and shapes also differ in the number of ways they can be arranged in the liquid, an entropic effect. The combinatorial term adds that contribution from the molecular volume and area. COSMO-SAC uses the Staverman–Guggenheim form, COSMO-RS its own fitted expression.
- Can I compute an activity coefficient from a .mfsig file alone?
- A .mfsig file gives the raw per-segment screening charge density, the segment areas and the total surface area for one molecule. That is the quantum-chemical input. You still need to average the σ values with the radius of your chosen theory, bin them, obtain the same for the solvent, and run the COSMO-RS or COSMO-SAC equations with a published parameter set. MFsig does not perform that step.
- Why is the activity coefficient of the pure liquid part of the calculation?
- The chemical potential of a solute in a solvent has no absolute zero. COSMO-RS references it to the solute in its own pure liquid, so ln γ is proportional to the difference of the two chemical potentials. This makes γ equal to one for an ideal mixture by construction.
Further reading
In practice: MFsig writes the raw, unaveraged C-PCM screening charge density of one conformer. It is the input such models start from, not a COSMO-RS-ready averaged profile, and it must be averaged with the parameterisation you use before it enters one.
Generate a σ-profile from your SMILES
Free converter for a profile you already have, a reference-grade DFT run with its provenance record when it has to be defensible.