Flight dynamics simulator written in Python. Simulate complex multi-stage rockets with different propellant and engine configuration.
- Implements NASA's Isentropic Flow equations.
- A propellant class and an engine class calculate the thrust and geometry of the required engine.
- Includes graph visualisation for altitude, velocity, thrust and dynamic pressure to visualise your rocket's flightpath.
- Multiple stage simulation for more complex rocketry simulations.
The system estimates for the Mach number using the Newton-Raphson method. The Area-Mach relation equation is as follows:
Where
| Rocket | Fuel | Graph |
|---|---|---|
| V2 | B-Stoff (3:1 Ethanol:Water) | ![]() |
| Falcon 9 | Kerosene | ![]() |
- Languages used: Python
- Frameworks/libraries: matplotlib
- Python OOP
- Translating equations into code
- Numerical Methods
- Aerospace Engineering principles
├── README.md
├── data.py
├── engine.py
├── engine_math.py
├── images
│ ├── flight_20260308-235112.png
│ └── latest.png
├── main.py
└── requirements.txt
git clone https://github.com/liampallett/flight-dynamics.git
pip install -r requirements.txt
python main.py- Implement a propellant dataset so hard-coded values are not necessary. Many simulations can be run with varying propellants to see the most effective for your rocket setup.
The use of the generative AI tool Gemini 3 Fast/Pro was used in this project for consultation only. No code in this project was created by AI.


