windpowerlib.wind_turbine.WindTurbine

class windpowerlib.wind_turbine.WindTurbine(turbine_name, hub_height, d_rotor, cp_values=None, p_values=None, nominal_power=None, fetch_curve='cp')[source]

Defines a standard set of wind turbine attributes.

Parameters:
  • turbine_name (string) – Name of the wind turbine type. Use get_turbine_types() to see a list of all wind turbines for which power (coefficient) curve data is provided.
  • hub_height (float) – Hub height of the wind turbine in m.
  • d_rotor (float) – Diameter of the rotor in m.
  • cp_values (pandas.DataFrame) – Power coefficient curve of the wind turbine. The indices of the DataFrame are the corresponding wind speeds of the power coefficient curve, the power coefficient values are listed in the column ‘cp’. Default: None.
  • p_values (pandas.DataFrame) – Power curve of the wind turbine. The indices of the DataFrame are the corresponding wind speeds of the power curve, the power values are listed in the column ‘P’. Default: None.
  • nominal_power (float) – The nominal output of the wind turbine in kW.
  • fetch_curve (string) – Parameter to specify whether the power or power coefficient curve should be retrieved from the provided turbine data. Default: cp.
turbine_name

string – Name of the wind turbine type. Use get_turbine_types() to see a list of all wind turbines for which power (coefficient) curve data is provided.

hub_height

float – Hub height of the wind turbine in m.

d_rotor

float – Diameter of the rotor in m.

cp_values

pandas.DataFrame – Power coefficient curve of the wind turbine. The indices of the DataFrame are the corresponding wind speeds of the power coefficient curve, the power coefficient values are listed in the column ‘cp’. Default: None.

p_values

pandas.DataFrame – Power curve of the wind turbine. The indices of the DataFrame are the corresponding wind speeds of the power curve, the power values are listed in the column ‘P’. Default: None.

nominal_power

float – The nominal output of the wind turbine in kW.

power_output

pandas.Series – The calculated power output of the wind turbine.

Examples

>>> from windpowerlib import wind_turbine
>>> enerconE126 = {
...    'hub_height': 135,
...    'd_rotor': 127,
...    'turbine_name': 'ENERCON E 126 7500'}
>>> e126 = wind_turbine.WindTurbine(**enerconE126)
>>> print(e126.d_rotor)
127
__init__(turbine_name, hub_height, d_rotor, cp_values=None, p_values=None, nominal_power=None, fetch_curve='cp')[source]

Methods

__init__(turbine_name, hub_height, d_rotor)
fetch_turbine_data() Fetches data of the requested wind turbine.