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

[BugFix] InflowWind: native Bladed wind files and wind box rotation #1543

Merged
merged 7 commits into from
Apr 22, 2023

Conversation

deslaughter
Copy link
Collaborator

This pull request is ready to be merged.

Feature or improvement description
This PR fixes several bugs in InflowWind which were introduced with the restructuring PR (#1516):

  • Reference Position (used for wind rotation) was not set correctly after being moved inside the Flow Field derived type
  • Native Bladed wind files were not initialized correctly
  • Adding mean field velocity after interpolation was not implemented correctly

Impacted areas of the software
InflowWind and related InflowWind module regression tests.

Test results, if applicable
Two regression tests were added for the InflowWind module:

  • ifw_nativeBladed - reads a native Bladed wind file and calculates flow field velocities at a selection of points, compares results with reference
  • ifw_uniform - reads a Uniform wind file (.HH) and calculates flow field velocities at a selection of points, compares results with reference. The InflowWind input file also specifies and PropagationDir and VFlowAng to check that wind box rotation is properly implenmented.

This commit adds regression tests for InflowWind native Bladed files and
uniform wind files
When IfW was refactored, RefPosition was moved inside the Flow Field
derived type; however, the code that set this value was not updated
properly so RefPosition as always zero. This was missed by regression
testing because the wind was not rotated. A new ifw_uniform test has
been added to catch this in the future.
This code fixes several issues related to reading and initializing
native Bladed wind flies. A new regression test has been added for this
wind type to catch these errors in the future.
Using a select statement will allow the compiler to optimize this
routine better
@deslaughter deslaughter added this to the v3.5.0 milestone Apr 21, 2023
@deslaughter deslaughter self-assigned this Apr 21, 2023
@deslaughter deslaughter changed the title Bug/ifw mean vel [BugFix] InflowWind: native Bladed wind files and wind box rotation Apr 21, 2023
@andrew-platt andrew-platt merged commit c6b9760 into OpenFAST:dev Apr 22, 2023
@deslaughter deslaughter deleted the bug/ifw-mean-vel branch May 5, 2023 14:12
@andrew-platt andrew-platt mentioned this pull request May 12, 2023
19 tasks
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