Implementing DFT in Plane Wave Basis
Implementing DFT in Plane Wave Basis
in
PlaneWave basis
Fabien Bruneval
Outline
● Selfconsistency in KS equations
● Crystal structure
● kpoints
● PlaneWaves
● Supercells
Solving KS equations
depends on the density
non linear equations
2
∇
h r =− v ion r v H [] r v xc []r
2
h r i r =i i r
r =∑ ∣ i r ∣
2
i occ
Solving KS equations
depends on the density
non linear equations
2
−∇
h r = v ion r v H [ ]r v xc [] r
2
h i=i i
r =∑ ∣ i r ∣
2
i occ
Solving KS equations
0 depends on the density
First guess for r non linear equations
2
∇
h r =− v ion r v H [] r v xc []r
2
h i=i i Diagonalization
n n−1
if ≠ r =∑ ∣i r ∣
2
i occ
Outline
● Selfconsistency in KS equations
● Crystal structure
● kpoints
● PlaneWaves
● Supercells
Crystal structure
Crystal axis: a1, a2, a3
i k .r
k i r =e u k i r
where k is in the first Brillouin zone
uki(r) is a periodic function with crystal periodicity
R
∗
×h r R u r Ru k ' j r R ki
F. Bruneval Coimbra, 14/04/08
Implementing DFT in PlaneWave Basis
2
∇
h r =− v ion r v H [] r v xc []r
2
Diagonalizations
h k k i=k i k
1 1 1 1
i h k k i =k i k
2 2 2 2
i h k k i =k i k
3 3 3 3
i
n n−1
if ≠ 1 2
r = ∑
N k k ,i occ
∣ k i r ∣
1
r = ∑
N k k ∈BZ
∑∣k i r ∣ 2
i occ
1 2
to be exact, it should be r = ∫
V BZ V
dk ∑
i occ
∣k i r ∣
BZ
We have to find a set of points in the BZ, which makes the limit as fast as possible:
1 1
∑
N k k ∈BZ
V BZ
∫dk
V BZ
Outline
● Selfconsistency in KS equations
● Crystal structure
● kpoints
● PlaneWaves
● Supercells
1 iG. r
u k i r = ∑
G
c k i G e
1 i k G .r
k i r = ∑
G
c k i G e
Potentials in planewaves
Z
Example of the ionic potential:
V ion r =
∣r∣
Z
V ion G=4 2
∣G∣
Rspace: V(r) Gspace: V(G)
|G|
Plane Waves
Reciprocal lattice: Volume of the sphere containing all PW:
G=n1 b 1n 2 b2n3 b 3 4 3
V sphere= G max
3
Volume of occupied by 1 single PW:
3
2
V PW =
2
G max
E cutoff =
2
3 /2
N G ∝ E cutoff
1
= ∑ ∑
N k k i occ G G G ' G
∑ ∗
c k i G c k i G ' ei G −G ' . r
max max
i G 0. r
= ∑ G
0 e
G0 2G max
∣k i 〉 = ∑ c k i G ∣kG 〉
∣G∣Gmax
and
1
〈 kG k G ' 〉= ∫ d r e
∣ i G ' −G .r
=G G '
Variational principle:
f r =∑ f G e
iG. r
f G= 1 ∫ d r e−i G . r f r
1 −i G . r
= ∑
N r r ∈
e f r i
i
Discrete Fourier Transform
i
It is exact as long as NG = Nr
Supercell technique
How to simulate a finite system with periodic boundary conditions?
Recap
● Selfconsistent loop
● kpoints:
– MonkhorstPack grid (like 4x4x4 shift 0.5 0.5 0.5)
– Equivalence between kpoints and larger cells
● PlaneWaves
– PW are an orthogonal basis set
– Cutoff energy for wavefunctions
– Intensive use of FFT's to increase efficiency