reV.losses.power_curve.PowerCurve
- class PowerCurve(wind_speed, generation)[source]
 Bases:
objectA turbine power curve.
- wind_speed
 An array containing the wind speeds corresponding to the values in the
generationarray.- Type:
 
- generation
 An array containing the generated power in kW at the corresponding wind speed in the
wind_speedarray. 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:
 
Warning
This class will attempt to infer a cutoff speed from the
generationinput. Specifically, it will look for a transition from the highest rated power down to zero in a singlewind_speedstep 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
generationinput. 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_speedinput. 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
The detected cut-in wind speed at which power generation begins
The detected cutoff wind speed at which the power generation is zero
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).