Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions examples/02_reference_turbines/IEA-10-198-RWT.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ assembly:
hub_height: 119.0
rated_power: 10000000.0
rotor_diameter: 197.82692681
cut_in_wind_speed: 3.0
cut_out_wind_speed: 25.0
components:
blade:
reference_axis:
Expand Down
2 changes: 2 additions & 0 deletions examples/02_reference_turbines/IEA-15-240-RWT.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ assembly:
rotor_diameter: 241.35064632
rated_power: 15000000.0
lifetime: 25.0
cut_in_wind_speed: 3.0
cut_out_wind_speed: 25.0
components:
blade:
reference_axis:
Expand Down
2 changes: 2 additions & 0 deletions examples/02_reference_turbines/IEA-22-280-RWT.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ assembly:
rotor_diameter: 284.0
rated_power: 22000000.0
lifetime: 25.0
cut_in_wind_speed: 3.0
cut_out_wind_speed: 25.0
components:
blade:
reference_axis:
Expand Down
2 changes: 2 additions & 0 deletions examples/02_reference_turbines/IEA-3p4-130-RWT.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ assembly:
hub_height: 110.0
rotor_diameter: 129.82183952
rated_power: 3370000.0
cut_in_wind_speed: 3.0
cut_out_wind_speed: 25.0
components:
blade:
reference_axis:
Expand Down
2 changes: 2 additions & 0 deletions examples/02_reference_turbines/nrel5mw.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ assembly:
hub_height: 90.0
rotor_diameter: 125.88009368
rated_power: 5000000.0
cut_in_wind_speed: 3.0
cut_out_wind_speed: 25.0
components:
blade:
reference_axis:
Expand Down
2 changes: 2 additions & 0 deletions examples/03_blade/BAR_URC.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ assembly:
hub_height: 140.0
rated_power: 5000000.0
lifetime: 25.0
cut_in_wind_speed: 4.0
cut_out_wind_speed: 25.0
components:
blade:
reference_axis:
Expand Down
2 changes: 2 additions & 0 deletions examples/03_blade/BAR_USC.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ assembly:
hub_height: 140.0
rated_power: 5000000.0
lifetime: 25.0
cut_in_wind_speed: 4.0
cut_out_wind_speed: 25.0
components:
blade:
reference_axis:
Expand Down
2 changes: 2 additions & 0 deletions examples/05_tower_monopile/nrel5mw_monopile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ assembly:
hub_height: 90.0
rotor_diameter: 126.0
rated_power: 5000000.0
cut_in_wind_speed: 3.0
cut_out_wind_speed: 25.0
components:
tower:
outer_shape:
Expand Down
3 changes: 2 additions & 1 deletion examples/05_tower_monopile/nrel5mw_tower.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ assembly:
hub_height: 90.
rotor_diameter: 126.
rated_power: 5.e+6

cut_in_wind_speed: 3.0
cut_out_wind_speed: 25.0
components:
tower:
outer_shape:
Expand Down
2 changes: 2 additions & 0 deletions examples/09_floating/IEA-15-240-RWT_VolturnUS-S.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ assembly:
rotor_diameter: 241.35064632
rated_power: 15000000.0
lifetime: 25.0
cut_in_wind_speed: 3.0
cut_out_wind_speed: 25.0
components:
blade:
reference_axis:
Expand Down
2 changes: 2 additions & 0 deletions examples/09_floating/IEA-22-280-RWT_Floater.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ assembly:
rotor_diameter: 284.0
rated_power: 22000000.0
lifetime: 25.0
cut_in_wind_speed: 3.0
cut_out_wind_speed: 25.0
components:
blade:
reference_axis:
Expand Down
2 changes: 2 additions & 0 deletions examples/09_floating/nrel5mw-semi_oc4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ assembly:
hub_height: 90.0
rotor_diameter: 126.0
rated_power: 5000000.0
cut_in_wind_speed: 3.0
cut_out_wind_speed: 25.0
components:
blade:
reference_axis:
Expand Down
2 changes: 2 additions & 0 deletions examples/09_floating/nrel5mw-spar_oc3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ assembly:
hub_height: 90.0
rotor_diameter: 126.0
rated_power: 5000000.0
cut_in_wind_speed: 3.0
cut_out_wind_speed: 25.0
components:
blade:
reference_axis:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ assembly:
rotor_diameter: 241.35064632
rated_power: 15000000.0
lifetime: 25.0
cut_in_wind_speed: 3.0
cut_out_wind_speed: 25.0
components:
blade:
reference_axis:
Expand Down
2 changes: 2 additions & 0 deletions examples/11_user_custom/nrel5mw-spar_oc3_user_mass.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ assembly:
hub_height: 90.0
rotor_diameter: 126.0
rated_power: 5000000.0
cut_in_wind_speed: 3.0
cut_out_wind_speed: 25.0
components:
blade:
reference_axis:
Expand Down
2 changes: 2 additions & 0 deletions examples/17_jacket/nrel5mw_jacket.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ assembly:
hub_height: 90.0
rotor_diameter: 126.0
rated_power: 5000000.0
cut_in_wind_speed: 3.0
cut_out_wind_speed: 25.0
components:
tower:
outer_shape:
Expand Down
2 changes: 2 additions & 0 deletions examples/18_rotor_tower_monopile/IEA15MW_scaled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ assembly:
rotor_diameter: 279.71
rated_power: 20000000.0
lifetime: 25.0
cut_in_wind_speed: 3.0
cut_out_wind_speed: 25.0
components:
blade:
reference_axis:
Expand Down
9 changes: 5 additions & 4 deletions wisdem/glue_code/gc_WT_InitModel.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ def yaml2openmdao(wt_opt, modeling_options, wt_init, opt_options):

if modeling_options["flags"]["control"]:
control = wt_init["control"]
wt_opt = assign_control_values(wt_opt, modeling_options, control)
assembly = wt_init["assembly"]
wt_opt = assign_control_values(wt_opt, modeling_options, control, assembly)
else:
control = {}

Expand Down Expand Up @@ -1427,10 +1428,10 @@ def assign_mooring_values(wt_opt, modeling_options, mooring):
return wt_opt


def assign_control_values(wt_opt, modeling_options, control):
def assign_control_values(wt_opt, modeling_options, control, assembly):
# Controller parameters
wt_opt["control.V_in"] = min(control["min_pitch_table"]["wind_speed"])
wt_opt["control.V_out"] = max(control["min_pitch_table"]["wind_speed"])
wt_opt["control.V_in"] = assembly["cut_in_wind_speed"]
wt_opt["control.V_out"] = assembly["cut_out_wind_speed"]
wt_opt["control.minOmega"] = control["min_rotor_speed"]
wt_opt["control.maxOmega"] = control["max_rotor_speed"]
wt_opt["control.rated_TSR"] = control["optimal_tsr"]
Expand Down
Loading