The interaction between hard particles was considered as an instantaneous
collision process, with forces of infinite strength actin instantaneously
during infinitely short times. A dynamical equation is of no use in such
model, and it was therefore appropriate to calculate the collision laws to
obtain the new velocities. In between collisions, the particles fly freely
without acceleration. In contrast, for a continuous varying potential, the
particles are either in a force field, or interact with some other particle
at long distances and at any time. Therefore
When evaluating the total force acting on a particle we apply periodic
boundary conditions and the nearest image convention. In this way we may
determine the sum of all the forces acting on a particle. A popular method
to integrate the equations of motion is the Verlet algorithm: