windpowerlib.wind_turbine.WindTurbine¶
-
class
windpowerlib.wind_turbine.
WindTurbine
(turbine_name, hub_height, rotor_diameter=None, power_coefficient_curve=None, power_curve=None, nominal_power=None, fetch_curve='power_curve')[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.
- rotor_diameter (None or float) – Diameter of the rotor in m.
- power_coefficient_curve (None, pandas.DataFrame or dictionary) – Power coefficient curve of the wind turbine. DataFrame/dictionary must have ‘wind_speed’ and ‘values’ columns/keys with wind speeds in m/s and the corresponding power coefficients. Default: None.
- power_curve (None, pandas.DataFrame or dictionary) – Power curve of the wind turbine. DataFrame/dictionary must have ‘wind_speed’ and ‘values’ columns/keys with wind speeds in m/s and the corresponding power curve value in W. Default: None.
- nominal_power (None or float) – The nominal output of the wind turbine in W.
- fetch_curve (string) – Parameter to specify whether the power or power coefficient curve should be retrieved from the provided turbine data. Valid options are ‘power_curve’ and ‘power_coefficient_curve’. Default: ‘power_curve’.
-
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.
-
rotor_diameter
¶ None or float – Diameter of the rotor in m.
-
power_coefficient_curve
¶ None, pandas.DataFrame or dictionary – Power coefficient curve of the wind turbine. DataFrame/dictionary must have ‘wind_speed’ and ‘values’ columns/keys with wind speeds in m/s and the corresponding power coefficients. Default: None.
-
power_curve
¶ None, pandas.DataFrame or dictionary – Power curve of the wind turbine. DataFrame/dictionary must have ‘wind_speed’ and ‘values’ columns/keys with wind speeds in m/s and the corresponding power curve value in W. Default: None.
-
nominal_power
¶ None or float – The nominal output of the wind turbine in W.
-
fetch_curve
¶ string – Parameter to specify whether the power or power coefficient curve should be retrieved from the provided turbine data. Valid options are ‘power_curve’ and ‘power_coefficient_curve’. Default: ‘power_curve’.
-
power_output
¶ pandas.Series – The calculated power output of the wind turbine.
Examples
>>> from windpowerlib import wind_turbine >>> enerconE126 = { ... 'hub_height': 135, ... 'rotor_diameter': 127, ... 'turbine_name': 'ENERCON E 126 7500'} >>> e126 = wind_turbine.WindTurbine(**enerconE126) >>> print(e126.nominal_power) 7500000
-
__init__
(turbine_name, hub_height, rotor_diameter=None, power_coefficient_curve=None, power_curve=None, nominal_power=None, fetch_curve='power_curve')[source]¶
Methods
__init__
(turbine_name, hub_height[, ...])fetch_turbine_data
()Fetches data of the requested wind turbine.