7/5/13

Joint ICTP-NSFC School and Advanced Workshop on Modern Electronic Structure Computations Fudan University – Shanghai 8 – 12 July 2013

Time-dependent density functional theory and how it is used

Ralph Gebauer

1 Friday, July 12th, 2013

Overview

• Application of TDDFT to photovoltaics: large scale simulations

The basics

• From the ground-state to excited states: The Runge-Gross theorem

How TDDFT is used in practice

• A first look at TDDFT in practice: Real-time propagations & photochemistry

• TDDFT for optical spectra • real-time • Casida equation • TDDFPT-Lanczos scheme 2

1 7/5/13

Functioning of a Grätzel cell

3

Various dyes

Squaraine dye

Source: M. Grätzel, Prog. Photovolt. Res. Appl. 8, 171-185 (2000) Cyanidin-3-glucoside ("Cyanin") 4

2 7/5/13

5

6

3 7/5/13

7

8

4 7/5/13

The colour we perceive

9

10

5 7/5/13

11

Optical spectra in the gas phase

12

6 7/5/13

Spectra computed with various codes:

13

Spectra computed with various functionals:

14

7 7/5/13

More realistic model of solvent

15

Including

16

8 7/5/13

Analyzing configurational snapshots

17

Analyzing configurational snapshots

18

9 7/5/13

Response charge density at selected frequencies

19

Influence of various geometrical distortions

20

10 7/5/13

Model of a photovoltaic device: Squaraine on TiO2 slab

Slab geometry: 1x4 TiO2 anatase slab, Exposing (101) surface

PBE functional, PW (Quantum-ESPRESSO code)

Shown here: minimum energy configuration

21

TiO2 slab with squaraine dye

22

11 7/5/13

Experimental and TDDFT absorption spectra

Experiment

Computation

23

A more realistic system: Including the solvent

24

12 7/5/13

TDDFT calculation of optical spectra and related quantities

Various challenges:

• System is large (429 atoms, 1.666 electrons, 181.581 PWs, resp. 717.690 PWs) • Broad spectral region of interest • Many excited states in spectral region

Computational tool:

• Recursive Lanczos algorithm for TDDFT

25

TDDFT optical spectrum: dry system

Energy [eV] 26

13 7/5/13

TDDFT optical spectrum including solvent

Energy [eV] 27

28

14 7/5/13

29

30

15 7/5/13

31

32

16 7/5/13

33

Energy level fluctuations and electron injection driving force

34

17 7/5/13

35

36

18 7/5/13

Dye desorption steps:

37

38

19 7/5/13

Framework: What is TDDFT all about?

1964: Hohenberg and Kohn: Density Functional Theory (DFT) work in terms of electron density (instead of many-particle wavefunctions) DFT is a ground state theory

1984: Runge and Gross: Time-Dependent Density Functional Theory (TDDFT)

like DFT, TDDFT is formally exact

39

Recall: Basic ground-state DFT

For practical calculations: Kohn-Sham framework

The density is written in terms of Kohn-Sham orbitals which satisfy

40

20 7/5/13

The Runge-Gross Theorem

Generalizing the HK theorem to time-dependent systems

There exists a one-to-one correspondence between the external v(r,t) and the electron density n(r,t), for systems evolving from a fixed many-body state.

Proof:

Step 1: Different potentials v and v’ yield different current densities j and j’

Step 2: Different current densities j and j’ yield different densities n and n’

41

Using TDDFT in practice

Finding an equivalent of the Kohn-Sham formalism

With a time-dependent Hamiltonian:

Density and potentials are now defined like:

42

21 7/5/13

Which functional to use ?

The easiest and probably most widely used functional is the Adiabatic Local Density Approximation (ALDA)

43

TDDFT in real time: (1996:Bertsch; 2001: Octopus code ) • Consider a general time-dependent perturbation:

• Obtain orbitals, charge density, and potentials by solving the Schrödinger equation explicitly in real time:

(Nonlinear TD Schrödinger equation)

• Can be used for linear response calculations, or for general TD non-linear problems.

44

22 7/5/13

A first application: Photochemistry

• Recent experimental progress made it possible to produce ultra-short intense laser pulses (few fs) • This allows one to probe bond breaking/formation, charge transfer, etc. on the relevant time scales

• Nonlinear real-time TDDFT calculations can be a valuable tool to understand the physics of this kind of probe.

• Visualizing chemical bonds: Electron localization function

45

Nonlinear optical response

• Electron localization function:

46

23 7/5/13

Example: Ethyne C2H2

47

Example: Ethyne C2H2

48

24 7/5/13

How can we calculate optical spectra?

Consider a perturbation δV applied to the ground-state system:

The induced dipole is given by the induced charge density:

Consider the perturbation due to an electric field:

49

How can we calculate optical spectra?

