Introduction to the calculation of phonons and of ...jry20/gipaw/tutorial_vib.pdfIntroduction to the...

22
Introduction to the calculation of phonons and of vibrational spectra P. Giannozzi Universit` a di Udine and Democritos National Simulation Center, Italy September 23, 2009 – Typeset by Foil T E X

Transcript of Introduction to the calculation of phonons and of ...jry20/gipaw/tutorial_vib.pdfIntroduction to the...

Page 1: Introduction to the calculation of phonons and of ...jry20/gipaw/tutorial_vib.pdfIntroduction to the calculation of phonons and of vibrational spectra P. Giannozzi Universit`a di Udine

Introduction to the calculation of phononsand of vibrational spectra

P. GiannozziUniversita di Udine and Democritos National Simulation Center, Italy

September 23, 2009

– Typeset by FoilTEX –

Page 2: Introduction to the calculation of phonons and of ...jry20/gipaw/tutorial_vib.pdfIntroduction to the calculation of phonons and of vibrational spectra P. Giannozzi Universit`a di Udine

Vibrational Spectroscopy: experiments

• Observation of vibrational modes:

– phonons in crystals,– normal modes in molecules,

is a powerful tool in materials characterization

• Vibrational spectroscopy is a sensitive probe of the atomic structure and of thechemical bonding and thus of the electronic structure

• Most frequently used experimental techniques:

– Neutron scattering (technically difficult, the entire dispersion is observable)– Infrared (IR) spectroscopy (simple, only some modes are observable)– Raman spectroscopy (simple, a different subset of modes is observable)

Theoretical calculation of vibrational mode frequencies and intensities from firstprinciples is very helpful in analyzing vibrational spectra

Page 3: Introduction to the calculation of phonons and of ...jry20/gipaw/tutorial_vib.pdfIntroduction to the calculation of phonons and of vibrational spectra P. Giannozzi Universit`a di Udine

Basic theory: Born-Oppenheimer approximation

The behavior of a system of interacting electrons r and nuclei R is determined bythe solutions of the time-dependent Schrodinger equation:

ih∂Φ(r,R; t)

∂t=

(−∑

I

h2

2MI

∂2

∂R2I

−∑

i

h2

2m∂2

∂r2i

+ V (r,R)

)Φ(r,R; t)

where V (r,R) is the potential describing the coulombian interactions:

V (r,R) =∑I>J

ZiZJe2

|RI −RJ |−∑i,I

ZIe2

|ri −RI|+∑i>j

e2

|ri − rj|

≡ Vnn(R) + Vne(r,R) + Vee(r)

Born-Oppenheimer (or adiabatic) approximation (valid for MI >> m):

Φ(r,R; t) ' Φ(R)Ψ(r|R)e−iEt/h

NB: r ≡ (r1, .., rN), R ≡ (R1, ..,Rn)

Page 4: Introduction to the calculation of phonons and of ...jry20/gipaw/tutorial_vib.pdfIntroduction to the calculation of phonons and of vibrational spectra P. Giannozzi Universit`a di Udine

Basic theory: Potential Energy Surface

The Born-Oppenheimer approximation allows to split the problem into an electronicproblem depending upon nuclear positions:(

−∑

i

h2

2m∂2

∂r2i

+ V (r,R)

)Ψ(r|R) = E(R)Ψ(r|R)

and a nuclear problem under an effective interatomic potential determined by theelectrons: (

−∑

I

h2

2MI

∂2

∂R2i

+ E(R)

)Φ(R) = EΦ(R)

E(R) determines the Potential Energy Surface and the equilibrium geometry. Atequilibrium, forces FI on nuclei vanish:

FI = −∂E(R)∂RI

= 0

NB: r ≡ (r1, .., rN), R ≡ (R1, ..,Rn)

Page 5: Introduction to the calculation of phonons and of ...jry20/gipaw/tutorial_vib.pdfIntroduction to the calculation of phonons and of vibrational spectra P. Giannozzi Universit`a di Udine

