Computational biochemistry ferenc Bogár György Ferency


Verlet integrator method [1]



Download 2.94 Mb.
Page18/36
Date02.05.2018
Size2.94 Mb.
#47263
1   ...   14   15   16   17   18   19   20   21   ...   36

Verlet integrator method [1]

Let us suppose that we already know the position vectors and their necessary derivatives at the time of tk. Using the Taylor expansion of the position vector we can calculate its value at tk+Δ t and tk-Δt






(6.2)

where O( Δ t4) is an error term of order t4. Adding these two series, the terms with odd orders will cancel and we obtain




(6.3)

After rearrangement




(6.4)

Using the Newton’s equation we can substitute the acceleration with the force calculated from the position vectors at tk:




(6.5)

In this method we need to know the values of the position vectors at tk and tk - Δ t (green points in Figure 6.3.). The forces at tk can be calculated from ri(tk)-s (blue spot in Figure 6.3.). Finally, from the positions and the forces we can calculate the new positions (red spot in Figure 6.3.). Moving the reference time one step further we can repeat the procedure until reaching the desired simulation time.

The Verlet method does not require the explicit calculation of the velocities but we may need it during the evaluation of the results (e.g. calculation of kinetic energy). Formally we can obtain it by subtracting the second equation of (6.2) from the first:






(6.6)

The error of this approximate value is second order in Δt, considerably larger that in the case of position (fourth order in Δt) .

Figure 6.3. Steps of the Verlet integration algorithm



Leapfrog integrator [2]

The other widespread method for the numerical solution of the Newton's equations is the leapfrog integration. It can be easily derived by rearranging the central formula of Verlet’s procedure [6.4] and dividing it by Δt:






(6.7)

The first term in the left hand side and right hand side of the equation is an approximation of v i(t+½Δt) and v i(t-½Δt), respectively. This gives the first equation of the leapfrog method.




(6.8)

The second equation comes from the approximate expression of the velocity used in the derivation. The schematic representation of this method is given in Figure 6.4.

Figure 6.4. Steps of the leapfrog integration algorithm




Download 2.94 Mb.

Share with your friends:
1   ...   14   15   16   17   18   19   20   21   ...   36




The database is protected by copyright ©ininet.org 2024
send message

    Main page