Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gill-singh-a/rocket-simulator
Simulates the Flight of a Rocket by plotting its Altitude, Vertical Velocity, Vertical Acceleration and Vertical Forces acted upon the Rocket vs Time.
https://github.com/gill-singh-a/rocket-simulator
math matplotlib numpy physics python python3 rocket rocket-simulation rocket-simulator simulation simulator sympy
Last synced: 6 days ago
JSON representation
Simulates the Flight of a Rocket by plotting its Altitude, Vertical Velocity, Vertical Acceleration and Vertical Forces acted upon the Rocket vs Time.
- Host: GitHub
- URL: https://github.com/gill-singh-a/rocket-simulator
- Owner: Gill-Singh-A
- Created: 2023-04-08T13:49:59.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-05-31T20:09:39.000Z (over 1 year ago)
- Last Synced: 2024-11-09T13:23:12.293Z (2 months ago)
- Topics: math, matplotlib, numpy, physics, python, python3, rocket, rocket-simulation, rocket-simulator, simulation, simulator, sympy
- Language: Python
- Homepage:
- Size: 14.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rocket-Simulator
Simulates the Flight of a Rocket by plotting its Altitude, Vertical Velocity, Vertical Acceleration and Vertical Forces acted upon the Rocket vs Time.
The functions used in the Program for calculating properties like atmospheric density, pressure, temperature, etc are valid upto 10km only, so the program may not work if the rocket goes above 10km## Requirements
Language Used = Python3
Modules/Packages used:
* math
* sympy
* pickle
* optparse
* datetime
* colorama
* time
* matplotlibInstall the dependencies:
```bash
pip install -r requirements.txt
```### main.py
It is the python program that does the simulation.
It takes in the following arguments:
* '-m',"--mass" : Mass of the Rocket without the Fuel (Dry Mass)
* '-f',"--fuel" : Mass of theFuel to be loaded in the Rocket
* '-a',"--area" : Area of the Rocket as seen from Top View
* '-o',"--angle" : Vertex Angle of the Right Circular Cone on top of the Rocket (in degrees)
* '-t',"--throttle" : Fuel entering the Engine (in Kg/s) on 100% Throttle (burn rate)
* '-e',"--engine" : Thrust as a function of the fuel entering the engine (x) in Kg/s
* '-r',"--time-resolution" : Time resolution for the simulation (Default = 0.01 seconds)
* '-d',"--displacement-resolution" : Displacement Resolution for the simulation (Default = 0.1 metres)### read_AVA.py
It reads the pickle dump file that contains data about the Altitude, Vertical Velocity and Vertical Acceleration vs Time created by main.py### read_focres.py
It reads the pickle dump file that contains data about the Vertical Forces acting upon the Rocket vs Time created by main.py