Normal vibrational modes in molecules and crystals

Harmonic approximation: the interatomic potential energy is expanded to 2ndorder. The resulting Hamiltonian transforms into a sum of independent oscillators.

Normal mode frequencies, ω, and displacement patterns, UαI for cartesian

component α of atom I, at atomic position RI, are determined by the secularequation: ∑

J,β

(Cαβ

IJ −MIω2δIJδαβ

)Uβ

J = 0,

where CαβIJ is the matrix of inter-atomic force constants, i.e. second derivatives of

the energy with respect to atomic positions:

CαβIJ ≡ ∂2E(R)

∂RαI ∂R

βJ

= −∂FαI(R)∂Rβ

J

In crystals, normal modes are classified by a wave-vector q. Phonon frequencies,ω(q), and displacement patterns, Uα

s (q), are determined by the secular equations:∑t,β

(Cαβ

st (q)−Msω2(q)δstδαβ

)Uβ

t (q) = 0

Page 6: Introduction to the calculation of phonons and of ...jry20/gipaw/tutorial_vib.pdfIntroduction to the calculation of phonons and of vibrational spectra P. Giannozzi Universit`a di Udine

Practical calculation of vibrational modes

Common methods – based on Density-functional Theory – to calculate vibrationalmodes (via Interatomic Force Constants):

• Frozen-phonon technique: finite differentiation of forces

• Density-functional Perturbation Theory (DFPT): direct calculation of second-order derivatives of the energy

Alternative method (not using Interatomic Force Constants):

• Molecular Dynamics: spectra can be extracted from Molecular Dynamics runs,via the Fourier Transform of the velocity-velocity autocorrelation function

f(ω) =1√2π

∫ ∞

−∞e−iωt

∑I

〈vI(t) · vI(0)〉〈vI(0) · vI(0)〉

dt, (1)

Function f(ω) has peaks at the vibrational frequencies.

Let us focus on the case of phonons in crystals.

Page 7: Introduction to the calculation of phonons and of ...jry20/gipaw/tutorial_vib.pdfIntroduction to the calculation of phonons and of vibrational spectra P. Giannozzi Universit`a di Udine

Calculation of phonon spectra

Introduce monochromatic perturbation u to atomic positions RI = Rl + τττ s as

RI[us(q)] = Rl + τττ s + us(q)eiq·Rl.

(Rl =lattice vector, τττ s =equilibrium position of the s-th atom in the unit cell).

Fourier transform of force constants at q are second derivatives of the energy withrespect to such monochromatic perturbations:

Cαβst (q) ≡

∑R

e−iq·RCαβst (R) =

1Nc

∂2E

∂u∗αs (q)∂uβ

t (q)

Quantum ESPRESSO calculates them from the knowledge of the linear response∂n(r)/∂uα

s (q) and diagonalized to get phonon modes at q. Note that:

• the linear response has the same wave vector q of the perturbation: thisalgorithm will work for any q without any supercell involved

• in the spirit of adiabatic approximation, one can use static response.

Page 8: Introduction to the calculation of phonons and of ...jry20/gipaw/tutorial_vib.pdfIntroduction to the calculation of phonons and of vibrational spectra P. Giannozzi Universit`a di Udine

Frozen phonon

Frozen phonons is an older and alternative way to calculate phonons. Themonochromatic perturbation is frozen in with a finite amplitude in the system,

Fourier transform of force constants at q are calculated from finite differences offorces induced on all the atoms of the supercell by the monochromatic perturbation.

Advantages:

• straightforward to implement

Disadvantages:

• limited to small supercells, i.e. q = G/n, where G is a reciprocal lattice vectorof the original cell, n = 2, 3, 4, ..., but in any case a small number.

Note that this is not the algorithm used by Quantum ESPRESSO!

What if we want the entire dispersions for all q-vectors in the Brillouin Zone?

Page 9: Introduction to the calculation of phonons and of ...jry20/gipaw/tutorial_vib.pdfIntroduction to the calculation of phonons and of vibrational spectra P. Giannozzi Universit`a di Udine

