-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
52 lines (40 loc) · 1.8 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
Space Launch Simulator v0.1a
William Earley
Feb 2013
License: GPLv3, see gpl.txt
If you use this software, please reference the original
This software will compute many different variables over the course of a
launch simulation. It is generalised, and you can input any number of
stages and burn phases, with ranges or constant ISPs and other variables
python sls.py
Run the above command to see sample output data for the Apollo 11
Saturn V, first 11:52 of the launch, using a mission profile from
http://www.braeunig.us/apollo/saturnV.htm
Note that the simulation does not exactly reproduce his results,
however it was close enough for my needs, feel free to tweak the
mission profile to more closely approximate the launch
There is currently no documentation, below is a brief description
of each python file and what it does to try to make up for the lack
of documentation, please also note that all units are SI
interpolation.py provides a number of mathematical tools for
interpolating by akima cubic spline, integrating, matrices
and linear system solving, and others
rocket.py provides a number of generic classes for holding data
for use in other classes
atmosphere.py provides an atmosphere class, which takes in a
csv file containing:
altitude /m
air temp /K
air density /kg/m3
pressure /Pa
molar mass /g/mol
specific heat ratio
and then provides functions interpolating all of these values
across the entire altitude range, make sure that the altitude
is in the correct order, and increasing
sim.py provides the sim class, which carries out the simulations.
A sample use is in sls.py
sls.py may one day be a front end for the simulator, currently
just performs one example launch (Apollo 11 Saturn V)
and saves the distance/drag data to the file sim.dat for
use in gnuplot