Recombinant DNA technology (Immunological screening)
molecular modlling.pptx
1. Simulation Tools
Basics of molecular modelling
Dr.Gurumeet C Wadhawa
Karmaveer Bhaurao Patil College
Vashi
2. 0. Introduction
What is molecular modelling?
Wikipedia:
Molecular modeling encompasses all theoretical methods and
computational techniques used to model or mimic the behaviour of
molecules.
In other words:
Theoretical methods that allows to describe macroscopic
observations with the use of microscopic description of matter
Simulation Tools
3. 0. Introduction
What is molecular modelling?
Solving chemical problems with numerical experiments
OBJECTS TOOLS GOALS
Molecular systems Properties
MODELS
Comparison
Theory/experience
Physical laws
Atomic and Geometries
molecular interactions Spectra
Thermodynamics
Mathematical Activation energies
models Rate constants
Understanding
Rationalization
Prediction
Simulation Tools
4. 0. Introduction
Outline
I. Concepts in Molecular Simulations
II. Molecular Dynamics simulations
III. Monte Carlo simulations
IV. Practical aspects of molecular simulations
Simulation Tools
5. I. Concepts in molecular simulations
Molecular description and representation
Length scale Electronic/Nuclear description
m H
mm O
H
μm
Classical Mechanics
nm
Atomic/Molecular
Å Quantum description
Mechanics
fs ps ns μs ms s Time scale
Simulation Tools
6. I. Concepts in molecular simulations
The phase space
● One microstate = a set of given coordinates and moments (rN,pN) of
all the particles of the system
● N particles → 6N-dimensional phase space Γ and 3N-dimensional
configuration space
● All microstates do not have the same importance
. One configuration
Important for
macroscopic
property
. One configuration
Unlikely to occur
Simulation Tools
7. I. Concepts in molecular simulations
The potential energy surface (PES)
Global Maximum Saddle point
Local Maximum
E
Local Minimum global Minimum
Local Minimum
● Potential energy surface = energy as a function of nuclear coordinates
(Born-Oppenheimer approximation)
● Each point of the configuration space corresponds to one point on the
PES
● Various interesting points on the PES
Simulation Tools
8. I. Concepts in molecular simulations
Particular points of the PES
𝜕𝐸
= 0 Stationary points
𝜕𝑥𝑟
Transition state: saddle point
Equilibrium structures: local minima
𝜕2𝐸 𝜕2𝐸
Equilibrium structure: global minimum 𝜕𝑥2 > 0
𝜕𝑥2 <0
𝑟 𝑟
Maximum Minimum
Simulation Tools
9. I. Concepts in molecular simulations
The stationary points of the PES
Minimum Maximum Saddle point
𝜕2𝑓(𝑥,𝑦)
> 0 ; 𝜕2𝑓(𝑥,𝑦) 𝜕2𝑓(𝑥,𝑦)
< 0 ; 𝜕2𝑓(𝑥,𝑦)
< 0
𝜕2𝑓(𝑥,𝑦)
> 0 ; 𝜕2𝑓(𝑥,𝑦)
<0
𝜕𝑥2 𝜕𝑦2 > 0 𝜕𝑥2 𝜕𝑦2 𝜕𝑥2 𝜕𝑦2
● Stable states: minimum of the PES with respect to every
coordinates
● Transition states: minimum in every normal direction but one, for
which it is maximum
● Stationary points thus correspond to important states of the system
Simulation Tools
10. I. Concepts in molecular simulations
Energy minimisation
● In practice, high dimensional surface
● Many local minima
● How to perform energy minimisation?
Simulation Tools
11. I. Concepts in molecular simulations
Classification of minimisation algorithms
● Goal of minimisation algorithms: find the coordinates that
correspond to the minimum value of the energy:
𝜕𝐸 𝜕2𝐸
∀𝑖,
𝜕𝑥𝑖
= 0 and
𝜕𝑥2 > 0
𝑖
● Analytical search is impossible because of the complexity of the
energy function
Use of numerical methods
● Two groups of numerical methods:
● Methods using the derivatives of E:
– First-order
– Second-order
● Methods that do not use the derivatives
Simulation Tools
12. I. Concepts in molecular simulations
First-order derivative method: Steepest descent
● The idea: the fastest decrease in energy at one point is seen along the gradient
direction
● Algorithm steps:
● The system is initialy in A and the gradient gA of the energy is computed
● The minimum along this gradient direction vA = -gA is searched. The system
reaches the point c
● The gradient of the energy at c is computed (it is found perpendicular tothe
previous gradient) and the process iterates until one reaches B
Simulation Tools
13. I. Concepts in molecular simulations
First-order derivative method: Conjugate-gradients
Steepest-descent
● Drawbacks of the steepest-descent
algorithm:
● « very local »
● May lead to oscillatory processes in
narrow valleys
● The oscillatory behavior comes from the
fact that the direction vi explored at step i is
perpendicular to that vi-1 at step(i-1)
Conjugate gradients
● Conjugate-gradients: keeping memory of
the previous direction explored
vi = -gi + γi vi-1
● Conjugate-gradients reaches minimum of a
M-dimension quadratic function in M steps
Simulation Tools
14. I. Concepts in molecular simulations
Drawbacks of energy minimisation
● Only the closest energy minimum is found
Energy minimisation from different configurations (generated by MD or
MC simulations for example)
● Knowing minimum structures: is it enough?
● Think of liquids and solids !!
Simulation Tools
15. I. Concepts in molecular simulations
How to compute macroscopic properties?
Atoms, molecules Macroscopic
Statistical
Intermolecular forces physics properties
Simulation Tools
16. I. Concepts in molecular simulations
Principles of statistical physics
● Ensemble averages
Thermodynamic properties are averages of microscopic quantities over the
accessible microscopic states of the system
Discrete phase space Continuous phase space
𝑋 = 𝑋𝑖 = 𝑃𝑖 𝑋𝑖 𝑋 = 𝑋(𝑟𝑁, 𝑝𝑁) = ... 𝑎 (𝑟𝑁, 𝑝𝑁) 𝑃 𝑟𝑁,𝑝𝑁 𝑑𝑟𝑁𝑑𝑝𝑁
𝑖
● Ergodic principle
It is equivalent to compute:
● The time average of the quantity
𝑡0+τ
𝑋 𝑡 =
1
𝑋 𝑡𝑑𝑡
τ
𝑡0 𝑎(𝑟𝑁, 𝑝𝑁) = 𝑎 𝑡
● The statistical average of the quantity
𝑋(𝑟𝑁, 𝑝𝑁) = ... 𝑋 (𝑟𝑁, 𝑝𝑁) 𝑃(𝑟𝑁, 𝑝𝑁) 𝑑𝑟𝑁𝑑𝑝𝑁
Simulation Tools
17. I. Concepts in molecular simulations
Principles of statistical physics: ensembles
● Accessible microscopic states
depend on the external parameters applied
● Statistical ensembles
● (N,V,E): microcanonical ensemble – isolated systems
● (N,V,T): canonical ensemble – equilibrium with a thermostat
● (N,P,T): isothermal-isobaric ensemble – equilibrium with a thermostat
and a barostat
● (μ,V,T): grand-canonical ensemble – equilibrium with a thermostat and
a molecular reservoir
● Probabilities Pi of microstates depend on the ensemble
Simulation Tools
18. I. Concepts in molecular simulations
Principles of statistical physics: partition function
● Canonical ensemble: (N,V,T)
● Accessible microstates have the same volume and number of particles
● But the energies Ei of the accessible microstates canvary.
● The probability of a microstate i depends on its energy:
exp
−𝐸𝑖 𝑟𝑁,𝑝𝑁
𝑃𝑖 =
𝑘𝐵𝑇
𝑄 𝑁, 𝑉, 𝑇
● The partition function: normalisation factor of the probability
𝑄 𝑁, 𝑉, 𝑇 =
1
… exp
−𝐸𝑖 𝑟𝑁,𝑝𝑁
𝑑𝑟 𝑑𝑝
ℎ3N𝑁! 𝑘𝐵𝑇 𝑁 𝑁
The partition function contains all the information
necessary to compute average quantities
Simulation Tools
19. I. Concepts in molecular simulations
Principles of statistical physics: partition function
𝐸𝑖(𝑟𝑁, 𝑝𝑁) = 𝐾𝑖(𝑝𝑁) + 𝑈𝑖(𝑟𝑁)
Kinetic energy Potential energy:
𝑝2
molecular interactions
𝐾𝑖(𝑝𝑁) = 𝑗
Internal degrees of freedom
2m𝑗
𝑗
𝑄 𝑁, 𝑉, 𝑇 =
1
exp
−𝐾𝑖 𝑝𝑁
𝑑𝑝 × exp
−𝑈𝑖 𝑟𝑁
𝑑𝑟
ℎ3N𝑁! 𝑘𝐵𝑇 𝑁
𝑘𝐵𝑇 𝑁
“Ideal” partition function Qid
Configurational partition
function: Qc
Simulation Tools
20. I. Concepts in molecular simulations
Ideal and configurational partition functions
● Ideal partition function
● Easy to compute
● Analytical expression:
2π𝑚𝑗𝑘𝐵𝑇 3 2
1
𝑄𝑖𝑑 =
ℎ2 =
Λ3
𝑗 𝑗 𝑗
● Configurational partition function
● Comes from intermolecular forces and internal degrees of freedom
● Analytical expression available only for few models: hard spheres, van
der Waals fluids
● Need to be evaluated numerically
Simulation Tools
21. I. Concepts in molecular simulations
Numerical evaluation of Qc
● Direct evaluation:
Generation of all the possible configurations of the system
Impossible because of high dimensionality
● Over all the possible configurations, only few have a non-negligible
contribution to Qc
Generation of representative configurations
Molecular simulation
Simulation Tools
22. A
configurations
I. Concepts in molecular simulations
Molecular simulation principles
B configurations
dt dt dt dt
𝐵
𝑋
1
𝑋 𝑟 𝑡 ,𝑝 𝑡
? 𝑀 𝐷 =
𝐵 𝑁 𝑁
𝑖=1
MOLECULAR DYNAMICS
(phase space{ri,pi}) trajectory
?
𝑑𝑝
𝐹𝑖 = 𝑖
𝑑𝑡
?
MONTE CARLO
?
(configuration space {r })
i
« Random » configurations
? Acceptance conditions Ergodic principle:
𝐴
𝑋 =
1
𝑋 𝑟𝑁
𝑋 𝑒𝑛𝑠 = 𝑋 𝑀 𝐶 = 𝑋 𝑀 𝐷
𝑀 𝐶
𝐴
𝑖=1
Simulation Tools
23. I. Concepts in molecular simulations
Brief history of molecular simulations
Around 1950 Use of the first computers for civil applications
1953 First simulation of a liquid by Monte Carlo (hard spheres)
Métropolis, Rosenbluth et Teller
1956 Molecular dynamics Simulation of hard disks
(Alder et Wainright)
1957 Monte Carlo Simulation of a Lennard-Jones liquid
1964 Molecular dynamics Simulation of condensed
Argon (liquid) (Rahman)
From then and until now
Strong and continuous evolution of algorithms
Simulation of complex mixtures, polar molecules, heterogenous sytems
Simulation Tools
24. II. Molecular Dynamics simulations
Basics of molecular dynamics simulations
● Particles are submitted to inter-atomic potentials U
● Framework of classical mechanics: Newton's laws for the nuclei
𝐹𝑖 𝑡 = 𝑚𝑖𝑎𝑖 𝑡 = −𝛻𝑖𝑈 𝑟 𝑡
Expression of the potential U:
Quantum mechanics: Classical mechanics:
Ab-initio MD (Classical) MD
Expression of U: forcefield
Simulation Tools
29. II. Molecular Dynamics simulations
Integration in practice
● Which integration scheme should be used?
● Good energy conservation
● Depends on the time step value δt
● Choice of the time step
● Small: good accuracy but computationally expensive
● Big: poor accuracy for the trajectory but cheap
Compromise between accuracy
and computation time
Simulation Tools
30. II. Molecular Dynamics simulations
More about the time step...
● Not too small but not too big, but how much?
● Typically one order of magnitude lower than the period of the fastest
motion in the system
Example 1: argon atoms Example 2: water molecules
Caracteristic distance: 𝑑 ≈ 0.3𝑛𝑚 Fastest motion:
vibration of O-H bond
Caracteristic speed:
3𝑘𝐵𝑇 −1
Period of the vibration:
𝑣 ≈
𝑚
≈ 350𝑚. 𝑠
𝑑 ν ≈ 4000𝑐𝑚−1 ⇒ 𝑇 ≈ 10−14𝑠
Caracteristic time: τ ≈
𝑣
≈ 10−13𝑠
Time step δt ≈ 10-14 s Time step δt ≈ 10-15 s
Simulation Tools
31. II. Molecular Dynamics simulations
Statistical ensembles and molecular dynamics
All intermolecular forces are conservative
Total energy of the system constant:
(N,V,E) microcanonical ensemble
2 𝐾
T is an output of the simulation: 𝑇 =
3𝑁𝑘𝐵
Is it possible to fix T and to sample in the (N,V,T) or (N,P,T) ensemble ?
Simulation Tools
32. II. Molecular Dynamics simulations
Constant temperature molecular thermodynamics
● Fixing temperature to T0 = Fixing kinetic energy
𝐾 =
1
𝑚 𝑣2
𝑇 =
2 1
𝑚 𝑣2
2 𝑗 𝑗
3N𝑘𝐵 2 𝑗 𝑗
𝑗 𝑗
● If T ≠ T0, modification of the velocities:
1 2
𝑣𝑗 → (λ𝑣𝑗) 𝐾′ =
2
𝑚𝑗 λ𝑣𝑗 𝑇′ = λ2𝑇
𝑗
λ =
𝑇0
𝑇
● In practice, this method is not used anymore and more sophisticated
algorithm are used, but the idea of “modifying” the velocities of particles
Simulation Tools
33. II. Molecular Dynamics simulations
How to run an MD simulation?
● System definition
● Statistical ensemble
● Choice of the forcefield
● Temperature, density,...
● Setting up the initial “configuration”
● Initial coordinates
● Initial velocities (linked with temperature T)
● Calculation of forces applied to each particle
● Integration of the equations of motion
New coordinates and velocities
Simulation Tools
34. II. Molecular Dynamics simulations
Few examples in motion: fluid simulation
Simulation Tools
35. II. Molecular Dynamics simulations
Few examples in motion: protein folding simulation
Simulation Tools
36. III. Monte Carlo simulations
Monte Carlo: the principles
● Calculation of the ensemble average :
● Random generation of M configurations i of the system
● Calculation of the probability Pi of eachconfiguration
● Estimation of the ensemble average:
𝑀
𝐴 = 𝑃𝑖 𝑎𝑖
𝑖=1
● Drawback: many configurations have a negligible weight in the average
M should be very big
● Alternative: importance sampling
● Generation of M’ configurations that follow the Boltzmannprobability
distribution {Pi} 𝑀 ′
● Direct calculation of the ensemble average: 𝐴 =
1
𝑎
𝑀′ 𝑖
𝑖=1
Simulation Tools
37. III. Monte Carlo simulations
Monte Carlo: Markov chain and microreversibility
● How to generate configurations following the probability distribution {Pi}?
● Markov chain:
● Creation of successive configurations
● Random creation of each configuration
● The probability W(i→j) to go from configuration i to the next configuration j
only depends on i and j
i j
● If i is the configuration at step t, the configuration at step (t+1) may thenbe:
– Either the same configuration i
– Or the new configuration j
Simulation Tools
38. III. Monte Carlo simulations
Monte Carlo: Markov chain and microreversibility
● Probability to be in configuration i at step (t+1):
𝑃 𝑖,𝑡 + 1 = 𝑃 𝑖,𝑡 − 𝑃 𝑖,𝑡 𝑊 𝑖→ 𝑘 + 𝑃 𝑘, 𝑡 𝑊 𝑘 → 𝑖
𝑘≠𝑖 𝑘≠𝑖
Probability to stay in Probability to arrive in
configuration i configuration i from
another configuration
● Equilibrium condition (stationnarity):
At equilibrium, the probability to be in configuration i does not depend on the step,
but only on its Boltzmann probability: P(i,t+1)=P(i,t)=P(i)
𝑃 𝑖𝑊 𝑖→ 𝑘 = 𝑃 𝑘 𝑊 𝑘 → 𝑖
𝑘≠𝑖 𝑘≠𝑖
Probability of i in the statistical Transition probability to go from configuration i to
ensemble considered configuration k in the Markov chain
● Sufficient condition: microreversibility
∀ 𝑖,𝑘 ,𝑃 𝑖𝑊 𝑖→ 𝑘 = 𝑃 𝑘 𝑊 𝑘 → 𝑖
Simulation Tools
39. III. Monte Carlo simulations
Monte Carlo: Metropolis algorithm
● Aim of the algorithm: determine the transition probabilities so that
configurations are visited with the right probability
● Transition probability W(i→k):
𝑊 𝑖→ 𝑘 = 𝑃𝑔𝑒𝑛 𝑖→ 𝑘 .𝑃𝑎𝑐𝑐 𝑖→ 𝑘
● Micro-reversibility condition:
∀ 𝑖,𝑘 ,𝑃 𝑖 𝑃𝑔𝑒𝑛 𝑖→ 𝑘 𝑃𝑎𝑐𝑐 𝑖→ 𝑘 = 𝑃 𝑘 𝑃𝑔𝑒𝑛 𝑘 → 𝑖𝑃𝑎𝑐𝑐 𝑘 → 𝑖
● Metropolis criteria:
● Random generation of the configurations: 𝑃𝑔𝑒𝑛 𝑖→ 𝑘 = 𝑃𝑔𝑒𝑛 𝑘 → 𝑖
● Acceptation probability:
𝑃𝑎𝑐𝑐 𝑖→ 𝑘 = 1 𝑖𝑓 𝑃𝑘 > 𝑃𝑖
𝑃𝑘
𝑃 𝑖→ 𝑘 =
𝑃𝑘
𝑖𝑓 𝑃 < 𝑃 𝑃𝑎𝑐𝑐 𝑖→ 𝑘 = min 1,
𝑎𝑐𝑐
𝑃𝑖
𝑘 𝑖 𝑃𝑖
Simulation Tools
40. III. Monte Carlo simulations
Monte Carlo: Metropolis algorithm in practice
● Calculation of the energy Ei of the current configuration i
● Construction of a new possible configuration j from configuration i
● Calculation of the energy Ej of the new configuration j
● Calculation of: 𝐸𝑗− 𝐸𝑖
𝑅 𝑖→ 𝑗 = exp −
𝑘𝐵𝑇
● Generation of a random number R from a uniform distribution
between 0 and 1 exp −
𝐸𝑗−𝐸𝑖
● R < R(i→j): the new configuration j
𝑘𝐵𝑇
is accepted
● R > R(i→j): the new configuration j x RRefused
is rejected and the configuration i is 2
conserved Accepted
x R1
Ej –Ei
Ej –Ei
Simulation Tools
41. III. Monte Carlo simulations
Creation of the new configuration
● If the configuration j is created randomly: few chances that R(i→j) will
be high.
● Configuration j build from configuration i with “small” modifications
(moves):
Translation Rotation Exchange
Moves can be « non-physical »
● Advantages:
● Energy difference (Ei-Ej) easy to compute
● Energy difference small → “high” probability of accepting the move
Simulation Tools
42. III. Monte Carlo simulations
Generating a new configuration in practice (1)
● Selection of a type of move:
● Each type of move has a probability P(M) (sum to 1)
● Generation of a random number R1 between 0 and 1
● Move M selected if: 1
exchange
𝑀−1 𝑀
𝑃 𝑗 < 𝑅1 < 𝑃 𝑗
2/3
𝑗=1 𝑗=1
rotation
Translation
1/3
R1
X translation
0
Simulation Tools
43. III. Monte Carlo simulations
Generating a new configuration in practice (2)
● Selection of a type of move:
N=12
● Select a molecule to which the move is applied:
● Generate a random number R2 between 0and 1 1
● Chose molecule k so that: R2 X 10/N
𝑘 − 1
< 𝑅 <
𝑘 9/N
𝑁 2
𝑁
k = 10
2/N
1/N
0
Simulation Tools
44. III. Monte Carlo simulations
Generating a new configuration in practice (3)
● Selection of a type of move:
● Select a molecule to which the move is applied:
● Apply the selected move to molecule k:
● Generate random numbers (3 for a translation: ξx, ξy, ξz)
● Move the molecule to create the trial configuration j
𝑥𝑘 𝑗 = 𝑥𝑘 𝑖 + 2ξ𝑥 − 1 δ𝑟
𝑦𝑘 𝑗 = 𝑦𝑘 𝑖 + 2ξ𝑦 − 1 δ𝑟
𝑧𝑘 𝑗 = 𝑧𝑘 𝑖 + 2ξ𝑧 − 1 δ𝑟
Simulation Tools
45. III. Monte Carlo simulations
Monte Carlo simulations and random numbers
● Monte Carlo simulations make use of a large amount of random
numbers
● Example: one trial configuration with a translation move
● 1 number to “chose” the translation move
● 1 number to “chose” the molecule to which the translation is applied
● 3 random numbers to generate the amount of translation
● 1 random number to determine the acceptance/rejection of the
configuration
● Total: 6 random numbers for only one trial move (10-1000 billions
moves in one typical MC simulation)
● Need for “good” random number generators !
Simulation Tools
46. III. Monte Carlo simulations
Monte Carlo simulations and statistical ensembles
● Monte Carlo simulations well suited for canonical ensembles:
● Typical moves: translation, rotation
● Biased moves for complex molecules (reptation, regrowth,...) to
accelerate convergence
● Acceptance probability: Metropolis criterion
𝐸𝑖 − 𝐸𝑗
𝑃𝑎𝑐𝑐 𝑖→ 𝑗 = min 1,exp
𝑘𝐵𝑇
● But Monte Carlo algorithm can be adapted to other ensembles:
● Isothermic-isobaric ensemble (N,P,T) New moves
● Grand-canonical ensemble (μ,V,T)
New Boltzmann
● And others... probabilities
New acceptance
probability
Simulation Tools
47. III. Monte Carlo simulations
Monte Carlo simulations in (N,P,T) ensemble
● The volume of the system can fluctuate between two configurations
New move: volume change
𝑉𝑗= 𝑉𝑖+ (2ξ −1)δ𝑉
Multiplication of every
coordinate by a same factor
● Probability of one configuration:
1 𝑉𝑖
𝑁
−𝐸𝑖 +𝑃𝑉𝑖
𝑃 𝑖 ∝
𝑁! Λ
exp
𝑘𝐵𝑇
● Probability of accepting the new configuration:
𝑉𝑘
𝑁
𝐸𝑖 − 𝐸𝑘 𝑃 𝑉𝑘 − 𝑉𝑖
𝑃𝑎𝑐𝑐 𝑖→ 𝑗 = min 1,
𝑉𝑖
exp
𝑘𝐵𝑇
+
𝑘𝐵𝑇
Simulation Tools
48. III. Monte Carlo simulations
Monte Carlo simulations in (μ,V,T) ensemble
● Grand-canonical ensemble adapted to open systems, where the nunmber
of particles N can fluctuate:
Two new moves:
insertion (Nk = Ni + 1) and deletion (Nk = Ni - 1) of particles
● Probability of one configuration:
1 𝑉 𝑁𝑖 −𝐸𝑖 −μ𝑁𝑖
𝑃 𝑖 ∝
𝑁𝑖! Λ
exp
𝑘𝐵𝑇
● Probabilités d'accepter la nouvelle configuration :
𝑁𝑘 = 𝑁𝑖 + 1 𝑃 𝑖→ 𝑘 = min 1,
𝑉
exp
𝐸𝑖 − 𝐸𝑘
+
μ
𝑎𝑐𝑐
insertion Λ3 𝑁𝑖 + 1 𝑘𝐵𝑇 𝑘𝐵𝑇
𝑁𝑖
𝑁𝑘 = 𝑁𝑖 𝑃 𝑖→ 𝑘 = min 1,exp
𝐸𝑖− 𝐸𝑘
𝑎𝑐𝑐
rotation, translation, ... 𝑘𝐵𝑇
𝑁𝑘 = 𝑁𝑖 − 1 𝑁𝑖Λ3 𝐸𝑖 − 𝐸𝑘 μ
𝑃𝑎𝑐𝑐 𝑖→ 𝑘 = min 1, exp −
deletion 𝑉 𝑘𝐵𝑇 𝑘𝐵𝑇
Simulation Tools
50. IV. Practical aspects of molecular simulations
Periodic boundary conditions
● Computational time for energy proportional to N2
● Limitation of system size tipically to 103-106 atoms
● Surface effect problems
● Example: regular cubic network of 1000
atoms (10x10x10)
● ~ 50% of the atoms on the surface !
● Even with 106 atoms(100x100x100):
● 98x98x98 = 941192 atoms « in the
heart » of the system
● ~6% of the atoms on the surface
M2 SERP-Chem 2013-2014 Simulation Tools
51. IV. Practical aspects of molecular simulations
Periodic boundary conditions
● Periodic conditions:
Replication of the cell in every direction of space:
● Creation of a cristalline network:
● Suppression of surface effects
● Artefacts due to the artificial periodicity?
Simulation Tools
52. IV. Practical aspects of molecular simulations
Potential truncation and minimum image convention
● Intermolecular potentials: mathematical function in (1/r)n
● If n > 2, short-range interactions
Example: dispersion interactions
σ 6
𝑉𝑑𝑖𝑠𝑝 σ = −4ε
𝑉𝑑𝑖𝑠𝑝 𝑟 = −4ε
𝑟 𝑉𝑑𝑖𝑠𝑝 σ
𝑉𝑑𝑖𝑠𝑝 2.5σ =
2.56 ≈ 0.005𝑉𝑑𝑖𝑠𝑝 σ
σ : few Å
σ 2,5σ
● Introduction of a cutoff radius rc in the calculation ofinteractions
● Which value for rc?
Simulation Tools
53. IV. Practical aspects of molecular simulations
Potential truncation and minimum image convention
● Minimum image convention:
One molecule should feel the influence of only one image of each molecule of
the system (the closest one)
● Restriction on the value of rc
𝑟 <
𝐿
𝑐
2
L
● Lower the periodicity effects
M2 SERP-Chem 2013-2014 Simulation Tools
54. IV. Practical aspects of molecular simulations
Potential truncation in practice
● Chose the cutoff radius rc
● Build a neighbour-list for each atom i that includes all the atoms
lying at a distance less than rc from i.
● Compute the interaction for atom i:
12 6
● For each atom j in the neighbour-list: 𝑉 = 4ε
σ
−
σ
𝑖𝑗
𝑟𝑖𝑗 𝑟𝑖𝑗
● For any other atom k: 𝑉𝑖𝑘 = 0
∞
σ12 σ6
● Add a long-range correction: 𝑉𝑐𝑜𝑟𝑟 = ρ 𝑉 𝑟 4π𝑟2𝑑𝑟 = 8πρ
6𝑟9 −
3𝑟3
𝑟𝑐
𝑐 𝑐
● The neighbour-list is rebuilt periodically
Simulation Tools
55. IV. Practical aspects of molecular simulations
Long range forces
● Electrostatic interactions in (1/r) are long-range interactions
𝑞𝑖𝑞𝑗
𝑉𝑐𝑜𝑢𝑙 𝑟 =
4πε0𝑟
𝑉 𝑟 = 4ε
σ 12
−
σ 6
𝐿𝐽
𝑟 𝑟
● Using a cutoff is inappropriate – more sophisticated methods are used
(Ewald summations)
Simulation Tools
56. IV. Practical aspects of molecular simulations
Equilibration and production phases
● Initial configuration is most of the time not at equilibrium
● The first stage of the simulation is to reach equilibrium: this is the
equilibration stage.
● Once equilibrium is reached, the production phase can begin,
during which properties can be calculated
Simulation Tools
57. IV. Practical aspects of molecular simulations
Which information is accessible with MC or MD?
● Structural data
● Equilibrium structure of a macromolecule
● Fluid density in various (P,T) conditions
● Structure of a fluid (radial distribution function g(r))
● Energetic data
● Binding affinities
● Heat capacities
● Thermoelastic coefficients (compressibility, Joule-Thomson coefficients)
● Transport properties
● Diffusion coefficients
● Viscosity
● Thermal conductivity
.... and many others
Simulation Tools
58. IV. Practical aspects of molecular simulations
Monte Carlo or Molecular dynamics?
Water simulation at 298K and under a pressure of 1bar
Monte Carlo (N,P,T) simulation Molecular Dynamics (N,P,T) simulation
<T>DM = 297,9± 0,4K
<ρ>MC = 997,6 ± 1,7 kg.m-3
<E>DM = -47,799 ± 0,009kJ.mol-1
<E>MC = -47,79 ± 0,04kJ.mol-1
<ρ>DM = 997.02 ± 0,31 kg.m-3
M2 SERP-Chem 2013-2014 Simulation Tools
59. IV. Practical aspects of molecular simulations
Monte Carlo or Molecular dynamics?
Molecular Dynamics
Monte Carlo
● Molecular dynamics: temporal information, collective motions
● Monte Carlo: may be easier to overcome energy barriers, no need of
thermostat or barostat (“exact” T or P)
● Hybrid MD/MC simulations are in development
Simulation Tools