IntroductiontoCompChem 2009
IntroductiontoCompChem 2009
IntroductiontoCompChem 2009
Computational Chemistry
Shubin Liu, Ph.D.
Research Computing Center
University of North Carolina at Chapel Hill
Outline
Introduction
Methods in Computational Chemistry
• Ab Initio
• Semi-Empirical
• Density Functional Theory
• New Developments (QM/MM)
Hands-on Exercises
The PPT format of this presentation is available here:
http://its2.unc.edu/divisions/rc/training/scientific/
/afs/isis/depts/its/public_html/divisions/rc/training/scientific/short_courses/
its.unc.edu 2
About Us
its.unc.edu 3
Research Computing
Where and who are we and what do we do?
• ITS Manning: 211 Manning Drive
• Website
http://its.unc.edu/research-computing.html
• Groups
Infrastructure -- Hardware
User Support -- Software
Engagement -- Collaboration
its.unc.edu 4
About Myself
Ph.D. from Chemistry, UNC-CH
Currently Senior Computational Scientist @ Research Computing Center, UNC-CH
Responsibilities:
• Support Computational Chemistry/Physics/Material Science software
• Support Programming (FORTRAN/C/C++) tools, code porting, parallel computing, etc.
• Offer short courses on scientific computing and computational chemistry
• Conduct research and engagement projects in Computational Chemistry
Development of DFT theory and concept tools
Applications in biological and material science systems
its.unc.edu 5
About You
its.unc.edu 6
Think BIG!!!
its.unc.edu 7
Central Theme of
Computational Chemistry
SEQUENCE
STRUCTURE
DYNAMICS
DYNAMICS
FUNCTION
REACTIVITY EVALUTION
its.unc.edu 8
Multiscale Hierarchy of
Modeling
its.unc.edu 9
What is Computational
Chemistry?
Application of computational methods and
algorithms in chemistry
• Quantum Mechanical
i.e., via Schrödinger Equation
i Hˆ
also called Quantum Chemistry
t
• Molecular Mechanical
i.e., via Newton’s law F=ma
also Molecular Dynamics
Focus Today
• Empirical/Statistical
e.g., QSAR, etc., widely used in clinical and medicinal chemistry
its.unc.edu 10
How Big Systems Can We
Deal with?
its.unc.edu 11
Starting Point: Time-Independent
Schrodinger Equation
i Hˆ
t
H E
n
h2 N
Z n
1
H - i -
2
i 1 2m 1 ri j i i 1 rij
n n n
1
H h i
i 1 ji i 1 rij
its.unc.edu 12
Equation to Solve in
ab initio Theory
H E
its.unc.edu 13
Hamiltonian for a Molecule
its.unc.edu 14
Ab Initio Methods
its.unc.edu 15
Three Approximations
Born-Oppenheimer approximation
• Electrons act separately of nuclei, electron and nuclear
coordinates are independent of each other, and thus
simplifying the Schrödinger equation
Independent particle approximation
• Electrons experience the ‘field’ of all other electrons as
a group, not individually
• Give birth to the concept of “orbital”, e.g., AO, MO, etc.
LCAO-MO approximation
• Molecular orbitals (MO) can be constructed as linear
combinations of atom orbitals, to form Slater
determinants
its.unc.edu 16
Born-Oppenheimer
Approximation
the nuclei are much heavier than the electrons and move more slowly than the
electrons
freeze the nuclear positions (nuclear kinetic energy is zero in the electronic
Hamiltonian)
ˆ
electrons
2 2 electrons nuclei
e 2 Z A electrons e 2 nuclei e 2 Z A Z B
H el i 2me
i
i
A riA
i j
rij A B rAB
calculate the electronic wave function and energy
* ˆ
ˆ E , E
H
el H el el d
el el el
el el d
*
E depends on the nuclear positions through the nuclear-electron attraction and
nuclear-nuclear repulsion terms
E = 0 corresponds to all particles at infinite separation
its.unc.edu 17
Approximate Wavefunctions
N (spin - up)
l q i ukl k ri i ; i
k 1 (spin - down)
its.unc.edu 18
The Slater Determinant
Α̂ a 1 b 2 c 3 z n
1
n!
a 1 b 2 c 3 z n a 2 b 1 c 3 z n
a 1 a 2 a 3 a n
b 1 b 2 b 3 b n
1
n!
c 1 c 2 c 3 c n
z 1 z 2 z 3 z n
a 1 b 2 c 3 z n a b c z
its.unc.edu 19
The Two Extreme Cases
its.unc.edu 20
The Full CI Method
2N
2N
n n
CI c ; E CI CI Hˆ CI *
c S c 1
1 , 1
There are 2N
possible ways to choose n molecular orbitals
n
from a set of 2N AO basis functions.
The number of determinants gets easily much too large. For
example:
40 Davidson’s method can be used to find one
109
10 or a few eigenvalues of a matrix of rank 109.
its.unc.edu 21
The Hartree–Fock Method
N
N *
E HF HF Hˆ HF ij uki S kl ulj ij
i , j 1 k ,l 1
N
N
N
HF Hˆ HF Enuc Pmn hmn 12 Pkl mk nl ; Pkl uki* uli
m , n 1 k ,l 1 i 1
E HF 0
u ki Hartree–Fock equations
its.unc.edu 22
The Hartree–Fock Method
c F c S
i
i i
its.unc.edu 23
Self-Consistent-Field (SCF)
c F c S
i
i i
its.unc.edu 24
Ab Initio Methods
Semi-empirical methods
(MNDO, AM1, PM3, etc.)
Hartree-Fock
(HF-SCF)
excitation hierarchy
(CIS,CISD,CISDT,...) perturbational hierarchy
(CCS, CCSD, CCSDT,...) (MP2, MP3, MP4, …)
excitation hierarchy
(MR-CISD) perturbational hierarchy
(CASPT2, CASPT3)
Multiconfigurational HF
(MCSCF, CASSCF)
Full CI
its.unc.edu 25
Who’s Who
its.unc.edu 26
Size vs Accuracy
Full CI
0.1
Coupled-cluster,
Accuracy (kcal/mol)
Multireference
1 10 100 1000
Number of atoms
its.unc.edu 27
AN EXAMPLE
Equilibrium structure of (H2O)2
W.K., J.G.C.M. van Duijneveldt-van de Rijdt, and
F.B. van Duijneveldt, Phys. Chem. Chem. Phys. 2, 2227 (2000).
95.7 pm 95.8 pm
symmetry:RCOO,e
s = 291.2 pm
96.4 pm
Experimental [J.A. Odutola and T.R. Dyke, J. Chem. Phys 72, 5062 (1980)]:
ROO2 ½ = 297.6 ± 0.4 pm
SAPT-5s potential [E.M. Mas et al., J. Chem. Phys. 113, 6687 (2000)]:
ROO2 ½ – ROO,e= 6.3 pm ROO,e(exptl.) = 291.3 pm
its.unc.edu 28
Experimental and Computed
Enthalpy Changes He in kJ/mol
H2CO CO + H2 21(1) 22 3 17 34
Gaussian-2 (G2) method of Pople and co-workers is a combination of MP2 and QCISD(T)
its.unc.edu 29
LCAO Basis Functions
c
its.unc.edu 30
Basis Functions
Gaussians (GTO)
x l y m z n * exp r 2
2-electron integrals simpler
Wrong behavior at nucleus
Decrease too fast with r
its.unc.edu 31
Contracted Gaussian Basis Set
its.unc.edu 32
Polarization /
Diffuse Functions
Polarization: Add AO with higher angular
momentum (L) to give more flexibility
Example: 3-21G*, 6-31G*, 6-31G**, etc.
its.unc.edu 33
Correlation-Consistent
Basis Functions
its.unc.edu 34
Pseudopotentials,
Effective Core Potentials
its.unc.edu 35
Correlation Energy
its.unc.edu 36
Configuration-Interaction (CI)
its.unc.edu 37
Truncated configuration interaction:
CIS, CISD, CISDT, etc.
its.unc.edu 38
Truncated
Configuration Interaction
Number of linear variational parameters
in truncated CI for n = 10 and 2N = 40.
Level of Number of
Example
excitation parameters
… … …
2N
Full CI
n
109
its.unc.edu 39
Multi-Configuration
Self-Consistent Field (MCSCF)
its.unc.edu 40
Coupled-Cluster Theory
its.unc.edu 41
Møller-Plesset
Perturbation Theory
The Hartree-Fock function is an eigenfunction of the
n-electron operator F̂ .
We apply perturbation theory as usual after decomposing the
Hamiltonian into two parts:
its.unc.edu 42
Semi-Empirical Methods
These methods are derived from the Hartee–Fock model, that is,
they are MO-LCAO methods.
They only consider the valence electrons.
A minimal basis set is used for the valence shell.
Integrals are restricted to one- and two-center integrals and
subsequently parametrized by adjusting the computed results to
experimental data.
Very efficient computational tools, which can yield fast quantitative
estimates for a number of properties. Can be used for establishing
trends in classes of related molecules, and for scanning a
computational poblem before proceeding with high-level treatments.
A not of elements, especially transition metals, have not be
parametrized
its.unc.edu 43
Semi-Empirical Methods
Models:
• Complete Neglect of Differential Overlap (CNDO)
• Intermediate Neglect of Differential Overlap (INDO/MINDO)
• Neglect of Diatomic Differential Overlap (NDDO/MNDO, AM1, PM3)
its.unc.edu 44
Approximations of 1-e
integrals
H ABS AB 1 2 A B
One parameter per element
its.unc.edu 45
Popular DFT
Noble prize in Chemistry, 1998
In 1999, 3 of top 5 most cited journal
articles in chemistry (1st, 2nd, & 4th)
In 2000-2003, top 3 most cited journal
articles in chemistry
In 2004-2005, 4 of top 5 most cited
journal articles in chemistry:
• 1st, Becke’s hybrid exchange
functional (1993)
• 2nd, LYP correlation functional (1988)
• 3rd, Becke’s exchange functional
(1988)
• 4th, PBE correlation functional (1996)
Citations of DFT on JCP, JACS and PRL
http://www.cas.org/spotlight/bchem.html
its.unc.edu 46
Brief History of DFT
its.unc.edu 48
Density Functional Theory
its.unc.edu 49
But what is E[]?
nuclei
Z AZB r r
E nn [ ] , E ne [ ] r Vext r dr, J [ ] 1
2 r r drdr ,
A B rAB
But what about the kinetic energy TS[] and exchange-correlation
energy Exc[]?
its.unc.edu 50
Kohn-Sham Scheme
its.unc.edu 51
All about Exchange-Correlation
Energy Density Functional
QXC f r, r , 2 r , dr
LDA – f(r) is a function of (r)
only
GGA – f(r) is a function of (r)
and |∇(r)|
Mega-GGA – f(r) is also a
function of ts(r), kinetic
energy density
Hybrid – f(r) is GGA functional
with extra contribution from Jacob's ladder for the five generation of DFT functionals,
Hartree-Fock exchange energy according to the vision of John Perdew with indication of
some of the most common DFT functionals within each rung.
its.unc.edu 52
LDA Functionals
Thomas-Fermi formula (Kinetic) – 1
parameter
3
TTF C F 5/3
r dr, CF 3 2
10
2/3
its.unc.edu 53
Popular Functional: BLYP/B3LYP
Two most well-known functionals are the Becke exchange functional
Ex[] with 2 extra parameters &
2
2
E X E X
B LDA 4/3
,
1 2 4/3
The Lee-Yang-Parr correlation functional Ec[] with 4 parameters a-d
1 2 / 3 1 1 2 c 1 / 3
EcLYP a b C
F 5/3
2tW tW e dr
1 d 1/ 3 9 18
Together, they constitute the BLYP functional:
its.unc.edu 54
Density Functionals
VWN5
LDA
Increasing quality and computational cost local density Better scaling with system
BLYP size
HCTH
BP86 GGA Allow density fitting for even
gradient corrected better scaling
its.unc.edu 57
DFT Developments
Theoretical
• Extensions to excited states, etc.
• Better functionals (mega-GGA), etc
• Understanding functional properties, etc.
Conceptual
• More concepts proposed, like electrophilicity, philicity, spin-
philicity, surfaced-integrated Fukui fnc
• Dynamic behaviors, profiles, etc.
Computational
• Linear scaling methods
• QM/MM related issues
• Applications
its.unc.edu 58
Examples DFT vs. HF
its.unc.edu
Hydrogen molecules - using the LSDA (LDA) 59
Chemical Reactivity Theory
General Consideration
• E E [N, (r)] E []
• Taylor Expansion: Perturbation resulted from an
external attacking agent leading to changes in N and
(r), N and (r),
E E N N , r r E N , r
E E
r dr
N
N
r N
1 2 E E 2E
r r 'drdr '
N 2
2 N r dr
r N
2! N 2 N 2 r
N
Basic assumptions
• E E [N, (r)] E []
• Chemical processes, responses, and changes
expressible via Taylor expansion
• Existence, continuous, and well-behavedness
of the partial derivatives
its.unc.edu 62
DFT Reactivity Indices
E HOMO LUMO
N 2
Hardness / Softness
its.unc.edu 63
DFT Reactivity Indices
Fukui
function f r r
N
– Nucleophilic attack
f r N 1 r N r
– Electrophilic attack
f
r N r N 1 r
– Free radical activity
f r f r
f r
2
its.unc.edu 64
Electrophilicity Index
2
2
Physical meaning: suppose an electrophile is immersed in an
electron sea
1
E N N 2
decrease are
2
The maximal electron flow and accompanying energy
2
N max
2
2
E min
2 Parr, Szentpaly, Liu, J. Am. Chem. Soc. 121, 1922(1999).
its.unc.edu 65
log (k) = s(E+N)
Experiment vs. Theory
2
2
Pérez, P. J. Org. Chem. 2003, 68, 5886. Pérez, P.; Aizman, A.; Contreras, R. J. Phys. Chem. A 2002, 106, 3964.
its.unc.edu 66
Minimum Electrophilicity Principle
Analogous to the maximum hardness principle (MHP)
Separately proposed by Noorizadeh and Chattaraj
Concluded that “the natural direction of a chemical reaction is
toward a state of minimum electrophilicity.”
Noorizadeh, S. Chin. J. Chem. 2007, 25, 1439.
Noorizadeh, S. J. Phys. Org. Chem. 2007, 20, 514.
Chattaraj, P.K. Ind. J. Phys. Proc. Ind. Natl. Sci. Acad. Part A 2007, 81, 871.
non- 1 2 3 4 5 6 7
LA
Yue Xia, Dulin Yin, Chunying Rong, Qiong Xu, Donghong Yin , and Shubin Liu, J. Phys. Chem. A, 2008, 112, 9970.
its.unc.edu 67
Nucleophilicity
Much harder to quantify, because it related to local
hardness, which is ambiguous in definition.
A nucleophile can be a good donor for one electrophile
but bad for another, leading to the difficulty to define a
universal scale of nucleophilicity for an nucleophile.
2
1 B
A A
2 A B
= -N - ½ S()2
Minimizing in Eq. (14) with respect to ,
one has
=-N and = - ½ N2.
Making use of the following relation
A B
N
A B
Jaramillo, P.; Perez, P.; Contreras, R.; Tiznado, W.; Fuentealba, P. J. Phys. Chem. A 2006, 110, 8181.
its.unc.edu 68
Philicity and Fugality
Ayers, P.W.; Anderson, J.S.M.; Rodriguez, J.I.; Jawed, Z. Phys. Chem. Chem. Phys. 2005, 7,
1918.
Ayers, P.W.; Anderson, J S.M.; Bartolotti, L.J. Int. J. Quantum Chem. 2005, 101, 520.
its.unc.edu 69
Dual Descriptors
Ayers, P.W.; Morell, C., De Proft, D.; Geerlings, P. Chem. Eur. J., 2007, 13, 8240
its.unc.edu Geerling, P. De Proft F. Phys. Chem. Chem. Phys., 2008, 10, 3028 70
Steric Effect
its.unc.edu 71
Steric effect: a DFT description
Assume
E[] ≡ Es[] + Ee[] + Eq[]
r
2
we have TW
1
8 r
dr
In 1956, Taft constructed a scale for the steric effect of different substituents,
based on rate constants for the acid-catalyzed hydrolysis of esters in aqueous
acetone. It was shown that log(k / k0) was insensitive to polar effects and thus,
in the absence of resonance interactions, this value can be considered as being
proportional to steric effects. Hydrogen is taken to have a reference value of
EsTaft= 0
its.unc.edu 73
QM/MM Example:
Triosephosphate Isomerase (TIM)
DHAP
H2O
GAP
494 Residues, 4033 Atoms, PDB ID: 7TIM
Function: DHAP (dihydroxyacetone phosphate) GAP (glyceraldehyde 3-phosphate)
its.unc.edu 74
TIM 2-step 2-residue Mechanism
DHAP GAP
its.unc.edu 75
QM/MM: 1st Step of TIM
Mechanism
its.unc.edu 76
QM/MM: Transition State
=====================
Energy Barrier (kcal/mol)
------------------------------------
-
QM/MM 21.9
Experiment 14.0
=====================
its.unc.edu 77
What’s New: Linear Scaling
O(N) Method
Numerical Bottlenecks:
• diagonalization ~N3 100
• orthonormalization ~N3 90
matrix or orbitals
CPUsecondsper CGstep
50
Diagonalization
Strategy: 40
matrix
20 OLMO
• direct minimization with conjugate
NOLMO
gradient
10
methods
Atoms
its.unc.edu 78
What Else … ?
Solvent effect
• Implicit model vs. explicit model
Relativity effect
Transition state
Excited states
Temperature and pressure
Solid states (periodic boundary condition)
Dynamics (time-dependent)
its.unc.edu 79
Limitations and Strengths
of ab initio quantum
chemistry
its.unc.edu 80
Popular QM codes
its.unc.edu 81
Reference Books
its.unc.edu 82
Questions & Comments
its.unc.edu 83
Hands-on: Part I
its.unc.edu 85