This project is a 3D simulation of a particle accelerator that allows users to explore the interaction between electrons and positrons colliding at relativistic speeds.
- 3D Simulation: Utilizes PyOpenGL to efficiently render dynamic 3D objects within Python, creating visually appealing and interactive experiences.
- Scientific Accuracy: The simulation is built upon research on electron and positron collisions, ensuring that the particle interactions and resulting particles are scientifically accurate.
- Real-World Accelerator Simulations: Includes simulations of velocities achieved by renowned particle accelerators, such as the Large Hadron Collider (LHC) and the early CERN Synchrotron.
The project provides three separate stages for the user:
- Modify simulation parameters, including velocities and collision settings.
- Includes preset velocities for simulating the LHC, the early CERN Synchrotron, and the velocities needed to create fundamental particles.

- Provides descriptions of the kinetic energy of input particles and the resultant particles.
- Designed to illustrate the exponential growth of kinetic energy at relativistic speeds.

- Focuses on visually engaging particle interactions and behaviors.
- Allows users to explore a 3D environment in a more relaxed and exploratory manner.

- Python 3.x
- You will have to download Visual Studio C++ tools (https://github.com/bycloudai/InstallVSBuildToolsWindows).
- Clone the repository to your local machine using the command:
git clone https://github.com/DiarmuidMalanaphy/Particle-Accelerator-Simulator/
- Ensure Python is installed on your system.
- Run the
.batfile to automatically start the application.
Unfortunately, due to a bug in Imgui, the application is currently not supported on Linux or macOS.
Contributions are welcome! If you encounter any issues or have suggestions for improvements, please open an issue or submit a pull request.