[BUGFIX] Correct grid coordinates for ngrid=1 #1008
Merged
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.
[BUGFIX] Correct grid coordinates for ngrid=1
When
ngrid=1
was chosen, np.linspace would just return the starting value of -1 * pt which would not place the point at the center of the rotor. With this fix the center of the rotor is chosen.Related issue
#1004
Impacted areas of the software
The generation of the y and z coordinates for each of the turbines is affected in cases where
ngrid=1
is chosen.Additional supporting information
See #1004
Test results, if applicable
Locally all existing tests run without issues. The example case of #1004 now works as expected.