Top Banner
Srikanth Sastry Jawaharlal Nehru Centre for Advanced Scientific Research Bangalore SCHOOL ON BIOMOLECULAR SIMULATIONS November 6 - 16, 2007 Introduction to simulation methodologies
23

Introduction to simulation methodologies Srikanth Sastry t… · Srikanth Sastry Jawaharlal Nehru Centre for Advanced Scientific Research Bangalore SCHOOL ON BIOMOLECULAR SIMULATIONS

Jul 17, 2018

Download

Documents

phungnhan
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Introduction to simulation methodologies Srikanth Sastry t… · Srikanth Sastry Jawaharlal Nehru Centre for Advanced Scientific Research Bangalore SCHOOL ON BIOMOLECULAR SIMULATIONS

Srikanth SastryJawaharlal Nehru Centre for

Advanced Scientific ResearchBangalore

SCHOOL ON BIOMOLECULAR SIMULATIONSNovember 6 - 16, 2007

Introduction to simulation methodologies

Page 2: Introduction to simulation methodologies Srikanth Sastry t… · Srikanth Sastry Jawaharlal Nehru Centre for Advanced Scientific Research Bangalore SCHOOL ON BIOMOLECULAR SIMULATIONS

Big Picture

System of Interest,

PROBLEM

Computer Simulation

Solution/Understanding

What do we do, exactly?

Page 3: Introduction to simulation methodologies Srikanth Sastry t… · Srikanth Sastry Jawaharlal Nehru Centre for Advanced Scientific Research Bangalore SCHOOL ON BIOMOLECULAR SIMULATIONS

Computer Simulation

Setting up the simulation

Integrate equations of motion.Generate trajectory

Make “measurements” -Calculate quantities of interest

SystemInteraction potentialState parameters

Initialization: Read in config.

Initialize velocities, etc

Ensemble

Boundary conditionsIntegration

scheme

Neighbor lists

ConstraintsMulti step Long range Interactions

Trunction of potential

Goodness of Simulation:

Equilibration etc

Quantities of Interest. Statistics

Page 4: Introduction to simulation methodologies Srikanth Sastry t… · Srikanth Sastry Jawaharlal Nehru Centre for Advanced Scientific Research Bangalore SCHOOL ON BIOMOLECULAR SIMULATIONS

• Exact or satisfactory statistical mechanical calculation ofproperties of dense systems (liquids, solids, biomolecules)possible only in a limited number of cases.

• Computer simulations (in particular, molecular dynamics) offersmethod to study properties of many particle systemscomputationally.

• Here, we are interested in classical systems, but inclusion ofquantum aspects possible.

• Biomolecular and other “soft” systems -- temperature and entropyplay essential role, though energy optimization is often goodenough.

• Non-equilibrium studies also relevant (eg., protein unfoldingsimulations)

• Integrate equations of motion to obtain trajectory.• Trajectory provides ensemble of configurations to study

equilibrium properties, and permits study of dynamics.

Why simulations?

Page 5: Introduction to simulation methodologies Srikanth Sastry t… · Srikanth Sastry Jawaharlal Nehru Centre for Advanced Scientific Research Bangalore SCHOOL ON BIOMOLECULAR SIMULATIONS

• Systems of interest: S. Vishveshwara, M. Bansallectures (also MRS Rao intro) outlinedproblems/systems of interest.

• Interaction potentials: Satyavani Vemparala lectureon force fields.

• State parameters: Typically ambient conditions, butalso study behavior with changes in temperature etc.

• Initial conditions: In biomolecular simulations, typicalto start with archived structures (PDB. Tutorials)

• Velocities of particles are generated randomly,according to temperature of the simulation.

Setting up simulations

Page 6: Introduction to simulation methodologies Srikanth Sastry t… · Srikanth Sastry Jawaharlal Nehru Centre for Advanced Scientific Research Bangalore SCHOOL ON BIOMOLECULAR SIMULATIONS
Page 7: Introduction to simulation methodologies Srikanth Sastry t… · Srikanth Sastry Jawaharlal Nehru Centre for Advanced Scientific Research Bangalore SCHOOL ON BIOMOLECULAR SIMULATIONS

• In most simulations, one wishes to studyproperties “typical” to a given state point,ensemble.

• How to ensure properties are typical?• Initial configurations generally a-typical (eg,

protein + water)• Run simulation till properties “settle down”• Ex: energy, MSD• MSD for atoms with well defined average

position should saturate (residue); otherwise,reach diffusive regime (solvent)

