molecular dynamics simulations an introduction texpoint fonts used in emf. read the texpoint manual...

40
Molecular Dynamics Simulations An Introduction Pingwen Zhang

Upload: barrie-jenkins

Post on 30-Dec-2015

218 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Molecular Dynamics Simulations An Introduction TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAA A A A A Pingwen Zhang

Molecular Dynamics Simulations

An Introduction

Pingwen Zhang

Page 2: Molecular Dynamics Simulations An Introduction TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAA A A A A Pingwen Zhang

Molecular Dynamics

• Definitions, Motivations

• Force fields

• Algorithms and computations

• Analysis of Data

Page 3: Molecular Dynamics Simulations An Introduction TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAA A A A A Pingwen Zhang

• Molecular dynamics (MD) is a computer simulation technique:

the time evolution of interacting atoms is followed by integrating their equations of motion.

• We follow the laws of classical mechanics, and most notably Newton's law:

Molecular dynamics - Introduction

F i = mi ai

ai = d2ri =dt2

Page 4: Molecular Dynamics Simulations An Introduction TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAA A A A A Pingwen Zhang

F = MA

exp(-E/kT)

domain

quantumchemistry

moleculardynamics

Monte Carlo

mesoscale continuum

Length Scale

Tim

e S

cale

10-10 M 10-8 M 10-6 M 10-4 M

10-12 S

10-8 S

10-6 S

Scale in Simulations

Page 5: Molecular Dynamics Simulations An Introduction TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAA A A A A Pingwen Zhang
Page 6: Molecular Dynamics Simulations An Introduction TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAA A A A A Pingwen Zhang

• Modeling the motion of a complex molecule by solving the wave functions of the various subatomic particles would be accurate…

• But it would also be very hard to program and take more computing power than anyone has!

Why Not Quantum Mechanics?

Page 7: Molecular Dynamics Simulations An Introduction TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAA A A A A Pingwen Zhang

• Given an initial set of positions and velocities, the subsequent time evolution is in principle completely determined.

• Atoms and molecules will ‘move’ in the computer, bumping into each other, vibrating about a mean position (if constrained), or wandering around (if the system is fluid), oscillating in waves in concert with their neighbours, perhaps evaporating away from the system if there is a free surface, and so on, in a way similar to what real atoms and molecules would do.

Molecular dynamics - Introduction

Page 8: Molecular Dynamics Simulations An Introduction TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAA A A A A Pingwen Zhang

• The computer experiment.

• In a computer experiment, a model is still provided by theorists, but the calculations are carried out by the machine by following a recipe (the algorithm, implemented in a suitable programming language).

• In this way, complexity can be introduced (with caution!) and more realistic systems can be investigated, opening a road towards a better understanding of real experiments.

Molecular dynamics -Motivation

Page 9: Molecular Dynamics Simulations An Introduction TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAA A A A A Pingwen Zhang

Molecular dynamics -Motivation

• The computer calculates a trajectory of the system

• 6N-dimensional phase space (3N positions and 3N momenta).

• A trajectory obtained by molecular dynamics provides a set of conformations of the molecule,

• They are accessible without any great expenditure of energy (e.g. breaking bonds)

• MD also used as an efficient tool for optimisation of structures (simulated annealing).

Page 10: Molecular Dynamics Simulations An Introduction TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAA A A A A Pingwen Zhang

Molecular dynamics - Motivation

• MD allows to study the dynamics of large macromolecules

• Dynamical events control processes which affect functional properties of the bio- molecule (e.g. protein folding).

• Drug design is used in the pharmaceutical industry to test properties of a molecule at the computer without the need to synthesize it.

Page 11: Molecular Dynamics Simulations An Introduction TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAA A A A A Pingwen Zhang

Molecular dynamics – Time Limitations

• Typical MD simulations are performed on systems containing millions of atoms

• Simulation times: picoseconds to nanoseconds.

• A simulation is reliable when the simulation time is much longer than the relaxation time of the quantities we are interested in.

Page 12: Molecular Dynamics Simulations An Introduction TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAA A A A A Pingwen Zhang

Historical Perspective on MD

Page 13: Molecular Dynamics Simulations An Introduction TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAA A A A A Pingwen Zhang

Procedure of MD

Page 14: Molecular Dynamics Simulations An Introduction TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAA A A A A Pingwen Zhang

Initialization

• Position– X-ray, NMR, simulation or analytical calculation

• Velocity

– The initial velocities are assigned taking them from a Maxwell distribution at a certain temperature T

