DFT – Nuts & Bolts, Approximations [based on Chapter 3, Sholl & Steckel]

35
DFT – Nuts & Bolts, Approximations [based on Chapter 3, Sholl & Steckel] • Periodicity Reciprocal space, band structures Bloch’s theorem • Approximations k-point sampling Basis functions – Pseudopotentials – Exchange-correlation Geometry optimization

description

DFT – Nuts & Bolts, Approximations [based on Chapter 3, Sholl & Steckel]. Periodicity Reciprocal space, band structures Bloch’s theorem Approximations k-point sampling Basis functions Pseudopotentials Exchange-correlation Geometry optimization. - PowerPoint PPT Presentation

Transcript of DFT – Nuts & Bolts, Approximations [based on Chapter 3, Sholl & Steckel]

Page 1: DFT – Nuts & Bolts, Approximations [based on Chapter 3, Sholl & Steckel]

DFT – Nuts & Bolts, Approximations[based on Chapter 3, Sholl & Steckel]

• Periodicity– Reciprocal space, band structures– Bloch’s theorem

• Approximations– k-point sampling– Basis functions– Pseudopotentials– Exchange-correlation

• Geometry optimization

Page 2: DFT – Nuts & Bolts, Approximations [based on Chapter 3, Sholl & Steckel]

