Skip to content

Commit ffc0ab1

Browse files
committed
ENH: remove duplicate effective rail calculations
1 parent c437c9e commit ffc0ab1

1 file changed

Lines changed: 0 additions & 25 deletions

File tree

rocketpy/simulation/flight.py

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,31 +1171,6 @@ def __init_equations_of_motion(self):
11711171
if self.equations_of_motion == "solid_propulsion":
11721172
self.u_dot_generalized = self.u_dot
11731173

1174-
@cached_property
1175-
def effective_1rl(self):
1176-
nozzle = self.rocket.motor_position
1177-
try:
1178-
rail_buttons = self.rocket.rail_buttons[0]
1179-
upper_r_button = (
1180-
rail_buttons.component.buttons_distance * self.rocket._csys
1181-
+ rail_buttons.position
1182-
)
1183-
except IndexError: # No rail buttons defined
1184-
upper_r_button = nozzle
1185-
effective_1rl = self.rail_length - abs(nozzle - upper_r_button)
1186-
return effective_1rl
1187-
1188-
@cached_property
1189-
def effective_2rl(self):
1190-
nozzle = self.rocket.motor_position
1191-
try:
1192-
rail_buttons = self.rocket.rail_buttons[0]
1193-
lower_r_button = rail_buttons.position
1194-
except IndexError: # No rail buttons defined
1195-
lower_r_button = nozzle
1196-
effective_2rl = self.rail_length - abs(nozzle - lower_r_button)
1197-
return effective_2rl
1198-
11991174
@cached_property
12001175
def frontal_surface_wind(self):
12011176
# Surface wind magnitude in the frontal direction at the rail's elevation

0 commit comments

Comments
 (0)