Apply aerodynamic drag opposite relative airflow - #16
Merged
Conversation
rhorvath02
force-pushed
the
fix/aero-force-direction
branch
from
August 6, 2026 01:08
d9878fb to
528d2c7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Finding
CFDAeroMapalways applied drag along negative body X. That is wrong for reverse travel, a following wind faster than the vehicle, or crosswind: drag must oppose the vehicle-relative airflow vector.Fix
Normalize the body-frame relative-air velocity and apply the positive tabulated drag magnitude opposite that direction. Downforce and calibrated moments remain on their existing body axes; documentation calls out that large flow angles still extrapolate forward-flow CFD tables.
Validation
+13 Nbody-X drag.26 Ndrag with components{-18.3848, +18.3848}N and retained-260 Nbody-Z downforce.147/147initialization-baseline values.1018/1018initialization-baseline values.6.098631 s, retained only finite outputs, and kept minimum tire load positive at182.83 N.