reV.losses.power_curve.PowerCurveLossesMixin

class PowerCurveLossesMixin[source]

Bases: object

Mixin class for reV.SAM.generation.AbstractSamWind.

Warning

Using this class for anything except as a mixin for AbstractSamWind may result in unexpected results and/or errors.

Methods

add_power_curve_losses()

Adjust power curve in SAM config file to account for losses.

wind_resource_from_input()

Collect wind resource and weights from inputs.

Attributes

POWER_CURVE_CONFIG_KEY

Specify power curve loss target in the config file using this key.

input_power_curve

Original power curve for site.

POWER_CURVE_CONFIG_KEY = 'reV_power_curve_losses'

Specify power curve loss target in the config file using this key.

add_power_curve_losses()[source]

Adjust power curve in SAM config file to account for losses.

This function reads the information in the reV_power_curve_losses key of the sam_sys_inputs dictionary and computes a new power curve that accounts for the loss percentage specified from that input. If no power curve loss info is specified in sam_sys_inputs, the power curve will not be adjusted.

See also

adjust_power_curve()

Power curve shift calculation.

property input_power_curve

Original power curve for site.

Type:

PowerCurve

wind_resource_from_input()[source]

Collect wind resource and weights from inputs.

Returns:

PowerCurveWindResource – Wind resource used to compute power curve shift.

Raises:

reVLossesValueError – If power curve losses are not compatible with the ‘wind_resource_model_choice’.