This code was the final project in my rocket propulsion class at UAH. I worked with another team member on other aspects of the project but I wrote all of this code. The project is for simulation the performance of solid rocket, mainly the maximum height reached of the rocket design. It calculates internal ballistics of the motor as well as atmospheric conditions through the flight which affect both the motor performance and the drag on the vehicle. After the burn phase the simulation will continue the analysis into the coast phase to find the apogee. The goal of this project was to create 3 different vehicle designs for 3 different altitudes. Each of these altitudes needs to be achieved only by changing the number of propellent grains, nozzle dimensions, and a small amount of ballast. Other parameters of the vehicle we required to remain the same, this mimicked the real world need to be able to use common parts for different missions to reduce cost.
If the parameters of the need to be changes for a different mission all the parameters can be changed in src/PR08D_V2.m in the section shown below.
Many different outputs will be given for each design. There are both tables and graphs as outputs. An example of the output tables and graphs are shown below
Make sure all the files in the src directory are in the same folder on your local machine. Open and run src/PR08D_V2.m, changing parameters as desired. The progam will automatically print all the output tables and show all of the graphs.