Skip to content

Commit

Permalink
MNT: init deployment_level with settet and add_airbrakes maint
Browse files Browse the repository at this point in the history
  • Loading branch information
MateusStano committed Jan 31, 2024
1 parent 465c74a commit 24b9b09
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
10 changes: 7 additions & 3 deletions rocketpy/rocket/aero_surface.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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)

Expand Down
5 changes: 3 additions & 2 deletions rocketpy/rocket/rocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
----------
Expand Down

0 comments on commit 24b9b09

Please sign in to comment.