-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
36 lines (26 loc) · 859 Bytes
/
main.py
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
# IMPORTS
from motor import Motor
from stage import Stage, Booster
from assembly import RocketBody
from simulation import Simulation
# DEFINING COMPONENTS
constant_thrust_test_motor = Motor()
constant_thrust_test_motor.define_with_constant_values(200, 10, 0.05, 0.03)
constant_thrust_test_motor_two = Motor()
constant_thrust_test_motor_two.define_with_constant_values(200, 10, 0.05, 0.03)
test_motor_booster = Booster(
motor=constant_thrust_test_motor,
mass=1.0
)
test_motor_booster_two = Booster(
motor=constant_thrust_test_motor_two,
mass=1.0
)
# DEFINING BODY
test_stage = Stage(1, test_motor_booster, test_motor_booster_two, 2)
test_stage_two = Stage(2, test_motor_booster)
test_rocket = RocketBody()
test_rocket.add_stage(test_stage, test_stage_two)
# DEFINING SIMULATION
sim = Simulation(test_rocket, 90)
sim.plot_disp_curve()