Ab initio molecular dynamics via the Car-Parrinello method: Basic ideas, theory and algorithms Mark E.

Download Report

Transcript Ab initio molecular dynamics via the Car-Parrinello method: Basic ideas, theory and algorithms Mark E.

Ab initio molecular dynamics via the Car-Parrinello method: Basic ideas, theory
and algorithms
Mark E. Tuckerman
Dept. of Chemistry
and Courant Institute of Mathematical Sciences
New York University, 100 Washington Sq. East
New York, NY 10003
1808:
“We are perhaps not far removed from the time
when we shall be able to submit the bulk of
chemical phenomena to calculation.”
Joseph Louis Gay-Lussac (1778-1850)
“The underlying physical laws necessary for the mathematical
theory of a large part of physics and the whole of chemistry are
thus completely known, and the difficulty is only that the exact
solution of these laws leads to equations much to complicated to be
soluble.”
Paul Dirac on Quantum Mechanics (1929).
“Every attempt to refer chemical questions to mathematical
doctrines must be considered, now and always, profoundly
irrational, as being contrary to the nature of the phenomena.”
August Comte, 1830
Motivation
• Car-Parrinello is a method for performing molecular dynamics with
forces obtained from electronic structure calculations performed “on
the fly” as the simulation proceeds. This is known as ab initio
molecular dynamics (AIMD).
• As a result, AIMD calculations are considerably more expensive
than force-field calculations, which only involve evaluation of simple
functions of position.
• Force fields, although useful, are, with notable exceptions, unable to
treat chemical bond breaking and forming events.
• Force fields often lack transferability to thermodynamic situations in
which they are not designed to work.
• Polarization and manybody interactions included implicitly.
From ISI Citation Report
R. Car and M. Parrinello, Phys. Rev. Lett. 55, 2471 (1985)
Total Cites = 4,812
The “Universal” Hamiltonian
M Electrons
Hˆ  Tˆe  Tˆn  Vˆee  Vˆen  Vˆnn
N Nuclei
Operator Definitions:
Electronic:
Nuclear:
M
1
Tˆe    i2
2 i 1
M
Vˆee  
i j
N
1
1 2
ˆ
Tn   
I
2 I 1 M I
N
1
rˆi  rˆ j
Vˆnn  
I J
Coupling:
M
N
Vˆen  
i 1 I 1
ZI
ˆ
rˆi  R
I
ZI ZJ
ˆ R
ˆ
R
I
J
Molecular energy levels
Electron coordinates
Notation:
r  r1 ,..., rM
Nuclear coordinates
R  R1 ,..., R N
x  r1 , sz ,1 ,..., rM , sz ,M
1
 0
sz ,i ,  ,   or ,  ,  
 0
