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

Add functions to return turbine and farm power in wind rose form #844

Closed
wants to merge 2 commits into from

Conversation

paulf81
Copy link
Collaborator

@paulf81 paulf81 commented Mar 14, 2024

Add functions to return turbine and farm power in wind rose form

This small pull request adds to functions to return the turbine and farm power in the shape (num_wd, num_ws, n_turbines), and relevent testing. These functions may not be needed but could be useful when driving FLORIS off of WindRose wind_data objects. Note these functions are not needed when computing AEP.

@paulf81 paulf81 added enhancement An improvement of an existing feature v4 Focus of FLORIS v4 labels Mar 14, 2024
@paulf81 paulf81 added this to the v4.0 milestone Mar 14, 2024
@paulf81 paulf81 requested review from rafmudaf and misi9170 March 14, 2024 17:58
@paulf81 paulf81 self-assigned this Mar 14, 2024
# Multiply the turbine powers by the weights (n_turbines) along
# the turbine axis
# and sum along the turbine axis to get the farm power
return np.sum(turbine_powers * turbine_weights[None, None, :], axis=-1)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nansum?

@paulf81
Copy link
Collaborator Author

paulf81 commented Mar 20, 2024

@misi9170 should I now close this pull request as being super-ceded by #849?

@paulf81 paulf81 closed this Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An improvement of an existing feature v4 Focus of FLORIS v4
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant