reV.losses.power_curve.PowerCurve

class PowerCurve(wind_speed, generation)[source]

Bases: object

A turbine power curve.

wind_speed

An array containing the wind speeds corresponding to the values in the generation array.

Type:

numpy.array

generation

An array containing the generated power in kW at the corresponding wind speed in the wind_speed array. This input must have at least one positive value, and if a cutoff speed is detected (see Warnings section below), then all values above that wind speed must be set to 0.

Type:

numpy.array

Warning

This class will attempt to infer a cutoff speed from the generation input. Specifically, it will look for a transition from the highest rated power down to zero in a single wind_speed step of the power curve. If such a transition is detected, the wind speed corresponding to the zero value will be set as the cutoff speed, and all calculated power curves will be clipped at this speed. If your input power curve contains a cutoff speed, ensure that it adheres to the expected pattern of dropping from max rated power to zero power in a single wind speed step.

Parameters:
  • wind_speed (array_like) – An iterable containing the wind speeds corresponding to the generated power values in generation input. The input values should all be non-zero.

  • generation (array_like) – An iterable containing the generated power in kW at the corresponding wind speed in the wind_speed input. This input must have at least one positive value, and if a cutoff speed is detected (see Warnings section below), then all values above that wind speed must be set to 0.

Methods

Attributes

cutin_wind_speed

The detected cut-in wind speed at which power generation begins

cutoff_wind_speed

The detected cutoff wind speed at which the power generation is zero

rated_power

Get the rated power (max power) of the turbine power curve.

property cutin_wind_speed

The detected cut-in wind speed at which power generation begins

Returns:

float

property cutoff_wind_speed

The detected cutoff wind speed at which the power generation is zero

Returns:

float | np.inf

property rated_power

Get the rated power (max power) of the turbine power curve. The units are dependent on the input power curve but this is typically in units of kW.

Returns:

float

__call__(wind_speed)[source]

Calculate the power curve value for the given wind_speed.

Parameters:

wind_speed (int | float | list | array_like) – Wind speed value corresponding to the desired power curve value.

Returns:

float | numpy.array – The power curve value(s) for the input wind speed(s).