A simple Python 3 script to simulate the flight of a model rocket
Simply execute main.py to get started -- no external dependencies. You will be prompted by default to enter various parameters, but you can uncomment a section of code at the top to fill them in programatically.
- The rocket's mass without any motors
- The rocket's coefficient of drag
- The rocket's frontal area
- The parachute's frontal area
- The local air density
- The simulation time step
- The number of clustered rockets
- A RASP engine file
- Max height
- Max velocity
- Max acceleration
- Ascent duration
- Descent duration
- Ideal parachute ejection delay
- Velocity at ground impact
Find your motor on thrustcurve.org, download the engine file in RASP format, and place it in the same directory as main.py. Any commented lines should start with ;, the header line should have 7 values, and any data points should be indented with spaces.