windpowerlib.power_output.power_curve¶
- windpowerlib.power_output.power_curve(wind_speed, power_curve_wind_speeds, power_curve_values, density=None, density_correction=False)[source]¶
Calculates the turbine power output using a power curve.
This function is carried out when the parameter power_output_model of an instance of the
ModelChain
class is ‘power_curve’. If the parameter density_correction is True the density corrected power curve (seepower_curve_density_correction()
) is used.- Parameters:
wind_speed (pandas.Series or numpy.array) – Wind speed at hub height in m/s.
power_curve_wind_speeds (pandas.Series or numpy.array) – Wind speeds in m/s for which the power curve values are provided in power_curve_values.
power_curve_values (pandas.Series or numpy.array) – Power curve values corresponding to wind speeds in power_curve_wind_speeds.
density (pandas.Series or numpy.array) – Density of air at hub height in kg/m³. This parameter is needed if density_correction is True. Default: None.
density_correction (bool) – If the parameter is True the density corrected power curve (see
power_curve_density_correction()
) is used for the calculation of the turbine power output. In this case density cannot be None. Default: False.
- Returns:
Electrical power output of the wind turbine in W. Data type depends on type of wind_speed.
- Return type:
pandas.Series or numpy.array
Notes
It is assumed that the power output for wind speeds above the maximum and below the minimum wind speed given in the power curve is zero.