Skip to content

Commit

Permalink
Add to “with turbines” function
Browse files Browse the repository at this point in the history
  • Loading branch information
rafmudaf committed Mar 11, 2024
1 parent 2803217 commit 0039c66
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion floris/tools/flow_visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,7 @@ def calculate_horizontal_plane_with_turbines(
y_bounds=None,
wd=None,
ws=None,
ti=None,
yaw_angles=None,
power_setpoints=None,
disable_turbines=None,
Expand All @@ -505,6 +506,7 @@ def calculate_horizontal_plane_with_turbines(
y_bounds (tuple, optional): Limits of output array (in m). Defaults to None.
wd (float, optional): Wind direction setting. Defaults to None.
ws (float, optional): Wind speed setting. Defaults to None.
ti (float, optional): Turbulence intensity. Defaults to None.
yaw_angles (np.ndarray, optional): Yaw angles settings. Defaults to None.
power_setpoints (np.ndarray, optional): Power setpoints settings. Defaults to None.
disable_turbines (np.ndarray, optional): Disable turbines settings. Defaults to None.
Expand All @@ -521,7 +523,9 @@ def calculate_horizontal_plane_with_turbines(
wd = fi.floris.flow_field.wind_directions
if ws is None:
ws = fi.floris.flow_field.wind_speeds
fi.check_wind_condition_for_viz(wd=wd, ws=ws)
if ti is None:
ti = fi.floris.flow_field.turbulence_intensities
fi.check_wind_condition_for_viz(wd=wd, ws=ws, ti=ti)

# Set the ws and wd
fi.set(
Expand Down

0 comments on commit 0039c66

Please sign in to comment.