C6 dispersion coefficients¶
The C6 dispersion coefficient relates to the electric-dipole polarizability according to
C6=π3ℏ∫0∞αˉA(iω)αˉB(iω)dω
where αˉA(iω) is the isotropic average of the polarizability tensor for molecular system A.
The integral over the positive imaginary frequency axis is performed in VeloxChem using a Gauss–Legendre quadrature after substituting the integration variables according to
iωI=iω01+t1−t,dωI=(1+t)2−2ω0dt,
where a transformation factor of ω0=0.3 a.u. is used.
The polarizabilities are calculated from the complex polarization propagator (CPP), or complex linear response function Norman et al. (2018). The user may specify the number of frequency points used in the quadrature, or otherwise a default value is adopted. For more detail on this approach, see Norman et al. (2003).
Python script
import veloxchem as vlx
molecule = vlx.Molecule.read_name("methane")
basis = vlx.MolecularBasis.read(molecule, "def2-svpd")
scf_drv = vlx.ScfRestrictedDriver()
scf_drv.xcfun = "b3lyp"
scf_results = scf_drv.compute(molecule, basis)
c6_drv = vlx.C6Driver()
c6_results = c6_drv.compute(molecule, basis, scf_results)Reading methane from PubChem...
Reference: S. Kim, J. Chen, T. Cheng, A. Gindulyte, J. He, S. He, Q. Li, B. A. Shoemaker, P. A. Thiessen, B. Yu, L. Zaslavsky, J. Zhang, E. E. Bolton, Nucleic Acids Res., 2025, 53, D1516-D1525.
Please double-check the compound since names may refer to more than one record.
Self Consistent Field Driver Setup
====================================
Wave Function Model : Spin-Restricted Kohn-Sham
Initial Guess Model : Superposition of Atomic Densities
Convergence Accelerator : Two Level Direct Inversion of Iterative Subspace
Max. Number of Iterations : 50
Max. Number of Error Vectors : 10
Convergence Threshold : 1.0e-06
ERI Screening Threshold : 1.0e-12
Linear Dependence Threshold : 1.0e-06
Exchange-Correlation Functional : B3LYP
Molecular Grid Level : 4
* Info * Using the B3LYP functional.
P. J. Stephens, F. J. Devlin, C. F. Chabalowski, and M. J. Frisch., J. Phys. Chem. 98, 11623 (1994)
* Info * Using the Libxc library (v7.0.0).
S. Lehtola, C. Steigemann, M. J.T. Oliveira, and M. A.L. Marques., SoftwareX 7, 1–5 (2018)
* Info * Using the following algorithm for XC numerical integration.
J. Kussmann, H. Laqua and C. Ochsenfeld, J. Chem. Theory Comput. 2021, 17, 1512-1521
* Info * Starting Reduced Basis SCF calculation...
* Info * ...done. SCF energy in reduced basis set: -40.144465282985 a.u. Time: 0.39 sec.
Iter. | Kohn-Sham Energy | Energy Change | Gradient Norm | Max. Gradient | Density Change
--------------------------------------------------------------------------------------------
1 -40.488724238858 0.0000000000 0.11236612 0.01304603 0.00000000
2 -40.488171215714 0.0005530231 0.13178732 0.01439579 0.07017410
3 -40.490478127973 -0.0023069123 0.00135959 0.00017475 0.04221680
4 -40.490478368481 -0.0000002405 0.00001391 0.00000140 0.00089445
5 -40.490478368509 -0.0000000000 0.00000295 0.00000039 0.00002589
6 -40.490478368510 -0.0000000000 0.00000005 0.00000000 0.00000229
*** SCF converged in 6 iterations. Time: 4.04 sec.
Spin-Restricted Kohn-Sham:
--------------------------
Total Energy : -40.4904783685 a.u.
Electronic Energy : -53.6909171925 a.u.
Nuclear Repulsion Energy : 13.2004388240 a.u.
------------------------------------
Gradient Norm : 0.0000000483 a.u.
Ground State Information
------------------------
Charge of Molecule : 0.0
Multiplicity (2S+1) : 1
Magnetic Quantum Number (M_S) : 0.0
C6 Value Response Solver Setup
================================
Number of Integration Points : 9
Max. Number of Iterations : 150
Convergence Threshold : 1.0e-03
ERI Screening Threshold : 1.0e-12
Exchange-Correlation Functional : B3LYP
Molecular Grid Level : 4
* Info * Using the B3LYP functional.
P. J. Stephens, F. J. Devlin, C. F. Chabalowski, and M. J. Frisch., J. Phys. Chem. 98, 11623 (1994)
* Info * Using the Libxc library (v7.0.0).
S. Lehtola, C. Steigemann, M. J.T. Oliveira, and M. A.L. Marques., SoftwareX 7, 1–5 (2018)
* Info * Using the following algorithm for XC numerical integration.
J. Kussmann, H. Laqua and C. Ochsenfeld, J. Chem. Theory Comput. 2021, 17, 1512-1521
* Info * 21 gerade trial vectors in reduced space
* Info * 21 ungerade trial vectors in reduced space
*** Iteration: 1 * Residuals (Max,Min): 2.32e-01 and 3.42e-02
* Info * 42 gerade trial vectors in reduced space
* Info * 42 ungerade trial vectors in reduced space
*** Iteration: 2 * Residuals (Max,Min): 1.17e-02 and 2.74e-04
* Info * 60 gerade trial vectors in reduced space
* Info * 60 ungerade trial vectors in reduced space
*** Iteration: 3 * Residuals (Max,Min): 2.74e-04 and 1.56e-05
*** Complex response converged in 3 iterations. Time: 15.41 sec
Response Functions at Given Imaginary Frequencies
=================================================
Dipole Dipole Frequency Real Imaginary
-----------------------------------------------------------
<< x ; x >> 18.5444 -0.02482222 0.00000000j
<< x ; y >> 18.5444 -0.00000000 0.00000000j
<< x ; z >> 18.5444 0.00000000 -0.00000000j
<< y ; x >> 18.5444 -0.00000000 -0.00000000j
<< y ; y >> 18.5444 -0.02482222 -0.00000000j
<< y ; z >> 18.5444 0.00000000 -0.00000000j
<< z ; x >> 18.5444 0.00000000 0.00000000j
<< z ; y >> 18.5444 0.00000000 0.00000000j
<< z ; z >> 18.5444 -0.02482222 0.00000000j
Dipole Dipole Frequency Real Imaginary
-----------------------------------------------------------
<< x ; x >> 3.3592 -0.64697369 0.00000000j
<< x ; y >> 3.3592 -0.00000000 0.00000000j
<< x ; z >> 3.3592 0.00000001 -0.00000000j
<< y ; x >> 3.3592 -0.00000000 -0.00000000j
<< y ; y >> 3.3592 -0.64697369 -0.00000000j
<< y ; z >> 3.3592 0.00000000 0.00000000j
<< z ; x >> 3.3592 0.00000001 0.00000000j
<< z ; y >> 3.3592 0.00000000 0.00000000j
<< z ; z >> 3.3592 -0.64697370 0.00000000j
Dipole Dipole Frequency Real Imaginary
-----------------------------------------------------------
<< x ; x >> 1.2519 -3.31868868 0.00000000j
<< x ; y >> 1.2519 0.00000005 0.00000000j
<< x ; z >> 1.2519 -0.00000002 -0.00000000j
<< y ; x >> 1.2519 0.00000005 0.00000000j
<< y ; y >> 1.2519 -3.31868860 -0.00000000j
<< y ; z >> 1.2519 -0.00000002 0.00000000j
<< z ; x >> 1.2519 -0.00000002 0.00000000j
<< z ; y >> 1.2519 -0.00000002 0.00000000j
<< z ; z >> 1.2519 -3.31868887 0.00000000j
Dipole Dipole Frequency Real Imaginary
-----------------------------------------------------------
<< x ; x >> 0.5879 -8.33382756 0.00000000j
<< x ; y >> 0.5879 0.00000016 0.00000000j
<< x ; z >> 0.5879 -0.00000034 -0.00000000j
<< y ; x >> 0.5879 0.00000016 0.00000000j
<< y ; y >> 0.5879 -8.33382683 -0.00000000j
<< y ; z >> 0.5879 -0.00000038 0.00000000j
<< z ; x >> 0.5879 -0.00000034 0.00000000j
<< z ; y >> 0.5879 -0.00000038 0.00000000j
<< z ; z >> 0.5879 -8.33382827 0.00000000j
Dipole Dipole Frequency Real Imaginary
-----------------------------------------------------------
<< x ; x >> 0.3000 -13.20465399 0.00000000j
<< x ; y >> 0.3000 0.00000041 0.00000000j
<< x ; z >> 0.3000 -0.00000100 0.00000000j
<< y ; x >> 0.3000 0.00000041 0.00000000j
<< y ; y >> 0.3000 -13.20465196 -0.00000000j
<< y ; z >> 0.3000 -0.00000129 0.00000000j
<< z ; x >> 0.3000 -0.00000100 0.00000000j
<< z ; y >> 0.3000 -0.00000129 0.00000000j
<< z ; z >> 0.3000 -13.20465549 0.00000000j
Dipole Dipole Frequency Real Imaginary
-----------------------------------------------------------
<< x ; x >> 0.1531 -15.90928288 0.00000000j
<< x ; y >> 0.1531 0.00000067 0.00000000j
<< x ; z >> 0.1531 -0.00000164 0.00000000j
<< y ; x >> 0.1531 0.00000067 0.00000000j
<< y ; y >> 0.1531 -15.90927982 0.00000000j
<< y ; z >> 0.1531 -0.00000215 -0.00000000j
<< z ; x >> 0.1531 -0.00000164 -0.00000000j
<< z ; y >> 0.1531 -0.00000215 0.00000000j
<< z ; z >> 0.1531 -15.90928496 0.00000000j
Dipole Dipole Frequency Real Imaginary
-----------------------------------------------------------
<< x ; x >> 0.0719 -16.91490151 0.00000000j
<< x ; y >> 0.0719 0.00000079 0.00000000j
<< x ; z >> 0.0719 -0.00000195 0.00000000j
<< y ; x >> 0.0719 0.00000079 0.00000000j
<< y ; y >> 0.0719 -16.91489801 0.00000000j
<< y ; z >> 0.0719 -0.00000255 0.00000000j
<< z ; x >> 0.0719 -0.00000195 0.00000000j
<< z ; y >> 0.0719 -0.00000255 -0.00000000j
<< z ; z >> 0.0719 -16.91490385 0.00000000j
Dipole Dipole Frequency Real Imaginary
-----------------------------------------------------------
<< x ; x >> 0.0268 -17.18486129 -0.00000000j
<< x ; y >> 0.0268 0.00000083 0.00000000j
<< x ; z >> 0.0268 -0.00000204 0.00000000j
<< y ; x >> 0.0268 0.00000083 0.00000000j
<< y ; y >> 0.0268 -17.18485767 0.00000000j
<< y ; z >> 0.0268 -0.00000266 -0.00000000j
<< z ; x >> 0.0268 -0.00000204 0.00000000j
<< z ; y >> 0.0268 -0.00000266 0.00000000j
<< z ; z >> 0.0268 -17.18486370 0.00000000j
Dipole Dipole Frequency Real Imaginary
-----------------------------------------------------------
<< x ; x >> 0.0049 -17.22796183 0.00000000j
<< x ; y >> 0.0049 0.00000084 0.00000000j
<< x ; z >> 0.0049 -0.00000205 0.00000000j
<< y ; x >> 0.0049 0.00000084 -0.00000000j
<< y ; y >> 0.0049 -17.22795818 0.00000000j
<< y ; z >> 0.0049 -0.00000268 -0.00000000j
<< z ; x >> 0.0049 -0.00000205 -0.00000000j
<< z ; y >> 0.0049 -0.00000268 -0.00000000j
<< z ; z >> 0.0049 -17.22796424 0.00000000j
Dipole Dipole Frequency Real Imaginary
-----------------------------------------------------------
<< x ; x >> 0.0000 -17.22942892 -0.00000000j
<< x ; y >> 0.0000 0.00000084 -0.00000000j
<< x ; z >> 0.0000 -0.00000205 -0.00000000j
<< y ; x >> 0.0000 0.00000084 -0.00000000j
<< y ; y >> 0.0000 -17.22942527 -0.00000000j
<< y ; z >> 0.0000 -0.00000268 -0.00000000j
<< z ; x >> 0.0000 -0.00000205 -0.00000000j
<< z ; y >> 0.0000 -0.00000268 -0.00000000j
<< z ; z >> 0.0000 -17.22943133 -0.00000000j
C6 Dispersion Coefficient
=========================
Reference: Amos et al., J. Chem. Phys. 89, 2186 (1985).
Homomolecular C_6 value : 127.730830 a.u.
Static polarizability alpha(0) : 17.229429 a.u.
print(f"C6 coefficient: {c6_results["c6"]:8.4f} (a.u.)")C6 coefficient: 127.7308 (a.u.)
Text file
@jobs
task: response
@end
@method settings
xcfun: b3lyp
basis: def2-svpd
@end
@response
property: C6
@end
@molecule
charge: 0
multiplicity: 1
xyz:
...
@end- Norman, P., Ruud, K., & Saue, T. (2018). Principles and practices of molecular properties. John Wiley & Sons, Ltd.
- Norman, P., Jiemchooroj, A., & Sernelius, B. E. (2003). Polarization propagator calculations of the polarizability tensor at imaginary frequencies and long-range interactions for the noble gases and n -alkanes. J. Chem. Phys., 118(20), 9167–9174. 10.1063/1.1568082