Gravi-Booster is a simulation tool that models the trajectory of a sphere under the influence of gravity and air drag. The simulation takes into account various materials, allowing users to see how different densities affect the motion of the sphere as it falls from a specified height.
- Simulates the fall of a sphere with adjustable mass and material density.
- Calculates the effects of drag based on the sphere's speed and cross-sectional area.
- Visualizes the trajectory of the sphere with time stamps at one-second intervals.
- Supports various materials such as rubber, steel, and copper, or allows users to input custom densities.
- Python 3.x
- Required libraries:
numpy
matplotlib
You can install the required libraries using pip:
pip install numpy matplotlib
Or activate nix development shell:
nix-shell
- Clone the repository:
git clone https://github.com/Gurjaka/gravi-booster.git
cd gravi-booster
- Run the simulation:
python main.py
-
Follow the prompts to input the material of the sphere, its mass, the plane's speed, wind speed, and the initial height above the ground.
-
After the simulation runs, a plot will be displayed showing the trajectory of the sphere.