History, Development and Basics of Molecular Dynamics Simulation - - PowerPoint PPT Presentation

history development and basics of molecular dynamics
SMART_READER_LITE
LIVE PREVIEW

History, Development and Basics of Molecular Dynamics Simulation - - PowerPoint PPT Presentation

History, Development and Basics of Molecular Dynamics Simulation Technique A way to do experiments in computers (Odourless) Creating virtual matter and then studying them in computers S. Yashonath Solid State and Structural Chemistry Unit


slide-1
SLIDE 1

History, Development and Basics of Molecular Dynamics Simulation Technique

A way to do experiments in computers (Odourless) Creating virtual matter and then studying them in computers

  • S. Yashonath

Solid State and Structural Chemistry Unit Indian Institute of Science Bangalore 560 012

National Workshop on Atomistic Simulation Techniques, IIT, Guahati

slide-2
SLIDE 2

Dedication

  • Prof. Aneesur Rahman, a gentle scientist, from

Hyderabad, India

slide-3
SLIDE 3

Acknowledgements

All my students :

  • P. Santikary(ebay, USA),

Sanjoy Bandyopadhyay (IIT, Kgp),

  • P. K. Padmanabhan (IIT, Guwahati),
  • R. Chitra(Bangalore),

A.V. Anil Kumar(NISER, Bhubhaneswar), S.Y. Bhide(Dow Chemicals, Mumbai), C.R. Kamala(GE, USA),

  • P. K. Ghorai(IISER, Kolkata),

Manju Singh (Bangalore), B.J. Borah (private univ., Baroda),

  • V. Srinivas Rao (U. Queens, Australia)
slide-4
SLIDE 4

Plan of the talk : Introduction Classical mechanics : basics Statistical mechanics : basics Intermolecular potentials Numerical integration Algorithms Computational Tricks Trajectory Equilibrium and time dependent properties Microcanonical ensemble Other ensembles

slide-5
SLIDE 5

What is molecular dynamics ?

A way of solving equations of motion numerically (hence you need a computer). Equations of motion are coupled differential equations and hence can not be solved analytically. You can get all properties about the system being simulated (from statistical mechanical relationships)

slide-6
SLIDE 6

Subjects involved in MD

  • Classical mechanics
  • Statistical mechanics
  • Intermolecular potential
slide-7
SLIDE 7

History and evolution of MD

  • 1953: Metropolis Monte Carlo (MC) by Metropolis,

Rosenbluth, Rosenbluth, Teller & Teller –simulation of a dense liquid of 2D spheres

  • 1955: Fermi, Pasta, and Ulam

–simulation of anharmonic 1D crystal

  • 1956: Alder and Wainwright

–molecular dynamics (MD) simulation of hard spheres (1958: First X‐ray structure of a protein)

  • 1960: Vineyard group

– Simulation of damaged Cu crystal

slide-8
SLIDE 8
  • 1964: Rahman

–MD simulation of liquid Ar

  • 1969: Barker and Watts

–Monte Carlo simulation of water

  • 1971: Rahman and Stillinger

–MD simulation of water * 1972: I.R. McDonald

  • NPT simulation using Monte Carlo
slide-9
SLIDE 9
slide-10
SLIDE 10
slide-11
SLIDE 11

Aneesur Rahman in his younger days

slide-12
SLIDE 12

Post 1980 developments : the extended Hamiltonian methods

  • 1980 : H. C. Andersen
  • MD method for NPH, NVT, NPT ensembles
  • 1980 : M. Parrinello and A. Rahman
  • Parrinello-Rahman method for study of crystal

structure transformation with corrections from S. Yashonath

  • 1986 : R. Car and M. Parrinello

Ab initio MD (includes electronic degrees of freedom)

slide-13
SLIDE 13

Alder & Wainright Hard sphere 1956 Metropolis et al Monte Carlo 1953 Fermi, Pasta, Ulam 1D crystal 1955 Simulation of damaged Cu crystal Vineyard 1960 Rahman MD of argon 1964 Barker and Watts MC of water 1969 Rahman and Stillinger MD simulation of water, 1971 NPT of argon McDonald 1972

A chart of development of simulation methods

slide-14
SLIDE 14

Feynman vs. Einstein

  • “…everything that is living can be understood

