Skip to content

Commit 07d1a6f

Browse files
author
MateusStano
committed
ENH: remove rotation from solid prop udot
1 parent 950265c commit 07d1a6f

1 file changed

Lines changed: 3 additions & 18 deletions

File tree

rocketpy/simulation/flight.py

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1681,24 +1681,9 @@ def u_dot(self, t, u, post_processing=False): # pylint: disable=too-many-locals
16811681

16821682
# Coriolis acceleration
16831683
_, w_earth_y, w_earth_z = self.env.earth_rotation_vector
1684-
ax -= 2 * (
1685-
-a23 * vy * w_earth_y
1686-
+ a22 * vz * w_earth_y
1687-
- a33 * vy * w_earth_z
1688-
+ a32 * vz * w_earth_z
1689-
)
1690-
ay -= 2 * (
1691-
a23 * vx * w_earth_y
1692-
- a21 * vz * w_earth_y
1693-
+ a33 * vx * w_earth_z
1694-
- a31 * vz * w_earth_z
1695-
)
1696-
az -= 2 * (
1697-
-a22 * vx * w_earth_y
1698-
+ a21 * vy * w_earth_y
1699-
- a32 * vx * w_earth_z
1700-
+ a31 * vy * w_earth_z
1701-
)
1684+
ax -= 2 * (vz * w_earth_y - vy * w_earth_z)
1685+
ay -= 2 * (vx * w_earth_z)
1686+
az -= 2 * (-vx * w_earth_y)
17021687

17031688
# Create u_dot
17041689
u_dot = [

0 commit comments

Comments
 (0)