BUG: Incorrect vector rotation in GenericSurface.compute_forces_and_moments

オープン
#932 コメント 4 件 リアクション 2 件 担当者 1 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

@MateusStano がすでに取り組んでいます。

2026年3月21日 から。

評価

この issue はまだ評価されていません。

説明

Aerodynamics Bug

Describe the bug

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

To Reproduce & Expected behavior & Screenshots

Image

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

主要言語
Python
スター
1.1k
フォーク
280
平均マージ
3日 2時間
マージ済み PR(30日)
24

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

RocketPy-Team/RocketPy のほかの issue

RocketPy-Team/RocketPy の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。