Skip to content

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

Notifications You must be signed in to change notification settings

thephantomthief/particle-collider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

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.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages