diff --git a/rocketpy/Flight.py b/rocketpy/Flight.py index cb908dcab..34faa73da 100644 --- a/rocketpy/Flight.py +++ b/rocketpy/Flight.py @@ -62,6 +62,8 @@ class Flight: Original rail length minus the distance measured from nozzle exit to the lower rail button. It assumes the nozzle to be aligned with the beginning of the rail. + Flight.name: str + Name of the flight. Numerical Integration settings: @@ -527,6 +529,7 @@ def __init__( atol=6 * [1e-3] + 4 * [1e-6] + 3 * [1e-3], timeOvershoot=True, verbose=False, + name="Flight", ): """Run a trajectory simulation. @@ -582,6 +585,8 @@ def __init__( time in some cases. Default is True. verbose : bool, optional If true, verbose mode is activated. Default is False. + name : str, optional + Name of the flight. Default is "Flight". Returns ------- @@ -607,6 +612,7 @@ def __init__( self.initialSolution = initialSolution self.timeOvershoot = timeOvershoot self.terminateOnApogee = terminateOnApogee + self.name = name # Modifying Rail Length for a better out of rail condition upperRButton = max(self.rocket.railButtons[0])