Professional Documents
Culture Documents
Lattice Relaxation
Phonons
Molecular Dynamics
Doris Vogtenhuber
Doris Vogtenhuber
Ionic Relaxation
Introduction
Lattice Relaxation
Algorithms used in VASP
Phonons
INCAR parameters in VASP, Problem Handling
Molecular Dynamics
Outline
1 Ionic Relaxation
Introduction
Algorithms used in VASP
INCAR parameters in VASP, Problem Handling
2 Lattice Relaxation
Cell Volume Optimization
INCAR parameters in VASP
3 Phonons
Introduction
INCAR Parameters, Problem Handling
4 Molecular Dynamics
Introduction
MD Algorithms implemented in VASP
Thermostats implemented in VASP
Doris Vogtenhuber
Ionic Relaxation
Introduction
Lattice Relaxation
Algorithms used in VASP
Phonons
INCAR parameters in VASP, Problem Handling
Molecular Dynamics
Introduction
Basic Considerations
Hermiticity of Ĥ −→ forces on the atoms can be calculated
via the Hellmann-Feynman theorem
~ = ∂ hΨ0 | He (R)
∇I 0 (R) ~ | Ψ0 i = hΨ0 (R)
~ | ∇I He (R)
~ | Ψ0 (R)i
~
~I
∂R
Doris Vogtenhuber
Ionic Relaxation
Introduction
Lattice Relaxation
Algorithms used in VASP
Phonons
INCAR parameters in VASP, Problem Handling
Molecular Dynamics
Introduction
. . . Basic Considerations
~ V , cellshape . . . ) = min.
in equilibrium: E (R,
(1): find the atoms’ positions R~ minimizing E
~ = f (~x ) with, f
⇒ search for the (local) minimum of E (R)
expanded around equilibrium ~x 0
1 1
f (~x ) ≈ a + ~b~x + ~x B~x = ā + (~x − ~x 0 )B(~x − ~x 0 )
2 2
∂2f
B = Bij = Hessian matrix
∂xi ∂xj
Introduction
Doris Vogtenhuber
Steepest descentIonic Relaxation Introduction
Lattice Relaxation
Algorithms used in VASP
Phonons
INCAR parameters in VASP, Problem Handling
mate B by the largest eigenvalue of the Hessian matrix
Molecular Dynamicssteepest descent
m (Jacobi algorithm for linear equations)
Introduction
al guess x1
x2 x1 1 Γmax B g x1
Steepest Descent Algorithm
at step 2 and 3 until convergence is reached
ions with long steep valleys convergence can be very slow 1 guess ~x 1
Γ max
2 calculate ~g (~x 1 )
Γ min 3 step along the steepest
descent direction
1
G. K RESSE , I ONIC OPTIMISATION
~x 2 = ~x 1 − Γmax
Page 5
~g (~x 1 )
4 repeat 2+3 −→
converged geometry
Doris Vogtenhuber
Ionic Relaxation
Introduction
Lattice Relaxation
Algorithms used in VASP
Phonons
INCAR parameters in VASP, Problem Handling
Molecular Dynamics
Introduction
Doris Vogtenhuber
Ionic Relaxation
Introduction
Lattice Relaxation
Algorithms used in VASP
Phonons
INCAR parameters in VASP, Problem Handling
Molecular Dynamics
Overview
aims:
1 reach asymptotic convergence rates
2 maintain the relaxation history
Quasi-Newton Schemes (DIIS): direct inversion in the iterative
subspace
Conjugate Gradient (GC): search directions are conjugated to
the previous seach directions
Damped Molecular Dynamics (MD): minimization problem is
cast into a simulated annealing approach
Doris Vogtenhuber
Ionic Relaxation
Introduction
Lattice Relaxation
Algorithms used in VASP
Phonons
INCAR parameters in VASP, Problem Handling
Molecular Dynamics
6 −→ ~x 3 = ~xopt − λ~gopt
Doris Vogtenhuber
Ionic Relaxation
Introduction
Lattice Relaxation
Algorithms used in VASP
Phonons
INCAR parameters in VASP, Problem Handling
Molecular Dynamics
gradient along indicated red line is now know, determine optimal position x 1opt
another steepest descent step form x1opt along gopt g x1opt
full DIIS
calculate gradient x2 now the gradient is known in the entire 2 dimensional space
Doris Vogtenhuber
Ionic Relaxation
Introduction
Lattice Relaxation
Algorithms used in VASP
Phonons
INCAR parameters in VASP, Problem Handling
Molecular Dynamics
teps (crosses, at least one triastep is required) x1
etermine new gradient g1 g x1 and conjugate it to get s1 (green arrow)
x0
sds from ~x 0 along ~g 0
trial step(s) x,
x1 Nx ≥ 1), −→ ~x 1
−→ new ~g 1 = ~g (~x 1 )
x2
x0 conjugate ~g 1 : −→,~s 1
s1 ~s 1 points directly towards
x1 the minimum
x1
G. K RESSE , I ONIC OPTIMISATION Page 15 minimization along ~s 1
Doris Vogtenhuber
Ionic Relaxation
Introduction
Lattice Relaxation
Algorithms used in VASP
Phonons
INCAR parameters in VASP, Problem Handling
Molecular Dynamics
Damped MD (MD)
atoms’ positions ~x are regarded as dynamic degrees of freedom
forces (=gradients) accelerate the motion of the atoms
equation of motions of the atoms: ~x¨ = −2αF~ − µ~x˙
introduce an additional friction term µ
integration of this eqation: simple velocity Verlet algorithm
~vN+1/2 = ~ N /(1 + µ/2)
(1 − µ/2)~vN−1/2 − 2αF
~xN+1 = ~xN + ~vN+1/2
Doris Vogtenhuber
Ionic Relaxation
Introduction
Lattice Relaxation
Algorithms used in VASP
Phonons
INCAR parameters in VASP, Problem Handling
Molecular Dynamics
e optimal friction is chosen the ball will glide right away into the minimum
too small friction it will overshoot the minimum and accelerate back
tool large friction relaxation will also slow down (behaves like a steepest
Damped MD (MD)
ent)
“rolling ball” with friction
(µ)
x0
µ too small: minimum
overshot,
back-acceleration
µ too large: relaxation
G. K RESSE , I ONIC OPTIMISATION slows down
Page 18
Doris Vogtenhuber
Ionic Relaxation
Introduction
Lattice Relaxation
Algorithms used in VASP
Phonons
INCAR parameters in VASP, Problem Handling
Molecular Dynamics
Overview
Algorithm main flag additional flags termination
DIIS IBRION =1 POTIM, NFREE EDIFFG
CG IBRION =2 POTIM EDIFFG
damped MD IBRION =3 POTIM, SMASS EDIFFG
Doris Vogtenhuber
Ionic Relaxation
Introduction
Lattice Relaxation
Algorithms used in VASP
Phonons
INCAR parameters in VASP, Problem Handling
Molecular Dynamics
Doris Vogtenhuber
Ionic Relaxation
Introduction
Lattice Relaxation
Algorithms used in VASP
Phonons
INCAR parameters in VASP, Problem Handling
Molecular Dynamics
yes
Really, this is too complicated CG
no yes
yes
close to minimum 1−3 degrees of freedom
no no
no
DIIS
Problem Handling
(Some Other) Reasons for Bad Convergence
unreasonable starting geometry (POSCAR)
lattice parameters, atomic positions
check OUTCAR for interatomic distances, forces of the input
geometry, external pressure, ( if ISIF > 0)
sub-optimal settings of (some) INCAR parameters
bad electronic convergence of (one of) the ionic steps −→
wrong forces
check OSZICAR for the convergence of each ionic step: dE ,
charge density convergence
increase NELM, decrease the (spin density) mixing parameters
choose a different BZ-integration method ISMEAR, SIGMA
choose a different electronic relaxation algorithm ALGO
basis sets too small (−→ aliasing errors)
is the ~k-mesh appropriate? (modify KPOINTS)
Doris Vogtenhuber
Ionic Relaxation
Introduction
Lattice Relaxation
Algorithms used in VASP
Phonons
INCAR parameters in VASP, Problem Handling
Molecular Dynamics
Problem Handling
Aliasing Errors
related to errors caused by the truncated FFT grid
folding theorem: ρ = ψn∗ ψn (VGH ) contain components up to
R
Doris Vogtenhuber
Ionic Relaxation
Introduction
Lattice Relaxation
Algorithms used in VASP
Phonons
INCAR parameters in VASP, Problem Handling
Molecular Dynamics
Problem Handling
Doris Vogtenhuber
Ionic Relaxation
Introduction
Lattice Relaxation
Algorithms used in VASP
Phonons
INCAR parameters in VASP, Problem Handling
Molecular Dynamics
Problem Handling
Doris Vogtenhuber
Ionic Relaxation
Lattice Relaxation Cell Volume Optimization
Phonons INCAR parameters in VASP
Molecular Dynamics
Outline
1 Ionic Relaxation
Introduction
Algorithms used in VASP
INCAR parameters in VASP, Problem Handling
2 Lattice Relaxation
Cell Volume Optimization
INCAR parameters in VASP
3 Phonons
Introduction
INCAR Parameters, Problem Handling
4 Molecular Dynamics
Introduction
MD Algorithms implemented in VASP
Thermostats implemented in VASP
Doris Vogtenhuber
Ionic Relaxation
Lattice Relaxation Cell Volume Optimization
Phonons INCAR parameters in VASP
Molecular Dynamics
Introduction
the equilibrium volume Veq and shape of a crystal calculated
from ab initio depend on the XC-type used:
LDA: overbinding −→ a0 too small
PBE, PW91: underbinding −→ a0 too large
results are improved using specially designed functionals
(PBEsol, HSE),...
⇒ accurate calculations should always be performed for the
cell at equilibrium for the respective XC-type to avoid artifacts
(unless there is good reason not to do so)
Doris Vogtenhuber
Ionic Relaxation
Lattice Relaxation Cell Volume Optimization
Phonons INCAR parameters in VASP
Molecular Dynamics
Doris Vogtenhuber
Ionic Relaxation
Lattice Relaxation Cell Volume Optimization
Phonons INCAR parameters in VASP
Molecular Dynamics
Doris Vogtenhuber
Ionic Relaxation
Lattice Relaxation Cell Volume Optimization
Phonons INCAR parameters in VASP
Molecular Dynamics
τ when the lattice is expanded from
2
explanation:
τ1 τ1
0
τ1
b2 lattice
for the expanded
expanded 1 −→
latticeτthe τ1set
basis
b = 2π/τ
1 1 cutoff decreases
corresponds effectively tobya alower cut- ττ10
a factor
1
off Gcut and therefore a lower
0 isquality,
G’cut effective cutoff Gcut lower
the energy is overestimated at
E is overestimated for larger V s
larger volumes
thevolume
the apparent Veq is too small
is underestimated for
nstead
Cell ofVolume
fixed cutoff
Optimization
-3.4
Improvement using fixed basis sets?
start from WAVECAR with ISTART =2
240 eV, basis set fixed
240 eV, cutoff fixed NO!!, because
E (eV)
0 Stress Tensor
u-
VASP does not adopt the basis set in
on a run
pressure (kBar)
Doris Vogtenhuber
Ionic Relaxation
Lattice Relaxation Cell Volume Optimization
Phonons INCAR parameters in VASP
Molecular Dynamics
Doris Vogtenhuber
Ionic Relaxation
Lattice Relaxation Introduction
Phonons INCAR Parameters, Problem Handling
Molecular Dynamics
Outline
1 Ionic Relaxation
Introduction
Algorithms used in VASP
INCAR parameters in VASP, Problem Handling
2 Lattice Relaxation
Cell Volume Optimization
INCAR parameters in VASP
3 Phonons
Introduction
INCAR Parameters, Problem Handling
4 Molecular Dynamics
Introduction
MD Algorithms implemented in VASP
Thermostats implemented in VASP
Doris Vogtenhuber
Ionic Relaxation
Lattice Relaxation Introduction
Phonons INCAR Parameters, Problem Handling
Molecular Dynamics
Introduction
Basics
vibrations of the crystal lattice influence
elastic
thermodynamic
optical
electronic transport properties
“soft modes” indicate
phase transitions (bulk) or
dissociation (dissociative adsorbtion processes)
Doris Vogtenhuber
Ionic Relaxation
Lattice Relaxation Introduction
Phonons INCAR Parameters, Problem Handling
Molecular Dynamics
Introduction
Basics
~ 0 (lm) is displaced by ~u
if atom m in cell l of a crystal R
~ ~
−→ R(lm) = R0 (lm) + ~u (lm)
kinetic energy: T = 12 lmα Mm u̇α2 (lm), potential energy: expanded
P
~
X ∂V (R(lm))
~
V (R(lm)) ~ 0 (lm)) +
= V0 (R uα (lm)
| {z } ∂Rα (lm)
lmα
=V0 =0 | {z }
=0 in equilibrium
1 X ~
∂ 2 V (R(lm))
+ uα (lm)uβ (l 0 m0 )
2 ∂Rα (lm)∂Rβ (l 0 m0 )
lmα,l 0 m0 β | {z }
Φαβ (ll 0 mm0 ) force constant
~
Φαβ (ll 0 mm0 ): derivative taken at R(lm) ~ 0 (lm)
=R
Doris Vogtenhuber
Ionic Relaxation
Lattice Relaxation Introduction
Phonons INCAR Parameters, Problem Handling
Molecular Dynamics
Introduction
Basics
Φαβ (ll 0 mm0 ): component α of the force acting on atom (lm),
caused by the displacement of atom (l 0 m0 ) in direction β
equations of motion
∂V X
Mm üα (lm) = − =− Φαβ (ll 0 mm0 )uβ (l 0 m0 )
∂uα (lm) 0 0 l m β
use symmetry
√ ~
harmonic ansatz: uα (lm, t) = Mm eα (m)e i~qRl e iωt
1 ~ ~
X X
ω 2 eα (m) = eβ (m0 ) ( (Mm Mm0 )− 2 Φαβ (ll 0 mm0 )e i~q(Rl 0 −Rl ) )
β,m0 l0
| {z }
Dαβ (mm0 ,~
q ) dynamical matrix
Doris Vogtenhuber
Ionic Relaxation
Lattice Relaxation Introduction
Phonons INCAR Parameters, Problem Handling
Molecular Dynamics
Phonons
Bulk
VASP calculates phonons at the zone-center
⇒ supercell approach
the elements of the Hessian Matrix are calculated either by
finite displacement of the ions:
IBRION = 5,6; NFREE, POTIM
assume: displacements are within the harmonic limit
using density functional perturbation theory IBRION = 7,8
the tags making use of the symmetry (IBRION = 6,8) can be
used in vasp.5.2 only
Doris Vogtenhuber
Ionic Relaxation
Lattice Relaxation Introduction
Phonons INCAR Parameters, Problem Handling
Molecular Dynamics
Phonons
Doris Vogtenhuber
Ionic Relaxation
Lattice Relaxation Introduction
Phonons INCAR Parameters, Problem Handling
Molecular Dynamics
Problem Handling
Outline
1 Ionic Relaxation
Introduction
Algorithms used in VASP
INCAR parameters in VASP, Problem Handling
2 Lattice Relaxation
Cell Volume Optimization
INCAR parameters in VASP
3 Phonons
Introduction
INCAR Parameters, Problem Handling
4 Molecular Dynamics
Introduction
MD Algorithms implemented in VASP
Thermostats implemented in VASP
Doris Vogtenhuber
Ionic Relaxation
Introduction
Lattice Relaxation
MD Algorithms implemented in VASP
Phonons
Thermostats implemented in VASP
Molecular Dynamics
Introduction
General Remarks
classical equations of motion (EOM) for atoms in a
microcanocical NVE ensemble (p: momenta , q: positions)
N
X p~i 2
H(p, q) = + V (q1 , .....qn )
mi
i=1
dp ∂H(p, q) dq ∂H(p, q)
=− , =
dt ∂q dt ∂p
Doris Vogtenhuber
Ionic Relaxation
Introduction
Lattice Relaxation
MD Algorithms implemented in VASP
Phonons
Thermostats implemented in VASP
Molecular Dynamics
Introduction
Some Statistics’ Basics
Q tot for species i Qitot = Qitrans Qirot Qivib Qielecronic
in extended systems with translational symmetry:
Qitrans and Qirot are constant and cancel out
hνi
−
QM e2kB T
Qivib : Qivib = i=1 hνi (harmonic approx.)
−
1−e kB T
‡
Ei ∆E
−k Qiel,‡ −k i
Qielectronic : Qiel =e BT ⇒ =e B T
Qiel,0
the reaction constant k is given as
‡
kB T Q vib,‡ − ∆E i
k =− · vib,0 · e kB T
h Q
Doris Vogtenhuber
Ionic Relaxation
Introduction
Lattice Relaxation
MD Algorithms implemented in VASP
Phonons
Thermostats implemented in VASP
Molecular Dynamics
Advanced MD Techniques
standard version of MD:
uses Carthesian coordinates
transition states: obtained using the Nudged Elastic Band
(NEB) method
−→ inefficient, slow for chemical reactions
improvement: Advanced MD Techniques
instead of cartesian coordinates: use a more clever choice of
delocalized, internal coordinates ξ (bond lenghts, -angles,. . . )
ergodic hypothesis used to calculate hAi via its time average
implemented in VASP.5 by Tomas Bucko
compile VASP with -Dtbdyn to replace standard MD by
advanced MD techniques
Doris Vogtenhuber
Ionic Relaxation
Introduction
Lattice Relaxation
MD Algorithms implemented in VASP
Phonons
Thermostats implemented in VASP
Molecular Dynamics
Advanced MD Techniques
in systems with richly structured Potential Energy
Hypersurfaces (PES): forces on the atoms might not drag the
system over an energy barrier of the PES
⇒ the system gets stuck in a basin of the PES
methods to avoid this behavior:
add a bias potential Ṽ (ξ) to enhance the sampling in regions
of the PES with low probability P(ξi ) (eg transition state
regions):
“umbrella sampling”
constrain the MD by adding geometrical constraints via
additional terms in the Lagrangian, enforcing the constraint
“blue moon sampling”
Doris Vogtenhuber
Ionic Relaxation
Introduction
Lattice Relaxation
MD Algorithms implemented in VASP
Phonons
Thermostats implemented in VASP
Molecular Dynamics
H̃
hAiH =
Ṽ
e kB T
H̃
Doris Vogtenhuber
Ionic Relaxation
Introduction
Lattice Relaxation
MD Algorithms implemented in VASP
Phonons
Thermostats implemented in VASP
Molecular Dynamics
|ξ(t)−ξ(itG )|2
Ṽ (t, ξ) = h i=1G e −
Pt/t
2w 2
(SHAKE algorithm)
Doris Vogtenhuber
Ionic Relaxation
Introduction
Lattice Relaxation
MD Algorithms implemented in VASP
Phonons
Thermostats implemented in VASP
Molecular Dynamics
Doris Vogtenhuber
Ionic Relaxation
Introduction
Lattice Relaxation
MD Algorithms implemented in VASP
Phonons
Thermostats implemented in VASP
Molecular Dynamics
(α, β = 1, . . . M − 1)
Doris Vogtenhuber
Ionic Relaxation
Introduction
Lattice Relaxation
MD Algorithms implemented in VASP
Phonons
Thermostats implemented in VASP
Molecular Dynamics
Doris Vogtenhuber
Ionic Relaxation
Introduction
Lattice Relaxation
MD Algorithms implemented in VASP
Phonons
Thermostats implemented in VASP
Molecular Dynamics
Parinello-Rahman dynamics
NpT ensembles with the enthalpy H = E + pV
EOM of the atoms’ and the lattice DOFs:
N
1X 1
L(s, h, ṡ, ḣ) = mi ṡit ht hṡi − V (s, h) + W Tr(ḣt ḣ) − pext Ω
2 2
i=1
Doris Vogtenhuber
Ionic Relaxation
Introduction
Lattice Relaxation
MD Algorithms implemented in VASP
Phonons
Thermostats implemented in VASP
Molecular Dynamics
Doris Vogtenhuber
Ionic Relaxation
Introduction
Lattice Relaxation
MD Algorithms implemented in VASP
Phonons
Thermostats implemented in VASP
Molecular Dynamics
Doris Vogtenhuber
Ionic Relaxation
Introduction
Lattice Relaxation
MD Algorithms implemented in VASP
Phonons
Thermostats implemented in VASP
Molecular Dynamics
Doris Vogtenhuber
Ionic Relaxation
Introduction
Lattice Relaxation
MD Algorithms implemented in VASP
Phonons
Thermostats implemented in VASP
Molecular Dynamics
Doris Vogtenhuber
Ionic Relaxation
Introduction
Lattice Relaxation
MD Algorithms implemented in VASP
Phonons
Thermostats implemented in VASP
Molecular Dynamics
Doris Vogtenhuber
Ionic Relaxation
Introduction
Lattice Relaxation
MD Algorithms implemented in VASP
Phonons
Thermostats implemented in VASP
Molecular Dynamics
Doris Vogtenhuber