-
Notifications
You must be signed in to change notification settings - Fork 156
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
Bug report: FLORIS 2.5 is not able to handle ngrid=1 correctly #1004
Comments
HI @gogannes, thanks very much for your post. Version 2.5 is unfortunately a bit of a ways back and harder for our team so we don't activity maintain it anymore. That said your solution seems very direct and sensible and I really appreciate you proposing it. If you wouldn't mind to submit it as a small pull request, that will allow us to run the tests and do a short review and we can merge it. |
Great that you plan to include this fix in 2.5. I didn't even expect that you would update it anymore, but that's even better. Due to some specific reasons I sometimes (and maybe others as well) still need to use 2.5. I just submitted a tiny pull request, but it seems that the all macos tests failed because the python versions were not found. Best, |
Closing as addressed in #1008 |
Hi @gogannes , Just to close the loop here, we merged your pull request last week and today released a patch release for FLORIS v2 (v2.5.2) that includes your fix. Thank you! Misha |
FLORIS 2.5 is not able to handle ngrid=1 correctly
The
ngrid
option does not work correctly forngrid=1
.I know that most people may not use 2.4 anymore, but for those who may have to use it still in some cases, this issue may help if ngrid=1 is chosen.
I believe this isn't an issue with FLORIS 4.x anymore, as the similar issue is mentioned within the comments of
grid.py
: "If a grid resolution of 1 is selected, create a disc_grid of zeros, as np.linspace would just return the starting value of -1 * disc_area_radius which would place the point below the center of the rotor. (turbine_grid_points
)."How to reproduce
Relevant output
How to fix
in
flow_field.py
, replace:by
and the output changes to
Floris version
2.5.1
System Information
The text was updated successfully, but these errors were encountered: