Note: This project was completed as my final project for a multivariable calculus course in high school.
This program simulates steady supersonic flow in a rocket nozzle using the method of characteristics. It computes Mach numbers, flow angles, and nozzle geometry based on Prandtl-Meyer functions and characteristic lines.
- Python 3.6+
- numpy
- scipy
- matplotlib
- Create a virtual environment:
python3 -m venv venv
- Activate the virtual environment:
source venv/bin/activate - Install dependencies:
pip install -r requirements.txt
Run the simulation:
python steadyFlowSimulation.pyFeel free to adjust parameters (wall_angle, num_initial, M_initial, etc.) in steadyFlowSimulation.py to explore different configurations.