mfsig.com
lebedev-gridsegmentsdiscretisationswig5 min read

Lebedev grids and segment discretisation of the COSMO cavity

A COSMO cavity is a union of atomic spheres tiled with Lebedev grids. At 302 points per atom a carbon segment covers about 0.17 Ų, far below a 7.5 Ų contact.

Updated November 28, 2026

A COSMO or C-PCM cavity is a union of atom-centred spheres, and each sphere is tiled with a Lebedev grid of points that become the surface segments. With 302 points per atom, a segment on a scaled carbon sphere covers about 0.17 Ų and a segment on a hydrogen sphere about 0.07 Ų. These are tiny patches compared with the effective contact area of about 7.5 Ų used in COSMO-SAC, which is the whole reason raw segment charges are averaged before a sigma profile is used in a thermodynamic model.

What a Lebedev grid is

Numerical integration on a sphere needs points and weights. Lebedev grids are a family of such sets with octahedral symmetry, constructed so that all spherical harmonics up to a given degree are integrated exactly. The family runs 6, 14, 26, 38, 50, 74, 86, 110, 146, 170, 194, 230, 266, 302, 350, 434 and onwards. The 302-point grid is exact up to degree 29.

Codes use these grids for the angular part of exchange-correlation integration and reuse them to tile continuum cavities. For a cavity, each point on the unit sphere is scaled to the atom's cavity radius and translated to the nucleus. Its weight times the sphere's area gives the segment area.

From spheres to one surface

A molecule's cavity is the union of its atomic spheres, and the points of one sphere that fall inside a neighbour are not part of the molecular surface. The simplest treatment removes them.

Removal causes a problem for geometry optimisation and for smoothness in general. As a bond stretches, a point can cross from inside a neighbour to outside, and the energy jumps. The switching/Gaussian scheme, SWIG, of Lange and Herbert fixes this in two ways. Each point carries a spherical Gaussian charge instead of a point charge, which keeps the segment self-interaction finite. And a switching function scales each point's weight smoothly from one to zero as it enters a neighbouring sphere, so no segment appears or disappears abruptly. The MFsig production recipe uses 302 Lebedev points per atom with SWIG discretisation on modified Bondi radii scaled by 1.2, as listed on the recipes page.

The per-segment data in a .mfsig file lists position, area and charge for each segment that survives, and the guide on the anatomy of a .mfsig file describes the fields.

How large a segment is

The surface area of a sphere is 4πR².

  • Carbon, scaled radius 2.04 Å, has a sphere area of about 52.3 Ų. Divided by 302 points, the average segment is about 0.173 Ų.
  • Hydrogen, scaled radius 1.32 Å, has a sphere area of about 21.9 Ų. The average segment is about 0.072 Ų.
  • Oxygen, scaled radius 1.82 Å, has a sphere area of about 41.8 Ų and an average segment of about 0.138 Ų.

Segments near sphere intersections are smaller, because their switching weight is below one. For a drug-sized molecule with 30 atoms, the grid starts from about 9,000 points and a fraction of them remain as exposed surface.

Why the grid density matters for σ

The screening charge density σ on a segment is its charge divided by its area. A finer grid gives smaller segments and more of them. The histogram of σ then has more entries, but each entry samples a smaller patch and therefore a more local value of the surface potential. Fine structure that a coarse grid averages away becomes visible.

This means that the number of points per atom changes the σ-profile even when nothing chemical changes. The peaks of a fine-grid profile are a little broader and reach a little farther from zero. For that reason the grid belongs in the recipe, and files from different grids should not be overlaid without saying so. The guide on how σ-profiles are binned treats the related choice of bin width.

Why raw segment σ is not the COSMO-RS σ-profile

COSMO-RS and COSMO-SAC describe a liquid as pairs of surface patches in contact. The patches are not the tiny Lebedev segments. They have an effective area a_eff, about 7.5 Ų in Lin and Sandler's COSMO-SAC and a parameter of similar size in COSMO-RS. A contact patch therefore covers roughly 40 carbon segments or 100 hydrogen segments on a 302-point grid.

To bridge the two scales, COSMO-RS averages the raw screening charge of each segment with its neighbours over a radius comparable to the contact size, weighting by area and distance. The averaged σ is what enters the misfit and hydrogen-bond terms and what the universal parameters were fitted to. The guide on σ-averaging in COSMO-RS gives the formula.

A .mfsig file records the raw, unaveraged σ of each segment, in e/Ų. That is deliberate. Raw segments can be averaged with any radius a downstream model needs, while averaged values cannot be un-averaged. But it means the σ in the file is not the averaged σ-profile that COSMO-RS or COSMO-SAC parameterisations expect, and it must not be fed to them as if it were.

A worked example with benzene

Take benzene, SMILES c1ccccc1. Twelve atoms give 12 × 302 = 3,624 candidate points. The six carbon spheres overlap heavily with each other and with their hydrogens, so a large share of carbon points are buried or partly switched off. The hydrogen spheres stick out and keep most of their points. The surviving surface is dominated by hydrogen segments of about 0.07 Ų on the rim and carbon segments of about 0.17 Ų above and below the ring.

Benzene has no polar groups, but the raw histogram still shows a spread. The carbon faces carry a slight positive screening charge, mirroring the π density, and the hydrogen rim a slight negative one. Averaged over a 7.5 Ų patch, those fine differences shrink and the COSMO-RS profile becomes a single band near zero.

Key points

  • A COSMO cavity is a union of atomic spheres, each tiled with a Lebedev grid. 302 points per atom is exact to degree 29.
  • With scaled Bondi radii, a carbon segment covers about 0.17 Ų and a hydrogen segment about 0.07 Ų.
  • SWIG discretisation uses Gaussian charges and a switching function so that segments appear and vanish smoothly.
  • The grid density changes the σ-profile and belongs in the recipe.
  • Raw segment σ is far finer than the 7.5 Ų contact area of COSMO-SAC. It must be averaged before COSMO-RS or COSMO-SAC use.

Questions people ask

What is a Lebedev grid?
A set of points and weights on the surface of a sphere, arranged with octahedral symmetry, that integrates spherical harmonics exactly up to a given degree. The 302-point grid is exact to degree 29. Quantum-chemistry packages use Lebedev grids both for the angular part of the exchange-correlation integration and for tiling continuum cavities.
How large is one segment of a COSMO surface?
It depends on the atom and the grid. With 302 points per atom, a carbon sphere of radius 2.04 Šhas an area of about 52 Ų and an average segment of about 0.17 Ų. A hydrogen sphere of radius 1.32 Šgives about 0.07 Ų per segment. Segments partly buried in a neighbouring sphere are smaller or removed.
What is SWIG discretisation?
The switching/Gaussian scheme of Lange and Herbert. Each surface point carries a Gaussian charge rather than a point charge, and a switching function smoothly turns off points that enter a neighbouring sphere. This removes the discontinuities in energy and gradient that appear when a point abruptly becomes buried as the geometry changes.
Why are raw segment charges averaged before COSMO-RS use?
Because a single segment of 0.1 to 0.2 Ų is far smaller than the effective contact area of a molecular pair, about 7.5 Ų in COSMO-SAC. COSMO-RS averages the raw screening charge over a radius comparable to that contact to produce the σ-profile its parameters expect. Raw segment σ is therefore not that σ-profile.

Further reading

In practice: The production recipe on mfsig.com (ωB97M-V, def2-SVP, C-PCM at ε = 80, modified Bondi radii scaled by 1.2) is published in full on the recipes page, so each choice discussed here can be checked against what actually runs.

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.