• Another possibility is to take the initial positions and velocities to be the final positions and velocities of a previous MD run

Page 15: Molecular Dynamics Simulations An Introduction TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAA A A A A Pingwen Zhang

Choosing the Time Step t• No MD follows the true trajectories for very many tim

e steps – errors always accumulate. The time over which the MD trajectory = true trajectory is called correlation time.

• No MD truly conserves energy since there are always errors. The goal is to have a constant average E with fluctuations as small as possible

• Time step t should be as large as possible to still get accurate trajectories (on the time scale needed) and conserve of energy

• In general, t should be ≈0.01 x the fastest behavior of your system (E.g., atoms oscillate about once every 10-12

s in a solid MD time steps are ≈ 10-14 s in simulations of solids

Page 16: Molecular Dynamics Simulations An Introduction TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAA A A A A Pingwen Zhang

Potentials

• ab initio potential– Quantum calculation, DFT, OFDFT, Tight-binding,

etc.

• Empirical potential– Comes from quantum – Consistent with continuum – Fit the database: elastic moduli, surface energy, etc.

• Connection with continuum – Constitutive relation

Page 17: Molecular Dynamics Simulations An Introduction TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAA A A A A Pingwen Zhang

The Lennard-Jones Potential

612

4rr

ruLJ

c

cLJ

rr

rrruru

0

c

ccLJLJ

rr

rrrururu

0

•The truncated and shifted Lennard-Jones potential

•The truncated Lennard-Jones potential

•The Lennard-Jones potential

Page 18: Molecular Dynamics Simulations An Introduction TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAA A A A A Pingwen Zhang

FENE potential

• FENE stands for:

Finitely extensible nonlinear elastic

E = 4²[(¾r

)12 ¡ (¾r

)6]¡ 0:5· ln[1¡ (r

Ro)2]

Page 19: Molecular Dynamics Simulations An Introduction TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAA A A A A Pingwen Zhang

EAM potential

• Embedded Atom Method

works for metallic solids

• Two contributions

• nuclear-nuclear interaction

• embedding an atom to the electron cloud

E i = F®

0

@X

i6=j

½®ri j

1

A +12

X

i6=j

©®̄ ri j

Page 20: Molecular Dynamics Simulations An Introduction TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAA A A A A Pingwen Zhang

Potential for Covalent Carbon

• The Stillinger-Weber potential

• The Tersoff Potential

Not only accounts for the contribution of bond lengths, but also for the bond angles

Page 21: Molecular Dynamics Simulations An Introduction TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAA A A A A Pingwen Zhang

Non-Bonded Atoms

There are two potential functions we need to be concerned about between non-bonded atoms:

• van der Waals Potential

• Electrostatic Potential

Page 22: Molecular Dynamics Simulations An Introduction TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAA A A A A Pingwen Zhang

The van der Waals Potential

• Atoms with no net electrostatic charge will still tend to attract each other at short distances

• Atoms tend to repel when they get too close

The Constants A and C depend on the atom types, and are derived from experimental data

Page 23: Molecular Dynamics Simulations An Introduction TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAA A A A A Pingwen Zhang

The Electrostatic Potential: Coulomb’s Law

• Opposite Charges Attract• Like Charges Repel• The force of the attraction is inversely

proportional to the square of the distance

Page 24: Molecular Dynamics Simulations An Introduction TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAA A A A A Pingwen Zhang

Bonded Atoms

There are three types of interaction between bonded atoms:

• Stretching along the bond

• Bending between bonds• Rotating around bonds

Page 25: Molecular Dynamics Simulations An Introduction TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAA A A A A Pingwen Zhang

Bond Length Potentials

Both the spring constant and the ideal bond length are dependent on the atoms involved.

Page 26: Molecular Dynamics Simulations An Introduction TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAA A A A A Pingwen Zhang

Bond Angle Potentials

The spring constant and the ideal angle are also dependent on the chemical type of the atoms.

Page 27: Molecular Dynamics Simulations An Introduction TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAA A A A A Pingwen Zhang

Torsional Potentials

Described by a dihedral angle and coefficient of symmetry (n=1,2,3), around the middle bond.

Page 28: Molecular Dynamics Simulations An Introduction TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAA A A A A Pingwen Zhang

Effects of solvents• Implicit models

– “Generalized Born” solvent Model

coarse-graining the effects of solvent by approximately solving the Poisson equation

• Explicit models– Explicitly adding the water

molecules which are regarded as rigid bodies

Page 29: Molecular Dynamics Simulations An Introduction TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAA A A A A Pingwen Zhang

Integrator: Verlet Algorithm

)()()()(2)( 42 tOtatttrtrttr

)()(2

1)()()( 32 tOtatttvtrttr

)()(2

1)()()( 32 tOtatttvtrttr

Start with {r(t), v(t)}, integrate it to {r(t+t), v(t+t)}:

{r(t), v(t)}

{r(t+t), v(t+t)}

The new position at t+t:

Similarly, the old position at t-t:

(1)

(2)

Add (1) and (2):

Thus the velocity at t is:

(3)

)())()((2

1)()( 2tOttrttr

ttrtv

(4)

Page 30: Molecular Dynamics Simulations An Introduction TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAA A A A A Pingwen Zhang

Verlet Scheme

• Is time reversible

• Does conserve volume in phase space

• (Is symplectic)

• Doe not suffer from energy drift

Page 31: Molecular Dynamics Simulations An Introduction TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAA A A A A Pingwen Zhang

Velocity Verlet scheme

m

ttftftvttv

m

tftttvtrttr

2

)()()()(

)(

2

1)()()( 2

• Velocity calculated explicitly

• Possible to control the temperature

• Stable in long time simulation

• Most commonly used algorithm

Page 32: Molecular Dynamics Simulations An Introduction TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAA A A A A Pingwen Zhang

Central Simulation box

rc

Periodic Boundary Conditions

Minimum Image

Page 33: Molecular Dynamics Simulations An Introduction TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAA A A A A Pingwen Zhang

Ewald Sum: split into two teems, real space sum and k-space sum

Periodic Boundary Conditions

Ewald Method

Page 34: Molecular Dynamics Simulations An Introduction TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAA A A A A Pingwen Zhang

Saving CPU time

Cell list

Verlet list

Page 35: Molecular Dynamics Simulations An Introduction TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAA A A A A Pingwen Zhang

Ensembles

• NVE – micro-canonical ensemble

• NVT – canonical ensemble• NPT – grand-canonical

ensemble

)1(1

T

TB

TT

)],(exp[

)],(exp[

qpHdpdq

qpHNVT

)]),((exp[

)]),((exp[

PVqpHdpdq

PVqpHNPT

• Temperature control– Berendsen thermostat (velocity

rescaling)– Andersen thermostat (velocity

resampling)– Nose-Hoover chain

• Pressure control– Berendsen volume rescaling– Andersen piston

3 )(1 PPBP

P

Page 36: Molecular Dynamics Simulations An Introduction TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAA A A A A Pingwen Zhang

MD as Optimization tool Simulated Annealing

• Most popular global optimization algorithm

• Start at high T, decrease T in small steps (cooling schedule)

• Easy to understand & implement• Drawback: might be easily trapped in

local minima

Cooling Schedules:

Page 37: Molecular Dynamics Simulations An Introduction TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAA A A A A Pingwen Zhang

Molecular dynamics – Analyses

•The simplest way of analyzing the system during (or after) its dynamic motion is looking at it.

•One can assign a radius to the atoms, represent the atoms as balls having that radius, and have a computer program construct a ‘photograph’ of the system.

•We may also color the atoms according to its properties (charge, displacement, ‘temperature’…)

Page 38: Molecular Dynamics Simulations An Introduction TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAA A A A A Pingwen Zhang

Molecular dynamics – Analyses

•We also can measure instantaneous and time averages of various physically important quantities

•To measure time averages: If the instantaneous values of some property A at time t is

then its average is

where NT is the number of steps in the trajectory

A(t) = f (r1(t); : : :;rN (t);v1(t);: : :;vN (t))

< A >=1

NT

N TX

t=1

A(t)

Page 39: Molecular Dynamics Simulations An Introduction TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAA A A A A Pingwen Zhang

Softwares

• AMBER

• CHARMM

• VASP (DFT)

• XMD

• CPMD(DFT) (Car-Parrinello MD)

Page 40: Molecular Dynamics Simulations An Introduction TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAA A A A A Pingwen Zhang

References

• M. P. Allen, D. J. Tildesley (1989) Computer simulation of liquids. Oxford University Press.

• Frenkel Daan; Smit, Berend [2001]. Understanding Molecular Simulation : from algorithms to applications. Academic Press. D. C.

• Rapaport (1996) The Art of Molecular Dynamics Simulation.

• Tamar Schlick (2002) Molecular Modeling and Simulation. Springer.