WindTurbineCluster takes only WindFarms but not WindTurbines
The input of the WindTurbineCluster is a list of WindFarm objects. WindTurbine objects are not allowed. I think we should either rename the class or allow WindTurbine objects or both.
What about WindFarmCluster?
decision dev meeting: Allow WindTurbines / WindTurbineGroups in WindTurbineCluster.
I have two ideas how to deal with the problem.
- We could convert all WindTurbines to WindFarms with just one Turbine. This is not very elegant but in my opinion the easiest way.
- We could make sure that all WindTurbines or WindTurbineGroups do have the same attributes needed in the cluster class and its methods. At some place we may have to distinguish between types. I think this is the better solution because we do not have to copy the object.
At the last dev meeting I promised to provide information for the second suggestion in your last comment. Here it is:
- No problem with nominal power and hub height as they are attributes of both, wind farms and wind turbines
- in
assign_power_curve()inwind_turbine_cluster.py, where the power curve aggregation takes place, both, wind farm and wind turbine power curves could be aggregated but:- In this method an aggregated power curve is assigned for each wind farm in
self.wind_farmshere which does not work for wind turbines.
- In this method an aggregated power curve is assigned for each wind farm in
This "in-between" step of getting the aggregated wind farm power curves instead of just aggregating all wind turbine power curves (of all wind farms) was implemented like that to give the option of applying wake losses to wind farm power curves (of which each could have e.g. a different wind farm efficiency).
Options I see now to make WindTurbines possible in WindTurbineClusters.:
- Give
WindTurbinethe methodassign_power_curve()which is just returning the power curve - Differentiate here between
WindTurbines andWindFarms
Other things I noticed:
**kwargsinWindTurbineClusterinit is not used anymore