Rotate a twisted section's chord fully about the spanwise axis - #263
Merged
Conversation
_apply_refined_section_thetas! built the twisted TE point from cos(theta)*chord - sin(theta)*(chord x local_y), which is the Rodrigues rotation with its axial term k(k.c)(1-cos(theta)) dropped. That term vanishes only when the chord is perpendicular to the twist axis, so a swept or dihedral section had its along-span chord component scaled by cos(theta): the chord shortened and tilted out of the twist plane, both growing as theta^2. On the 2-plate kite of SymbolicAWEModels the chord runs 7.4 deg off the plane normal to the local span, and the deformed VSM chord left the structural chord it is meant to track by 0.065 deg at 7.7 deg of twist and 2.4 deg at 48 deg. Restoring the axial term takes both to 1e-13 deg, and the chord length is now preserved to machine precision. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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.
_apply_refined_section_thetas!built the twisted TE point fromcos(theta)*chord - sin(theta)*(chord × local_y)— the Rodrigues rotation withits axial term
k(k·c)(1 - cos(theta))dropped. That term vanishes only when thechord is perpendicular to the twist axis, so a swept or dihedral section had its
along-span chord component scaled by
cos(theta): the chord shortened and tiltedout of the twist plane, both errors growing as
theta^2.The result was not a rotation at all —
|TE - LE|changed under twist.Impact
On the 2-plate kite of SymbolicAWEModels.jl the chord runs 7.4° off the plane
normal to the local span. The deformed VSM chord left the structural chord it is
meant to track by:
With the axial term restored both drop to ~1e-13° and machine epsilon.
Changes
_apply_refined_section_thetas!adds the axial Rodrigues term.Full test suite passes.
🤖 Generated with Claude Code