An open API service indexing awesome lists of open source software.

https://github.com/pandaiscodingcpu/rocket_trajectory

A simple physics-based simulator to model the trajectory of a rocket based on initial conditions like thrust, drag, gravity, and atmospheric resistance.
https://github.com/pandaiscodingcpu/rocket_trajectory

matplotlib-pyplot numpy-library

Last synced: 8 months ago
JSON representation

A simple physics-based simulator to model the trajectory of a rocket based on initial conditions like thrust, drag, gravity, and atmospheric resistance.

Awesome Lists containing this project

README

          

## πŸš€ Rocket Trajectory Simulator
A simple physics-based simulator that models a rocket's vertical trajectory considering thrust, gravity, drag, and mass reduction due to fuel consumption.

### **Features:**
- βœ… Simulates **rocket motion** using Newtonian physics.
- βœ… Takes user inputs for **thrust, mass, fuel burn rate, and flight time**.
- βœ… Implements **drag force** based on cross-sectional area and air resistance.
- βœ… Updates **velocity and altitude** iteratively using small time steps.
- βœ… **Plots altitude vs. time** for visualization.

### **How It Works:**
1. User inputs **rocket parameters** (thrust, mass, fuel burn rate, etc.).
2. The simulation updates velocity and altitude at each time step using **Newton's laws**.
3. **Drag force and fuel consumption** are dynamically adjusted.
4. The altitude vs. time **graph is plotted** using Matplotlib.

### **Tech Stack:**
- **Programming Language:** Python
- **Libraries:** NumPy, Matplotlib
- **Concepts Used:** Kinematics, Newton’s Laws, Aerodynamic Drag