Skip to content

HydroDyn C-binding: Added mass matrix#2663

Merged
andrew-platt merged 4 commits intoOpenFAST:dev-cbindfrom
luwang00:f/HD_C_AM
Apr 10, 2025
Merged

HydroDyn C-binding: Added mass matrix#2663
andrew-platt merged 4 commits intoOpenFAST:dev-cbindfrom
luwang00:f/HD_C_AM

Conversation

@luwang00
Copy link
Copy Markdown
Contributor

@luwang00 luwang00 commented Mar 6, 2025

Feature or improvement description
This PR adds a new subroutine in HydroDyn C-binding called HydroDyn_C_CalcOutput_and_AddedMass that returns a 6N-by-6N added mass matrix, where N is the number nodes in the coupling mesh (input to the subroutine). It also returns the remainder of the hydrodynamic, hydrostatic, and other loads computed by HydroDyn with the added-mass component removed.

This subroutine is added to facilitate the coupling of HydroDyn with other structural solvers. It allows the added-mass loads to be treated as an unknown and solved for together with structure acceleration in the structural solver for stability. Note that added mass refers to not only hydrodynamic added mass, but also other inertial load components from internal ballast and marine growth.

Impacted areas of the software
HydroDyn C-binding only. No change to HydroDyn itself.

Test results, if applicable
No change to existing r-test results.

luwang00 added 2 commits March 5, 2025 13:54
…AddedMass that returns the instantaneous added-mass matrix for all input nodes and the reminder of the total hydro loads without added-mass contributions

The Python library is also updated to support the new C-binding subroutine
@andrew-platt andrew-platt added this to the v4.1.0 milestone Apr 2, 2025
@andrew-platt andrew-platt merged commit 5379ca0 into OpenFAST:dev-cbind Apr 10, 2025
22 checks passed
@luwang00 luwang00 deleted the f/HD_C_AM branch July 9, 2025 17:44
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.

2 participants