in terms of jiggling and wiggling of atoms.” R. Feynman.

  • Everything Should Be Made as Simple as

Possible, But Not Simpler : A. Einstein

slide-15
SLIDE 15

MD jargon : Terms often used

  • Monatomic : single atom or molecule with

single atom

  • Polyatomic : molecule with multiple atoms
  • Euler angles and quaternions
  • Images
  • Simulation cell, parallelopiped
  • Cut-off radius, long-range and short-range

interactions

slide-16
SLIDE 16

Simple microcanonical ensemble MD

  • ai = /mi

How does one get force Fi ? From the intermolecular potential : = grad of potential We need : or potential φi.

slide-17
SLIDE 17

A knowledge of intermolecular interaction potential is therefore central to molecular dynamics. Without it, you can not perform a MD simulation. Before we go into the various potential functions, we need to understand the

  • rigin of the intermolecular interaction. What are these and how they originate ?

Move to MD

slide-18
SLIDE 18

Molecular Dynamics : the nitty gritty details !

through the slides of Prof. P. K. Padmanabhan

slide-19
SLIDE 19

Two Excellent Books

slide-20
SLIDE 20

=

i j ij i

F F

i i i

m F a / =

  • 2

3

F12 F23 F13

F1 = F12 + F13 F3 = F31 + F32 F2 = F21 + F23

Newton’s IInd Law:

Three Atoms 1

ij ij

U F −∇ =

slide-21
SLIDE 21
  • 1

2 3 Progress in time…

x(t) → x(t+Δt) y(t) → y(t+Δt) z(t) → z(t+Δt)

  • 3

1 2

Taylor Expansion: too crude to use it as such!! Δt ~ 1-5 fs (10-15sec) Advance positions & velocities of each atom:

slide-22
SLIDE 22

A good Integrator …for example!

Verlet Scheme: Newton’s equations are time reversible, Summing the two equations, Now we have advanced our atoms to time t+Δt ! ! Velocity of the atoms:

slide-23
SLIDE 23
  • 3

1 2

  • 3

1 2

F12 F23 F13

…Atoms move forward in time! t+Δt t+2Δt

  • 1.

Calculate 2. Update 3. Update The main O/P of MD is the trajectory.

Δt ~ 1-5 fs (10-15sec)

slide-24
SLIDE 24

The missing ingredient… Forces?

Gravitational Potential:

r m Gm U

2 1

− =

too weak, Neglect it!! Force is the gradient of potential:

!

r q q U

2 1

4 1 πε =

However, this pure monopole interaction need not be present!

slide-25
SLIDE 25
  • 2. Born-Mayer (Tosi-Fumi) Potential:

Interatomic forces for simple systems

  • 1. Lennard-Jones Potential:

Gives an accurate description of inert gases (Ar, Xe, Kr etc.) Faithful in describing pure ionic solids (NaCl, KCl, NaBr etc.)

(non-bonded interactions) Instantaneous dipoles

slide-26
SLIDE 26

The Lennard-Jones Potential

for Ar :

(kB)

Pauli’s repulsion “dispersion” interaction

r(nm)

) )( 6 12 ( 4

8 6 14 12 j i x ij

x x r r F − − = σ σ ε

ij ij

U F −∇ =

i i i x ij

x r r U x U F ∂ ∂ ∂ ∂ − = ∂ ∂ − =

Å

Should be known apriori.

slide-27
SLIDE 27

Length and Times of MD simulation

Typical experiment sample contains ~ 1023 atoms! Typical MD simulations (on a single CPU) a) Can include 1000 – 10,000 atoms (~20-40 Å in size)! b) run length ~ 1 –10 ns (10-9 seconds)! Consequence of system size: Larger fraction of atoms are on the surface,

r dr m r m dr r N Ns 3 / 3 4 / 4

3 2

= = ρ π ρ π

7 8

10 ~ 10 ) 3 ( 3 ~ .) (

Α Α Expt N Ns 45 . ~ 20 ) 3 ( 3 ~ ) ( Α Α MD N Ns

Surface atoms have different environment than bulk atoms!

slide-28
SLIDE 28

L The Simulation Cell

Insert the atoms in a perfectly porous box – simulation super-cell. The length of the box is determined as, L3 = M/Dexp = N*m/Dexp Dexp = Expt. density; m = At. mass; N= No. of atoms; If crystal structure/unit cell parameters are unknown (eg., liquids) Assign positions and velocities(=0) for each atom.

slide-29
SLIDE 29

~20 A Periodic Boundary Condition

In 3-D the simulation simulation- super-cell is surrounded by 26++ image cells!

X L~20 A Y

n1, n2, n3 ∈

∈ ∈ ∈ -1,0, 1,

x’ = x + n1L y’ = y + n2 L z’ = z + n3 L Image coordinates: Now, there are no surface atoms! Construct Periodic Images:

slide-30
SLIDE 30

~20 A Minimum Image Convention ~20 A Rc

A large enough system (ie, bigger sim.-cell) is chosen such that Rc ≤ ≤ ≤ ≤ L/2. Thus particle i interact either with particle j or one of its images, but not both! Interactions between atoms separated by a chosen cut-off distance (Rc) or larger (ie, rij > Rc) are neglected. Rc is chosen such that U(Rc) ~ 0

slide-31
SLIDE 31
  • t = 0

t = 10 pico-sec As Time Progress…

How to find the image of j that is nearest to i ?

i j

) )( 6 12 ( 4

8 6 14 12 j i ij ij x ij

x x r r F − − = σ σ ε Force between i & j :

i i j

  • j’

L L

slide-32
SLIDE 32

folding

If you have coordinates which are anywhere between (-infinity,infinity), and if you want to bring the coordinates between (0,L) then this procedure is called folding. Assuming L is 10, we see that : (234,-546) (4,-6) (4,4). If we have L = 10, we get the same answer. However, if L = 12, 12 x 19 = 228 and 12 x 45 = 540. Therefore, you get (234-228, -546+540) (6,-6) (6,6).

slide-33
SLIDE 33

Unfolding

  • If you have coordinates between (0,L) at many

time steps then can you unfold it ? That is, can you map it to the range (-infinity, infinity) ?

  • Timestep 1 : (4,3), 2: (3.5,3.4), 3: (3.3,3.6),

4:(3.09,3.9), 5:(2.2,4.2), 6: (1.4,4.3), 7: (0.3, 5.0), 8: (9.4, 6.6)

  • Noting that coordinates between step 7 and 8

have large difference (of the order of L), then we can guess that they have been folded. Then we can see that the unfolded coordinates at step 8 are (-0.6,6.6)

slide-34
SLIDE 34

The three lines of code…

dx = x(j) – x(i) dy = y(j) – y(i) dz = z(j) – z(i) dx = dx – L*ANINT(dx/L) dy = dy – L*ANINT(dy/L) dz = dz – L*ANINT(dz/L)

Define,

ANINT(1.51) = 2 ANINT(3.49) = 3 ANINT(-3.51) = -4 ANINT(-11.39) = -11.0

rij_2 = (dx**2 + dy**2 + dz**2)

) )( 6 12 ( 4

8 6 14 12 j i ij ij x ij

x x r r F − − = σ σ ε

rij_8 = rij_2**4 rij_14 = rij_2**7

slide-35
SLIDE 35
  • …demonstration

j i

  • j’

L=10 A L=10 A (2,8) (0,0) (-1,6) (19,-4)

dx = dx – L*AINT(dx/L) dy = dy – L*AINT(dy/L) xi-xj=(2-19)-10*ANINT{(2-19)/10}= -17 - (-10*2)=3

  • j”

yi-yj=(8+4)-10*ANINT{12/10}= 12 - (10*1)=2

(9,6)

slide-36
SLIDE 36

The Lennard-Jones Potential

for Ar :

(kB)

Pauli’s repulsion “dispersion” interaction

r(nm)

) )( 6 12 ( 4

8 6 14 12 j i x ij

x x r r F − − = σ σ ε

ij ij

U F −∇ =

i i i x ij

x r r U x U F ∂ ∂ ∂ ∂ − = ∂ ∂ − =

Å

Should be known apriori.

slide-37
SLIDE 37

The structure of a simple MD code

slide-38
SLIDE 38

Remarks on Statistical Ensemble

There is no energy coming in Or going out of our system of atoms: micro-canonical (NVT) ensemble. Thus the total energy (E) and total linear momentum of the system should be conserved – through out our simulation!

  • =

= N i i v i m K 1 2 2 1

  • =

=

N i i

U U

1

2 1

U K E + =

remain const. (fluctuates) (fluctuates) Transient phase Equilibrated state

slide-39
SLIDE 39

Calculating Temperature

Equipartition theorem: Average temperature :

1

1 ( )

M m

m

T T t M

=

  • <

>=

M – no. of MD steps performed

  • 1

2 3

Even if we start with vi =0, the system picks up non-zero v (hence some T) as time progress! This some T(!) need not be what we want! So how do we control T?

  • =

N i i iv

m t T Nk

2

2 1 ) ( 2 3

Instantaneous temperature:

  • =

N i i iv

m Nk t T

2

3 1 ) (

slide-40
SLIDE 40

Controlling the Temperature ?

Velocity rescaling:

  • =

N i i iv

m Nk T

2

3 1

Actual temp. at some instant.

1 2 Tr v v r T

  • =
  • This instantly bring the T = Tr !

T T T T T

r r

∆ + > < ∆ −

If T is out side the fluctuation window around Tr: Then scale all velocities: This phase of the simulation should not be used for averaging! However to sustain the temp. around Tr we will need to do this procedure several times at intervals.

slide-41
SLIDE 41

Calculating thermodynamic quantities Average Pressure, Heat Capacity, Cv: Average Energy,

  • =

>= <

M i i

U M U

1

1

slide-42
SLIDE 42

Remarks on Energy Conservation

  • Start from the expt. crystal structure if available.
  • Else? Start from good guess! (like, in bio-systems, polymers, liquids)
  • And, perform an energy minimization!

(Routines available in standard packages. Or, do an MD with constant velocity scaling.)

  • Reaching a well equilibrated structure can be very very costly!
  • good check on your code!
  • time integrator!
  • on time step (Δt) used!

6 ~ 10 / E ps E ∆ −

  • Energy conservation,
  • Fluctuation of U(t) about a mean helps to identify equilibrated

system.

slide-43
SLIDE 43

Remarks on Interatomic Forces

  • Development of good force fields (FF) can be a tough task!
  • FF assume that electronic clouds around the nucleus of atoms is

intact irrespective of the environment around the atom! This can be a poor assumption for highly polarizable atoms/ions! Solution? Develop a shell model of atoms/ions! Or DFT-based ab-initio (Car-Parrinello) MD calculations ! FF’s are developed by empirical methods or ab-initio calculations.

slide-44
SLIDE 44

Comments on Classical MD

Extensively employed to understand Physical processes at atomic resolution Phase Transitions, Diffusion and transport properties, Local structural and short-time relaxation of crystalline and amorphous solids liquids solid-fluid interfaces nano-clusters Very powerful in studying a variety of physical phenomena and under several external conditions (T & P). And, serves a very useful bridge between experiment and theory! Not useful in the study of electronic properties! Not powerful enough to describe chemical reactions!

slide-45
SLIDE 45

Structural Characterization

Radial Distribution Function (rdf)

Rdf of fcc-solid

Running Coordination Numbers:

slide-46
SLIDE 46

Dynamical Properties: Diffusion Coefficient Fick’s Law: Continuity Eq.: Diffusion Eq.: Einstein’s relation:

  • Nr. MSD

T fk D Nq

B

/

2

= σ

Nernst-Einstein’s relation:

slide-47
SLIDE 47

CaF2

MSD time

…Diffusion Coefficient: CaF2 F- Ca2+

T fk D Nq

B

/

2

= σ

PRB, 43, 3180,1991.

slide-48
SLIDE 48

…Dynamical Properties: Vibrational Spectrum Velocity Autocorrelation Spectrum, Water @300 K Power Spectrum, Helps interpreting IR spectrum.

slide-49
SLIDE 49

…Structural Properties: Site Occupancies PRL 97, 166401 (2006)

slide-50
SLIDE 50

Ion Channel’s In NASICON’s

Supriya Roy and P.P. Kumar, PCCP (2014).

Na3Zr2Si2PO12

slide-51
SLIDE 51

Simulation of Live-Virus!!

  • Charge distribution around the virus