@@ -2571,6 +2571,15 @@ def acceleration(self):
25712571 """Rocket acceleration magnitude as a Function of time."""
25722572 return (self .ax ** 2 + self .ay ** 2 + self .az ** 2 ) ** 0.5
25732573
2574+ @funcify_method ("Time (s)" , "Axial Acceleration (m/s²)" , "spline" , "zero" )
2575+ def axial_acceleration (self ):
2576+ """Axial acceleration magnitude as a function of time, in m/s²."""
2577+ return (
2578+ self .ax * self .attitude_vector_x
2579+ + self .ay * self .attitude_vector_y
2580+ + self .az * self .attitude_vector_z
2581+ )
2582+
25742583 @cached_property
25752584 def max_acceleration_power_on_time (self ):
25762585 """Time at which the rocket reaches its maximum acceleration during
@@ -2620,15 +2629,6 @@ def max_acceleration(self):
26202629 max_acceleration_time_index = np .argmax (self .acceleration [:, 1 ])
26212630 return self .acceleration [max_acceleration_time_index , 1 ]
26222631
2623- @cached_property
2624- def axial_acceleration (self ):
2625- """Axial acceleration magnitude as a function of time."""
2626- return (
2627- self .ax * self .attitude_vector_x
2628- + self .ay * self .attitude_vector_y
2629- + self .az * self .attitude_vector_z
2630- )
2631-
26322632 @funcify_method ("Time (s)" , "Horizontal Speed (m/s)" )
26332633 def horizontal_speed (self ):
26342634 """Rocket horizontal speed as a Function of time."""
0 commit comments