Skip to content

Commit 363bfc8

Browse files
committed
ENH: changing ma calculation and porosity documentation from previous comments
1 parent 65530fd commit 363bfc8

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

rocketpy/rocket/parachute.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,10 @@ class Parachute:
9999
Length of the unique semi-axis (height) of the inflated hemispheroid
100100
parachute in meters.
101101
Parachute.porosity : float
102-
Porosity of the parachute is the ratio of open space in the canopy to total
103-
canopy area.
102+
Geometric porosity of the canopy (ratio of open area to total canopy area),
103+
in [0, 1]. Affects only the added-mass scaling during descent; it does
104+
not change ``cd_s`` (drag). The default, 0.0432, yields an added-mass
105+
of 1.0 (“neutral” behavior).
104106
"""
105107

106108
def __init__(
@@ -175,8 +177,10 @@ def __init__(
175177
parachute. Default value is the radius of the parachute.
176178
Units are in meters.
177179
porosity : float, optional
178-
Porosity of the parachute is the ratio of open space in the canopy to total
179-
canopy area. Default value is 0.0432 (for consistency with previous versions).
180+
Geometric porosity of the canopy (ratio of open area to total canopy area),
181+
in [0, 1]. Affects only the added-mass scaling during descent; it does
182+
not change ``cd_s`` (drag). The default, 0.0432, yields an added-mass
183+
of 1.0 (“neutral” behavior).
180184
"""
181185
self.name = name
182186
self.cd_s = cd_s

rocketpy/rocket/rocket.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1510,8 +1510,10 @@ def add_parachute(
15101510
parachute. Default value is the radius of the parachute.
15111511
Units are in meters.
15121512
porosity : float, optional
1513-
Porosity of the parachute is the ratio of open space in the canopy to total
1514-
canopy area. Default value is 0.0432 (for consistency with previous versions).
1513+
Geometric porosity of the canopy (ratio of open area to total canopy area),
1514+
in [0, 1]. Affects only the added-mass scaling during descent; it does
1515+
not change ``cd_s`` (drag). The default, 0.0432, yields an added-mass
1516+
of 1.0 (“neutral” behavior).
15151517
15161518
Returns
15171519
-------

rocketpy/simulation/flight.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2014,7 +2014,7 @@ def u_dot_parachute(self, t, u, post_processing=False):
20142014
ma = (
20152015
self.ka
20162016
* rho
2017-
* (4 / 3)
2017+
* (2 / 3)
20182018
* np.pi
20192019
* self.parachute_radius**2
20202020
* self.parachute_height

0 commit comments

Comments
 (0)