Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InflowWind pointers in AeroDyn, OpenFOAM, and Lidar #1639

Merged
merged 5 commits into from
Jul 13, 2023

Conversation

deslaughter
Copy link
Collaborator

@deslaughter deslaughter commented Jun 20, 2023

This pull request is ready to merge.

A test case needs to be added to demonstrate that Lidar still works.

Feature or improvement description
This PR integrates the InflowWind FlowField pointer into OpenFOAM and InflowWind Lidar. It also modifies the AeroDyn to remove the need to collect all node positions for the wind calculation and then unpack the data into the inputs. The IfW_GetVelAcc routine has been modified to accept a flag which allows the bounding box to be exceeded. This feature is enabled for wind velocity calls from OLAF and Lidar.

Impacted areas of the software

  • AeroDyn
  • InflowWind
  • OpenFOAM

Test results, if applicable
Regression test results are unchanged. OpenFOAM changes have not been tested.

@deslaughter
Copy link
Collaborator Author

@Russell9798 , could you take a look at the changes to Lidar?

@ebranlard ebranlard self-requested a review June 20, 2023 19:03
@deslaughter deslaughter marked this pull request as ready for review June 23, 2023 12:09
! Hub
if (u%rotors(iWT)%HubMotion%Committed) then
call IfW_FlowField_GetVelAcc(p%FlowField, StartNode, t, &
real(u%rotors(iWT)%HubMotion%TranslationDisp + u%rotors(iWT)%HubMotion%Position, ReKi), &
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we avoid the real conversion here and below? Maybe we need multiple interfaces for IfW_FlowField_GetVelAcc in the future.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I like the idea of providing an interface for IfW_FlowField_GetVelAcc, it could solve some issues that came up during the integration which made it seem hard to use. I'll play around with it a little and do another commit.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I took a look at providing multiple interfaces to IfW_GetVelAcc, but it requires declaring whether Position, Velocity, and Accel are always R4Ki or R8Ki. This would require many changes throughout the code. I'll keep thinking about a better solution as I continue to integrate the Flow Field.

@deslaughter deslaughter merged commit 1376240 into OpenFAST:dev-unstable-pointers Jul 13, 2023
@deslaughter deslaughter deleted the f/ifwptr branch July 13, 2023 17:42
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