Skip to content

Incorrect mesh mapping between BeamDyn and ServoDyn for Blade Structural Controller#2817

Merged
deslaughter merged 4 commits intoOpenFAST:dev-tcfrom
deslaughter:fix-bd-bstc-mapping
May 16, 2025
Merged

Incorrect mesh mapping between BeamDyn and ServoDyn for Blade Structural Controller#2817
deslaughter merged 4 commits intoOpenFAST:dev-tcfrom
deslaughter:fix-bd-bstc-mapping

Conversation

@deslaughter
Copy link
Copy Markdown
Collaborator

This PR is ready to be merged.

Feature or improvement description

The mesh mapping initialization in InitMappings_SrvD was incorrect for the blade structural controller motion between BeamDyn and ServoDyn. Specifically, the indexing into the BD%y%BldMotion and SrvD%u%BStCMotionMesh structs based on the BeamDyn instance was wrong and has been corrected in this PR.

Impacted areas of the software

InitMappings_SrvD function in FAST_Mapping.f90.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR corrects the mesh mapping initialization for the blade structural controller by fixing the indexing into the BeamDyn and ServoDyn mapping structures.

  • Updated the RoutineName from "InitMappings_BD" to "InitMappings_SrvD".
  • Corrected the indexing in the MapMotionMesh call by replacing DstMod%Ins with SrcMod%Ins in both source and destination arrays.

Copy link
Copy Markdown
Contributor

@mayankchetan mayankchetan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! thank you for the quick fix!

Do you think we need an r-test that uses BD and blade StC?

@deslaughter
Copy link
Copy Markdown
Collaborator Author

It would probably be good to do. Would as short version of the StC_test_OC4Semi with BeamDyn blades be the best approach? That test can take a while to run.

@deslaughter deslaughter merged commit 64f2e54 into OpenFAST:dev-tc May 16, 2025
12 checks passed
@deslaughter deslaughter deleted the fix-bd-bstc-mapping branch May 16, 2025 18:04
This was referenced Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants