Skip to content

Commit

Permalink
Remove double instance of rated wind speed in controller.v
Browse files Browse the repository at this point in the history
  • Loading branch information
dzalkind committed Mar 18, 2021
1 parent 9e89ef8 commit 3750beb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ROSCO_toolbox/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def tune_controller(self, turbine):
TSR_rated = rated_rotor_speed*R/turbine.v_rated # TSR at rated

# separate wind speeds by operation regions
v_below_rated = np.linspace(turbine.v_min,turbine.v_rated, num=30) # below rated
v_below_rated = np.linspace(turbine.v_min,turbine.v_rated, num=30)[:-1] # below rated
v_above_rated = np.linspace(turbine.v_rated,turbine.v_max, num=30) # above rated
v = np.concatenate((v_below_rated, v_above_rated))

Expand Down

0 comments on commit 3750beb

Please sign in to comment.