|
1 | | -from rocketpy.mathutils import Function |
| 1 | +from rocketpy.mathutils import Function, funcify_method |
2 | 2 | from rocketpy.motors.motor import Motor |
3 | 3 |
|
4 | 4 |
|
@@ -37,41 +37,41 @@ def __init__(self): |
37 | 37 | self.I_13 = Function(0) |
38 | 38 | self.I_23 = Function(0) |
39 | 39 |
|
40 | | - @property |
| 40 | + @funcify_method("Time (s)", "Center of Propellant Mass (kg)", "linear", "zero") |
41 | 41 | def center_of_propellant_mass(self): |
42 | | - return Function(0, "Time (s)", "Center of Propellant Mass (kg)") |
| 42 | + return 0 |
43 | 43 |
|
44 | | - @property |
| 44 | + @funcify_method("Time (s)", "Exhaust Velocity (m/s)", "linear", "zero") |
45 | 45 | def exhaust_velocity(self): |
46 | | - return Function(0, "Time (s)", "Exhaust Velocity (m/s)") |
| 46 | + return 0 |
47 | 47 |
|
48 | 48 | @property |
49 | 49 | def propellant_initial_mass(self): |
50 | 50 | return 0 |
51 | 51 |
|
52 | | - @property |
| 52 | + @funcify_method("Time (s)", "Propellant I_11 (kg m²)", "linear", "zero") |
53 | 53 | def propellant_I_11(self): |
54 | | - return Function(0, "Time (s)", "Propellant I_11 (kg m²)") |
| 54 | + return 0 |
55 | 55 |
|
56 | | - @property |
| 56 | + @funcify_method("Time (s)", "Propellant I_12 (kg m²)", "linear", "zero") |
57 | 57 | def propellant_I_12(self): |
58 | | - return Function(0, "Time (s)", "Propellant I_12 (kg m²)") |
| 58 | + return 0 |
59 | 59 |
|
60 | | - @property |
| 60 | + @funcify_method("Time (s)", "Propellant I_13 (kg m²)", "linear", "zero") |
61 | 61 | def propellant_I_13(self): |
62 | | - return Function(0, "Time (s)", "Propellant I_13 (kg m²)") |
| 62 | + return 0 |
63 | 63 |
|
64 | | - @property |
| 64 | + @funcify_method("Time (s)", "Propellant I_22 (kg m²)", "linear", "zero") |
65 | 65 | def propellant_I_22(self): |
66 | | - return Function(0, "Time (s)", "Propellant I_22 (kg m²)") |
| 66 | + return 0 |
67 | 67 |
|
68 | | - @property |
| 68 | + @funcify_method("Time (s)", "Propellant I_23 (kg m²)", "linear", "zero") |
69 | 69 | def propellant_I_23(self): |
70 | | - return Function(0, "Time (s)", "Propellant I_23 (kg m²)") |
| 70 | + return 0 |
71 | 71 |
|
72 | | - @property |
| 72 | + @funcify_method("Time (s)", "Propellant I_33 (kg m²)", "linear", "zero") |
73 | 73 | def propellant_I_33(self): |
74 | | - return Function(0, "Time (s)", "Propellant I_33 (kg m²)") |
| 74 | + return 0 |
75 | 75 |
|
76 | 76 | @property |
77 | 77 | def structural_mass_ratio(self): |
|
0 commit comments