foxes.core.wind_farm.WindFarm

class foxes.core.wind_farm.WindFarm[source]

Bases: object

The wind farm.

Parameters:

name (str) – The wind farm name

name

The wind farm name

Type:

str

turbines

The wind turbines

Type:

list of foxes.core.Turbine

boundary

The wind farm boundary

Type:

foxes.utils.geom2d.AreaGeometry, optional

__init__(name='wind_farm', boundary=None)[source]

Methods

__init__([name, boundary])

add_turbine(turbine[, verbosity])

Add a wind turbine to the list.

Attributes

n_turbines

The number of turbines in the wind farm

turbine_names

The list of names of all turbines

__init__(name='wind_farm', boundary=None)[source]
add_turbine(turbine, verbosity=1)[source]

Add a wind turbine to the list.

Parameters:
  • turbine (foxes.core.Turbine) – The wind turbine

  • verbosity (int) – The output verbosity, 0 = silent

property n_turbines

The number of turbines in the wind farm

Returns:

n_turbines – The total number of turbines

Return type:

int

property turbine_names

The list of names of all turbines

Returns:

names – The names of all turbines

Return type:

list of str