Skip to content

Commit 899292f

Browse files
MNT: add structural mass ratio property to EmptyMotor class
1 parent 541df1f commit 899292f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

rocketpy/motors/empty_motor.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,7 @@ def propellant_I_23(self):
7272
@property
7373
def propellant_I_33(self):
7474
return Function(0, "Time (s)", "Propellant I_33 (kg m²)")
75+
76+
@property
77+
def structural_mass_ratio(self):
78+
return 0

rocketpy/motors/motor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,6 +1162,7 @@ def all_info(self):
11621162
self.prints.all()
11631163
self.plots.all()
11641164

1165+
11651166
# TODO: move this class to a separate file, needs a breaking change warning
11661167
class GenericMotor(Motor):
11671168
"""Class that represents a simple motor defined mainly by its thrust curve.

0 commit comments

Comments
 (0)