Beruflich Dokumente
Kultur Dokumente
(MS1)
where !ri(m ) is determined so as to decrease the potential energy E p (r1 ,r2 ,.....,rN ) .
Different molecular statics (MS) methods of relaxation differ in the way !ri(m ) is
determined.
"E p #
# !ri
#=1 "ri
3
!E p = $
(MS2)
where !ri is the component of the vector !ri . This is the Taylor expansion to the
first order. The right side is the scalar product of the vectors grad r E p and !ri and
i
thus the decrease of the energy will be the biggest when !ri is in the direction of
(MS3)
( m)
!ri = "Fi
(MS4)
where ! is a numerical factor chosen to optimize the efficiency of the procedure and
ensure at the same time convergence of the routine. may remain the same in all
iterations or may be adjusted during the relaxation process. There is no mathematical
rule how to determine the best and this constant is found by trial and error. The
precision with which the minimum is found has to be determined in the calculation. In
order to determine whether the minimum has been reached we follow:
1. The energy of the system and consider the relaxation calculation complete if the
change of the energy from iteration to iteration is below a chosen limit. Frequently,
near the minimum the energy does not decrease monotonously but oscillates.
Energy
2. Magnitude of forces on all atoms is below a set limit. Usually we determine the
maximum force found in the relaxed block and require that the magnitude of this
maximum force has to be below a chosen limit.
Potential energy
Minimum energy
Number of iterations
The dependence of the potential energy on the number of iterations when the energy
decreases monotonously.
2
Energy
Potential energy
Minimum energy
Number of iterations
The dependence of the potential energy on the number of iterations when the energy
decreases in an irregular oscillatory manner.
An important hint: During the calculation of forces (energies) you should use the
neighbor list. However, since the atomic configuration changes during the calculation
the neighbor list needs to be updated from time to time. Exactly how often cannot be
said but at the beginning of the calculation the best is to do it after every 50 iterations.
!E p = "$ $
i= 1 # = 1
Fi# !ri#
1 N 3
#
%
+ $ $ H #,%
i, j !ri !rj
2 i,j= 1 # ,%=1
3
(MS5)
$& ! 2 E p (&
H =% " #)
(MS6)
&' !ri !rj &*
is the 3N dimensional matrix called Hessian matrix. We now seek such !ri that leads
to the maximum negative value of !E p . The necessary condition for maximization of
!E p is
!"E p
!"ri#
= 0 , which gives
!Fi"
#
+ $ $ H ",#
i, j %rj = 0
(MS7.1)
j= 1 #= 1
F = H!R
(MS7.2)
{ } , F the 3N dimensional
!
{ }
!
!R ( m ) = "S (m ) F ( m )
(MS8a)
(m)
( F is the vector of forces in the mth iteration and is a parameter chosen for fastest
convergence) and calculate the new positions of atoms used in the (m+1)th iteration
R ( m +1) = R ( m ) + !R ( m )
In the Fletcher-Powell algorithm the matrix S is updated as follows
(MS8b)
(m +1)
=S
(m)
(S
!
(m )
)(
) ! (#R
)
( #R
" #F (m ) " #F T ( m ) S( m )
(m )
#R T ( m )
).
)
(MS9)
T (m)
S #F ( m )
#F (m )
Here the letter T indicates the transpose of the corresponding matrix (vector) and
!F ( m ) = F (m +1) " F (m ) , where F ( m +1) is the vector of forces in the (m+1)th iteration.
(m +2)
The new positions of particles, R
, that are used in the (m+1)th iteration are,
similarly as in (MS8a,b)
( #F
T (m) (m)
A problem, may still be the storage of the matrix S since it has dimensions 9N . This
becomes significant for large systems of particles.
Standard subroutines of this method are available in various libraries and are usually
called VARIABLE METRIC METHOD.
Conjugate gradient
In this method the displacements of atoms, !ri , are not in the directions of the forces
(gradients). In general, in the (m+1)th iteration the directions of the displacements are
not determined only on the basis of the forces calculated in the mth iteration but also
using values of the forces found in previous iterations. This is carried out as follows:
{ } is written as
!
!R = $ " ! #!
(MS10)
! =1
where !! are 3N vectors in the 3N dimensional space that have been gradually
constructed in the previous 3N iterations (P. R. Adby and M. A. H. Dempster:
Introduction to Optimization Methods, Chapman & Hall, London, 1974).
In the first iteration !1 = F (1) , where F is the 3N dimensional vector of forces
evaluated in the first iteration, and all other vectors !! .for ! > 1 are set to zero. Thus, at
this point the displacements are parallel to the forces as in the steepest descent method.
In the second iteration the vector !2 is constructed as !2 = F ( 2) , similarly as in the first
iteration; all other vectors !! , for ! > 2 are set to zero. In the following iterations the
recursive formula
(1)
!m = F
(m)
F T ( m " 1) F (m " 1)
+ T ( m " 2) (m " 2) !m "1
F
F
5
(MS11)
is used to construct gradually additional vectors !! ; the letter T denotes the transpose
of the corresponding vector. Thus in every iteration, m, a new vector !m is added until
3N vectors have been constructed in the first 3N iterations. At this point these 3N
( 3N +1)
vectors are used to determine !R
in the 3N+1 iteration according to equation
(MS10). When the number of iterations, M, is larger than 3N, then 3N vectors
( M +1)
constructed in the previous 3N iterations are used in determining !R
in the M+1
iteration, again according to equation (MS10).
This method is in many cases more efficient than the steepest decent and standard
subroutines of this method and its variation are available in libraries. However,
similarly as the variable metric method, it may become inefficient for very large
numbers of particles.
Standard subroutines of this method are available in various libraries.