Calculation of interatomic force constants

Inter-atomic force constants in real-space, Cαβst (R), are obtained by

• calculating Cαβst (q) on a discrete (n1, n2, n3) grid of q-vectors:

qijk =i− 1n1

G1 +j − 1n2

G2 +k − 1n3

G3, i = 1, .., n1, and the like for j, k;

• Fourier-transforming to the corresponding real-space grid:

C(qijk) ⇐⇒ C(Rlmn), Rlmn = lR1 +mR2 + nR3

l = −n1/2, ..., n1/2 and the like for m,n.

The denser the grid of q-vectors, the larger the vectors Rlmn for which theinter-atomic force constants are calculated. Inter-atomic force constants are short-ranged and require a moderate number of calculations at different q (for polarsystems, see later).

Page 10: Introduction to the calculation of phonons and of ...jry20/gipaw/tutorial_vib.pdfIntroduction to the calculation of phonons and of vibrational spectra P. Giannozzi Universit`a di Udine

Density-Functional Perturbation Theory

Let us assume that the external potential depends on some parameter λ

Vλ(r) ' V (r) + λ∂V (r)∂λ

+12λ2∂

2V (r)∂λ2

+ ...

(all derivatives calculated at λ = 0) and expand the charge density

nλ(r) ' n(r) + λ∂n(r)∂λ

+12λ2∂

2n(r)∂λ2

+ ...

and the energy functional into powers of λ:

Eλ ' E + λ∂E

∂λ+

12λ2∂

2E

∂λ2+ ...

The first-order derivative ∂E/∂λ does not depend on any derivative of n(r)(Hellmann-Feynman theorem):

∂E

∂λ=∫n(r)

∂V (r)∂λ

dr

Page 11: Introduction to the calculation of phonons and of ...jry20/gipaw/tutorial_vib.pdfIntroduction to the calculation of phonons and of vibrational spectra P. Giannozzi Universit`a di Udine

Density-Functional Perturbation Theory II

The second-order derivative ∂2E/∂λ2 depends on the first-order derivative of thecharge density, ∂n(r)/∂λ:

∂2E

∂λ2=∫∂V (r)∂λ

∂n(r)∂λ

dr +∫n(r)

∂2V (r)∂λ2

dr

The result can be generalized to mixed derivatives:

∂2E

∂λ∂µ=∫∂V (r)∂λ

∂n(r)∂µ

dr +∫n(r)

∂2V (r)∂λ∂µ

dr

(the order of derivatives can be exchanged)

In general, the (2n+ 1)−th derivative of energy depends only on derivatives up toorder n of the charge density ((2n+ 1) theorem) due to its variational character.

∂n/∂λ can be calculated either by a self-consistent procedure, or by directminimization of the 2nd-order energy, written as a functional of ∂n/∂λ.

