Molecular Dynamics of Lennard-Jones Particles Using the Velocity Verlet Algorithm

​
temperature
volume
particles
Molecular dynamics is a computer simulation technique that follows the time evolution of a set of interacting atoms or molecules by integrating their equations of motion. This Demonstration uses molecular dynamics and the velocity Verlet algorithm to simulate the motion of particles interacting under the Lennard–Jones 6-12 potential. You can vary the temperature, volume, and number of particles to change from the formation of clusters to liquid-like behavior. The color of each particle depends on its speed.

Details

This Demonstration is only illustrative; therefore, naive techniques have been used in the code. For example, the velocities are rescaled at every step to give the desired temperature, which is not a good "thermostat" for real research using molecular dynamics. The Lennard–Jones potential has also been modified in order to avoid the huge forces that can arise when atoms are very close together. On the other hand, this naive implementation does show interesting behavior; at low temperatures particles cluster together in hexagonal arrangements, while at higher temperatures liquid-like behavior can be recognized. Normal modes of oscillation can also be observed in clusters.
The velocity Verlet algorithm is a method for calculating the trajectories of particles in a molecular dynamics simulation. It offers stability and efficient use of computer memory and time when the number of particles is large. This algorithm calculates the position of the
th
i
particle at step
k+1
from its position, velocity, and acceleration at step k. Then velocities at the "half step"
k+1/2
are calculated. Accelerations at step
k+1
are obtained from the total force on each particle, and, finally, velocities at step
k+1
are obtained from velocities at the half step
k+1/2
and accelerations at step
k+1
. If
r
,
v
,
a
,
m
,
F
are the position, velocity, acceleration, mass, and total force on the particle, and τ is the step size, the velocity Verlet algorithm is:
(k+1)
r
i
=
(k)
r
i
+
(k)
v
i
τ+
(k)
a
i
2
τ
/2​​
(k+1/2)
v
i
=
(k)
v
i
+
(k)
a
i
τ/2​​
(k+1)
a
i
=
F
i
/
m
i
​​
(k+1)
v
i
=
(k+1/2)
v
i
+
(k+1)
a
i
τ/2

External Links

MDNewton Version 0.2 (Wolfram Library Archive)
Molecular Dynamics (ScienceWorld)
Simulation of a Simple Gas Pressure Model
Crystal Animations Resulting from Molecular Dynamics Calculations (Wolfram Library Archive)

Permanent Citation

José Luis Gómez-Muñoz
​
​"Molecular Dynamics of Lennard-Jones Particles Using the Velocity Verlet Algorithm"​
​http://demonstrations.wolfram.com/MolecularDynamicsOfLennardJonesParticlesUsingTheVelocityVerl/​
​Wolfram Demonstrations Project​
​Published: December 12, 2007