class foxes.core.WindFarm[source]

The wind farm.

Attributes

name: str

The wind farm name

turbines: list of foxes.core.Turbine

The wind turbines

boundary: foxes.utils.geom2d.AreaGeometry, optional

The wind farm boundary

Public members

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

Constructor.

property data_is_lonlat

Whether the input coordinates are given in lat, lon.

property locked

Whether the wind farm is locked (no more turbines can be added)

property turbines

The list of wind turbines

lock(verbosity=1)[source]

Lock the wind farm (no more turbines can be added)

reset_turbines(algo, turbines=None)[source]

Reset the wind farm turbines.

add_turbine(turbine, verbosity=1)[source]

Add a wind turbine to the list.

property n_turbines

The number of turbines in the wind farm

property turbine_names

The list of names of all turbines

property xy_array

Returns an array of the wind farm ground points

property wind_farm_names

The list of wind farm names for all turbines

get_wind_farm_mapping()[source]

Returns a mapping from wind farm names to turbine indices

get_xy_bounds(extra_space=None, algo=None, lonlat=False, ...)[source]

Returns min max points of the wind farm ground points

get_rotor_diameters(algo)[source]

Gets the rotor diameters

get_hub_heights(algo)[source]

Gets the hub heights

get_capacity(algo)[source]

Gets the total capacity of the wind farm