Page 12: Introduction to the calculation of phonons and of ...jry20/gipaw/tutorial_vib.pdfIntroduction to the calculation of phonons and of vibrational spectra P. Giannozzi Universit`a di Udine

Calculation of the Linear Response

The minimization of the second-order functional, or alternatively the linearizationof Kohn-Sham equations, yields a set of equations:

(HKS − εi)∂ψi(r)∂λ

+∑

j

Kij∂ψj

∂λ= −Pc

∂V

∂λ|ψi〉

where Pc is the projector over unoccupied states, Kij is a nonlocal operator:(Kij

∂ψj

∂λ

)(r) = 4

∫ψi(r)

(e2

|r− r′|+δvxc(r)δn(r′)

)ψ∗j (r

′)∂ψj

∂λ(r′)dr′

and the linear charge response:

∂n(r)∂λ

= 2Re∑

i

ψ∗i (r)∂ψi(r)∂λ

These equations can be solved as a linear system for all ∂ψi(r)/∂λ, orelse as many linear systems for each ∂ψi(r)/∂λ followed by self-consistency

Page 13: Introduction to the calculation of phonons and of ...jry20/gipaw/tutorial_vib.pdfIntroduction to the calculation of phonons and of vibrational spectra P. Giannozzi Universit`a di Udine
Page 14: Introduction to the calculation of phonons and of ...jry20/gipaw/tutorial_vib.pdfIntroduction to the calculation of phonons and of vibrational spectra P. Giannozzi Universit`a di Udine

Phonons and macroscopic electric fieldsPolar materials in the q=0 limit: a macroscopic electric field appear as aconsequence of long-rangeness of Coulomb interactions. Incompatible with PeriodicBoundary Conditions! Macroscopic electric fields contribute a non-analytic termto the dynamical matrix:

naCαβst =

4πΩ

(q · Z?s)α (q · Z?

t)β

q · ε∞ · q

Effective charges Z? are related to polarization P induced by a lattice distortion:

Z?αβs = Ω

∂Pα

∂uβs (q = 0)

Dielectric tensor εαβ∞ are related to polarization induced by an electric field E:

εαβ∞ = δαβ + 4π

∂Pα

∂Eβ

∣∣∣∣us(q=0)=0

.

All of the above can be calculated from (mixed) second derivatives of the energy.

Page 15: Introduction to the calculation of phonons and of ...jry20/gipaw/tutorial_vib.pdfIntroduction to the calculation of phonons and of vibrational spectra P. Giannozzi Universit`a di Udine
Page 16: Introduction to the calculation of phonons and of ...jry20/gipaw/tutorial_vib.pdfIntroduction to the calculation of phonons and of vibrational spectra P. Giannozzi Universit`a di Udine

Practical calculations for electric fields

We need the response to a macroscopic electric field E: ∂V/∂Eα = −erα.This is ill-defined in a crystal, because r is not a lattice-periodic operator!It can however be recast into a well-defined expression using the following trick:

〈ψc|r|ψv〉 =〈ψc|[HKS, r]|ψv〉

εc − εvfor c 6= v.

We can rewrite |ψαv 〉 = Pcrα|ψv〉 as the solution of a linear system:

(HKS − εv)|ψαv 〉 = Pc[HKS, rα]|ψv〉,

where the commutator can be calculated from the following expression:

[HKS, r] = −h2

m

∂r+[VNL, r

].

(VNL is the nonlocal term of the potential if present).Alternative technique: differentiation wrt Bloch vector (numerically performed)

Page 17: Introduction to the calculation of phonons and of ...jry20/gipaw/tutorial_vib.pdfIntroduction to the calculation of phonons and of vibrational spectra P. Giannozzi Universit`a di Udine

Calculation of Infrared Cross Sections

Infrared spectroscopy (absorption/reflectivity, energy loss spectroscopy, FTIR):λ >> a, the electromagnetic field can be considered macroscopic. Selection rules:

• Only phonons close to the Γ-point (q = 0) are involved, i.e. IR-active

• Only phonons that induce a nonzero dipole are IR-active

The IR intensity is proportional to the square of the dipole induced by the phononthat is excited by the IR radiation:

IIR(ν) =∑α

∣∣∣∣∣∣∑Iβ

Z?αβI Uβ

I (ν)

∣∣∣∣∣∣2

.

This is a trivial byproduct of a phonon calculation.Alternative technique: effective charges are expressed via the Berry’s phase.

Page 18: Introduction to the calculation of phonons and of ...jry20/gipaw/tutorial_vib.pdfIntroduction to the calculation of phonons and of vibrational spectra P. Giannozzi Universit`a di Udine

Calculation of Raman Cross Sections

Non-resonant, resonant, surface-enhanced Raman scattering: an inelastic processin which light is scattered and a phonon or normal mode is created or destroyed

Again, only phonons near Γ (k = 0) contribute.

Stokes process: ωS = ωL − ωk

Anti-Stokes process: ωS = ωL + ωk

Resonant Raman: ωL,S ∼ ωel = typical electronic excitation frequenciesNon-resonant Raman: ωL,S << ωel. This is the simpler case.

Page 19: Introduction to the calculation of phonons and of ...jry20/gipaw/tutorial_vib.pdfIntroduction to the calculation of phonons and of vibrational spectra P. Giannozzi Universit`a di Udine

