Collision Systems for C++98

Source Code

Abstract:

The code simulates the colliding motion of N frictionless hard sphere particles that exhibit perfect elastic collision in an event-driven simulation.

Constraints:

Each particle is assumed to be a hard sphere (think pool balls or something) and confined in a unit box. This is technically known as a hard sphere or hard circle model, depending on the number of available dimensions. Constraints are as follows:

Simulation:

There are 2 ways to implement this simulation. Time driven and event driven.