-
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
Update wind rose and power rose #392
Conversation
Hi Paul. I do not have a strong preference for putting things in a certain format. With this being separated from |
Maybe this one is getting closer but I had a couple of questions: @ejsimley : at the bottom of the wind rose file there are a number of tools related to getting data from the wind toolkit, do you know, do these still work? Or has the recommended usage changed? Do we still want this all in, or does this now belong in flasc or pruf or something? What do you think? @Bartdoekemeijer and @ejsimley : similar question, scrolling through power rose, I was wondering if this isn't doing things we handle more intrinsically in V3 since the results come back vectorized? |
for my part, I've updated 07b and confirms it works with new no_wake style and also matches the results from example 07 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a quick couple comments! I agree that power_rose has been pretty much replaced by FLORIS v3. power_rose
does have a couple functions like plotting by direction and additionally calculating a baseline scenario and a no_wake
scenario, but that's very easy with FLORIS v3 at this point, too. I vote that we just remove power_rose
, and perhaps only carry over the visualization function to floris.tools.visualization
.
floris/tools/floris_interface.py
Outdated
freq = wind_rose.df.set_index(['wd','ws']).unstack().values | ||
|
||
|
||
# Verify dimensions of the variable "freq" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After this point, could you just use fi.get_farm_AEP
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that is a good suggestion @Bartdoekemeijer , just commited a version that does this
* (np.abs(sigma_n) ** (4 / n)) | ||
* (1 - sum_lbda) ** 2 | ||
) | ||
tmp = a2 - ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this fix go in a separate Pull Request? Is this generic enough to be merged back into develop
or is this just a temporary fix for something?
hi @rafmudaf, @Bartdoekemeijer and @bayc I think this pull request is basically ready but there's probably some sequencing to do: 1). For a project that required it, it contains pieces of @bayc 's layout optimization refactorization, if that pull is merged into develop, those apparent file changes should disappear |
I'd say the best is to include that in a separate pull request and make it to the |
done! see pull request #438 |
I think it looks good, but the additional commits surrounding layout optimization makes it hard to identify whether each change is really required. I think I'd like to have #429 merged before we merge this one. That'll make things clearer. |
Agreed!! |
Feature or improvement description
Would like to update and reincorporate the wind rose and power rose tools. There are some points I have open questions: