-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from NREL/develop
WHOC v0.2
- Loading branch information
Showing
64 changed files
with
88,052 additions
and
334 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Examples | ||
|
||
The `examples` subdirectory contains a series of examples that can be run to test the functionality | ||
of certain controllers and interfaces. | ||
|
||
### lookup-based_wake_steering_florisstandin | ||
2-turbine example of lookup-based wake steering control, run using Hercules with the FLORIS standin | ||
in place of AMR-Wind for exposition purposes. To run this example, navigate to the | ||
examples/lookup-based_wake_steering_florisstandin folder and then run the following. | ||
``` | ||
python construct_yaw_offsets.py | ||
``` | ||
|
||
Not that, currently, construct_yaw_offsets.py requires FLORIS version 3, whereas the rest of the | ||
example requires FLORIS version 4. As a result, we provide the generated offsets in | ||
yaw_offsets.pkl. To avoid regenerating yaw_offsets.pkl (and therefore avoid the current need for | ||
floris v3), set `optimize_yaw_offsets = False` at the beginning of construct_yaw_offsets.py before | ||
running. | ||
|
||
Next, run | ||
``` | ||
./bash_script.sh | ||
``` | ||
You will need to have and up-to-date Hercules (possibly on the develop branch) in your conda | ||
environment to run this. You may also need to changed permissions to run bash_script.sh as an | ||
executable (`chmod +x bash_script.sh`). | ||
|
||
Finally, run the post-processing script | ||
``` | ||
python plot_output_data.py | ||
``` | ||
This should produce the following plot. | ||
![Results of lookup-based_wake_steering_florisstandin example]( | ||
graphics/lookup-table-example-plot.png | ||
) | ||
|
||
## wind_farm_power_tracking_florisstandin | ||
2-turbine example of wind-farm-level power reference tracking, run using Hercules with the FLORIS | ||
standin in place of AMR-Wind for exposition purposes. To run this example, navigate to the | ||
examples/wind_farm_power_tracking_florisstandin folder and run the following: | ||
``` | ||
./bash_script.sh | ||
``` | ||
|
||
This will run both a closed-loop controller, which compensates for underproduction at individual | ||
turbines, and an open-loop controller, which simply distributes the farm-wide reference evenly | ||
amongst the turbines of the farm without feedback. The resulting trajectories are plotted, | ||
producing: | ||
![Results of wind_farm_power_tracking_florisstandin example]( | ||
graphics/wf-power-tracking-plot.png | ||
) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.