1
Complete energy level spectrum:
Hˆ (x, R)  E(x, R)
ˆ )  V (R
ˆ )  (x, R)  E(x, R)
Tˆe  Tˆn  Vee (rˆ )  Ven (rˆ , R
nn


Born-Oppenheimer Approximation
à la W. H. Flygare, Molecular Structure and Dynamics
Mass disparity: M H  2000me
Quasi adiabatic separability ansatz for wave function:
(x, R)   (x, R)  (R)
Schrödinger equation separates if
I  (R)
I (x, R)

. . .

Electrons in fixed background nuclear geometry R
Tˆe  Vˆee (rˆ )  Vˆen (rˆ , R)   (x, R)   (R) (x, R)


Nuclei on each electronic
hypersurface
ˆ )  Vˆ (R
ˆ )   (R)  E  (R)
Tˆn   (R
nn
 

 
Born-Oppenheimer (electronic) surfaces and nuclear energy levels
 n ( R)
ε2
ε1 (no bound levels)
Vibrations
Rotations
ε0
R
Classical nuclear motion on an electronic surface
Consider the ground-state electronic surface
 0 ( R)
Nuclear Hamiltonian:
ˆ )  V (R
ˆ)
Hˆ  Tˆn   0 (R
nn
“Demote” to a classical Hamiltonian:
PI2
H (P, R)  
  0 (R)  Vnn (R)
I 1 2M I
N
Nuclear motion now given by Hamilton’s equations:
H
RI 
PI
H
PI  
R I
Classical nuclei
(R,P)
Quantum electrons
0 (x, R)
Hellman-Feynman Theorem
Ground-state electronic surface as expectation value:
 0 (R)  0 (R) Hˆ (e) (R) 0 (R)
 0
 0 ( R )
R I
 0
 0 ( R )
R I
Hˆ (e)
R I
0 ( R ) 
Hˆ (e)
R I
0 ( R )
0
R I
Hˆ (e) (R)  Tˆe  Vee (rˆ )  Ven (rˆ, R)
Hˆ (e) (R) 0 (R)  0 (R) Hˆ (e) (R)
 0
  0 (R) 
 R I
0 ( R )  0 ( R )
0
Because
0 ( R )  0 ( R )  1

0 ( R ) 0 ( R )  0
R I
0
R I
0 

R I 
Kohn-Sham density functional theory
Except for very small systems, we cannot solve for the exact
0 (x1,..., xM )
Density functional theory represents a compromise between accuracy and computational cost.
Wave function ansatz:
 1 (x1 )
 1 (x M )
 M (x1 )
 M (x M )
0 (x1 ,..., x M ) 
Single-particle orbitals:
 i ( x)
 i  j   ij
Electron density:
n(r)  M 
s1
  dr
2
sM
M
drM 0 (x1 ,..., xM )  
2
/2

i 1 sz  / 2
 i (x)
2
Kohn-Sham density functional theory
Total energy functional:
E[{ }, R]  Ts [{ }]  EH [n]  Exc [n]  Eext [n, R]
Energy definitions:
Ts [{ }]  
1
 i 2  i

2 i
E H [ n] 
1
n(r )n(r)

d
r
d
r
2
r r'
n(r )
r  RI
Eext [ n, R]   Z I  dr
I
Ground-state energy via constrained minimization


 0 ( R)  min  E[{ }, R]   ij  i  j   ij 
{ }
i, j




Kohn-Sham equations (i are eigenvalues of ij )
 1 2




V
(
r
)
KS
 2
 i (r)   i i (r)
VKS (r) 

 n(r)
 EH  Exc  Eext 
The Born-Oppenheimer Algorithm
Electrons
Nuclei
Start with nuclei
Add electrons
Compute  i , n
Add electrons
e.g. Verlet:
i , n  F
Propagate nuclei a
short time Δt with F
t 2
R I (t )  2R I (0)  R I (t ) 
FI (0)
MI
The Car-Parrinello scheme
Avoid explicit minimization with a fictitious adiabatic dynamics for electronic orbitals:
Lagrangian (note μ not a mass! It has units of energy x time2):

M
1
L     i  i   M I R 2I  E   , R    ij  i  j   ij
2 I
i 1
i, j
Equations of motion:
E
 i  
  ij  j
 i
j
E
M I RI  
R I
Conditions: 1) “Near” Born-Oppenheimer
M
  i  i
i 1
1 N
M I R 2I

2 I 1
 0
“Seed” the CP equations of motion with initially minimized orbitals.

Energy Conservation in Born-Oppenheimer and Car-Parrinello dynamics
CP 5 a.u
CP 10 a.u.
BO 10-6, 10 a.u.
BO 10-6, 100 a.u.
CP 10 a.u.
BO 10-5, 100 a.u.
BO 10-6, 100 a.u.
CP 10 a.u.
BO 10-4, 100 a.u.
System: 8 Silicon atoms
Marx and Hutter, Modern Methods and Algorithms of Quantum Chemistry
(NIC Series) 1, J. Grotendorst, ed. (Forschungszentrum, Jülich, 2000)
Energy conservation timing comparison
Marx and Hutter, Modern Methods and Algorithms of Quantum Chemistry
(NIC Series) 1, J. Grotendorst, ed. (Forschungszentrum, Jülich, 2000)
System: 8 Silicon atoms
Adiabatic Dynamics
Consider a simple 2 degree-of-freedom system:

p
R
m
p  F ( R, )  Fbath ( p ,  bath, )
 bath,  G ( bath, , p , T )
pR
mR
pR  FR ( R, )  Fbath ( pR ,  bath, R )
 bath, R  G( bath, R , pR , TR )
Adiabatic conditions:
m
mR
T

TR
R
Analysis of the dynamics
Full phase-space vector
  ( p , pR , , R, bath, , bath, R )
evolves according to
  iL
Liouville operator:
p 
pR 


iL 
 F ( R, )

 FR ( R, )
 iLbath, (T )  iLbath, R (TR )
m 
p mR R
pR
Subdivision of Liouville operator:
iLref ,
p 

 iLbath, (T )
