Skip to content

Commit

Permalink
Add reset_operation() calls to remove previously set yaw angles. (#962)
Browse files Browse the repository at this point in the history
  • Loading branch information
misi9170 authored Aug 20, 2024
1 parent a6f0f2f commit 79fd2dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/examples_turbine/001_check_turbine.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
for t in turbines:
# Set t as the turbine
fmodel.set(turbine_type=[t])
fmodel.reset_operation() # Remove any previously applied yaw angles

# Since we are changing the turbine type, make a matching change to the reference wind height
fmodel.assign_hub_height_to_ref_height()
Expand Down Expand Up @@ -80,6 +81,7 @@
wind_directions=wd_array,
turbulence_intensities=turbulence_intensities,
)
fmodel.reset_operation() # Remove any previously applied yaw angles
fmodel.run()
turbine_powers = fmodel.get_turbine_powers().flatten() / 1e3
if density == 1.225:
Expand Down

0 comments on commit 79fd2dc

Please sign in to comment.