Equilibration

Page 8: Introduction to simulation methodologies Srikanth Sastry t… · Srikanth Sastry Jawaharlal Nehru Centre for Advanced Scientific Research Bangalore SCHOOL ON BIOMOLECULAR SIMULATIONS

• Typical thermodynamic ensembles of interest: (NVE),(NVT), (NPT)

• Large homogeneous systems: The choice ofensemble doesn’t make a difference for averageproperties (eg, energy), but makes difference tofluctuations (eg, volume fluctuations).

• In the presence of phase transitions, ensemblechoice makes a big difference.

• Integration schemes are harder (NVE) > (NVT) >(NPT).

Integration of equation of motion: Ensemble

Page 9: Introduction to simulation methodologies Srikanth Sastry t… · Srikanth Sastry Jawaharlal Nehru Centre for Advanced Scientific Research Bangalore SCHOOL ON BIOMOLECULAR SIMULATIONS

• Simulation sizes are modest (say O (1000) lipid molecules in amembrane simulation) but we wish to understand properties ofreal systems which may be much larger.

• This does not always apply in biomolecular simulations (eg, wemay really want to study only one protein molecule!) -- ie, finitesize is not always as much of an issue as in typical condensedmatter systems (liquids, solids.. ) But still, applies to solvent.

• Boundary effects more serious -- a configuration of 64 (4 x 4 x 4)water molecules has only 8 ``bulk'' water molecules.

• Solution -- Use periodic boundary conditions, which eliminatesurface effects. Imagine replicating simulation volume periodicallyalong x, y and z directions.

Integration of equation of motion: Boundary conditions

Page 10: Introduction to simulation methodologies Srikanth Sastry t… · Srikanth Sastry Jawaharlal Nehru Centre for Advanced Scientific Research Bangalore SCHOOL ON BIOMOLECULAR SIMULATIONS

• Interactions calculated with``images'' in neighboringvolumes.

• If interaction range is lessthan L/2, only one image(``Minimum image'') isrelevant.

• Long range forces have tobe handled differently.

Page 11: Introduction to simulation methodologies Srikanth Sastry t… · Srikanth Sastry Jawaharlal Nehru Centre for Advanced Scientific Research Bangalore SCHOOL ON BIOMOLECULAR SIMULATIONS

• Given an interaction potential, and initialconditions, the equation of motion are:

• Defining a suitable interaction potential for areal system of interest is non-trivial, which will bediscussed in the lecture by Satyavani Vemparala.• The simplest case to consider is integration forconstant energy.• Different cases were covered in S.Balasubrmanian’s lecture.

Integration of equation of motion: Numerical schemes

Page 12: Introduction to simulation methodologies Srikanth Sastry t… · Srikanth Sastry Jawaharlal Nehru Centre for Advanced Scientific Research Bangalore SCHOOL ON BIOMOLECULAR SIMULATIONS

• The equations of motion are solved asdifference equations.

• Consider Taylor expansion of the coordinates:

Summing the two, yields the Verlet algorithm (reversible):

The velocities may be obtained are good to 2nd order

( ) ( ) ( ) ( ) ( ) ( )432

!32tt

tt

m

tttttt !"+

!#

!+!#=!# rfvrr &&&

( ) ( ) ( ) ( ) ( ) ( )432

!32tt

tt

m

tttttt !"+

!+

!+!+=!+ rfvrr &&&

( ) ( ) ( ) ( )tm

tttttt frrr

2

2!

+!""#!+

( ) ( ) ( ) ( )

( ) ( ) ( ) ( )[ ]tttm

tttt

tm

tttttt

ffvv

fvrr

+!+!

+"!+

!+!+"!+

2

2

2

Page 13: Introduction to simulation methodologies Srikanth Sastry t… · Srikanth Sastry Jawaharlal Nehru Centre for Advanced Scientific Research Bangalore SCHOOL ON BIOMOLECULAR SIMULATIONS

• Equivalent algorithm (Velocity Verlet):

Time step should yield good energy conservation and no drift.

How does one choose the time step?

Time step should be a fraction of smallest “period” (inversefrequency) in system.

But in (bio)molecular systems, largest frequencies are frombonds waste of time..

Solution: Multi step algorithms (Prabal Maiti lecture)

Page 14: Introduction to simulation methodologies Srikanth Sastry t… · Srikanth Sastry Jawaharlal Nehru Centre for Advanced Scientific Research Bangalore SCHOOL ON BIOMOLECULAR SIMULATIONS

