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
Adjust power curve in SAM config file to account for losses.
Collect wind resource and weights from inputs.
Attributes
Specify power curve loss target in the config file using this key.
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 thesam_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 insam_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:
- 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’.