General Structure of a PW code Self-Consistent KS eqs. or Global - - PowerPoint PPT Presentation

general structure of a pw code self consistent ks eqs or
SMART_READER_LITE
LIVE PREVIEW

General Structure of a PW code Self-Consistent KS eqs. or Global - - PowerPoint PPT Presentation

General Structure of a PW code Self-Consistent KS eqs. or Global Minimization approach http://www.quantum-espresso.org/ KS self-consistent equations KS self-consistent equations KS self-consistent equations KS self-consistent equations


slide-1
SLIDE 1

General Structure of a PW code Self-Consistent KS eqs.

  • r

Global Minimization approach

slide-2
SLIDE 2

http://www.quantum-espresso.org/

slide-3
SLIDE 3

KS self-consistent equations

slide-4
SLIDE 4

KS self-consistent equations

slide-5
SLIDE 5

KS self-consistent equations

slide-6
SLIDE 6

KS self-consistent equations

slide-7
SLIDE 7

Structure of a self-consistent type code

slide-8
SLIDE 8

DFT solution as global minimization problem where

slide-9
SLIDE 9

DFT solution as global minimization problem where is minimized when

slide-10
SLIDE 10

DFT solution as global minimization problem where is minimized when the same as solving the KS eqs !

slide-11
SLIDE 11

DFT solution as global minimization problem where is minimized when ionic and electronic minimization can be done together the same as solving the KS eqs !

slide-12
SLIDE 12

Structure of a global minimization code

slide-13
SLIDE 13

The Building Blocks Diagonalize the hamiltonian/Compute the gradient Build the density Calculate the KS potential

slide-14
SLIDE 14

The Building Blocks Diagonalize the hamiltonian/Compute the gradient needs an efgicient computation of H*psi Build the density Calculate the KS potential

slide-15
SLIDE 15

The Building Blocks Diagonalize the hamiltonian/Compute the gradient needs an efgicient computation of H*psi Build the density needs an efgicient BZ sampling and fast psi(r) Calculate the KS potential

slide-16
SLIDE 16

The Building Blocks Diagonalize the hamiltonian/Compute the gradient needs an efgicient computation of H*psi Build the density needs an efgicient BZ sampling and fast psi(r) Calculate the KS potential needs Poisson's solver and xc functionals

slide-17
SLIDE 17

Initialization and termination evaluation of the external potential forces/stress and ionic evolution

slide-18
SLIDE 18

The wfc and the KS hamiltonian in a PW basis set The system is periodic: It is convenient to consider the Fourier transform

slide-19
SLIDE 19

The KS hamiltonian and the wfc in a PW basis set thanks to Bloch theorem the KS eq. becomes a matrix eigenvalue problem

slide-20
SLIDE 20

The KS hamiltonian and the wfc in a PW basis set diagonal in reciprocal space

slide-21
SLIDE 21

The KS hamiltonian and the wfc in a PW basis set diagonal in reciprocal spacec a local potential becomes a convolution as such its application to a vector would require N**2 ops a local potential becomes a convolution as such its application to a vector would require N**2 ops

slide-22
SLIDE 22

The KS hamiltonian and the wfc in a PW basis set if then diagonal in reciprocal spacec a local potential becomes a convolution

slide-23
SLIDE 23

The Fast Fourier Transform and the dual space formalism a uniform N point sampling in real space (1D) describes exactly f(r) if its Fourier components are such that Discrete Fast Fourier Transforms allow to go back and forth... invfgt fwfgt … in N log N operations

slide-24
SLIDE 24

The Fast Fourier Transform and the dual space formalism H * psi can be computed very efgiciently psi(r) = invfgt[psi(k+G)] vpsi(r) = v(r) * psi(r) vpsi(k+G) = fwfgt[vpsi(r)] hpsi(k+G) = h2/2m (k+G)**2 * psi(k+G) + vpsi(r) The result is exact if the FFT grid can describe Fourier components up to where psi is limited to NB: this is also the required grid to describe correctly the charge density (i.e. the square of the wavefunctions) and the Hartree potential.

slide-25
SLIDE 25

Exact diagonalization is expensive

fjnd eigenvalues & eigenfunctions of H k+G,k+G’ Typically, NPW > 100 x number of atoms in unit cell. Expensive to store H matrix: NPW^2 elements to be stored Expensive (CPU time) to diagonalize matrix exactly, ~ NPW^3 operations required. Note, NPW >> Nb = number of bands required = Ne/2

  • r a little more (for metals).

So ok to determine just lowest few eigenvalues.

slide-26
SLIDE 26

How things scale with system size ? number of atoms number of electrons number of bands system volume number of plane waves number of BZ k-points number of FFT grid points

slide-27
SLIDE 27

How things scale with system size ? number of atoms number of electrons number of bands system volume number of plane waves number of BZ k-points number of FFT grid points 1 Hpsi

  • Iter. Diag.

new rho new pot computational cost strongly dependent on and

slide-28
SLIDE 28

The external potential

Electrons experience experience a Coulomb potential due to the nuclei This has a known simple form But this leads to computational problems !

slide-29
SLIDE 29

Problems for Plane-Wave basis

Core wavefunctions: Sharply peaked close to nuclei due to deep Coulomb potential. Valence wavefunctions: Lots of wiggles near nuclei due to orthogonality to core wavefunctions High Fourier component are present i.e. large kinetic energy cutofg needed

slide-30
SLIDE 30

Use PseudoPotentials