Multi-rotor support in ADI c-bindings interface#1784
Merged
andrew-platt merged 20 commits intoOpenFAST:dev-unstable-pointersfrom Oct 11, 2023
Merged
Multi-rotor support in ADI c-bindings interface#1784andrew-platt merged 20 commits intoOpenFAST:dev-unstable-pointersfrom
andrew-platt merged 20 commits intoOpenFAST:dev-unstable-pointersfrom
Conversation
Need to revise data handling in Init
Calc and Updatestates fail badly
…ADI_c_binding_multiRotor
…nterface to UpdateStates
- orientations were not getting set correctly at init -- flag for transposeDCM was not set - forgot to actually store some things during the rotor init, so that threw everything off - change c_bool to c_int -- some c/c++ compilers may not treat c_bool the same and can cause it to pass incorrectly
Also update results for ad_B1n2_OLAF case
Previous timestep inputs for update states were getting set identical to the new inputs. This resulted in incorrect loads and wake propagation.
…ADI_c_binding_multiRotor
Collaborator
Author
|
The call sequence for multiple turbines is as follows:
|
ebranlard
approved these changes
Sep 26, 2023
-- [INFO] FVW: Update States: reevaluation at the same starting time
0445b3d to
af651dc
Compare
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.
This PR is ready to merge.
Feature or improvement description
The AeroDyn_Inflow_C_Binding interface (also referred to as the ADI c-binding interface) now has support for multiple rotors. This feature is used in coupling AeroDyn15 + InflowWind to the OWENS codebase (currently proprietary) from Sandia National Labs (SNL).
Required changes include new routines for setting motions per rotor and retrieving loads per rotor, and interface changes to the Init, CalcOutput, and UpdateStates routines.
Related issue, if one exists
None
Impacted areas of the software
The only changes occur in the c-bindings interface for AeroDyn15. This is primarily in the
AeroDyn_Inflow_C_Binding.f90, with accompanying changes in the Python interface inaerodyn_inflow_library.py. Additional changes were made to the OWENS codebase to match (currently not available on GitHub).Additional supporting information
This update was required to allow coupling of the OWENS structural code to multiple AeroDyn VAWT turbines so that turbine interaction calculated via the free vortex method in OLAF could be used to evaluate loads on downstream turbines.
Test results, if applicable
A new pair of regression tests for a single blade has been added for both the standalone driver and the Python to ADI c-bindings interface. These tests should exactly match each other.
Figure: Wake results from the
ad_B1n2_OLAFdriver case andpy_ad_B1n2_OLAFPython to ADI c-bindings cases. The wakes exactly overlap each other and all loads match exactly.