Simulation of a projectile on a Flat Earth written in Python.
To view graphs and plots specifically using VS Code, the "# %%"
in the code allows for VS Code to use the Jypter Notebook extension to
display the plots. To run them, click "Run Cell" right above "# %%".
To save the graphs for viewing, remove '#' character on code
that contains "mpl.savefig(..." This will save the graphs/plots
to graph representation.
"numpy" is the numerical library allowing for numerical conversions.
"matplotlib" is the MatLab ploting style for graphs and plots.
"scipy" is a science tool box which comes with integration included.
- Enter the Virtual environment.
- Widnows: "..venv\Scripts\activate"
- Mac: "source .venv/bin/activate"
- Run "pip install -r requirements.txt"
- Run python code:
- Windows: "(py or python) projectile.py"
- Mac: "python projectile.py"
- Run Newtonian Calculations:
- Windows: "(py or python) projectile_newtonian.py"
- Mac: "python projectile_newtonian.py"
- Run 2D Model:
- Windows: "(py or python) projectile_2D_newtonian.py"
- Mac: "python projectile_newtonian.py"
- Run Single Stage Rocket Model:
- Windows: "(py or python) single_stage_rocket.py"
- Mac: "python single_stage_rocket.py"
- Run Second Stage Rocket Model (for Kerbin):
- Windows: "(py or python) second_stage_rocket.py"
- Mac: "python second_stage_rocket.py"
- Run Aerodynamic 2 Stage Rocket (for Kerbin):
- Windows: "(py or python) aerodynamic_2_stage.py"
- Mac: "python aerodynamic_2_stage.py"