Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 1.01 KB

README.md

File metadata and controls

24 lines (17 loc) · 1.01 KB

Simulation of N-identical particles constrained to move in a circle

Description

I wrote a C++ program to simulate the motion of N-identical particles moving in a circle. The particles can be initialized to move with any velocity and can also be intialized to start from any postion of the circle.

During the course of their motion, they can collide with other particles. You can specify whether the collision can be elastic, inelastic or perfectly inelastic by specifying the coefficient of restitution 'e'.

The code is well commented and easy to understand. The variables which can be modified according to different scenarios are:

  1. No. of particles
  2. Radius of the circle
  3. Coefficient of restitution
  4. Initial position of the particles
  5. Initial velocity of the particles
  6. No. of collisions you wish to observe

The variables are highlighted by a comment

//edit this

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.