This project focuses on simulating the descent of a gondola as part of a free-fall amusement park ride, with a specific interest in understanding the deceleration achieved through magnetic braking.
The methodology incorporates the application of the Biot-Savart law and Maxwell's laws, enhanced by utilizing the Runge-Kutta numeric method. This computational approach allows for the calculation of the magnetic field surrounding the gondola and its interaction with the magnetic field present in the ground, providing insights into the deceleration process during the gondola's descent.
The simulation was implemented in Python, leveraging matplotlib and numpy to develop three distinct programs.
-
HeatMapAndNumericalApproximations.py
- Description: This program calculates and visually represents the magnetic field of a ring using streamplot, accompanied by a heatmap.
-
ComparingMagneticFieldInEachComponent.py
- Description: This program program generates a comparative graph illustrating the magnetic field in each component (x, y, and z).
-
AnimationOfTheGondolaFalling.py
- Description: This program animates the gondola's descent, showcasing the magnetic braking process until the point of complete stoppage.
Follow these steps to get the project up and running on your local machine.
Make sure you have the following installed on your machine:
-
Clone the repository:
git clone https://github.com/HumbertoBM2/Calculation-and-Simulation-of-Magnetic-Braking-Deceleration-in-a-Drop-Tower-Ride
-
Navigate to the project directory:
cd Calculation-and-Simulation-of-Magnetic-Braking-Deceleration-in-a-Drop-Tower-Ride
-
Open a terminal and run one of the following commands:
python ./HeatMapAndNumericalApproximations.py
python ./ComparingMagneticFieldInEachComponent.py
python ./AnimationOfTheGondolaFalling.py
Each application will display an interactive menu guiding you through each step. Follow the instructions of each menu and enjoy.