Multiple time steps• What to use for stiff potentials:

– Fixed bond-length: constraints (Shake)– Very small time step

Page 15: Introduction to simulation methodologies Srikanth Sastry t… · Srikanth Sastry Jawaharlal Nehru Centre for Advanced Scientific Research Bangalore SCHOOL ON BIOMOLECULAR SIMULATIONS
Page 16: Introduction to simulation methodologies Srikanth Sastry t… · Srikanth Sastry Jawaharlal Nehru Centre for Advanced Scientific Research Bangalore SCHOOL ON BIOMOLECULAR SIMULATIONS

Lyaponov instability( ) ( )( )

( ) ( ) ( ) ( ) ( )( )1

10

0 , 0

0 , 0 , , 0 , 0 , 0

10

N N

N

j i N! !

! "

+ "

=

r p

r p p p pL L

However, equilibrium average, as well as

dynamical properties are not affected by this.

Page 17: Introduction to simulation methodologies Srikanth Sastry t… · Srikanth Sastry Jawaharlal Nehru Centre for Advanced Scientific Research Bangalore SCHOOL ON BIOMOLECULAR SIMULATIONS

Constant Temperature Simulations• Often, the temperature, rather than energy, is

the quantity that one wishes to keep constant.• Modify equations of motion by applying a

``constraint'' term:

Choice of such that

This condition will yield to be

(More details in S. Balasubramanian lecture)

Page 18: Introduction to simulation methodologies Srikanth Sastry t… · Srikanth Sastry Jawaharlal Nehru Centre for Advanced Scientific Research Bangalore SCHOOL ON BIOMOLECULAR SIMULATIONS

Neighbor Lists• During the course of the

simulation, interactions have tobe calculated between all pairsof particles, which naivelyscales at N2.

• For finite range interactions,however, only a few neighborsare relevant.

• Force calculation can be O(N)if neighbors are kept track of.

• Neighbor lists -- For cutoff rc,keep track of neighbors withinre > rc.

• Update when maximumdisplacement > |re- rc| Verlet Neighbor List

Page 19: Introduction to simulation methodologies Srikanth Sastry t… · Srikanth Sastry Jawaharlal Nehru Centre for Advanced Scientific Research Bangalore SCHOOL ON BIOMOLECULAR SIMULATIONS

• For large scale simulations, more efficient todivide system into cells with a minimum sizeequal to the cutoff distance of interaction.

Page 20: Introduction to simulation methodologies Srikanth Sastry t… · Srikanth Sastry Jawaharlal Nehru Centre for Advanced Scientific Research Bangalore SCHOOL ON BIOMOLECULAR SIMULATIONS

Truncation of interaction potential

( )!!"

#

$$%

&'(

)*+

,-'

(

)*+

,=

612

4rr

ruLJ ..

/

( )( )

!"#

>

$=

c

c

LJ

rr

rrruru

0

( )( ) ( )

!"#

>

$%=

c

cc

LJLJ

rr

rrrururu

0

•The truncated and shifted Lennard-Jones potential

•The truncated Lennard-Jones potential

•The Lennard-Jones potential But care must be taken to correct for truncation ifone wishes to study the

full potential.

Page 21: Introduction to simulation methodologies Srikanth Sastry t… · Srikanth Sastry Jawaharlal Nehru Centre for Advanced Scientific Research Bangalore SCHOOL ON BIOMOLECULAR SIMULATIONS

Long Range Interactions

• For interactions such as Couloumbinteraction, one cannot truncate the potential.

• Ewald sum: Given a distribution of pointcharges, equivalent distribution is (pointcharges + Gaussian charge distribution withopposite total charge) - Gaussian distributionwith same sign.

Page 22: Introduction to simulation methodologies Srikanth Sastry t… · Srikanth Sastry Jawaharlal Nehru Centre for Advanced Scientific Research Bangalore SCHOOL ON BIOMOLECULAR SIMULATIONS

• ``Re-arranging'' the charges this way allows for calculationof interaction energy arising from periodic images, whiletreating ``pair-wise'' interactions within a finite range.

• This and other clever tricks to deal with long range forceswill be discussed by Prabal Maiti

Page 23: Introduction to simulation methodologies Srikanth Sastry t… · Srikanth Sastry Jawaharlal Nehru Centre for Advanced Scientific Research Bangalore SCHOOL ON BIOMOLECULAR SIMULATIONS

Molecular SystemsH

HO

Further details in the next lecture.