1. DFT: all functionals¶
The functional: section selects exchange and correlation independently. Without
exchange and correlation the run is Hartree–Fock.
Back ends¶
|
Functionals |
|---|---|
|
exchange |
|
any Libxc functional by its exact name: LDA, GGA and meta-GGA (those that need no density Laplacian), global and range-separated hybrids |
|
machine-learned semilocal functionals (energies, forces, open shells; no TDDFT or analytic Hessians) |
A SCAN-family name on either side switches on meta-GGA evaluation. The in-house pw92 is the
Perdew–Wang LDA correlation used in FLOSIC work.
References for the in-house functionals: Slater exchange (Slater 1951), VWN5 (Vosko, Wilk, Nusair 1980), PW92 (Perdew, Wang 1992), PBE (Perdew, Burke, Ernzerhof 1996), SCAN (Sun et al. 2015), rSCAN (Bartók, Yates 2019), r²SCAN (Furness et al. 2020).
Semilocal functionals¶
functional:
exchange: pbe
correlation: pbe
For libxc functionals give the full name; for example GGA_X_B88 with GGA_C_LYP
(Becke 1988, Lee, Yang, Parr 1988):
functional:
backend: libxc
exchange: GGA_X_PBE
correlation: GGA_C_PBE
Hybrid functionals¶
A combined hybrid goes into exchange with correlation: none; the exact-exchange fraction is the
one libxc reports:
functional:
backend: libxc
exchange: HYB_GGA_XC_PBEH
correlation: none
Examples: HYB_GGA_XC_B3LYP (Becke 1993), HYB_GGA_XC_PBEH = PBE0
(Adamo, Barone 1999). Range-separated and screened hybrids
(HYB_GGA_XC_CAM_B3LYP (Yanai et al.), HYB_GGA_XC_WB97X
(Chai, Head-Gordon), HYB_GGA_XC_LRC_WPBE (Vydrov, Scuseria),
HYB_GGA_XC_HSE06 (Heyd et al.), HYB_GGA_XC_HJS_PBE (Henderson et al.))
work with exact or density-fitted exchange. For geometries and frequencies prefer
HJS_PBE over HSE06: libxc’s HSE06 potential is not the exact derivative of its energy.
Exact exchange follows coulomb:. For large systems the chain-of-spheres option
(Neese et al.) is much cheaper:
coulomb:
method: density_fitting
aux_basis_file: basis/def2-universal-JFIT.nw
exchange: cosx
Composed and double hybrids, dispersion¶
The pieces of a hybrid can be scaled separately (exchange_scale, correlation_scale,
exx_fraction), and pt2_os, pt2_ss add a second-order perturbative correlation
after the SCF. B2PLYP (Grimme 2006):
functional:
backend: libxc
exchange: GGA_X_B88
correlation: GGA_C_LYP
exchange_scale: 0.47 # 1 - c_x
exx_fraction: 0.53 # c_x
correlation_scale: 0.73 # c_c
pt2_os: 0.27
pt2_ss: 0.27
pt2_engine: ri
pt2_aux_basis_file: basis/cc-pvtz-ri_HO.nw
Only single-point energies are available for double hybrids. Grimme’s DFT-D3
(Grimme et al. 2010; Becke–Johnson damping, Grimme et al. 2011) is
switched on with dispersion: d3bj and dispersion_functional: b3-lyp (Grimme’s spelling of
the functional name).
Example: one molecule, many functionals¶
Water at one geometry, def2-TZVP, exact Coulomb integrals (coulomb: method: eri). The inputs
are h2o_*.yaml in the example set:
Input |
Functional |
Total energy (Ha) |
|---|---|---|
|
Hartree–Fock |
−76.0594112 |
|
PBE |
−76.3773251 |
|
PBE0 (libxc) |
−76.3779122 |
|
r²SCAN |
−76.4201031 |
The functionals share one SCF code, so changing the functional means changing two lines.
Choosing a functional in practice¶
Start with PBE or r²SCAN for geometries and frequencies; r²SCAN is a numerically gentle meta-GGA.
Use a hybrid for gaps, excitation energies and charge-transfer problems.
Self-interaction errors of these functionals are treated in 5. FLOSIC.
Local hybrids with position-dependent exact exchange are in 9. Local hybrid functionals.
Related tutorials: Your first calculation: SCF and cube files, Excitation energies (linear-response TDDFT), The input file: every section and field.