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: with OLAF, BoxExceed was allowed for all points #2530

Merged
merged 2 commits into from
Nov 23, 2024

Conversation

andrew-platt
Copy link
Collaborator

Ready to merge

Feature or improvement description
PR #2518 had a logic issue with how the BoxExceedAllowIdx was set. The InflowWind registry sets this value to -1 by default, so a check of min(BoxExceedAllowIdx, AD_BoxExceedPointsIdx(u_AD, o_AD)) would always return a -1, which would cause InflowWind to allow all calculation at all points requested that were outside the wind box, not just the OLAF points as intended (blades, tower, etc must be inside the box, but OLAF points may exit the box).

This logic issue was also present in the glue code.

Related issue, if one exists
#2518

Impacted areas of the software
Extrapolation of wind values outside the wind box when OLAF is used.

Additional supporting information
It is possible that some users will find simulations that they had previously been able to run will now fail if a blade is outside the box when OLAF is used.

Test results, if applicable
None

This was introduced in PR OpenFAST#2518.  The result was that anytime the driver was used with OLAF, all points were allowed outside the box, not just the wake as intended.
IfW defaults this to -1, so if OLAF is used it would simply pass -1 for the index rather than the correct location from the AD_BoxExceedPointsIdx routine.
@andrew-platt andrew-platt added this to the v3.5.5 milestone Nov 22, 2024
@andrew-platt andrew-platt self-assigned this Nov 22, 2024
@andrew-platt andrew-platt changed the title B/adi box exceed 2 bugfix: with OLAF, BoxExceed was allowed for all points Nov 22, 2024
@andrew-platt andrew-platt merged commit d802f93 into OpenFAST:rc-3.5.5 Nov 23, 2024
53 of 57 checks passed
@andrew-platt andrew-platt deleted the b/ADI_BoxExceed_2 branch November 23, 2024 20:21
@andrew-platt andrew-platt mentioned this pull request Dec 19, 2024
28 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