Skip to content
Snippets Groups Projects
Commit 127f61f9 authored by Mads M. Pedersen's avatar Mads M. Pedersen
Browse files

Fix pywake park

parent 22f23092
No related branches found
No related tags found
No related merge requests found
......@@ -321,7 +321,7 @@ Use WindTurbines(names, diameters, hub_heights, power_ct_funcs) instead""", Depr
'mode', [PowerCtTabular(wt['WindSpeed'], wt['PowerOutput'], power_unit, wt['ThrustCoEfficient'],
ws_cutin=wt['LowSpeedCutIn'], ws_cutout=wt['HighSpeedCutOut'],
ct_idle=wt['ct_idle'], additional_models=[]) for wt in wt_data],
default_value=0, additional_models=[SimpleYawModel()])
default_value=default_mode, additional_models=[SimpleYawModel()])
char_data_tables = [np.array([pct.ws_tab, pct.power_ct_tab[0], pct.power_ct_tab[1]]).T
for pct in power_ct_funcs.windTurbineFunction_lst]
......
......@@ -231,6 +231,7 @@ class PowerCtTabular(PowerCtFunction):
ws = np.r_[ws, ws_cutout + eps, 100]
power = np.r_[power, power_idle, power_idle]
ct = np.r_[ct, ct_idle, ct_idle]
self.ws_cutin, self.ws_cutout, self.ct_idle = ws_cutin, ws_cutout, ct_idle
idx = np.argsort(ws)
ws, power, ct = np.asarray(ws)[idx], np.asarray(power)[idx], np.asarray(ct)[idx]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment