Jump to content

Requests for technical support from the VASP team should be posted in the VASP Forum.

Time-propagation algorithms in molecular dynamics

From VASP Wiki

In molecular dynamics simulations, the ionic positions 𝐫i(t) and velocities 𝐯i(t) are monitored as functions of time t. This time dependence is obtained by integrating Newton's equations of motion. When integrating the equations of motions it is important to use symplectic algorithms which conserve the phase-space volume. To solve the equations of motion under symplectic conditions, various integration algorithms have been developed. The time dependence of a particle can be expressed in a Taylor expansion

𝐫i(t+Δt)=𝐫i(t)+𝐯i(t)Δt+𝐅i2m(t)Δt2+3𝐫i(t)t3Δt3+𝒪(Δt4)

A backward propagation in time by a time step Δt can be obtained in a similar way

𝐫i(tΔt)=𝐫i(t)𝐯i(t)Δt+𝐅i2m(t)Δt23𝐫i(t)t3Δt3+𝒪(Δt4)

Adding these two equation gives and rearrangement gives the Verlet algorithm

𝐫i(t+Δt)=2𝐫i(t)𝐫i(tΔt)+𝐅i2m(t)Δt2+𝒪(Δt3)

The Verlet algorithm can be rearranged to the Velocity-Verlet algorithm by inserting 𝐯i(t)=𝐫i(t)𝐫i(tΔt)Δt

𝐫i(t+Δt)=𝐫i(t)+𝐯i(t)Δt+𝐅i2m(t)Δt2.

Velocity-Verlet integration scheme

The Velocity-Verlet algorithm can be decomposed into the following steps:

  1. 𝐯i(t+12Δt)=𝐯i(t)+𝐅i(t)2miΔt
  2. 𝐫i(t+Δt)=𝐫i(t)+𝐯i(t+12Δt)Δt
  3. compute forces 𝐅i(t) from density functional theory or machine learning
  4. 𝐯i(t+Δt)=𝐯i(t+12Δt)+𝐅i(t+Δt)2miΔt

From these equations it can be seen that the velocity and the position vectors are synchronous in time.

Leap-Frog integration scheme

Another form of the Verlet algorithm can be written in the form of the Leap-Frog algorithm. The Leap-Frog algorithm consists of the following steps:

  1. compute forces 𝐅i(t) from density functional theory or machine learning
  2. 𝐯i(t+12Δt)=𝐯i(t12Δt)+𝐅i(t)miΔt
  3. 𝐫i(t+Δt)=𝐫i(t)+𝐯i(t+12Δt)Δt

In this form the velocity and the position vectors are asynchronous in time.

Thermostats and used integrators

MDALGO thermostat integration algorithm
0 Nosé-Hoover Velocity-Verlet
1 Andersen Leap-Frog
2 Nosé-Hoover Leap-Frog
3 Langevin Velocity-Verlet
4 Nosé-Hoover chain Velocity-Verlet
5 CSVR Leap-Frog
5 Multiple Andersen Leap-Frog

Related tags and articles

IBRION, MDALGO, Thermostats