m 
iLref , R 
pR 
 iLbath, R (TR )
mR R
iL  iLref ,


 F ( R, )
 FR ( R, )
p
pR
iL  iL  iL ref ,R
Analysis of dynamics (cont’d)
Evolution of phase space over a time Δt characteristic of nuclear motion:
(t )  eiLt (0)
Trotter factorization:
e
iLt
e
iL t / 2 iLref,R t iL t / 2
e
e
 
 O t
3
Exact Trotter theorem:
iL t / 2
e

 lim e
n

t

FR
4 n pR
e
t

F
4 n pR
e
iLref ,
t
2n
e
t

F
4 n p
e
t

FR
4 n pR
Evolution of momentum:
pR (t / 2)  pR (0)  
t / 2
0
dt FR ( R(0), (t ))



n
Analysis of dynamics (cont’d)
(  1/ kBT
Time-average equated to phase-space average:
2 t / 2
dt FR ( R, (t )) 

0
t
 d FR (R, )e
 d e
  V ( R , )

  V ( R ,)
R  1/ kBTR )
 1
Z ( ,  )
R 
Partition function for slow variable:
Q(  R ,  )   dpR dR e
  R pR2 / 2 mR
 Z ( R,  ) 
 R / 
Adiabatic method for free-energy profiles: [L. Rosso, et al. JCP 116, 4389 (2002)]
A( R)  
1

ln Z ( R,  )  
Annealing property: T  0,   
1
R
ln P( R)

 pR2

Q(  R ; )   dpR dR exp    R 
 min V ( R, )  

 2mR


TR  10T
mR  5m
Model Problem:

V ( R, )  D0 R  a
2
2

2
1
  2   R
2
vR (0)vR (t )
v (0)v (t )
TR  10T
mR  300m
Methods: Plane-wave basis sets (periodic box, FFTs)
1 ik r
 ik (r) 
e  cik,g eig r
V
g
2 n
g
L
1
n(r)   n (g)eig r
V g
orbitals
Car-Parrinello
E
c   k*   ij cik,g
ci ,g
j
k
i ,g
1 2
| g |  Ecut
2
1 2
| g |  4 Ecut
2
density
E
M I RI  
R I
l=0
Eliminating
core electrons
l=1
N
Vˆext (r )  
I 1
ZI
r  RI
M
Eext [n]    i Vˆext  i
i 1
l=2
N

l
Vˆpseud    vl  r  R I
I 1 l  0 m  l
N

l
n(r )
   Z I  dr
r  RI
I
 lm
lm

   vl  r  R I   vl  r  R I   vl  r  R I
I 1 l 0 m  l
N l 1
N
l

 lm
  vl  r  R I     vl  r  R I   vl  r  R I
I 1
I 1 l 0 m  l
M
N
i 1
I 1
lm
 lm
lm
E pseud [n,{ }]    i Vˆpseud  i    dr n(r)vl  r  R I   ENL [{ }, R]
Why a real-space basis?
• Plane-waves are elegant but scale as N 2M
• Slow convergence of plane waves to the basis set limit.
• Ease of localizing orbitals.
• Ease of representing position-dependent operators.
• Exact representation of 
2
• Common choice – Gaussians
 i (r ) 

  
, , ,I
i
C G (r; R I )

 
G (r; R I )  N x y z e
2
|r  R I |2 / 2 
Selecting a real-space basis (why not Gaussians?)
• Retain simplicity of plane waves.
• Systematic convergence to the basis-set limit.
• Spatially localized for possible linear-scaling.
• Position independence and orthonormality.
• No BSSE
• For flexibility of use, seek noncompact support.
• Choice: Discrete variable representations (DVRs).
J. C. Light, et al. J. Chem. Phys. 82, 1400 (1985); Edwards, Tuckerman, Friesner, Sorensen,
J. Comp. Phys. 110, 82 (1994).R. A. Friesner, Chem. Phys. Lett. 116, 39 (1985);
Bacic and Light, Ann. Rev. Phys. Chem. 40, 469 (1989); J. T. Muckerman, Chem. Phys. Lett. 173,
200 (1990); Colbert and Miller, J. Chem. Phys. 96, 1982 (1992); Light and Carrington, Adv. Chem.
Phys. 114, 263 (2000); Littlejohn and Cargo, J. Chem. Phys. 117, 27, 37, 59 (2002); Varga, et al.
Phys. Rev. Lett. 93, 176403 (2004).
Definition of a DVR
Plane-waves (at the Γ (k=0)-point) -- momentum eigenfunctions:
1
 i (r) 