The dipole susceptibility is then given by:

The experimentally measured strength function S is related to the Fourier transform of α:

In practice: We take an E-field pulse Eext = E0 δ(t), calculate d(t), and obtain the spectrum S(ω) by calculating

50

25 7/5/13

A typical dipole-function d(t) … a.u.] -3 Dipole [10

51

… and the resulting spectrum

52

26 7/5/13

Linear response formalism in TDDFT:

• Calculate the system’s ground state using DFT • Consider a monochromatic perturbation:

• Linear response: assume the time-dependent response:

• Put these expressions into the TD Schrödinger equation

53

Linear response formalism in TDDFT:

c

Now define the following linear combinations:

54

27 7/5/13

With the following definitions:

55

Linear response TD-DFT essentially means solving a non-hermitean

eigenvalue equation of dimension 2 Nv × Nc .

Standard way to proceed (Casida's equations):

• Solve the time-independent problem to completely diagonalize the ground-state Hamiltonian. [Some computer time can be saved by limiting the diagonalization to the lower part of the spectrum]

• Obtain as many eigenstates/frequencies of the TD-DFT problem as needed (or as possible).

[Some computer time can be saved by transforming the non-hermitean problem to a hermitean one (e.g. Tamm-Dancoff approx.)]

56

28 7/5/13

Advantages:

One obtains not only the frequency (and oscillator strength), but the fulll eigenvector of each elementary excitation.

[Info can be used for spectroscopic assignments, to calculate forces, etc]

Disadvantages:

One obtains not only the frequency (and oscillator strength), but the fulll eigenvector of each elementary excitation. [Info is often not needed, all the information is immediately destroyed after computation]

Computationally extremely demanding (large matrices to be diagonalized)

57

Time-dependent density functional perturbation theory (TDDFPT)

Remember: The photoabsorption is linked to the dipole polarizability α(ω)

If we choose , then knowing d(t) gives us α(t) and thus α(ω).

Therefore, we need a way to calculate the observable d(t), given the electric field perturbation .

58

29 7/5/13

Consider an observable A:

Its Fourier transform is:

59

Recall:

Therefore:

Thus in order to calculate the spectrum, we need to calculate one given matrix element of .

60

30 7/5/13

In order to understand the method, look at the hermitian problem:

Build a Lanczos recursion chain:

61

-

- -

-

- -

62

31 7/5/13

-

- -

-

- -

63

Back to the calculation of spectra:

Recall:

Therefore:

Use a recursion to represent L as a tridiagonal matrix:

64

32 7/5/13

And the response can be written as a

continued fraction!

65

How does it work?

Benzene spectrum

Plum: 1000 Red: 2000 Green: 3000 Black: 6000

66

33 7/5/13

Spectrum of C60

Black: 4000

Blue: 3000

Green: 2000

67

Spectrum of C60: Ultrasoft pseudopotenitals

Black: 2000

Red: 1000

68

34 7/5/13

Speeding up convergence: Looking at the Lanczos coefficients

69

Speeding up convergence: Looking at the Lanczos coefficients

70

35 7/5/13

Effect of the terminator:

No terminator:

71

Effect of the terminator:

No terminator:

72

36 7/5/13

Effect of the terminator:

No terminator:

73

Effect of the terminator:

No terminator:

74

37 7/5/13

Effect of the terminator:

No terminator: Terminator:

75

Analyzing the spectrum

Example of a squaraine dye:

Can we analyze given features of the spectrum in terms of the electronic structure?

YES!

It is possible to compute the response charge density for any given frequency using a second recursion chain.

76

38 7/5/13

Effect of the terminator:

No terminator: Terminator:

77

Convergence of the TDDFPT spectrum

Isolated squaraine molecule

78

39 7/5/13

Charge response at main absorption peak:

79

Conclusions

• TDDFT as a formally exact extension of ground-state DFT for electronic excitations

• Allows to follow the electronic dynamics in real time

• Using TDDFT in linear response allows one to calculate spectra

80

40 7/5/13

Thanks to: • Filippo De Angelis (Perugia)

• Stefano Baroni (SISSA & DEMOCRITOS, Trieste)

• Brent Walker (University College, London)

• Dario Rocca (UC Davis)

• O. Baris Malcioglu (Univ. Liège)

• Arrigo Calzolari (Modena)

• Quantum ESPRESSO and its community To know more: Applications to DSSCs: Theory & Method: • New J. Phys. 13, 085013 (2011) • Phys. Rev. Lett. 96, 113001 (2006) • Phys. Status Solidi RRL 5, 259 (2011) • J. Chem. Phys. 127, 164106 (2007) • J. Phys. Chem. Lett. 2, 813 (2011) 81 • J. Chem. Phys. 128, 154105 (2008) • J. Chem. Phys. 137, 154314 (2012)

41