Skip to content

Commit

Permalink
Minor updates for plot axes---contains temporary limitation to NREL 5…
Browse files Browse the repository at this point in the history
…MW turbine only, will remove prior to merge into v4 branch.
  • Loading branch information
misi9170 committed Dec 13, 2023
1 parent 950602a commit c120467
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions examples/18_check_turbine.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@
if t.suffix == ".yaml" and ("multi_dim" not in t.stem)
]

# TEMPORARY
turbines = [turbines[2]]
# END TEMPORARY

# Declare a set of figures for comparing cp and ct across models
fig_cp_ct, axarr_cp_ct = plt.subplots(2,1,sharex=True,figsize=(10,10))

Expand All @@ -66,14 +70,14 @@
)
axarr_cp_ct[0].grid(True)
axarr_cp_ct[0].legend()
axarr_cp_ct[0].set_ylabel('Cp')
axarr_cp_ct[0].set_ylabel('Power (kW)')
axarr_cp_ct[1].plot(
fi.floris.farm.turbine_map[0].power_thrust_table["wind_speed"],
fi.floris.farm.turbine_map[0].power_thrust_table["thrust"],label=t
fi.floris.farm.turbine_map[0].power_thrust_table["thrust_coefficient"],label=t
)
axarr_cp_ct[1].grid(True)
axarr_cp_ct[1].legend()
axarr_cp_ct[1].set_ylabel('Ct')
axarr_cp_ct[1].set_ylabel('Ct (-)')
axarr_cp_ct[1].set_xlabel('Wind Speed (m/s)')

# Create a figure
Expand Down

0 comments on commit c120467

Please sign in to comment.