Skip to content

Fix the rotation of aero force vector to body frame#3

Merged
zuorenchen merged 1 commit intomasterfrom
bug/AeroForceInBody
Mar 5, 2026
Merged

Fix the rotation of aero force vector to body frame#3
zuorenchen merged 1 commit intomasterfrom
bug/AeroForceInBody

Conversation

@zuorenchen
Copy link
Copy Markdown
Owner

Incorrect vector rotation in GenericSurface.compute_forces_and_moments().
Here, we want to represent the black L, D, Q vectors in the blue body frame.

The M_BA matrix should be direction cosine matrix (DCM), however it is given in vector rotation matrices. Vector rotation matrices rotate the vector without changing/rotating reference frame.

Current implementation rotates the force vectors to match body axis, but results are however presented in aero frame.

If it is intended to use rotation matrix instead of DCM, the rotation should be:

  • Start with the Q, L, D vectors matching +X, -Y, -Z in body frame (i.e. Vector([side, -lift, -drag]) )
  • Rotate the vector by -alpha on X axis and beta on Y axis.
  • The results will match the black Q, L, D vectors and presented in body frame

Another POV:

  • Only focus on blue Zb axis and body frame.
  • Rotate the Zb axis by -alpha on X axis and beta on Y axis.
  • the result will match the black V vector
Image Image

@zuorenchen zuorenchen merged commit ed2fe8b into master Mar 5, 2026
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant