Skip to content

Conversation

@andrew-platt
Copy link
Collaborator

Ready to merge

Feature or improvement description
Several improvements to the c-bindings interfaces were made on the dev-cbind branch, as well as the creation of a new pyOpenFAST Python module for regression testing.

Related issue, if one exists
PR's that are unique to the dev-cbind branch (already reviewed):

AeroDyn

HydroDyn

MoorDyn

SeaState

Testing

Impacted areas of the software
C-bindings interfaces:

  • new SeaState interface
  • MoorDyn
  • AeroDyn
  • InflowWind
  • NWTC_C_Binding.f90 - new NWTC library file for use in all the c-bindings libraries (cleans up interface)

Testing:
Testing now requires importing of the pyOpenFAST library. This library collects many of the old Python scripts for module level c-bindings interface tests into a single location. But to use this, the end user must do a pip install -e <openfast>/python/pyOpenFAST/. prior to running tests.

Additional supporting information
All code in the PR was reviewed in the above PR's.

Test results, if applicable
Python c-bindings based module tests for AD, HD, IfW, and MD were updated to use the new pyOpenFAST python interfacing library.

luwang00 and others added 30 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
…ts, improve some names, add usage instructions etc.
…rface

Refactor the Aerodyn/Inflowwind Python interface to the C-bindings interface
…ng FF from unnecessary deallocation call (already was deallocated)
@andrew-platt
Copy link
Collaborator Author

Copy link
Collaborator

@deslaughter deslaughter left a comment

Choose a reason for hiding this comment

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

I'm not a huge fan of hard coded paths on Raf's machine in the Python libraries, but I'm not sure that it matters

@andrew-platt
Copy link
Collaborator Author

andrew-platt commented Jun 17, 2025

I'm not a fan of hard coded paths either. I think those files are leftover from development and should be removed (see issue #2864)

@andrew-platt andrew-platt merged commit cbd0c6b into dev Jun 17, 2025
28 checks passed
@andrew-platt andrew-platt deleted the dev-cbind branch June 20, 2025 18:04
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.

8 participants