Skip to the content.

HF with COSMO (Conductor-like Screening Model)

Building upon our previous exploration of the Hartree-Fock method, we now examine how to account for solvent effects in quantum chemical calculations. While the basic HF method treats molecules in vacuum, most chemical reactions occur in solution. The Conductor-like Screening Model (COSMO) provides an efficient way to include these environmental effects.

Introduction to Solvent Models

Solvent effects can significantly influence molecular properties and chemical reactions through:

COSMO represents the solvent as a polarizable continuum medium characterized by its dielectric constant (ε). The solute molecule is placed in a cavity surrounded by this medium, which responds to the solute’s charge distribution.

COSMO Implementation in PySCF

PySCF implements the domain decomposition COSMO (ddCOSMO) variant, which offers improved computational efficiency. Here’s a complete calculation for aspirin in water:

configure the molecule

from pyscf import gto, scf, solvent

# Define the aspirin molecule again (same as before)
aspirin_xyz = """
O 13.907 16.130 0.624
C 13.254 15.778 1.723
O 13.911 15.759 2.749
C 11.830 15.316 1.664
C 11.114 15.381 0.456
C 9.774 15.001 0.429
C 9.120 14.601 1.580
C 9.752 14.568 2.802
C 11.088 14.922 2.923
O 11.823 14.906 4.090
C 12.477 13.770 4.769
O 12.686 13.870 5.971
C 12.890 12.509 4.056
H 13.394 16.144 -0.175
H 11.602 15.729 -0.469
H 9.219 15.017 -0.524
H 8.060 14.298 1.521
H 9.182 14.254 3.693
H 13.384 11.651 4.568
H 11.987 12.110 3.536
H 13.544 12.808 3.204
"""

# Create the molecule object
mol = gto.M(
    atom=aspirin_xyz,
    basis='6-31G',
    charge=0,
    spin=0,
    symmetry=False
)

calculate HF energy without solvent

rhf = scf.RHF(mol)
print("Running HF calculation without solvent...")
rhf.kernel()
Running HF calculation without solvent...
converged SCF energy = -644.598358849661

calculate HF energy with solvent

# Create the RHF object and apply the ddCOSMO solvent model
rhf_with_solvent = scf.RHF(mol).ddCOSMO()

# Set the dielectric constant for water
rhf_with_solvent.with_solvent.eps = 78.5

# Perform the SCF calculation with solvent
print("Running HF calculation with ddCOSMO solvent...")
rhf_with_solvent.kernel()
Running HF calculation with ddCOSMO solvent...
converged SCF energy = -644.6314365523

Key points about the implementation:

Common Solvents and Their Parameters

Different solvents can be modeled by adjusting the dielectric constant:

Solvent ε Polarity
Water 78.5 High
DMSO 46.7 High
Methanol 32.7 High
Acetonitrile 37.5 High
Chloroform 4.81 Low
Hexane 1.89 Very low

Alternative Solvent Models

Several other approaches exist for including solvent effects:

  1. PCM (Polarizable Continuum Model)
    • More detailed than COSMO
    • Includes non-electrostatic terms
    • Higher computational cost
  2. SMD (Solvation Model based on Density)
    • Includes non-electrostatic contributions
    • Parameterized for a wide range of solvents
    • Popular for thermochemistry
  3. Explicit Solvent Models
    • Include actual solvent molecules
    • Most accurate but computationally expensive
    • Requires molecular dynamics or Monte Carlo sampling

Analyzing Solvent Effects

The presence of solvent typically:

  1. Stabilizes polar molecules and ions
  2. Affects the relative energies of conformers
  3. Can change reaction barriers and equilibria

For aspirin in water, comparing the energies:

The large energy difference reflects the significant stabilization by water, particularly of the polar carboxyl and acetyl groups.

Practical Considerations

When using COSMO:

  1. Cavity Construction
    • Based on atomic radii
    • Can be adjusted for specific atoms/molecules
  2. Convergence
    • May require more SCF iterations
    • Consider using stronger convergence criteria
  3. Geometry Optimization
    • Should include solvent effects throughout
    • May find different minima than in vacuum

Limitations

COSMO and similar continuum models have several limitations:

  1. No explicit solvent-solute hydrogen bonds
  2. No solvent structure effects
  3. Approximate treatment of non-electrostatic effects
  4. May fail for strongly interacting systems

For cases where these effects are crucial, consider:

This tutorial demonstrates how to include basic solvent effects in HF calculations using COSMO, providing a foundation for more realistic chemical modeling. For many applications, this level of theory provides a good balance between accuracy and computational efficiency.