Density Functional Theory
Copyright (c) RDMCHEM LLC 2020
Overview
DFT
References
In 1964 Hohenberg and Kohn proved that the ground-state energy of any atom or molecule can be expressed as a functional of its 1-electron density, known as the Hohenberg-Kohn theorem. The theorem gave birth to density functional theory (DFT) in which the 1-electron density rather than the many-electron wave function becomes the basic variable of the quantum chemistry. The 1-electron density is the probability of finding an electron at a given spatial position of the molecule. Like Hartree-Fock theory DFT can be solved through an effective 1-electron Schrödinger equation, but unlike Hartree-Fock theory DFT can in principle recover the correlation energy, the energy difference between the energy from full configuration interaction and the energy from the Hartree-Fock method. The exact energy functional in DFT is not known, and hence, practically, DFT is implemented with approximate functionals.
Figure 1: 1-electron density of diphenyl disulfide
After loading the Quantum Chemistry package, we explore the ground-state energy and orbitals, dipole moment, and ionization energy of diphenyl disulphide with DFT.
Quantum Chemistry
We set the number of Digits to be used in computations to 15 and load the Quantum Chemistry package using Maple's with command.
Digits ≔ 15;
Digits≔15
withQuantumChemistry;
AOLabels,ActiveSpaceCI,ActiveSpaceSCF,AtomicData,BondAngles,BondDistances,Charges,ChargesPlot,CorrelationEnergy,CoupledCluster,DensityFunctional,DensityPlot3D,Dipole,DipolePlot,Energy,ExcitationEnergies,ExcitationSpectra,ExcitationSpectraPlot,ExcitedStateEnergies,ExcitedStateSpins,FullCI,GeometryOptimization,HartreeFock,Interactive,Isotopes,MOCoefficients,MODiagram,MOEnergies,MOIntegrals,MOOccupations,MOOccupationsPlot,MOSymmetries,MP2,MolecularData,MolecularGeometry,NuclearEnergy,NuclearGradient,OscillatorStrengths,Parametric2RDM,PlotMolecule,Populations,RDM1,RDM2,RTM1,ReadXYZ,Restore,Save,SaveXYZ,SearchBasisSets,SearchFunctionals,SkeletalStructure,Thermodynamics,TransitionDipolePlot,TransitionDipoles,TransitionOrbitalPlot,TransitionOrbitals,Variational2RDM,VibrationalModeAnimation,VibrationalModes,Video
Energy
We compute the energy of diphenyl disulphide. First, we define the geometry, which we obtained from the MolecularGeometry command
mol ≔ S,−0.55610000,−1.83210000,−0.97360000,S,0.62630000,−1.92950000,0.70830000,C,−1.79690000,−0.65310000,−0.47620000,C,1.82150000,−0.64580000,0.38420000,C,−2.60700000,−0.91680000,0.62830000,C,1.57350000,0.65950000,0.80660000,C,−1.95740000,0.53360000,−1.19130000,C,3.00290000,−0.94940000,−0.29110000,C,−3.57770000,0.00620000,1.01760000,C,2.50850000,1.66310000,0.55330000,C,−2.92800000,1.45670000,−0.80200000,C,3.93800000,0.05420000,−0.54430000,C,−3.73820000,1.19290000,0.30240000,C,3.69070000,1.36050000,−0.12220000,H,−2.50880000,−1.83880000,1.19590000,H,0.65860000,0.91480000,1.33560000,H,−1.33440000,0.75710000,−2.05390000,H,3.21330000,−1.96160000,−0.62770000,H,−4.21010000,−0.19990000,1.87620000,H,2.31610000,2.68020000,0.88210000,H,−3.05270000,2.38110000,−1.35840000,H,4.85860000,−0.18120000,−1.07020000,H,−4.49420000,1.91150000,0.60530000,H,4.41880000,2.14190000,−0.31940000;
mol≔S,−0.55610000,−1.83210000,−0.97360000,S,0.62630000,−1.92950000,0.70830000,C,−1.79690000,−0.65310000,−0.47620000,C,1.82150000,−0.64580000,0.38420000,C,−2.60700000,−0.91680000,0.62830000,C,1.57350000,0.65950000,0.80660000,C,−1.95740000,0.53360000,−1.19130000,C,3.00290000,−0.94940000,−0.29110000,C,−3.57770000,0.00620000,1.01760000,C,2.50850000,1.66310000,0.55330000,C,−2.92800000,1.45670000,−0.80200000,C,3.93800000,0.05420000,−0.54430000,C,−3.73820000,1.19290000,0.30240000,C,3.69070000,1.36050000,−0.12220000,H,−2.50880000,−1.83880000,1.19590000,H,0.65860000,0.91480000,1.33560000,H,−1.33440000,0.75710000,−2.05390000,H,3.21330000,−1.96160000,−0.62770000,H,−4.21010000,−0.19990000,1.87620000,H,2.31610000,2.68020000,0.88210000,H,−3.05270000,2.38110000,−1.35840000,H,4.85860000,−0.18120000,−1.07020000,H,−4.49420000,1.91150000,0.60530000,H,4.41880000,2.14190000,−0.31940000
Then we compute the energy from DFT with the DensityFunctional command. We select the B3LYP exchange-correlation (xc) functional and the 6-31g basis set
data ≔ DensityFunctionalmol, basis=6-31g, xc =B3LYP;
The ground-state energy is given by
datae_tot;
−1259.07521547
(a) Compute the energy using the PBE functional, and compare your result with the energy from the B3LYP functional. Absolute energies are typically not too important in DFT.
The highest occupied molecular orbital (HOMO) can be visualized with the DensityPlot3D command
datamo_occ;
DensityPlot3Dmol,data,basis=6-31g, orbitalindex=57; # HOMO
DensityPlot3Dmol,data,basis=6-31g, orbitalindex=58; # LUMO
The energies of these two orbitals are
datamo_energy57..58;
−0.22884080−0.04809863
(b) Compare these orbitals with those from the PBE functional.
Dipole Moment
We have the dipole moment from our previous calculation
datadipole;
0.114940822.904620020.19477548
We can visualize the direction of the dipole moment with the DipolePlot command (click on molecule to rotate the perspective)
DipolePlotmol, 'DensityFunctional', basis=6-31g, xc=B3LYP;
(c) Compute the dipole and its plot with the PBE functional, and compare the results with those from B3LYP. Does the direction of the dipole make sense?
Ionization Energy
We can compute the ionization energy by computing the energy of the ionized molecule
data2 ≔ DensityFunctionalmol, basis=6-31g, xc =B3LYP, charge=1;
Therefore, the ionization energy is given by
IE_hartree ≔ data2e_tot−datae_tot⋅UnitsUnithartree;
IE_hartree≔0.29260440⁢E0
which we can convert from hartrees to eV
IE_eV ≔ convertIE_hartree,units,eV;
IE_eV≔7.96217130⁢eV
(d) Compare this ionization energy (in eV) with the ionization energy (in eV) predicted using the molecular orbital energies by Koopman's theorem.
R. G. Parr and W. Yang, Density Functional Theory of Atoms and Molecules (Oxford University Press, New York, 1989).
P. Hohenberg and W. Kohn, Phys. Rev. 136, B864 (1964). "Inhomogeneous electron gas"
R. O. Jones, Rev. Mod. Phys. 87, 897 (2015). "Density functional theory: Its origins, rise to prominence, and future"
Download Help Document