Professional Documents
Culture Documents
Property Calculation II: Markus J. Buehler
Property Calculation II: Markus J. Buehler
Property calculation II
Lecture 4
Markus J. Buehler
Laboratory for Atomistic and Molecular Mechanics
Department of Civil and Environmental Engineering
Massachusetts Institute of Technology
1
Content overview
I. Particle and continuum methods Lectures 2-13
1. Atoms, molecules, chemistry
2. Continuum modeling approaches and solution approaches
3. Statistical mechanics
4. Molecular dynamics, Monte Carlo
5. Visualization and data analysis
6. Mechanical properties – application: how things fail (and
how to prevent it)
7. Multi-scale modeling paradigm
8. Biological systems (simulation in biophysics) – how
proteins work and how to model them
Outline:
5
Goals
6
MD modeling of crystals – solid, liquid, gas phase
7
Atomistic trajectory – through MSD
© Trivedi Chemistry. All rights reserved. This content is excluded from our Creative Commons license.
For more information, see http://ocw.mit.edu/fairuse.
9
http://www.t2i2edu.com/WebMovie/1Chap1_files/image002.jpg
How to characterize material state
(solid, liquid, gas)
© Trivedi Chemistry. All rights reserved. This content is excluded from our Creative Commons license.
For more information, see http://ocw.mit.edu/fairuse.
10
How to characterize material state
(solid, liquid, gas)
g (r ) = ρ (r ) / ρ
Reference
atom r
dr
12
Formal approach: Radial distribution
function (RDF)
The radial distribution function is defined as
Overall density of atoms (volume)
g (r ) = ρ (r ) / ρ
Local density
13
Formal approach: Radial distribution
function (RDF)
The radial distribution function is defined as
Overall density of atoms (volume)
g (r ) = ρ (r ) / ρ
Local density
N (r ± Δ2r )
g (r ) =
Ω(r ± Δ2r ) ρ
Δr
2 Density
ρ = N /V
© source unknown. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/fairuse.
© source unknown. All rights reserved. This content is excluded from our Creative
Commons license. For more information, see http://ocw.mit.edu/fairuse.
Java applet:
http://physchem.ox.ac.uk/~rkt/lectures/liqsolns/liquids.html
18
Radial distribution function:
Solid versus liquid versus gas
5 5
Gaseous Ar
4 4 (90 K)
Solid Argon
3 3 Liquid Ar
g(r)
g(r)
(90 K) Gaseous Ar
(300 K)
2 2
Liquid Argon
1 1
0 0
0 0.2 0.4 0.6 0.8 0 0.2 0.4 0.6 0.8
distance/nm distance/nm
20
Notes: Radial distribution function (RDF)
Additional comments:
Describes how - on average - atoms in a system are
radially packed around each other
Particularly effective way of describing the structure of
disordered molecular systems (liquids)
In liquids there is continual movement of the atoms and
a single snapshot of the system shows only the
instantaneous disorder it is extremely useful to be able to
deal with the average structure
21
Example RDFs for several materials
22
RDF and crystal structure
1st nearest neighbor (NN)
3rd NN
2nd NN
…
a
a a
Cobalt Zinc
a: 250.71 pm a: 266.49 pm
b: 250.71 pm b: 266.49 pm
c: 406.95 pm c: 494.68 pm
α: 90.000° α: 90.000°
β: 90.000° β: 90.000°
γ: 120.000° γ: 120.000°
NN: 2.506 Å NN: 2.665 Å 25
Graphene/carbon nanotubes
RDF
Glacier
27
Image courtesy of blmiers2.
RDF of water (H2O)
H-O distance
H-O distance
H-O covalent bonding
(≈1 Å)
31
Molecular dynamics: A “bold” idea
d U (r)
f =−
dr
x r
fi = f i f x2
r
x1
33
Often: Assume pair-wise interaction between atoms
Atomic interactions – quantum perspective
Energy U
r
Repulsion
Radius r (Distance
between atoms)
e
Attraction
1/r6
φ
Energy U
r
12
1/r (or Exponential)
Repulsion
e ~ k(r - r0)2 r
Attraction
1/r6
Harmonic approximation
38
What is the difference between these
models?
39
Lennard-Jones potential
Parameters ε ,σ
⎛ ⎡σ ⎤12 ⎡σ ⎤ 6 ⎞
φ (r ) = 4ε ⎜ ⎢ ⎥ − ⎢ ⎥ ⎟
⎜⎣ r ⎦ ⎣ r ⎦ ⎟
⎝ ⎠
Lennard-Jones 12:6
Sir J. E. Lennard-Jones (Cambridge UK)
40
Lennard-Jones potential: schematic & parameter
meaning
φ LJ 12:6
ε : well depth (energy stored
potential
~σ per bond)
σ : proportional to point where
r force vanishes (equilibrium
ε
distance between atoms)
⎛ ⎡σ ⎤12 ⎡σ ⎤ 6 ⎞
Lennard-Jones 12:6 φ (r ) = 4ε ⎜ ⎢ ⎥ − ⎢ ⎥ ⎟
⎜⎣ r ⎦ ⎣ r ⎦ ⎟
⎝ ⎠
41
2.1 How to identify parameters in a
Lennard-Jones potential
42
Parameter identification for potentials
43
Multi-scale paradigm
Show earlier: molecular dynamics provides a powerful approach to relate the
diffusion constant that appears in continuum models to atomistic trajectories
Time scale
“Empirical”
diffusion or experimental
calculations
Continuum
model parameter
force field
feeding
MD
fitting
Quantum
mechanics
(part II)
44
Length scale
Derivative of LJ potential ~ force
0.2
0.1
dφ(r)
-dφ/dr (eV/A)
F=_ = -φ'
ο
dr
0
-0.1 Fmax,LJ
φ(r)
-0.2
2 r0 3 4 5
o
r (A)
EQ r0
relates to equilibrium spacing crystal 45
Properties of LJ potential as function of
parameters ε , σ
2.394ε
σ 2 = r0
6
Fmax,LJ =
σ
r0
r0 = distance of nearest neighbors in a lattice
Image from Wikimedia Commons, http://commons.wikimedia.org
Determination of parameters for atomistic
interactions
Example (based on elastic properties) of FCC lattice
Young’s modulus
ν = 1/ 4 Shear modulus
47
Determination of parameters for atomistic
interactions
Example (based on elastic properties) of FCC lattice
Young’s modulus
ν = 1/ 4 Shear modulus
∂ 2φ ( r ) ⎡⎛ σ ⎞12 ⎛ σ ⎞ 6 ⎤
k= = φ' ' φ (r ) = 4ε ⎢⎜ ⎟ − ⎜ ⎟ ⎥
∂r 2
⎢⎣⎝ r ⎠ ⎝ r ⎠ ⎥⎦
48
Determination of parameters for atomistic
interactions
Example (based on elastic properties) of FCC lattice
Young’s modulus
ν = 1/ 4 Shear modulus
∂ 2φ ( r ) ⎡⎛ σ ⎞12 ⎛ σ ⎞ 6 ⎤
k= = φ' ' φ (r ) = 4ε ⎢⎜ ⎟ − ⎜ ⎟ ⎥
∂r 2
⎢⎣⎝ r ⎠ ⎝ r ⎠ ⎥⎦
K = 64ε / σ 3
49
Bulk modulus copper E = 140 GPa
Lennard-Jones potential – example for copper
0.2
0.1
φ (eV)
-0.1
-0.2
2 r0 3 4 5
o
r (A)
50
LJ potential – parameters for copper
3. Monte Carlo approaches
51
How to solve…
“Random sampling”
53
Monte Carlo scheme
Want:
Ω
G
A= ∫ f ( x ) dΩ
Ω
πd 2 π
AC = AC = d =1
4 4 G ⎧1 inside
f (x ) = ⎨ 54
π = 4 AC ⎩0 outside
Conventional way…
Evaluate integrand at predetermined values in the domain (e.g.
quadratic grid)
Evaluate integral at discrete points and sum up
…..
55
What about playing darts..
56
Alternative way: integration through MC
…..
N A : Attempts
made
1 G
AC = ∑
NA i
f ( xi )
Courtesy of John H. Mathews. Used with permission.
58
http://math.fullerton.edu/mathews/n2003/MonteCarloPiMod.html
Java applet: how to calculate pi
http://polymer.bu.edu/java/java/montepi/montepiapplet.html
-4 -2 2 4
-2
-4
© N. Baker. All rights reserved. This content is excluded from our Creative
60
Commons license. For more information, see http://ocw.mit.edu/fairuse.
How to apply to ensemble average?
Want:
1
< A >= ∫ ∫ A( p, r ) ρ ( p, r )drdp < A> ∑
NA i
Ai
p r
61
Challenge: sampling specific types of
distributions
We want to
Integrate a sharply-peaked
function (
f ( x ) = exp − (100 x )
12
)
Use Monte Carlo with
uniformly-distributed 1
0.4
Random numbers
drawn from here 0.2
-1 -0.5 0.5 1
62
Challenge: sampling specific types of
distributions
We want to
Integrate a sharply-peaked
( )
function
f ( x ) = exp − (100 x )
12
Use Monte Carlo with
uniformly-distributed
random numbers (e.g. here 1
from -1 to 1)
0.8
“Importance sampling”
64
Averaging over the ensemble
Property A1 Property A2 Property A3
= ( A1 + A2 + A3 )
1
Amacro
3
C1 C2 C3
65
Averaging over the ensemble
Property A1 Property A2 Property A3
= ( A1 + A2 + A3 )
1
Amacro
3
C1 C2 C3
Instead, we must average with proper weights that represent the probability
of a system in a particular microscopic state!
Amacro = ρ1 A1 + ρ 2 A2 + ρ 3 A3 =
ρ1 ( r1 , p1 ) A1 ( r1 , p1 ) + ρ 2 ( r2 , p2 ) A2 ( r2 , p2 ) + ρ 3 ( r3 , p3 ) A3 ( r3 , p3 )
66
Probability to find system in state C1
How to apply to ensemble average?
NA
A exp(− H (rA , p A ) / (k BT ))
< A >= ∑ NA
i =1
∑ exp(− H (r , p ) / (k T ))
i =1
A A B
1 NA
< A >= ∑
N A i =1
A( rA , p A )
Corresponding to…
< A >= ( A1 + A2 + A3 )
1
< A >= (ρ1 A1 + ρ 2 A2 + ρ 3 A3 )
1
3 3 68
Importance sampling
1 ⎡ H ( p, r ) ⎤
< A >= ∫ ∫ A( p, r ) ρ ( p, r )drdp ρ ( p, r ) = exp ⎢− ⎥
p r
Q ⎣ k B T ⎦
69
Importance sampling: Metropolis algorithm
Concept:
State A State B
Random move to 71
new state B
Metropolis-Hastings Algorithm: NVT
Have: State A (initial state) + energy function H(A)
⎡ H ( B ) − H ( A) ⎤
if p < exp ⎢ − ⎥ a=1
⎣ k B T ⎦
else
a=0
a=variable either 0 or 1
endif
(used to detect acceptance
endif of state B when a=1)
Step 3: if a = 1 then accept state B
1
∑
endif
“Downhill” moves always accepted, uphill moves < A >= A(i )
72
with finite (“thermal”) probability N A i =1.. N A
Metropolis-Hastings Algorithm: NVT
Have: State A (initial state) + energy function H(A)
1
∑
endif
“Downhill” moves always accepted, uphill moves < A >= A(i )
73
with finite (“thermal”) probability N A i =1.. N A
Metropolis-Hastings Algorithm: NVT
Have: State A (initial state) + energy function H(A)
1
∑
endif
“Downhill” moves always accepted, uphill moves < A >= A(i )
74
with finite (“thermal”) probability N A i =1.. N A
Metropolis-Hastings Algorithm: NVT
Have: State A (initial state) + energy function H(A)
⎡ H ( B ) − H ( A) ⎤
if p < exp ⎢ − ⎥ a=1
⎣ k B T ⎦
else
a=0
a=variable either 0 or 1
endif
(used to detect acceptance
endif of state B when a=1)
Step 3: if a = 1 then accept state B
endif
75
Metropolis-Hastings Algorithm: NVT
Have: State A (initial state) + energy function H(A)
repeat N A times ⎡ H ( B ) − H ( A) ⎤
if p < exp ⎢ − ⎥ a=1
⎣ k B T ⎦
else
a=0
a=variable either 0 or 1
endif
(used to detect acceptance
endif of state B when a=1)
Step 3: if a = 1 then accept state B
1
∑
endif
< A >= A(i )
76
N A i =1.. N A
Arrhenius law - explanation
H ( B ) > H ( A)
E
H (B ) Consider two states, A and B
H ( A) H ( B ) − H ( A)
iteration
A B
H ( B ) > H ( A)
E E
H (B )
H ( A) H ( B ) − H ( A) H ( B ) − H ( A)
iteration radius
Probability
of success ⎡ H ( B ) − H ( A) ⎤
of overcoming the exp ⎢ − ⎥
barrier at ⎣ k B T ⎦ 78
temperature T
Arrhenius law - explanation
Probability
⎡ H ( B ) − H ( A) ⎤
of success exp ⎢ − ⎥
⎣ ⎦
of overcoming the k T
barrier B
repeat N A times ⎡ H ( B ) − H ( A) ⎤
if p < exp ⎢− ⎥ a=1
⎣ k B T ⎦
else
a=0
a=variable either 0 or 1
endif
(used to detect acceptance
endif of state B when a=1)
Step 3: if a = 1 then accept state B
1
∑
endif
< A >= A(i )
80
N A i =1.. N A
Summary: MC scheme
Have achieved:
1
< A >= ∫ ∫ A( p, r ) ρ ( p, r )drdp < A> ∑ Ai
N A i =1.. N A
p r
Note:
• Do not need forces between atoms (for accelerations)
• Only valid for equilibrium processes
81
Property calculation with MC: example
Iteration
“MC time” 82
Other ensembles/applications
Move sets can be adapted for other cases, e.g. not just
move of particles but also rotations of side chains
(=rotamers), torsions, etc.
Trial moves
Rigid body translation
Rigid body rotation
Internal conformational
changes (soft vs. stiff modes)
Titration/electronic states
…
Questions:
How “big” a move should we
take? Image by MIT OpenCourseWare.
84
After N. Baker (WUSTL)
Monte Carlo moves
How “big” a move
should we take?
Smaller moves:
better acceptance
rate, slower
sampling
Bigger moves:
faster sampling,
poorer acceptance
rate
For information about citing these materials or our Terms of use, visit http://ocw.mit.edu/terms.