A simple event-driven molecular dynamics simulation. The times associated with potential particle collisions with the walls and other particles are solved and placed in a priority queue. Particles move forward in time according to Newton’s Laws of Motion until the time of the first event in the priority queue is reached. The first event in the queue is then carried out and the queue is rebuilt based on the new system state. For more on event driven molecular dynamics take a look at this introduction or look under the hood at the JavaScript files running the simulation below.

    • This module in interactive! Click the simulation box below to add more particles.

ERROR: failed to load html object!

Click here for full page view

Warning: high particle densities may lead to unstable behaviour! This is a work in progress. More functionality will be added shortly including pressure analysis, thermal control, interaction potentials and more.


You can get an idea of how the code works by clicking the VCE code icon above.

The simulation and user interface code that powers the vce modules is kindly hosted by GitHub. This code be viewed, downloaded and forked from our GitHub repository. If you find something something wrong with any of the modules on this site, please open an Issue on Gitub, create a Pull Request or email amcguire227@gmail.com.