-
Notifications
You must be signed in to change notification settings - Fork 157
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
Repeated calls to calculate wake can result in wrong wake calculations #378
Comments
Just so I understand the problem a bit more, what's the scenario for repeatedly calling |
One design intent of the v3 architecture was to consider each calculation a unique process that begins and ends. This was the idea with creating a new |
This is an issue in yaw optimizations that don't need to call |
I don't have an idea of performance, but that is an interesting thought, and would be like how we did the calculations in v2, sorting each time. |
Thanks for the additional context @bayc. How would the |
Yea, the |
The remaining task here is to include the description of the |
Bug description
When placed in a for loop with certain turbine layouts,
calculate_wake
does not return the expected values. Note: this can currently be avoided by callingfi.reinitialize()
before each repeated calculate wake call, but that adds unnecessary computation.To Reproduce
Steps to reproduce the behavior:
Expected behavior
Expected behavior would be that calculate wake would return the same power with repeated calls where no inputs have changed (example shown below).
Floris Version
Release v3.0.1
System Information (please complete the following information):
Additional details
This is do to the current inclusion of the
finalize
call within the solve wrapper, which unsorts the turbines. The turbines are then not re-sorted from upstream to downstream (which occurs in the initialization step) before the next calculate wake call, which results in incorrect wake calculations.The text was updated successfully, but these errors were encountered: