MATLAB flight simulator of the EPFL Rocket Team.
This repository contains several sub-folders implementing various aspects of the simulation. Here we present a basic overview of the main components.
Here is a simplified hierarchy of the main subfolders.
ERT_simulator
├── Declarations
| ├── Environment
| ├── Motor
| ├── Rocket
│ └── Simulation
|
├── Functions
| ├── Maps
| ├── Math
| ├── Models
| └── Utilities
|
├── Simulator_1/2/3D
|
├── Litterature
|
└── README.md
Here is a brief description of these subfolders.
- Declarations: input files for the interacting systems of the simulation (the Rocket, the Motor and the Environment.)
- Functions: Mathematical functions and Models used in the simulation, as well as Utilities to manipulate the data and draw the rocket. Also contains the relevant code for 3D Maps
- Simulator_1/2/3D: Mains used to run the code for 1/2/3D simulation.
- Litterature: some relevant litterature for reference.
We present here a brief user guide for the utilization of the ERT-Sim.
First and foremost, it is recommended to read the project report for this Simulator, written by Eric Brunner & Maximilien Mingard, as well as the ERT wiki. The report explains all the theory behind the flight simulation of a rocket and takes the reader through the steps in an understandable way, starting with the easier 1D model and ramping up gently to the full 3D simulation.
In order to run a 3D simulation, follow these steps:
- Make sure your input files are in the corresponding subfolders in
Declarations
and follow the format of the already present files. Make sure your Motor file is properly referenced in your Rocket file. - Open the desired Main program, for instance
Simulator_3D\Main_3D.m
and update the Rocket and Environment input files in the corresponding lines. - Execute the program. The simulation will start to run and output the first figures. A prompt will appear in the command box asking you whether to plot the remaining figures. Type "yes" or "no" according to your preference.
Several Mains have been implemented over the years by successive people to test different functionalities.