From 11eece0c54a5e00a15c194bc6647142bd7df1adb Mon Sep 17 00:00:00 2001 From: bayc Date: Thu, 15 Sep 2022 22:40:01 -0600 Subject: [PATCH] adding missing time_series flag to cc flow field solver call (#493) * adding missing time_series flag to cc flow field solver call * adding documentation for the time_series flag --- floris/simulation/grid.py | 5 ++++- floris/simulation/solver.py | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/floris/simulation/grid.py b/floris/simulation/grid.py index 2592ae9dd..a3617395f 100644 --- a/floris/simulation/grid.py +++ b/floris/simulation/grid.py @@ -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 diff --git a/floris/simulation/solver.py b/floris/simulation/solver.py index f8131c087..255e49fcf 100644 --- a/floris/simulation/solver.py +++ b/floris/simulation/solver.py @@ -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