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