From 24b9b096469e59750253fbba5385a5254b5da331 Mon Sep 17 00:00:00 2001 From: MateusStano Date: Wed, 31 Jan 2024 17:33:58 +0100 Subject: [PATCH] MNT: init deployment_level with settet and add_airbrakes maint --- rocketpy/rocket/aero_surface.py | 10 +++++++--- rocketpy/rocket/rocket.py | 5 +++-- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/rocketpy/rocket/aero_surface.py b/rocketpy/rocket/aero_surface.py index d9dd92855..dcd8f554a 100644 --- a/rocketpy/rocket/aero_surface.py +++ b/rocketpy/rocket/aero_surface.py @@ -1183,7 +1183,10 @@ def evaluate_geometrical_parameters(self): * (self.root_chord + 2 * self.tip_chord) * self.rocket_radius * self.span**2 - + 6 * (self.root_chord + self.tip_chord) * self.span * self.rocket_radius**2 + + 6 + * (self.root_chord + self.tip_chord) + * self.span + * self.rocket_radius**2 ) / 12 roll_damping_interference_factor = 1 + ( ((tau - λ) / (tau)) - ((1 - λ) / (tau - 1)) * np.log(tau) @@ -1506,7 +1509,8 @@ def evaluate_geometrical_parameters(self): * self.rocket_radius**2 * np.sqrt(-self.span**2 + self.rocket_radius**2) * np.arctan( - (self.span) / (np.sqrt(-self.span**2 + self.rocket_radius**2)) + (self.span) + / (np.sqrt(-self.span**2 + self.rocket_radius**2)) ) - np.pi * self.rocket_radius**2 @@ -1989,7 +1993,7 @@ def __init__( self.reference_area = reference_area self.clamp = clamp self.override_rocket_drag = override_rocket_drag - self._deployment_level = deployment_level + self.deployment_level = deployment_level self.prints = _AirBrakesPrints(self) self.plots = _AirBrakesPlots(self) diff --git a/rocketpy/rocket/rocket.py b/rocketpy/rocket/rocket.py index 87309778d..30f5d389b 100644 --- a/rocketpy/rocket/rocket.py +++ b/rocketpy/rocket/rocket.py @@ -1172,8 +1172,9 @@ def add_air_brakes( name="AirBrakes", controller_name="AirBrakes Controller", ): - """Creates a new air brakes, storing its parameters such as - opening delay, drag coefficients and trigger function. + """Creates a new air brakes system, storing its parameters such as + drag coefficient curve, controller function, sampling rate, and + reference area. Parameters ----------