Skip to content

Gurjaka/gravi-booster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Gravi-Booster

Overview

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.

Features

  • 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.

Getting Started

Prerequisites

  • 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

How to Use

  1. Clone the repository:
git clone https://github.com/Gurjaka/gravi-booster.git
cd gravi-booster
  1. Run the simulation:
python main.py
  1. 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.

  2. After the simulation runs, a plot will be displayed showing the trajectory of the sphere.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published