The Hohenberg-Kohn-Sham prescription for the total energy

)()()(2

22

rrrvm iiieff

Guess ψi(r) for all the electronsRemember that ψi(r) is a 1-electron wave function

Is new ψi(r) close to old ψi(r) ?

Calculate total energy

Yes

No

Solve!

energyrepulsionnuclearEE

rdrnvrnrnrrddrr

rnrneE

elec

xcxc

N

iielec

3332

1

)]([)]([)(''

)'()(

2

1

occ

ii rrn

2)(2)(

Periodicity in real space additional index, k

Page 3: DFT – Nuts & Bolts, Approximations [based on Chapter 3, Sholl & Steckel]

Periodicity• Wigner-Seitz (WS) cell primitive unit cell {a1, a2, a3}

• Real-space lattice vectors, R = n1a1 + n2a2 + n3a3

FCC Wigner-Seitz (WS) cell

FCC 1st Brillouin zone (BZ)

• Periodicity in real space a reciprocal space lattice, Brillouin zones (BZ), etc. {b1, b2, b3}

• Reciprocal-space lattice vectors, G = m1b1 + m2b2 + m3b3

• ai.bj = 2ij

Page 4: DFT – Nuts & Bolts, Approximations [based on Chapter 3, Sholl & Steckel]

Band structures of FCC systems

http://www.bandstructure.jp/Table/simptab.html

Carbon (diamond)Insulator

CopperMetal

Band gap

Points in the first Brillouin zone

Fermi energy

Page 5: DFT – Nuts & Bolts, Approximations [based on Chapter 3, Sholl & Steckel]

Why the “band structure”?From one to many atoms (or nuclei)

• A single isolated atom has 1s, 2s, 2p, etc., states or wave functions

• In a solid made up of M atoms, these wave functions combine and interact with each other, resulting in wave functions of the entire solid

• The x-axis of a band structure plot “labels” various (infinite number of) solid wave functions based on their “symmetry”

• The total electronic charge density, and the total energy, involve integrals over all the “occupied” wave functions

• Before we get to a solid, let us see how the picture changes progressively when we go from

– one or more independent electrons “tied” to one nucleus one or more independent electrons “tied” to 2, 3, 4, … nuclei

Page 6: DFT – Nuts & Bolts, Approximations [based on Chapter 3, Sholl & Steckel]

From one to two nuclei• H + H H2

• The 1s orbitals of the two H atoms combine in a bonding and antibonding fashion to result in two “molecular orbitals”

H H2 H

1s

1sbonding

1s antibonding

1s

Page 7: DFT – Nuts & Bolts, Approximations [based on Chapter 3, Sholl & Steckel]

From one to two nuclei (contd.)• Likewise, each atomic orbital combine in a bonding and antibonding fashion• The “molecular orbital diagram” for O2 shows that it is paramagnetic

(although it has even number of electrons)!!! one of the first triumphs of molecular quantum mechanics!

Page 8: DFT – Nuts & Bolts, Approximations [based on Chapter 3, Sholl & Steckel]

From one to many nuclei• We consider just one atomic orbital per atom for this conceptual discussion

3 1

0

2

Molecular orbital(or wave function) # of “nodes”# of nuclei

2

1

0

Energy levels

Page 9: DFT – Nuts & Bolts, Approximations [based on Chapter 3, Sholl & Steckel]

From one to many nuclei (contd.)# of “nodes”# of nuclei

4

1

0

2

Molecular orbital(or wave function)Energy levels

3

“infinity”

The “k-points” within BZ label wave functions with various number/type of nodes

Page 10: DFT – Nuts & Bolts, Approximations [based on Chapter 3, Sholl & Steckel]

N isolated atoms solid (periodic)

• Each of the N (1s, 2s, etc.) states becomes a band containing N k-points ( N ∞)

1s

2s2p

1s

2s2p

1s

2s2p

1s

2s2p

Page 11: DFT – Nuts & Bolts, Approximations [based on Chapter 3, Sholl & Steckel]

Bloch’s theorem

• Do the wave functions have the same symmetry as the underlying lattice? No!

• The wave function can be written as a product of a periodic part and a phase factor [Bloch’s theorem]

• Note, however, that the charge density (a physical observable) does indeed reflect the periodicity of the lattice (as it should)!

)()( . ruer ikrik

ik Periodic part. i.e., uik(r) = uik(r+R)R is any lattice vector

Page 12: DFT – Nuts & Bolts, Approximations [based on Chapter 3, Sholl & Steckel]

The DFT Kohn-Sham equation (for periodic solids)

)()()(k2

22

rururvim ikikikeff

)()()(2

22

rrrvm ikikikeff

kdrukdrrnBZ

occ

iik

BZ

occ

iik

3232)(2)(2)(

)()( . ruer ikrik

ik

Equation A

Bloch’s theorem

Equation B

Note the 2 indices (i and k); Solve for each choice of k; k is a point in the 1st BZ

Page 13: DFT – Nuts & Bolts, Approximations [based on Chapter 3, Sholl & Steckel]

Approximations

)()()(k2

22

rururvim ikikikeff

veff (r) v(r)e2 n(r')

r r'd3r'

Exc[n(r)]n(r)

Approximation 1: finite number of k-points

Approximation 2: representation of wave functions

Approximation 3: pseudopotentials

Approximation 4: exchange-correlation

Page 14: DFT – Nuts & Bolts, Approximations [based on Chapter 3, Sholl & Steckel]

Approximation 1: k-point sampling• Note that the wave function (and the 1-electron energy) of the solid has

two indices• k labels the symmetry of the wave functions (i.e., its nodal structure)• i labels the spectrum of eigenfunctions (and eigenvalues) for a given k

• The DFT Kohn-Sham equations have to be solved separately for each choice of k-point

• Since k is a continuous variable, it is discretized, and integrals involving k are converted to summations (e.g., trapezoidal rule)

n(r) = 2 uik (r)2

i

occ

∑ d3k =∫ 2 wk uik (r)2

i

occ

∑k

BZ

Summation over a discrete set of points within the 1st Brillouin zone (BZ)

Weight factor for each point within BZ

Page 15: DFT – Nuts & Bolts, Approximations [based on Chapter 3, Sholl & Steckel]

Approximation 1: k-point sampling

• A popular way of discretizing Monkhorst-Pack method (all we need to do is specify 3 integers for the number of k-points along each of the 3 axes)

• What if the system is not periodic, e.g., a molecule? Periodic unit cell can be made large, so that BZ collapses to a point! Hence, Kohn-Sham equation needs to be solved at just one point, k = 0

• Convergence with respect to the number of k-points– Progressively keep increasing the number of k-points till the total

energy does not change appreciably

Page 16: DFT – Nuts & Bolts, Approximations [based on Chapter 3, Sholl & Steckel]

Approximations

)()()(k2

22

rururvim ikikikeff

veff (r) v(r)e2 n(r')

r r'd3r'

Exc[n(r)]n(r)

Approximation 1: finite number of k-points

Approximation 2: representation of wave functions

Approximation 3: pseudopotentials

Approximation 4: exchange-correlation

Page 17: DFT – Nuts & Bolts, Approximations [based on Chapter 3, Sholl & Steckel]

Approximation 2: Representation of the wave functions as plane waves (basis functions)

• We need to solve the following equation

cutcut G

G

Gik

G

G

riGGikik Gcecru .)(

)()()(k2

22

rururvim ikikikeff

• Since uik(r) is periodic, it can be expanded as a Fourier series in terms of the reciporcal lattice vectors G, up to a vector Gcut

• Substituting this in the first equation, multiplying both sides of the equation on the left by exp(-iG’.r) and integrating yields

Gikik

GikGG cch ''

hKS

GvGm

kGGhGh effKSGG '

2'

22

'

• We thus have to solve a matrix eigenvalue problem

Fourier transform of veff!

Page 18: DFT – Nuts & Bolts, Approximations [based on Chapter 3, Sholl & Steckel]

Approximation 2: Representation of the wave functions as plane waves (basis functions)

• The hamiltonian matrix is a square matrix, with its size dependent on the choice of Gcut (larger Gcut, larger the number of plane waves, larger the matrix, and more accurate the result)

• Setting up the h matrix involves performing Fourier transforms, which can be efficiently done using FFT algorithms

• Efficient and standard numerical methods are also available to solve matrix eigenvalue problems

• Convergence with respect to Gcut: progressively increase Gcut (or Ecut = ħ2Gcut

2/2m) till total energy ceases to change appreciably (similar to k-point convergence)

• Note: there are other ways to expand the wave functions too …

Page 19: DFT – Nuts & Bolts, Approximations [based on Chapter 3, Sholl & Steckel]

Approximations

)()()(k2

22

rururvim ikikikeff

veff (r) v(r)e2 n(r')

r r'd3r'

Exc[n(r)]n(r)

Approximation 1: finite number of k-points

Approximation 2: representation of wave functions

Approximation 3: pseudopotentials

Approximation 4: exchange-correlation

Page 20: DFT – Nuts & Bolts, Approximations [based on Chapter 3, Sholl & Steckel]

Approximation 3: Pseudopotentials

• Two important points– Only the valence electrons participate in

chemical bonding, while the core electrons remain inert; hence, why do we need to explicitly consider the core electrons and add to the computational expense?

– Valence electron wave functions (dashed lines) display a lot of wiggles in the core region, which increases the number of plane waves (i.e., Ecut) required; is there a way to get rid of the wiggles as all the (chemical) action is in the valence region?

• Pseudopotentials help us “fool” the valence electrons into thinking that they are the only electrons of the system

– Thus, we can get by with less number of electrons …

… and no wiggles in the core region (solid lines)!

Page 21: DFT – Nuts & Bolts, Approximations [based on Chapter 3, Sholl & Steckel]

Approximation 3: Pseudopotentials“Fooling the electrons”

Real nucleus, -Ze2/r3s

3p

Pseudo-core(real nucleus + core electrons)

Real atom Pseudo atom

Page 22: DFT – Nuts & Bolts, Approximations [based on Chapter 3, Sholl & Steckel]

Approximation 3: Pseudopotentials

• Solve DFT Kohn-Sham equation for real atom contain all (core + valence) electrons

• Replace actual valence electron wave functions (dashed lines) by pseudo valence electron wave functions (solid lines) beyond a cut-off radius

• Invert Kohn-Sham equations, and determine the pseudo core potentials (i.e., pseudopotentials) that have the pseudo wave functions and correct 1-electron energies as the solutions

Page 23: DFT – Nuts & Bolts, Approximations [based on Chapter 3, Sholl & Steckel]

Approximation 3: Pseudopotentials• The pseudopotentials are a replacement for

the true –Ze2/r potentials

• We will have different pseudopotentials for electrons with different angular momenta (i.e., s, p, d, ... electrons will “see” a different pseudopotential)

• Generation of pseudo potentials is a one-time process for each element of the periodic table; subsequently, these pseudopotentials are used in all future calculations!

• Many flavors of pseudopotentials are available: e.g., norm-conserving, ultrasoft, projector augmented wave (PAW)

Page 24: DFT – Nuts & Bolts, Approximations [based on Chapter 3, Sholl & Steckel]

Approximations

)()()(k2

22

rururvim ikikikeff

veff (r) v(r)e2 n(r')

r r'd3r'

Exc[n(r)]n(r)

Approximation 1: finite number of k-points

Approximation 2: representation of wave functions

Approximation 3: pseudopotentials

Approximation 4: exchange-correlation

Page 25: DFT – Nuts & Bolts, Approximations [based on Chapter 3, Sholl & Steckel]

Approximation 4: Exchange-correlation[the contention between chemists & physicists!]

• The most “damaging” approximation of all – the root cause of all (or most) problems/deficiencies of DFT!

• Remember: all the quantum many body effects (and our ignorance) are buried in Exc[n(r)]

• DFT guaranties the existence of Exc[n(r)], but does not provide the actual functional form

• We thus need to approximate it using known limiting cases (example: the uniform electron gas)

Page 26: DFT – Nuts & Bolts, Approximations [based on Chapter 3, Sholl & Steckel]

Approximation 4: Exchange-correlation[The local density approximation (LDA)]

• The exchange-correlation energy of a uniform electron gas was determined by Ceperley & Alder for a wide range of electron densities

• This was (and continues to be) used to treat electrons in solids as the charge density in most solids may be assumed to be “slowly” varying!

• This is the local density approximation (LDA) to XC, as the XC energy is assumed to depend “locally” on the electron density

Page 27: DFT – Nuts & Bolts, Approximations [based on Chapter 3, Sholl & Steckel]

Approximation 4: Exchange-correlation[Beyond LDA]

• Several approaches available to go beyond the LDA, but none completely satisfactory!

• The generalized gradient approximation (GGA) uses the local electron density and gradients of the electron density (reminiscent of Taylor series expansion of a function(al))

• Chemists (to whom chemical accuracy is important) have resorted to combining the GGA correlation functional with the Hartree-Fock exact exchange functional in varying parts in attempts to obtain results more accurate than GGA or LDA …– … but these are not exactly “first principles”, “ab initio”, or “parameter-

free” any more!

• Still, the traditional LDA and GGA levels of theory provide results and descriptions with acceptable levels of accuracy

Page 28: DFT – Nuts & Bolts, Approximations [based on Chapter 3, Sholl & Steckel]

Approximations

)()()(k2

22

rururvim ikikikeff

veff (r) v(r)e2 n(r')

r r'd3r'

Exc[n(r)]n(r)

Approximation 1: finite number of k-points

Approximation 2: representation of wave functions

Approximation 3: pseudopotentials

Approximation 4: exchange-correlation

Page 29: DFT – Nuts & Bolts, Approximations [based on Chapter 3, Sholl & Steckel]

Closing the loop …• We now have a prescription for computing the total energy of a collection of

electrons and nuclei, but– at chosen fixed positions of the nuclei RI, and – at fixed choices of unit cell (or “supercell”) lattice vectors {a1, a2, a3}

• We still need to determine the correct configuration of nuclei & the correct size/shape of the supercell

– This is simply a minimization problem!– Minimize E(a1,a2,a3,R1,R2,…,RM) with respect to each of the atomic positions {R1,R2,

…,RM}, and each of the lattice vectors {a1,a2,a3}

• Many algorithms are available for minimizing a function of many variables– Some use only function values– Some use function values and first derivatives– Some use function values, first and second derivatives

• Typical DFT codes use the function value (energy) and first derivatives– The first derivative of the energy with respect to the atomic positions is related to

the forces on each atom– The first derivative of the energy with respect to the supercell size/shape is related

to the stresses

Page 30: DFT – Nuts & Bolts, Approximations [based on Chapter 3, Sholl & Steckel]

Forces

• The force on each atom, FI = -E/RI

• How do we calculate the forces? Finite differences?• Not necessarily! The Hellman-Feynman theorem allows

us to do this analytically!

Page 31: DFT – Nuts & Bolts, Approximations [based on Chapter 3, Sholl & Steckel]

Stresses on the unit cell• Likewise the stresses can also be computed analytically,

= [1/Vcell(2- )]E/

• As finite differences are not used, computations of forces and stresses cost nothing (they are “by products” of the total energy calculation)

Page 32: DFT – Nuts & Bolts, Approximations [based on Chapter 3, Sholl & Steckel]

The DFT prescription for the total energy(including geometry optimization)

)()()(2

22

rrrvm iiieff

Guess ψik(r) for all the electrons

Is new n(r) close to old n(r) ?

Calculate total energyE(a1,a2,a3,R1,R2,…RM) = Eelec(n(r); {a1,a2,a3,R1,R2,…RM}) + Enucl

Yes

NoSolve!

occ

iik

BZ

kk rwrn

2)(2)(

Calculate forces on each atom, and stress in unit cell

Move atoms; change unit

cell shape/sizeYes

DONE!!!

NoAre forces and stresses zero?

Self-consistent field (SCF) loop

Geometry optimization loop

Page 33: DFT – Nuts & Bolts, Approximations [based on Chapter 3, Sholl & Steckel]

Required input in typical DFT calculations

• Initial guesses for the unit cell vectors (a1, a2, a3) and positions of all atoms (R1, R2, …, RM)

• k-point mesh to “sample” the Brillouin zone

• Pseudoptential for each atom type

• Basis function information (e.g., plane wave cut-off energy, Ecut)

• Level of theory (e.g., LDA, GGA, etc.)

• Other details (e.g., type of optimization and algorithms, precision, whether spins have to be explicitly treated, etc.)

Page 34: DFT – Nuts & Bolts, Approximations [based on Chapter 3, Sholl & Steckel]

Popular DFT codes

• VASP (http://cms.mpi.univie.ac.at/vasp/) - $$$• CASTEP (http://www.castep.org/) - $$$• SIESTA (http://www.icmab.es/siesta/) - Free• Abinit (http://www.abinit.org/) -Free• Quantum Espresso (http://www.quantum-espresso.org/) - Free• Gaussian (http://www.gaussian.com) - $$$• DMol

(http://accelrys.com/products/materials-studio/modules/dmol3.html) - $$$

• ADF (http://www.scm.com/) - $$$

Page 35: DFT – Nuts & Bolts, Approximations [based on Chapter 3, Sholl & Steckel]

Key Dates/Lectures

• Sept 21 – Lecture: Solving simple example problems• Sept 28 – Demo • Oct 5 – Lecture: More example problems• Oct 12 – Demo • Oct 19 – Lecture • Oct 26 – Midterm Exam• Nov 2 – Lecture • Nov 9 – Lecture • Nov 16 – Guest Lectures• Dec 7 – In-class term paper presentations