Skip to content

Commit 0e4a887

Browse files
committed
MNT: Tweak the discretization bounds.
1 parent f3e45bb commit 0e4a887

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

rocketpy/rocket/aero_surface/fins/fins.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ def to_dict(self, **kwargs):
441441
cl = self.cl
442442
if kwargs.get("discretize", False):
443443
cl = cl.set_discrete(
444-
(-np.pi / 12, 0), (np.pi / 12, 2), (10, 10), mutate_self=False
444+
(-np.pi / 6, 0), (np.pi / 6, 2), (10, 10), mutate_self=False
445445
)
446446

447447
data.update(

rocketpy/rocket/aero_surface/nose_cone.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -537,9 +537,9 @@ def to_dict(self, **kwargs):
537537
clalpha = self.clalpha
538538
cl = self.cl
539539
if kwargs.get("discretize", False):
540-
clalpha = clalpha.set_discrete(0, 2, 50)
540+
clalpha = clalpha.set_discrete(0, 4, 50)
541541
cl = cl.set_discrete(
542-
(-np.pi / 12, 0), (np.pi / 12, 2), (10, 10), mutate_self=False
542+
(-np.pi / 6, 0), (np.pi / 6, 2), (10, 10), mutate_self=False
543543
)
544544
data["cp"] = self.cp
545545
data["clalpha"] = clalpha

rocketpy/rocket/aero_surface/tail.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,9 @@ def to_dict(self, **kwargs):
218218
clalpha = self.clalpha
219219
cl = self.cl
220220
if kwargs.get("discretize", False):
221-
clalpha = clalpha.set_discrete(0, 2, 50)
221+
clalpha = clalpha.set_discrete(0, 4, 50)
222222
cl = cl.set_discrete(
223-
(-np.pi / 12, 0), (np.pi / 12, 2), (10, 10), mutate_self=False
223+
(-np.pi / 6, 0), (np.pi / 6, 2), (10, 10), mutate_self=False
224224
)
225225

226226
data.update(

rocketpy/rocket/rocket.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1899,8 +1899,8 @@ def to_dict(self, **kwargs):
18991899
power_off_drag = self.power_off_drag
19001900
power_on_drag = self.power_on_drag
19011901
if discretize:
1902-
power_off_drag = power_off_drag.set_discrete(0, 2, 50, mutate_self=False)
1903-
power_on_drag = power_on_drag.set_discrete(0, 2, 50, mutate_self=False)
1902+
power_off_drag = power_off_drag.set_discrete(0, 4, 50, mutate_self=False)
1903+
power_on_drag = power_on_drag.set_discrete(0, 4, 50, mutate_self=False)
19041904

19051905
rocket_dict = {
19061906
"radius": self.radius,
@@ -1940,7 +1940,7 @@ def to_dict(self, **kwargs):
19401940
thrust_to_weight = thrust_to_weight.set_discrete_based_on_model(
19411941
self.motor.thrust, mutate_self=False
19421942
)
1943-
cp_position = cp_position.set_discrete(0, 2, 25, mutate_self=False)
1943+
cp_position = cp_position.set_discrete(0, 4, 25, mutate_self=False)
19441944
stability_margin = stability_margin.set_discrete(
19451945
(0, self.motor.burn_time[0]),
19461946
(2, self.motor.burn_time[1]),

0 commit comments

Comments
 (0)