V
ig r
C
e
 g ,i
g
Discrete-variable representations (position eigenfunctions): Begin with a set of
N square-integrable orthonormal functions φi(x)
N
ui ( x)  ai l* ( xi )l ( x)
l 1
On an appropriately chosen quadrature grid {x1,…,xN}
ui ( x j ) 
 ij
ai
Expand orbitals as:
i
 i (r)   Clmn
u l ( x)um ( y)un ( z)
l , m, n
Y. Liu, D. Yarne and MET, PRB 68, 125110 (2003); H. –S. Lee and MET, JPCA 110, 5549 (2006)
DVR convergence for a 32 water box vs. plane-waves with TM PPs
Force measure:
F
1
N
N
F
I 1
2
I
DVR basis sets allow the complete basis set limit to be reached with the ease of plane waves
Is Exc = BLYP water overstructured?
Plane-wave basis (70-85 Ry cutoff)
Grossman, et. al. JCP 120, 300 (2004)
Pseudopotentials: Hamann (1989)
85 Ry cutoff
Mantz, et. al. JPCB 110, 3540 (2006)
Pseudopotentials: Troullier-Martins
70 Ry cutoff
Morrone and Car,
PRL 101, 017801 (2008)
Pseudopotentials:
Troullier-Martins
70 ry cutoff
Gaussians: TZV2P
VandeVondele, et. al.
JCP 122, 014515 (2005)
292 K
318 K
Radial distribution functions for BLYP Water
DVR
Neutron
X-ray
Grid = 753, t =60 ps
Ensemble: NVT, 300 K, μ = 500 au
3.5
3.0
DZVP
DZVP+BSSE-BLYP
SCP-BLYP
gOO(R)
2.5
2.0
1.5
1.0
0.5
Grossman, et. al. JCP 120, 300 (2004)
0.0
r(Å)
2
2.5
3
3.5
4
4.5
5
5.5
R [Å]
H. –S. Lee and MET, JPCA 110, 549 (2006)
H. –S. Lee and MET JCP 125, 154507 (2006).
H. –S. Lee and MET JCP 126, 164501 (2007).
Neutron: Soper, et. al. JCP 106, 247 (1997)
X-ray: Hura, et. al. Chem. Phys. 113, 9140 (2000)
From Akin-Ojo, et al. JCP 129, 064108 (2008)
When basis sets are too small!
from C. J. Mundy (2008)
6
Selected References
1. R. Car and M. Parrinello, Phys. Rev. Lett. 55, 2471 (1985)
2. D. K. Remler and P. Madden, Mol. Phys. 70, 921 (1990)
3. G. Galli and M. Parrinello in Computer Simulations in Chemical Physics
(NATO ASI Series C) 397, 261 (1993)
4. M. Parrinello, Solid State Commun. 102, 107 (1997)
5. D. Marx and J. Hutter, Modern Methods and Algorithms of Quantum Chemistry
(NIC Series) 1, J. Grotendorst, ed. (Forschungszentrum, Jülich, 2000)
6. M. E. Tuckerman, J. Phys. Condens. Matter, 14, R1297 (2002)
7. F. Krajewski and M. Parrinello, Phys. Rev. B 73, 041105 (2006)
8. T. D. Kunhe, M. Krack, F. R. Mohamed and M. Parrinello,
Phys. Rev. Lett. 98, 066401 (2007)
9. H. –S. Lee and M. E. Tuckerman, J. Phys. Chem. A 110, 5549 (2006);
J. Chem. Phys. 125, 154507 (2006); J. Chem. Phys. 126, 164501 (2007).
10. E. Bohm, et. al. IBM J. Res. Devel. 52, 159 (2008)
Ab initio molecular dynamics codes:
CPMD:
CP2K:
VASP:
PINY_MD:
OpenAtom:
NWChem:
SIESTA:
http://www.cpmd.org
http://cp2k.berlios.de
http://cms.mpi.univie.ac.at/vasp
http://www.nyu.edu/PINY_MD/PINY.html
http://charm.cs.uiuc.edu/OpenAtom
http://www.emsl.pnl.gov/docs/nwchem/nwchem.html
http://www.lrz-muenchen.de/services/software/chemie/siesta