Skip to content

Conversation

@andrew-platt
Copy link
Collaborator

Not ready to merge

Feature or improvement description
Several improvements to the c-bindings interfaces were developed jointly with an external partner. This PR brings in updates for the following:

  • AeroDyn_Inflow_C_binding
  • SeaState_C_binding
  • InflowWind_C_binding
  • pyOpenFAST

Related issue, if one exists
Depends on #3065

Impacted areas of the software
C-binding library interfaces, pyOpenFAST, and regression testing interfaces

Additional supporting information

Test results, if applicable

ToDo

  • add details to this PR about changes, and reasons.
  • add documentation, or placeholders for it

rafmudaf added 30 commits May 20, 2025 14:00
Left notes about what is missing in that
- cleanup moordyn.py to use common stuff in interface_abc
- cleanup seastate.py to use common stuff in interface_abc
- cleanup aerodyn_inflow.py to use common stuff in interface_abc
- use interface_abc with inflowwind.py
- use interface_abc with hydrodyn.py
- New external routines:
  - IfW_C_GetFlowFieldPointer
  - IfW_C_SetFlowFieldPointer
  - IfW_C_GetWindVel
- Updated to use NWTC_C_BINDING
- minor linting
- add routine to clear library memory
- ADI_C_GetFlowFieldPointer
- ADI_C_SetFlowFieldPointer
to set the pointer, IfW will need to be initialized with a null data set.  Init doesn't allow this at the moment
This is accurate for 1st order waves, but will exagerate a bit for 2nd order
- SeaSt_C_GetDens
- SeaSt_C_GetDpth
- SeaSt_C_GetMSL2SWL
Also improved check on valid pointer
Interfaces are not up to date for all the changes here
@andrew-platt andrew-platt self-assigned this Dec 18, 2025
@andrew-platt andrew-platt added this to the v4.2.0 milestone Dec 18, 2025
@andrew-platt andrew-platt marked this pull request as draft December 18, 2025 21:12
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.

3 participants