Skip to content

Commit

Permalink
ENH: Add new stability margin properties to Flight class
Browse files Browse the repository at this point in the history
  • Loading branch information
Gui-FernandesBR committed Mar 7, 2024
1 parent 65b3315 commit 014e633
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions rocketpy/simulation/flight.py
Original file line number Diff line number Diff line change
Expand Up @@ -2426,6 +2426,26 @@ def min_stability_margin(self):
"""Minimum stability margin."""
return self.stability_margin(self.min_stability_margin_time)

@property
def initial_stability_margin(self):
"""Stability margin at time 0.
Returns
-------
float
"""
return self.stability_margin(0)

@property
def out_of_rail_stability_margin(self):
"""Stability margin at the time the rocket leaves the rail.
Returns
-------
float
"""
return self.stability_margin(self.out_of_rail_time)

# Reynolds Number
@funcify_method("Time (s)", "Reynolds Number", "spline", "zero")
def reynolds_number(self):
Expand Down

0 comments on commit 014e633

Please sign in to comment.