Skip to content

Commit

Permalink
adding missing time_series flag to cc flow field solver call (#493)
Browse files Browse the repository at this point in the history
* adding missing time_series flag to cc flow field solver call

* adding documentation for the time_series flag
  • Loading branch information
bayc authored Sep 16, 2022
1 parent ab65590 commit 11eece0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion floris/simulation/grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ class Grid(ABC):
Args:
turbine_coordinates (`list[Vec3]`): The collection of turbine coordinate (`Vec3`) objects.
reference_turbine_diameter (:py:obj:`float`): The reference turbine's rotor diameter.
grid_resolution (:py:obj:`int` | :py:obj:`Iterable(int,)`): Grid resolution specific to each grid type
grid_resolution (:py:obj:`int` | :py:obj:`Iterable(int,)`): Grid resolution specific to each grid type.
wind_directions (:py:obj:`NDArrayFloat`): Wind directions supplied by the user.
wind_speeds (:py:obj:`NDArrayFloat`): Wind speeds supplied by the user.
time_series (:py:obj:`bool`): True/false flag to indicate whether the supplied wind data is a time series.
"""
turbine_coordinates: list[Vec3] = field()
reference_turbine_diameter: float
Expand Down
1 change: 1 addition & 0 deletions floris/simulation/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,7 @@ def full_flow_cc_solver(farm: Farm, flow_field: FlowField, flow_field_grid: Flow
wind_directions=turbine_grid_flow_field.wind_directions,
wind_speeds=turbine_grid_flow_field.wind_speeds,
grid_resolution=3,
time_series=turbine_grid_flow_field.time_series,
)
turbine_grid_farm.expand_farm_properties(
turbine_grid_flow_field.n_wind_directions, turbine_grid_flow_field.n_wind_speeds, turbine_grid.sorted_coord_indices
Expand Down

0 comments on commit 11eece0

Please sign in to comment.