Skip to content

Commit c8005c6

Browse files
committed
ENH: added new parameters into add_parachute method in Rocket class
1 parent e9077b9 commit c8005c6

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

rocketpy/rocket/parachute.py

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ class Parachute:
9292
Function of noisy_pressure_signal.
9393
Parachute.clean_pressure_signal_function : Function
9494
Function of clean_pressure_signal.
95+
<<<<<<< HEAD
9596
Parachute.radius : float
9697
Length of the non-unique semi-axis (radius) of the inflated hemispheroid
9798
parachute in meters.
@@ -106,6 +107,15 @@ class Parachute:
106107
Parachute.added_mass_coefficient : float
107108
Coefficient used to calculate the added-mass due to dragged air. It is
108109
calculated from the porosity of the parachute.
110+
=======
111+
Parachute.parachute_radius : float
112+
Radius of the inflated parachute in meters.
113+
Parachute.parachute_height : float
114+
Height of the inflated parachute in meters.
115+
Parachute.porosity : float
116+
Porosity of the parachute material, which is a measure of how much air can
117+
pass through the parachute material.
118+
>>>>>>> 78ef92e7 (ENH: added new parameters into add_parachute method in Rocket class)
109119
"""
110120

111121
def __init__(
@@ -171,6 +181,7 @@ def __init__(
171181
The values are used to add noise to the pressure signal which is
172182
passed to the trigger function. Default value is ``(0, 0, 0)``.
173183
Units are in Pa.
184+
<<<<<<< HEAD
174185
radius : float, optional
175186
Length of the non-unique semi-axis (radius) of the inflated hemispheroid
176187
parachute. Default value is 1.5.
@@ -184,6 +195,18 @@ def __init__(
184195
in [0, 1]. Affects only the added-mass scaling during descent; it does
185196
not change ``cd_s`` (drag). The default, 0.0432, yields an added-mass
186197
of 1.0 (“neutral” behavior).
198+
=======
199+
parachute_radius : float, optional
200+
Radius of the inflated parachute. Default value is 1.5.
201+
Units are in meters.
202+
parachute_height : float, optional
203+
Height of the inflated parachute. Default value is the radius parachute.
204+
Units are in meters.
205+
porosity : float, optional
206+
Porosity of the parachute material, which is a measure of how much air can
207+
pass through the parachute material.
208+
Default value is 0.0432 (for consistency with previous versions).
209+
>>>>>>> 78ef92e7 (ENH: added new parameters into add_parachute method in Rocket class)
187210
"""
188211
self.name = name
189212
self.cd_s = cd_s
@@ -210,7 +233,6 @@ def __init__(
210233
- 0.25975 * self.porosity**2
211234
+ 1.2626 * self.porosity**3
212235
)
213-
214236
alpha, beta = self.noise_corr
215237
self.noise_function = lambda: alpha * self.noise_signal[-1][
216238
1

rocketpy/rocket/rocket.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1507,6 +1507,7 @@ def add_parachute(
15071507
The values are used to add noise to the pressure signal which is
15081508
passed to the trigger function. Default value is (0, 0, 0). Units
15091509
are in pascal.
1510+
<<<<<<< HEAD
15101511
radius : float, optional
15111512
Length of the non-unique semi-axis (radius) of the inflated hemispheroid
15121513
parachute. Default value is 1.5.
@@ -1520,6 +1521,18 @@ def add_parachute(
15201521
in [0, 1]. Affects only the added-mass scaling during descent; it does
15211522
not change ``cd_s`` (drag). The default, 0.0432, yields an added-mass
15221523
of 1.0 (“neutral” behavior).
1524+
=======
1525+
parachute_radius : float, optional
1526+
Radius of the inflated parachute. Default value is 1.5.
1527+
Units are in meters.
1528+
parachute_height : float, optional
1529+
Height of the inflated parachute. Default value is the radius parachute.
1530+
Units are in meters.
1531+
porosity : float, optional
1532+
Porosity of the parachute material, which is a measure of how much air can
1533+
pass through the parachute material.
1534+
Default value is 0.0432 (for consistency with previous versions).
1535+
>>>>>>> 78ef92e7 (ENH: added new parameters into add_parachute method in Rocket class)
15231536
15241537
Returns
15251538
-------

0 commit comments

Comments
 (0)