Académique Documents
Professionnel Documents
Culture Documents
Molecular Dynamics
Techniques
Marco Masia
Dipartimento di Chimica - Universit di Sassari
http://physchem.uniss.it/marco.masia
marco.masia@uniss.it
non-Hamiltonian Systems:
M. E. Tuckerman, C. J. Mundy & G. J. Martyna, J. Chem. Phys. 115, 1678 (2001)
M. E. Tuckerman, Y. Liu, G. Ciccotti & G. J. Martyna, Europhys. Lett. 45, 149 (1999)
Extended Lagrangian:
H. C. Andersen, J. Chem. Phys. 72, 2384 (1980)
G. J. Martyna, M. L. Klein & M. Tuckerman, J. Chem. Phys. 97, 2635 (1992)
G. J. Martyna, D. J. Tobias & M. L. Klein, J. Chem. Phys. 101, 4177 (1994)
Constraints:
J. P. Ryckaert, G. Ciccotti & H. C. J. Berendsen, J. Comp. Phys. 23, 327 (1977)
H. C. Andersen, J. Comp. Phys. 52, 24 (1983)
M. Sprik, Faraday Discuss. 110, 437 (1998)
M. Sprik & G. Ciccotti, J. Chem. Phys. 109, 7737 (1998)
N. Doltsinis & M. Sprik, Phys. Chem. Chem. Phys. 5, 2612 (2003)
I. Coluzza, M. Sprik & G. Ciccotti, Mol. Phys. 101, 2885 (2003)
N. Doltsinis, Computational Nanoscience: Do it Yourself!, pp. 375-387 (2006), free download available at
http://www.fz-juelich.de/nic-series/volume31.
Molecular Dynamics
In Molecular Dynamics the Lagrangian and the Hamiltonian have the following form:
Molecular Dynamics
In Molecular Dynamics the Lagrangian and the Hamiltonian have the following form:
L(rN , r N ) =
N
!
mi
i=1
r i r i
!
i<j
u(rij )
Molecular Dynamics
In Molecular Dynamics the Lagrangian and the Hamiltonian have the following form:
L(r , r ) =
N
N
!
mi
i=1
r i r i
!
i<j
u(rij )
L
pi =
= mi r i
r i
Molecular Dynamics
In Molecular Dynamics the Lagrangian and the Hamiltonian have the following form:
L(r , r ) =
N
N
!
mi
i=1
N
!
r i r i
!
i<j
u(rij )
L
pi =
= mi r i
r i
N
!
!
1
u(rij )
H(rN , pN ) =
r i pi L =
pi pi +
2mi
i<j
i=1
i=1
Molecular Dynamics
In Molecular Dynamics the Lagrangian and the Hamiltonian have the following form:
L(r , r ) =
N
N
!
mi
i=1
r i r i
u(rij )
i<j
L
pi =
= mi r i
r i
N
!
N
!
!
1
u(rij )
H(rN , pN ) =
r i pi L =
pi pi +
2mi
i<j
i=1
i=1
dri
H
pi
=
=
dt
pi
mi
dpi
H
=
=
dt
ri
N
!
j!=i
Equations
of Motion
Molecular Dynamics
Some Questions:
Molecular Dynamics
Some Questions:
How shall we integrate the equations of motion?
Molecular Dynamics
Some Questions:
How shall we integrate the equations of motion?
Which statistical mechanical ensemble do we sample?
Molecular Dynamics
Some Questions:
How shall we integrate the equations of motion?
Which statistical mechanical ensemble do we sample?
How could we sample other ensembles?
Molecular Dynamics
Some Questions:
How shall we integrate the equations of motion?
Which statistical mechanical ensemble do we sample?
How could we sample other ensembles?
How could we include many body effects (polarization)?
Molecular Dynamics
Some Questions:
How shall we integrate the equations of motion?
Which statistical mechanical ensemble do we sample?
How could we sample other ensembles?
How could we include many body effects (polarization)?
How we deal with systems with different time scales?
Molecular Dynamics
Some Questions:
How shall we integrate the equations of motion?
Which statistical mechanical ensemble do we sample?
How could we sample other ensembles?
How could we include many body effects (polarization)?
How we deal with systems with different time scales?
How could we include constraints in our system?
Molecular Dynamics
Some Questions:
How shall we integrate the equations of motion?
Which statistical mechanical ensemble do we sample?
How could we sample other ensembles?
How could we include many body effects (polarization)?
How we deal with systems with different time scales?
How could we include constraints in our system?
Molecular Dynamics
How shall we integrate the equations of motion?
Molecular Dynamics
How shall we integrate the equations of motion?
The equations of motion are propagated in time through the classical propagator:
iLt
x(t) = e
x(0)
Molecular Dynamics
How shall we integrate the equations of motion?
The equations of motion are propagated in time through the classical propagator:
iLt
x(t) = e
x(0)
If the Liouville operator could be written as a sum of two operators, the classical
propagator could be rewritten making use of the Trotter theorem:
!
"
#
"
#
"
#$P
iL2 t
iL1 t
iL2 t
exp(iLt) = exp [(iL1 + iL2 )t] = lim exp
exp
exp
P
2P
P
2P
Molecular Dynamics
How shall we integrate the equations of motion?
The equations of motion are propagated in time through the classical propagator:
iLt
x(t) = e
x(0)
If the Liouville operator could be written as a sum of two operators, the classical
propagator could be rewritten making use of the Trotter theorem:
!
"
#
"
#
"
#$P
iL2 t
iL1 t
iL2 t
exp(iLt) = exp [(iL1 + iL2 )t] = lim exp
exp
exp
P
2P
P
2P
For finite P we define t = t/P and we approximate the classical propagator as:
Molecular Dynamics
How shall we integrate the equations of motion?
The equations of motion are propagated in time through the classical propagator:
iLt
x(t) = e
x(0)
If the Liouville operator could be written as a sum of two operators, the classical
propagator could be rewritten making use of the Trotter theorem:
!
"
#
"
#
"
#$P
iL2 t
iL1 t
iL2 t
exp(iLt) = exp [(iL1 + iL2 )t] = lim exp
exp
exp
P
2P
P
2P
For finite P we define t = t/P and we approximate the classical propagator as:
Molecular Dynamics
How shall we integrate the equations of motion?
The equations of motion are propagated in time through the classical propagator:
iLt
x(t) = e
x(0)
If the Liouville operator could be written as a sum of two operators, the classical
propagator could be rewritten making use of the Trotter theorem:
!
"
#
"
#
"
#$P
iL2 t
iL1 t
iL2 t
exp(iLt) = exp [(iL1 + iL2 )t] = lim exp
exp
exp
P
2P
P
2P
For finite P we define t = t/P and we approximate the classical propagator as:
P
!
k=1
Molecular Dynamics
Given the Liouville operator:
# !
#
N "
N "
!
pi
H
=
+ Fi
iL = {. . . , H} =
pi ri
ri pi
mi ri
pi
i=1
i=1
Molecular Dynamics
Given the Liouville operator:
# !
#
N "
N "
!
pi
H
=
+ Fi
iL = {. . . , H} =
pi ri
ri pi
mi ri
pi
i=1
i=1
Lets consider the following partition:
N
!
pi
iL1 =
m
r
i
i
i=1
N
!
Fi
iL2 =
p
i
i=1
Molecular Dynamics
Given the Liouville operator:
# !
#
N "
N "
!
pi
H
=
+ Fi
iL = {. . . , H} =
pi ri
ri pi
mi ri
pi
i=1
i=1
Lets consider the following partition:
N
!
pi
iL1 =
m
r
i
i
i=1
The operator
exp(iL1 t)
ri ri + t(pi /mi )
N
!
Fi
iL2 =
p
i
i=1
Molecular Dynamics
Given the Liouville operator:
# !
#
N "
N "
!
pi
H
=
+ Fi
iL = {. . . , H} =
pi ri
ri pi
mi ri
pi
i=1
i=1
Lets consider the following partition:
N
!
pi
iL1 =
m
r
i
i
i=1
The operator
exp(iL1 t)
ri ri + t(pi /mi )
N
!
Fi
iL2 =
p
i
i=1
Since forces depend only on the
particles positions, the operator
exp(iL2 t/2)
pi pi + (t/2)Fi (r)
Molecular Dynamics
The action of the operator exp(iLP t) on the full set of momenta and positions
can be evaluated analytically, yielding the following approximate evolution equations:
Molecular Dynamics
The action of the operator exp(iLP t) on the full set of momenta and positions
can be evaluated analytically, yielding the following approximate evolution equations:
t2
ri (t) = ri (0) + vi (0)t +
Fi (0)
2mi
t2
vi (t) = vi (0) +
[Fi (0) + Fi (t)]
2mi
Molecular Dynamics
The action of the operator exp(iLP t) on the full set of momenta and positions
can be evaluated analytically, yielding the following approximate evolution equations:
t2
ri (t) = ri (0) + vi (0)t +
Fi (0)
2mi
t2
vi (t) = vi (0) +
[Fi (0) + Fi (t)]
2mi
vi vi + Fi t/2mi
ri ri + vi t
enddo
get new forces
do i = 1,N
Fi
vi vi + Fi t/2mi
enddo
Molecular Dynamics
Some Remarks:
Molecular Dynamics
Some Remarks:
The procedure of translating each operator into an update step which
can be implemented in a computer code is called direct translation
technique;
Molecular Dynamics
Some Remarks:
The procedure of translating each operator into an update step which
can be implemented in a computer code is called direct translation
technique;
Although such procedure may seem involved compared to the typical
approaches based on truncating Taylor expansions of the finite difference
equations, it proves to be immensely powerful in deriving the integration
schemes of complex non-Hamiltonian systems (see next slide), and to treat
systems with multiple time scale motion.
Molecular Dynamics
Some Remarks:
The procedure of translating each operator into an update step which
can be implemented in a computer code is called direct translation
technique;
Although such procedure may seem involved compared to the typical
approaches based on truncating Taylor expansions of the finite difference
equations, it proves to be immensely powerful in deriving the integration
schemes of complex non-Hamiltonian systems (see next slide), and to treat
systems with multiple time scale motion.
The map generated using the direct translation technique preserves the
invariant phase space measure; maps with this property are said to
symplectic. For Hamiltonian systems it means that the Jacobian is unit;
Molecular Dynamics
Some Remarks:
The procedure of translating each operator into an update step which
can be implemented in a computer code is called direct translation
technique;
Although such procedure may seem involved compared to the typical
approaches based on truncating Taylor expansions of the finite difference
equations, it proves to be immensely powerful in deriving the integration
schemes of complex non-Hamiltonian systems (see next slide), and to treat
systems with multiple time scale motion.
The map generated using the direct translation technique preserves the
invariant phase space measure; maps with this property are said to
symplectic. For Hamiltonian systems it means that the Jacobian is unit;
The symplectic property ensures that the integration error is bounded
and does not cause any growth in energy conservation.
Molecular Dynamics
In the case of non-Hamiltonian systems it has been seen that the Lioville operator
could be split in two parts:
N
N
!
!
x i
=
iL =
x
i
i=1
i (x)
= iLH + iLnH
x
i
i=1
Since the Trotter theorem is easily extended to the exponential of the sum of more
than two operators, we could construct the propagator as follows:
(2)
(1)
(2)
Molecular Dynamics
Many different integration schemes can be derived using the direct translation
technique with different partitions of the propagator. All of them (usually called
Verlet-like schemes) guarantee time reversibility and energy conservation at long
times. Only for pedagogical purposes we introduce here the Verlet Leaprog scheme:
Molecular Dynamics
Many different integration schemes can be derived using the direct translation
technique with different partitions of the propagator. All of them (usually called
Verlet-like schemes) guarantee time reversibility and energy conservation at long
times. Only for pedagogical purposes we introduce here the Verlet Leaprog scheme:
t2
ri (t) = ri (0) + vi (t/2)t +
Fi (0)
mi
t2
vi (t/2) = vi (t/2)t +
Fi (0)
mi
Molecular Dynamics
Many different integration schemes can be derived using the direct translation
technique with different partitions of the propagator. All of them (usually called
Verlet-like schemes) guarantee time reversibility and energy conservation at long
times. Only for pedagogical purposes we introduce here the Verlet Leaprog scheme:
t2
ri (t) = ri (0) + vi (t/2)t +
Fi (0)
mi
t2
vi (t/2) = vi (t/2)t +
Fi (0)
mi
ri ri + vi t
vi vi + Fi t/mi
enddo
Molecular Dynamics
Which statistical mechanical ensemble do we sample?
How could we sample other ensembles?
Molecular Dynamics
Which statistical mechanical ensemble do we sample?
How could we sample other ensembles?
lim A = !A"
Molecular Dynamics
Which statistical mechanical ensemble do we sample?
How could we sample other ensembles?
lim A = !A"
Molecular Dynamics
Which statistical mechanical ensemble do we sample?
How could we sample other ensembles?
lim A = !A"
Molecular Dynamics
Which statistical mechanical ensemble do we sample?
How could we sample other ensembles?
Ergodic hypothesis: trajectory averages of any property are
equal to the ensemble averages obtained from a given
ensemble distribution.
lim A = !A"
L(rN , r N ) =
N
!
mi
i=1
r i r i
!
i<j
u(rij )
Molecular Dynamics
Which statistical mechanical ensemble do we sample?
How could we sample other ensembles?
lim A = !A"
L(r , r , V, V ) =
N
N
!
mi
i=1
1 2
u(rij ) + V pV
r i r i
2
2
i<j
Molecular Dynamics
Which statistical mechanical ensemble do we sample?
How could we sample other ensembles?
lim A = !A"
L(r , r , V, V ) =
N
N
!
mi
i=1
1 2
u(rij ) + V pV
r i r i
2
2
i<j
kinetic energy
Molecular Dynamics
Which statistical mechanical ensemble do we sample?
How could we sample other ensembles?
lim A = !A"
L(r , r , V, V ) =
N
N
!
mi
i=1
1 2
u(rij ) + V pV
r i r i
2
2
i<j
kinetic energy
potential energy
Molecular Dynamics
L(r , r , V, V ) =
N
N
!
mi
i=1
1 2
u(rij ) + V pV
r i r i
2
2
i<j
kinetic energy
potential energy
Molecular Dynamics
L(r , r , V, V ) =
N
N
!
mi
i=1
1 2
u(rij ) + V pV
r i r i
2
2
i<j
kinetic energy
potential energy
Molecular Dynamics
L(r , r , V, V ) =
N
N
!
mi
i=1
1 2
u(rij ) + V pV
r i r i
2
2
i<j
kinetic energy
potential energy
pi
1 d ln V
dri
=
+ ri
dt
mi
3
dt
dpi
=
dt
N
!
j!=i
N
1 d ln V
rij u (rij ) pi
3
dt
"
1 2 # pi pi
1#
d2 V
rij u! (rij )
2 = p +
dt
V
3 i=1 2mi
3 i<j
Molecular Dynamics
L(r , r , V, V ) =
N
N
!
mi
i=1
1 2
u(rij ) + V pV
r i r i
2
2
i<j
kinetic energy
potential energy
Hamiltonian
part
pi
1 d ln V
dri
=
+ ri
dt
mi
3
dt
dpi
=
dt
N
!
j!=i
N
nonHamiltonian
part
1 d ln V
rij u (rij ) pi
3
dt
"
1 2 # pi pi
1#
d2 V
rij u! (rij )
2 = p +
dt
V
3 i=1 2mi
3 i<j
Molecular Dynamics
L(r , r , V, V ) =
N
N
!
mi
i=1
1 2
u(rij ) + V pV
r i r i
2
2
i<j
The
ensemble
kinetic
energysampled by the
potential energy
trajectory obtained from these
This Lagrangian could be interpreted
we had is
a N-particles
fluid in a container of
equationsasofif motion
the
volume V which is isotropically
compressed by
a piston
of mass subject to an external
isoenthalpic-isobaric
ensemble
(NPH)
pressure p. The equations of motion
of the
such
a system
in which
pressure
is are:
p.
Hamiltonian
part
pi
1 d ln V
dri
=
+ ri
dt
mi
3
dt
dpi
=
dt
N
!
j!=i
N
nonHamiltonian
part
1 d ln V
rij u (rij ) pi
3
dt
"
1 2 # pi pi
1#
d2 V
rij u! (rij )
2 = p +
dt
V
3 i=1 2mi
3 i<j
Molecular Dynamics
A similar approach is used to sample the canonical ensemble (NVT). The method was
introduced by Nos and then improved by Hoover (NH).
LNH = L(r , r , s, s)
=
N
!
mi
i=1
1 2 L
u(rij ) + s ln s
s r i r i
2
2
i<j
2
Molecular Dynamics
A similar approach is used to sample the canonical ensemble (NVT). The method was
introduced by Nos and then improved by Hoover (NH).
LNH = L(r , r , s, s)
=
N
!
mi
i=1
1 2 L
u(rij ) + s ln s
s r i r i
2
2
i<j
2
Molecular Dynamics
A similar approach is used to sample the canonical ensemble (NVT). The method was
introduced by Nos and then improved by Hoover (NH).
LNH = L(r , r , s, s)
=
N
!
mi
i=1
1 2 L
u(rij ) + s ln s
s r i r i
2
2
i<j
2
pi
dri
=
dt
mi
N
!
dpi
rij u" (rij ) pi
=
dt
j!=i
ds
= s
dt
!N
#
1 " pi pi
L
di
=
dt
i=1 mi
Molecular Dynamics
The NH method is efficient for sampling the canonical ensemble but has the drawback
that the algorithm does not guarantee ergodicity. To solve this problem a chain of M NH
thermostats is usually implemented in the so-called Nos - Hoover chains (NHC).
Molecular Dynamics
The NH method is efficient for sampling the canonical ensemble but has the drawback
that the algorithm does not guarantee ergodicity. To solve this problem a chain of M NH
thermostats is usually implemented in the so-called Nos - Hoover chains (NHC).
pi
dri
=
dt
mi
N
!
p1
dpi
"
rij u (rij )
=
pi
dt
1
j!=i
pk
dk
=
k = 1, . . . , M
dt
k
pk+1
dpk
= Gk
pk
k = 1, . . . , M 1
dt
k+1
G1 =
N
!
pi pi
i=1
mi
1 = dN kB T 2
dN kB T
pk1
kB T
Gk =
k1
k = kB T 2
dpM
= GM
dt
k = 2, . . . , M
k = 2, . . . , M
Molecular Dynamics
One
dimensional canonical harmonic oscillator
!"#$%&'#"(&)"*+,-*")"&-*+,.*/')"&-,)(-&++*0)/
!! "
""
# #! ! $ !
!# !
!"#$%&'"()(*('+
& % !$ "
$ & $!
%
!% #
# !#
,"#$%&'"()(*('+-
$ # ! ! &$#!
%
!%
$! # !
."#$%&'"()(*('+-
Molecular Dynamics
To obtain the integration scheme for NHC equations of motion the direct translation
technique is used. To this end we need to define the partition of the classical propagator.
Molecular Dynamics
To obtain the integration scheme for NHC equations of motion the direct translation
technique is used. To this end we need to define the partition of the classical propagator.
Molecular Dynamics
To obtain the integration scheme for NHC equations of motion the direct translation
technique is used. To this end we need to define the partition of the classical propagator.
iLr =
N
!
i=1
N
!
Fi
iLv =
vi
m
i
i=1
Molecular Dynamics
To obtain the integration scheme for NHC equations of motion the direct translation
technique is used. To this end we need to define the partition of the classical propagator.
iLr =
N
!
N
!
Fi
iLv =
vi
m
i
i=1
vi ri
i=1
iLC =
M
!
k=1
M
M
1
!
!
"
#
vk
vi vi +
Gk vk vk+1
+ GM
k i=1
vk
vM
k=1
Molecular Dynamics
To obtain the integration scheme for NHC equations of motion the direct translation
technique is used. To this end we need to define the partition of the classical propagator.
iLr =
N
!
N
!
Fi
iLv =
vi
m
i
i=1
vi ri
i=1
iLC =
M
!
k=1
M
M
1
!
!
"
#
vk
vi vi +
Gk vk vk+1
+ GM
k i=1
vk
vM
k=1
eiLt = eiLC t/2 eiLv t/2 eiLr t eiLv t/2 eiLC t/2
Molecular Dynamics
If M=2, the chain propagator can be split into 5 operators: iLC =
5
!
j=1
iLjC
Molecular Dynamics
If M=2, the chain propagator can be split into 5 operators: iLC =
5
!
j=1
iLC t
iL5C t/4
=e
iL4C t/8
iL3C t/4
iL4C t/8
"
"
iL5C t/4
iLjC
Molecular Dynamics
If M=2, the chain propagator can be split into 5 operators: iLC =
5
!
j=1
iLC t
iL5C t/4
=e
iL4C t/8
iL3C t/4
iL4C t/8
"
"
iL5C t/4
eiLt = eiLC t/2 eiLv t/2 eiLr t eiLv t/2 eiLC t/2
iLjC
Molecular Dynamics
If M=2, the chain propagator can be split into 5 operators: iLC =
5
!
j=1
iLC t
iL5C t/4
=e
iL4C t/8
iL3C t/4
iL4C t/8
"
"
iL5C t/4
eiLt = eiLC t/2 eiLv t/2 eiLr t eiLv t/2 eiLC t/2
subroutine integrate
call chain
call vel_verlet
call chain
iLjC
Molecular Dynamics
If M=2, the chain propagator can be split into 5 operators: iLC =
5
!
j=1
iLC t
iL5C t/4
=e
iL4C t/8
iL3C t/4
iL4C t/8
"
"
iL5C t/4
eiLt = eiLC t/2 eiLv t/2 eiLr t eiLv t/2 eiLC t/2
subroutine integrate
subroutine chain
call chain
call vel_verlet
call chain
iLjC
Molecular Dynamics
According to the statistical mechanical theory of non-Hamiltonian systems we can compute
both the phase space compressibility and its invariant measure:
Molecular Dynamics
According to the statistical mechanical theory of non-Hamiltonian systems we can compute
both the phase space compressibility and its invariant measure:
(x, t) = x =
N
!
[ri ri + pi pi ] +
i=1
d = exp 1 +
M
!
k=1
M
"
k=2
"
pk
k
+
k
pk
dN pdN rdM p dM
= dN 1
M
!
k=2
Molecular Dynamics
According to the statistical mechanical theory of non-Hamiltonian systems we can compute
both the phase space compressibility and its invariant measure:
(x, t) = x =
N
!
[ri ri + pi pi ] +
i=1
d = exp 1 +
M
!
k=1
M
"
k=2
"
pk
k
+
k
pk
= dN 1
dN pdN rdM p dM
M
!
k=2
Molecular Dynamics
How could we include many body effects (polarization)?
Molecular Dynamics
How could we include many body effects (polarization)?
Total potential energy:
Upol
U = U0 + Upol
!
! Pi Pi
=
Ei Pi +
2
i
i
i
Molecular Dynamics
How could we include many body effects (polarization)?
Total potential energy:
U = U0 + Upol
!
! Pi Pi
Upol =
Ei Pi +
2
i
i
i
Ei = Tij Pi
Pi = i Ei
Molecular Dynamics
How could we include many body effects (polarization)?
Total potential energy:
U = U0 + Upol
!
! Pi Pi
Upol =
Ei Pi +
2
i
i
i
Ei = Tij Pi
Pi = i Ei
The dipoles must satisfy the condition that the polarization potential energy is always a
minimum. In MD simulations it can be done following three approaches:
Molecular Dynamics
How could we include many body effects (polarization)?
Total potential energy:
U = U0 + Upol
!
! Pi Pi
Upol =
Ei Pi +
2
i
i
i
Ei = Tij Pi
Pi = i Ei
The dipoles must satisfy the condition that the polarization potential energy is always a
minimum. In MD simulations it can be done following three approaches:
Molecular Dynamics
How could we include many body effects (polarization)?
Total potential energy:
U = U0 + Upol
!
! Pi Pi
Upol =
Ei Pi +
2
i
i
i
Ei = Tij Pi
Pi = i Ei
The dipoles must satisfy the condition that the polarization potential energy is always a
minimum. In MD simulations it can be done following three approaches:
The dipoles are computed via At each time step the dipoles
matrix inversion. For big
are computed iteratively until
systems this approach is very
self-consistency of the dipole
time consuming and is no
field (or of the dipoles) is
longer applied.
reached.
Molecular Dynamics
How could we include many body effects (polarization)?
Total potential energy:
U = U0 + Upol
!
! Pi Pi
Upol =
Ei Pi +
2
i
i
i
Ei = Tij Pi
Pi = i Ei
The dipoles must satisfy the condition that the polarization potential energy is always a
minimum. In MD simulations it can be done following three approaches:
The dipoles are computed via At each time step the dipoles
matrix inversion. For big
are computed iteratively until
systems this approach is very
self-consistency of the dipole
time consuming and is no
field (or of the dipoles) is
longer applied.
reached.
Molecular Dynamics
It is assumed that the induced
dipoles follow adiabatically the
motion of the nuclei such that
the polarization energy is
always at its minimum.
Molecular Dynamics
It is assumed that the induced
dipoles follow adiabatically the
motion of the nuclei such that
the polarization energy is
always at its minimum.
Molecular Dynamics
It is assumed that the induced
dipoles follow adiabatically the
motion of the nuclei such that
the polarization energy is
always at its minimum.
M) =
L(rN , r N , PM , P
N
!
1
i=1
mi r i r i +
M
!
1
i=1
iP
i U(rN , PM )
i P
Molecular Dynamics
It is assumed that the induced
dipoles follow adiabatically the
motion of the nuclei such that
the polarization energy is
always at its minimum.
M) =
L(rN , r N , PM , P
N
!
1
i=1
pi
dri
=
dt
mi
N
!
dpi
rij U " (rij )
=
dt
j!=i
Pi
L
d2 Pi
i 2 =
=
+ Ei
dt
Pi
i
mi r i r i +
M
!
1
i=1
iP
i U(rN , PM )
i P
Molecular Dynamics
It is assumed that the induced
dipoles follow adiabatically the
motion of the nuclei such that
the polarization energy is
always at its minimum.
M) =
L(rN , r N , PM , P
N
!
1
i=1
pi
dri
=
dt
mi
N
!
dpi
rij U " (rij )
=
dt
j!=i
Pi
L
d2 Pi
i 2 =
=
+ Ei
dt
Pi
i
mi r i r i +
M
!
1
iP
i U(rN , PM )
i P
i=1
Molecular Dynamics
Some Remarks:
Molecular Dynamics
Some Remarks:
To make sure that the induced dipoles are indeed close to their ground state
configuration, the induced dipoles temperature should be kept low;
Molecular Dynamics
Some Remarks:
To make sure that the induced dipoles are indeed close to their ground state
configuration, the induced dipoles temperature should be kept low;
at the same time the induced dipoles should be able to adapt
rapidly (adiabatically) to changes in the nuclear configuration, to ensure that
the condition of minimum energy is maintained during the simulation;
Molecular Dynamics
Some Remarks:
To make sure that the induced dipoles are indeed close to their ground state
configuration, the induced dipoles temperature should be kept low;
at the same time the induced dipoles should be able to adapt
rapidly (adiabatically) to changes in the nuclear configuration, to ensure that
the condition of minimum energy is maintained during the simulation;
to satisfy the above requirements, the dipoles masses should be small!
Molecular Dynamics
Some Remarks:
To make sure that the induced dipoles are indeed close to their ground state
configuration, the induced dipoles temperature should be kept low;
at the same time the induced dipoles should be able to adapt
rapidly (adiabatically) to changes in the nuclear configuration, to ensure that
the condition of minimum energy is maintained during the simulation;
to satisfy the above requirements, the dipoles masses should be small!
an optimal value for the dipoles mass would be such that the polarization
relaxation time is on the same order of magnitude as the fastest relaxation in
the system.
Molecular Dynamics
Some Remarks:
To make sure that the induced dipoles are indeed close to their ground state
configuration, the induced dipoles temperature should be kept low;
at the same time the induced dipoles should be able to adapt
rapidly (adiabatically) to changes in the nuclear configuration, to ensure that
the condition of minimum energy is maintained during the simulation;
to satisfy the above requirements, the dipoles masses should be small!
an optimal value for the dipoles mass would be such that the polarization
relaxation time is on the same order of magnitude as the fastest relaxation in
the system.
in ordinary simulations, the coupling between induced dipole moments and
translational motion of nuclei leads to heat exchange, causing the nuclei
temperature to decrease, while the dipoles temperature increases until they
are equal; to hinder this problem, a NHC is coupled to the particle positions
and another is coupled to the dipoles;
Molecular Dynamics
How we deal with systems with different time scales?
Molecular Dynamics
How we deal with systems with different time scales?
It is known that for many systems we can identify motions on different time scales; for
example if we consider molecules at condensed phase, the intramolecular vibration take
place much faster than translations;
Molecular Dynamics
How we deal with systems with different time scales?
It is known that for many systems we can identify motions on different time scales; for
example if we consider molecules at condensed phase, the intramolecular vibration take
place much faster than translations;
In typical MD simulations the fastest motion of the system we consider represents one
limit for the time step: the fastest the vibration the smallest is the time step.
Molecular Dynamics
How we deal with systems with different time scales?
It is known that for many systems we can identify motions on different time scales; for
example if we consider molecules at condensed phase, the intramolecular vibration take
place much faster than translations;
In typical MD simulations the fastest motion of the system we consider represents one
limit for the time step: the fastest the vibration the smallest is the time step.
One trick to increase the time step is to use bigger masses; in fact the oscillation
frequency would be smaller by a factor
Mold
Mnew
Molecular Dynamics
How we deal with systems with different time scales?
It is known that for many systems we can identify motions on different time scales; for
example if we consider molecules at condensed phase, the intramolecular vibration take
place much faster than translations;
In typical MD simulations the fastest motion of the system we consider represents one
limit for the time step: the fastest the vibration the smallest is the time step.
One trick to increase the time step is to use bigger masses; in fact the oscillation
frequency would be smaller by a factor
Mold
Mnew
Nevertheless, although statical properties are not affected by this choice, dynamical are
indeed different!
Molecular Dynamics
Another way out of such a bottleneck is to notice that we can partition the total force
on particles in a contribution of a reference and a deviation from it:
Molecular Dynamics
Another way out of such a bottleneck is to notice that we can partition the total force
on particles in a contribution of a reference and a deviation from it:
Fi =
del
Fi
ref
Fi
ref
Fi
del
Fi
Fi
Molecular Dynamics
Another way out of such a bottleneck is to notice that we can partition the total force
on particles in a contribution of a reference and a deviation from it:
Fi =
del
Fi
ref
Fi
ref
Fi
del
Fi
Fi
Molecular Dynamics
Another way out of such a bottleneck is to notice that we can partition the total force
on particles in a contribution of a reference and a deviation from it:
Fi =
del
Fi
ref
Fi
ref
Fi
del
Fi
Fi
In particular we can take the fast local vibrational forces as reference; this choice is
convenient because those forces are computationally inexpensive to evaluate while the
slow intermolecular forces are much more demanding;
Molecular Dynamics
Another way out of such a bottleneck is to notice that we can partition the total force
on particles in a contribution of a reference and a deviation from it:
Fi =
del
Fi
ref
Fi
ref
Fi
del
Fi
Fi
In particular we can take the fast local vibrational forces as reference; this choice is
convenient because those forces are computationally inexpensive to evaluate while the
slow intermolecular forces are much more demanding;
We define two time steps: t is used for propagating the fast motion, and t is used
for propagating the slow motion;
Molecular Dynamics
We then obtain the following expression for the propagator:
!
!
!
" #
!
"
"&n
"
%
$
t
t
ref t
del t
ref
iL
t
exp
exp(iLt) = exp iLdel
exp
iL
exp iLref
exp
iL
2
2
1
2
2
2
2
Molecular Dynamics
We then obtain the following expression for the propagator:
!
!
!
" #
!
"
"&n
"
%
$
t
t
ref t
del t
ref
iL
t
exp
exp(iLt) = exp iLdel
exp
iL
exp iLref
exp
iL
2
2
1
2
2
2
2
ref
iL
N "
!
pi
i=1
ref
+ Fi
mi ri
pi
Molecular Dynamics
We then obtain the following expression for the propagator:
!
!
!
" #
!
"
"&n
"
%
$
t
t
ref t
del t
ref
iL
t
exp
exp(iLt) = exp iLdel
exp
iL
exp iLref
exp
iL
2
2
1
2
2
2
2
ref
iL
N "
!
pi
i=1
ref
+ Fi
mi ri
pi
del
iL
N
!
i=1
Fdel
i
pi
Molecular Dynamics
We then obtain the following expression for the propagator:
!
!
!
" #
!
"
"&n
"
%
$
t
t
ref t
del t
ref
iL
t
exp
exp(iLt) = exp iLdel
exp
iL
exp iLref
exp
iL
2
2
1
2
2
2
2
ref
iL
N "
!
pi
i=1
ref
+ Fi
mi ri
pi
del
iL
N
!
i=1
Fdel
i
pi
Molecular Dynamics
We then obtain the following expression for the propagator:
!
!
!
" #
!
"
"&n
"
%
$
t
t
ref t
del t
ref
iL
t
exp
exp(iLt) = exp iLdel
exp
iL
exp iLref
exp
iL
2
2
1
2
2
2
2
ref
iL
N "
!
pi
i=1
ref
+ Fi
mi ri
pi
del
iL
N
!
i=1
Fdel
i
pi
Molecular Dynamics
We then obtain the following expression for the propagator:
!
!
!
" #
!
"
"&n
"
%
$
t
t
ref t
del t
ref
iL
t
exp
exp(iLt) = exp iLdel
exp
iL
exp iLref
exp
iL
2
2
1
2
2
2
2
ref
iL
N "
!
pi
i=1
ref
+ Fi
mi ri
pi
del
iL
N
!
i=1
Fdel
i
pi
Molecular Dynamics
We then obtain the following expression for the propagator:
!
!
!
" #
!
"
"&n
"
%
$
t
t
ref t
del t
ref
iL
t
exp
exp(iLt) = exp iLdel
exp
iL
exp iLref
exp
iL
2
2
1
2
2
2
2
ref
iL
N "
!
pi
i=1
ref
+ Fi
mi ri
pi
del
iL
N
!
i=1
Fdel
i
pi
Molecular Dynamics
Care must be taken in the choice of time steps because in certain circumstances there
could appear resonance phenomena;
Molecular Dynamics
Care must be taken in the choice of time steps because in certain circumstances there
could appear resonance phenomena;
The propagator is easily translated to an algorithm:
!
!
!
" #
!
"
"&n
"
%
$
t
t
ref t
del t
ref
iL
t
exp
exp(iLt) = exp iLdel
exp
iL
exp iLref
exp
iL
2
2
1
2
2
2
2
Molecular Dynamics
Care must be taken in the choice of time steps because in certain circumstances there
could appear resonance phenomena;
The propagator is easily translated to an algorithm:
!
!
!
" #
!
"
"&n
"
%
$
t
t
ref t
del t
ref
iL
t
exp
exp(iLt) = exp iLdel
exp
iL
exp iLref
exp
iL
2
2
1
2
2
2
2
Molecular Dynamics
Care must be taken in the choice of time steps because in certain circumstances there
could appear resonance phenomena;
The propagator is easily translated to an algorithm:
!
!
!
" #
!
"
"&n
"
%
$
t
t
ref t
del t
ref
iL
t
exp
exp(iLt) = exp iLdel
exp
iL
exp iLref
exp
iL
2
2
1
2
2
2
2
subroutine vel_verlet(f_ref)
call vels(f_del)
do i = 1,n
call vel_verlet(f_ref)
enddo
do i = 1,N
call vels(f_ref)
call pos(v_ref)
enddo
call fast_forces(f_ref)
do i = 1,N
call vels(f_ref)
enddo
call force(f_ref,f_del)
call vels(f_del)
Molecular Dynamics
How could we include constraints in our system?
Molecular Dynamics
How could we include constraints in our system?
In classical mechanics we refer to constraints when it is necessary to take into account
something which limits the motion of the system;
Molecular Dynamics
How could we include constraints in our system?
In classical mechanics we refer to constraints when it is necessary to take into account
something which limits the motion of the system;
For example, two beads connected by a rigid rod of length d are constrained to move in
such a way that their distance is constant;
Molecular Dynamics
How could we include constraints in our system?
In classical mechanics we refer to constraints when it is necessary to take into account
something which limits the motion of the system;
For example, two beads connected by a rigid rod of length d are constrained to move in
such a way that their distance is constant;
f (r1 , r2 , . . . , rN , t) = 0;
Molecular Dynamics
How could we include constraints in our system?
In classical mechanics we refer to constraints when it is necessary to take into account
something which limits the motion of the system;
For example, two beads connected by a rigid rod of length d are constrained to move in
such a way that their distance is constant;
f (r1 , r2 , . . . , rN , t) = 0;
The simplest example of holomic constraint is the rigid body:
2
= |ri (t) rj (t)| d2ij =
Molecular Dynamics
How could we include constraints in our system?
In classical mechanics we refer to constraints when it is necessary to take into account
something which limits the motion of the system;
For example, two beads connected by a rigid rod of length d are constrained to move in
such a way that their distance is constant;
f (r1 , r2 , . . . , rN , t) = 0;
The simplest example of holomic constraint is the rigid body:
2
= |ri (t) rj (t)| d2ij =
L(rN , r N ) =
N
!
1
i=1
mi r i r i U(rN )
Nc
!
=1
(rN )
Molecular Dynamics
pi
dri
=
dt
mi
Nc
N
!
!
dpi
"
rij u (rij )
=
= Fi + Gi
dt
r
i
=1
j!=i
Molecular Dynamics
pi
dri
=
dt
mi
Nc
N
!
!
dpi
"
rij u (rij )
=
= Fi + Gi
dt
r
i
=1
j!=i
Constraint force
Molecular Dynamics
pi
dri
=
dt
mi
Nc
N
!
!
dpi
"
rij u (rij )
=
= Fi + Gi
dt
r
i
=1
j!=i
Constraint force
Molecular Dynamics
pi
dri
=
dt
mi
Nc
N
!
!
dpi
"
rij u (rij )
=
= Fi + Gi
dt
r
i
=1
Constraint force
j!=i
Since
= 0 we obtain:
t
Nc
N
N
!
!
!
1
1 !
r i r j i j = F M +T = 0
=
i i +
Fi i
t
mi
mi
i=1
i=1
i,j
=1
Molecular Dynamics
pi
dri
=
dt
mi
Nc
N
!
!
dpi
"
rij u (rij )
=
= Fi + Gi
dt
r
i
=1
Constraint force
j!=i
Since
= 0 we obtain:
t
Nc
N
N
!
!
!
1
1 !
r i r j i j = F M +T = 0
=
i i +
Fi i
t
mi
mi
i=1
i=1
i,j
=1
Molecular Dynamics
pi
dri
=
dt
mi
Nc
N
!
!
dpi
"
rij u (rij )
=
= Fi + Gi
dt
r
i
=1
Constraint force
j!=i
i=1
=1
i,j
Molecular Dynamics
iterative algorithm (SHAKE/RATTLE):
Molecular Dynamics
iterative algorithm (SHAKE/RATTLE):
I. begin with a system in which all constraints are satisfied within a specified tolerance;
II. evaluate all non-constraint forces on the atoms;
III. move all atoms according to those forces;
IV. Apply the following iteratively:
IV.1. consider each constraint in turn:
IV.1.a. evaluate the constraint equation;
IV.1.b. if satisfied to within tolerance, consider the next constraint, otherwise:
IV.1.c. calculate what the constraint forces should have been at time t so that this
constraint would now be satisfied at new time step;
IV.1.d. move the atoms according to the force evaluated in the previous point;
IV.1.e. consider the next constraint;
IV.2. begin next iteration in which all constraints are considered;
V. Continue until all the constraints are satisfied to within the specified tolerance.
Molecular Dynamics
Few words about the method of constraints to compute free energy differences:
Molecular Dynamics
Few words about the method of constraints to compute free energy differences:
In the simulation of rare events (such as many reactions) the blue moon ensemle method
allows one to compute the potential of mean force, which can be obtained from the
average force of constraint:
"
#
! 2
H
!
d
F(2 ) F(1 ) =
!
1
Molecular Dynamics
Few words about the method of constraints to compute free energy differences:
In the simulation of rare events (such as many reactions) the blue moon ensemle method
allows one to compute the potential of mean force, which can be obtained from the
average force of constraint:
"
#
! 2
H
!
d
F(2 ) F(1 ) =
!
1
Free energy difference along a
given one-dimensional
reaction coordinate.
Conditioned average
in the constraint
ensemble
Molecular Dynamics
Few words about the method of constraints to compute free energy differences:
In the simulation of rare events (such as many reactions) the blue moon ensemle method
allows one to compute the potential of mean force, which can be obtained from the
average force of constraint:
"
#
! 2
H
!
d
F(2 ) F(1 ) =
!
1
Free energy difference along a
given one-dimensional
reaction coordinate.
Conditioned average
in the constraint
ensemble
(r ) =
(r
, r ) = 0
Molecular Dynamics
Few words about the method of constraints to compute free energy differences:
In the simulation of rare events (such as many reactions) the blue moon ensemle method
allows one to compute the potential of mean force, which can be obtained from the
average force of constraint:
"
#
! 2
H
!
d
F(2 ) F(1 ) =
!
1
Free energy difference along a
given one-dimensional
reaction coordinate.
Conditioned average
in the constraint
ensemble
(r ) =
(r
, r ) = 0
Molecular Dynamics
Molecular Dynamics
F(2 ) F(1 ) =
! dF
d
d !
Molecular Dynamics
F(2 ) F(1 ) =
! dF
d
d !
The problem is reduced to the calculation of the derivative of the free energy with
respect to the constraint; it can be shown that it is easily obtained by computing
unconditioned averages as directly obtained from constrained MD runs:
Z
dF
=
!
d
"
[ + kB T G] !
!
"
Z 1/2 !
1/2
Molecular Dynamics
F(2 ) F(1 ) =
! dF
d
d !
The problem is reduced to the calculation of the derivative of the free energy with
respect to the constraint; it can be shown that it is easily obtained by computing
unconditioned averages as directly obtained from constrained MD runs:
Z
dF
=
!
d
"
[ + kB T G] !
!
"
Z 1/2 !
1/2
Lagrange multiplier as
obtained from the
constrained MD
Molecular Dynamics
F(2 ) F(1 ) =
! dF
d
d !
The problem is reduced to the calculation of the derivative of the free energy with
respect to the constraint; it can be shown that it is easily obtained by computing
unconditioned averages as directly obtained from constrained MD runs:
Z
dF
=
!
d
"
#
N
N
!
1 (r )
Z=
mi
ri
i=1
"
[ + kB T G] !
!
"
Z 1/2 !
1/2
"
#
N
N
2
N
N
!
1
(r ) (r ) (r )
1
G= 2
Z i,j mi mj
ri
ri rj
rj
Lagrange multiplier as
obtained from the
constrained MD
Molecular Dynamics
F(2 ) F(1 ) =
! dF
d
d !
The problem is reduced to the calculation of the derivative of the free energy with
respect to the constraint; it can be shown that it is easily obtained by computing
unconditioned averages as directly obtained from constrained MD runs:
Z
dF
=
!
d
"
#
N
N
!
1 (r )
Z=
mi
ri
i=1
"
[ + kB T G] !
!
"
Z 1/2 !
1/2
"
#
N
N
2
N
N
!
1
(r ) (r ) (r )
1
G= 2
Z i,j mi mj
ri
ri rj
rj
Lagrange multiplier as
obtained from the
constrained MD
Molecular Dynamics
if we consider a simple distance constraint, then:
(rN ) = |ri rj |
Molecular Dynamics
if we consider a simple distance constraint, then:
(rN ) = |ri rj |
"
#
N
N
!
1 (r )
= constant
Z=
m
r
i
i
i=1
"
#
N
N
2
N
N
!
1
(r ) (r ) (r )
1
=0
G= 2
Z i,j mi mj
ri
ri rj
rj
Molecular Dynamics
if we consider a simple distance constraint, then:
(rN ) = |ri rj |
"
#
N
N
!
1 (r )
= constant
Z=
m
r
i
i
i=1
"
#
N
N
2
N
N
!
1
(r ) (r ) (r )
1
=0
G= 2
Z i,j mi mj
ri
ri rj
rj
!
Z
dF
=
!
d
"
[ + kB T G] !
!
"
= "#!
1/2
Z
!
1/2
Molecular Dynamics
a quite widespread constraint is the so-called coordination number constraint, defined as:
N
(r ) = ni (r ) =
N
!
k!=i
1
1 + exp [(rik rc )]
Molecular Dynamics
a quite widespread constraint is the so-called coordination number constraint, defined as:
N
(r ) = ni (r ) =
N
!
k!=i
1
1 + exp [(rik rc )]
Molecular Dynamics
Fig. 3 Protonation of PO5H32". (a) 91 fs: initial configuration of PO5H32" with one O" in the axial position and one O" in the equatorial position
(black coloured atoms). (b) 127 fs: the axial O" pulls a proton of a neighbouring water molecule towards it. (c) 197 fs: solventsolute proton transfer has occurred and a H3O2" is formed. (d) 800 fs: after the breakup of H3O2" we have PO5H4", 28 H2O, and OH".
a quite widespread constraint is the so-called coordination number constraint, defined as:
surprising that we observe spontaneous deprotonation within
For each, fixed, value of the coordination number a trajectory
N
femtoseconds (Fig. 5d).
of roughly 2 to 3 ps length was computed. In Fig. 4a the blue14
N
N the mean
This dehydration process is in competition with the deprotomoon corrected average constraint
force, i.e.
i
nation reaction we intend to enforce by using coordination
force, is plotted as a function of the coordination
number
for both the axial and the equatorial site. The equilibrium
ik
c
k!
=
i
value of n was determined to be 0.98 in both cases from the trajectory of unconstrained P(OH)5 . In the region just below the
equilibrium value of n we observe a steep rise of the mean force
reaching a maximum at n 0.925. As expected, the restoring
force resisting proton abstraction is significantly higher for
an axial proton than for an equatorial proton, the mean forces
being 286.6 kJ mol"1 and 214.6 kJ mol"1, respectively. With
further decreasing coordination number the mean force is seen
to fall off towards zero and we observe the formation of a
H5O2+ ion (Zundel ion) (Fig. 5a). The smallest value of n
for which a meaningful trajectory could be obtained was 0.2
in the case of the equatorial site and 0.3 for the axial position.
For smaller n the H5O2+ ion breaks up into a hydronium ion
and a water molecule H2OA which has accepted the proton
from the phosphorane and donated another proton to its nearest neighbour. The newly created H3O+ ion is now free to
attack the negatively charged phosphorane. Fig. 5bc illustrates how an axial hydroxyl group of the phosphorane is
protonated turning it into a H2O+ group initially. The
corresponding PO bond is subsequently broken and a neutral
Fig. 4 (a) Mean force of constraint as a function of the coordination
water molecule leaves the phosphorane molecule. Since we are
number n for the axial (K) and the equatorial (S) site; (b) correspondnow dealing with phosphoric acid, H3PO4 , in water, it is not
ing free energy curves obtained by integration of the mean forces.
(r ) = n (r ) =
1
1 + exp [(r r )]
2615
Molecular Dynamics
Molecular Dynamics