Calculation of Raman Cross Sections (2)

Non-resonant Raman intensities in the Placzek approximation:

IStokes(ν) ∝(ωL − ων)4

ωνrαβ(ν), rαβ(ν) =

∣∣∣∣∂χαβ

∂u(ν)

∣∣∣∣2χ = electric polarizability, u(ν) = normal mode coordinate along mode ν. TheRaman tensor rαβ(ν) is a third-order derivative of the energy that can be calculatedusing:

• DFPT for χ + Frozen-phonon (finite differences)

• DFPT using the (2n+1) theorem: the (2n+1)−th derivative of energy dependsonly on derivatives up to order n of the charge density (not implemented).

• DFPT + Second-order response to electric field (imlpemented)

• Finite electric fields + Frozen phonon

Page 20: Introduction to the calculation of phonons and of ...jry20/gipaw/tutorial_vib.pdfIntroduction to the calculation of phonons and of vibrational spectra P. Giannozzi Universit`a di Udine

Practical phonon calculation in Quantum ESPRESSO

First step: scf calculation at equilibrium positions (performed by pw.x)

• Single phonon calculation at finite wave-vector q

– Generate ψk,v and ψk+q,v in the Irreducible Brillouin Zone relative to thesmall group of q; calculate C(q), diagonalize, produce ω(q) and U(q) (codeph.x)

• Single phonon calculation at Γ wave-vector (q=0)

– Calculate C(q = 0), diagonalize, produce ω(q = 0) and U(q = 0) (ph.x)For polar materials: calculate non-analytical terms that are missing fromC(q = 0) (LO-TO splitting are absent from ω(q = 0)): specify optionepsil=.true. to ph.x (will calculate and store in output file Z∗ and ε∞).For non resonant Raman: specify option lraman=.true.

– Impose Acoustic Sum Rule (ASR), add the nonanalytic LO-TO splitting,calculate cross sections (if data available) (code dynmat.x)

Page 21: Introduction to the calculation of phonons and of ...jry20/gipaw/tutorial_vib.pdfIntroduction to the calculation of phonons and of vibrational spectra P. Giannozzi Universit`a di Udine

Practical phonon dispersions calculation

First step as before: scf calculation at equilibrium positions (performed by pw.x)

• Perform many single-phonon calculations on a uniform grid of wave-vectors qi,including q = 0 (if system is polar, calculate in the latter case Z∗ and ε∞); saveall C(q1) (and Z∗, ε∞) (code ph.x with option ldisp=.true.)

• Perform inverse FFT of the C(qi), obtain interatomic force constants in realspace C(R). For polar materials: a term having the same behaviour for q → 0as the non-analytic term is subtracted from C(qi) before the Fourier Transformand re-added to C(R), so that no problem related to non-analytic behaviourand related long-rangeness arises in the Fourier Transform (code q2r.x)

• Calculate phonons at any wave-vector using code matdyn.x

Page 22: Introduction to the calculation of phonons and of ...jry20/gipaw/tutorial_vib.pdfIntroduction to the calculation of phonons and of vibrational spectra P. Giannozzi Universit`a di Udine

Fast algorithm for specific cases

If you sample the Brillouin Zone with only the Γ point (e.g. molecules, large unitcells) and you need phonon modes only at Γ, you can use a simplified and fasteralgorithm.

• scf calculation at equilibrium positions with Γ−point tricks: performed by pw.xwith cardK POINTS gamma

• use specialized code phcg.x to find C(q = 0); specify option epsil=.true.to calculate Z∗ and ε∞.

• Impose Acoustic Sum Rule (ASR), add the nonanalytic LO-TO splitting,calculate IR cross sections with code dynmat.x

Restrictions: no Raman, no Ultrasoft Pseudopotentials