The purpose of this simulation is to model the process of a ball with a certain predetermined elasticity and mass being dropped from a certain height and bouncing in a vacuum while displaying measurements and calculations throughout the process such as:
- Current velocity
- Height
- Momentum
- Kinetic energy
- Potential energy
- Total mechanical energy
To install the program clone the repository to a local folder using:
git clone https://github.com/WilliamYue37/Elasticity-Simulator.git
Enter the repository folder using:
cd Elasticity-Simulator
Then run the program by using the command:
python simulation.py
Enter the starting values (Mass, Elasticity, and Initial Height) into the table on the right and then press "Start".
The simulation can be paused and played using the "Pause"/"Play" buttons on the right.
To reset the simulation after starting it, press the "Reset" button.
The simulation assumes that the ball is being dropped in a vaccum, i.e. air resistance is not considered.
Once the ball bounces enough that it's velocity goes below 10-3 the ball is stopped and the simulation ends. In reality, a ball bouncing in a vacuum would bounce infinitely.