windpowerlib.wind_turbine.WindTurbine.to_group

WindTurbine.to_group(number_turbines=None, total_capacity=None)[source]

Creates a WindTurbineGroup, a NamedTuple data container with the fields ‘number_of_turbines’ and ‘wind_turbine’. If no parameter is passed the number of turbines is set to one.

It can be used to calculate the number of turbines for a given total capacity or to create a namedtuple that can be used to define a WindFarm object.

Parameters:
  • number_turbines (float) – Number of turbines of the defined type. Default: 1

  • total_capacity (float) – Total capacity of the group of wind turbines of the same type.

Returns:

A namedtuple with two fields: ‘number_of_turbines’ and ‘wind_turbine’.

Return type:

WindTurbineGroup

Examples

>>> from windpowerlib import WindTurbine
>>> enerconE126={
...    'hub_height': 135,
...    'turbine_type': 'E-126/4200'}
>>> e126=WindTurbine(**enerconE126)
>>> e126.to_group(5).number_of_turbines
5
>>> e126.to_group().number_of_turbines
1
>>> e126.to_group(number_turbines=7).number_of_turbines
7
>>> e126.to_group(total_capacity=12600000).number_of_turbines
3.0
>>> e126.to_group(total_capacity=14700000).number_of_turbines
3.5
>>> e126.to_group(total_capacity=12600000).wind_turbine.nominal_power
4200000.0
>>> type(e126.to_group(5))
<class 'windpowerlib.wind_turbine.WindTurbineGroup'>
>>> e126.to_group(5)  
WindTurbineGroup(wind_turbine=Wind turbine: E-126/4200 ['nominal
power=4200000.0 W', 'hub height=135 m', 'rotor diameter=127.0 m',
'power_coefficient_curve=True', 'power_curve=True'],
number_of_turbines=5)