feedinlib.powerplants.Photovoltaic¶
-
class
feedinlib.powerplants.Photovoltaic(model=<class 'feedinlib.models.Pvlib'>, **attributes)[source]¶ Class to define a standard set of PV system attributes.
The Photovoltaic class serves as a data container for PV system attributes. Actual calculation of feed-in provided by the PV system is done by the chosen PV model. So far there is only one PV model,
Pvlib.Parameters: - model (A subclass or instance of subclass of
PhotovoltaicModelBase) –The model parameter defines the feed-in model used to calculate the PV system feed-in. It defaults to
Pvlibwhich is currently the only implemented photovoltaic model.model is used as the model parameter for
Base. - **attributes –
PV system parameters. See power_plant_parameters parameter in respective model’s
feedin()method for further information on the model’s required and optional plant parameters.As the
Pvlibmodel is currently the only implemented photovoltaic model see power_plant_parameters parameterfeedin()for further information.
Methods
__init__([model])feedin(weather[, scaling])Calculates PV system feed-in in Watt. Attributes
areaArea of PV system in
.peak_powerPeak power of PV system in Watt. requiredThe power plant parameters the specified model requires. -
feedin(weather, scaling=None, **kwargs)[source]¶ Calculates PV system feed-in in Watt.
The feed-in can further be scaled by PV system area or peak power using the scaling parameter.
This method delegates the actual computation to the model’s
feedin()method while giving you the opportunity to override some of the inputs used to calculate the feed-in. As thePvlibmodel is currently the only implemented photovoltaic model seefeedin()for further information on feed-in calculation.If the respective model does calculate AC and DC feed-in, AC feed-in is returned by default. See the model’s
feedin()method for information on how to overwrite this default behaviour.Parameters: - weather – Weather data to calculate feed-in. Check the weather parameter
of the respective model’s
feedin()method for required weather data parameters and format. - scaling (str) – Specifies what feed-in is scaled by. Possible options are ‘peak_power’ and ‘area’. Defaults to None in which case feed-in is not scaled.
- **kwargs – Keyword arguments for respective model’s feed-in calculation.
Check the keyword arguments of the model’s
feedin()method for further information.
Returns: Series with PV system feed-in in Watt.
Return type: - weather – Weather data to calculate feed-in. Check the weather parameter
of the respective model’s
-
area¶ Area of PV system in
.See
pv_system_areaattribute of your chosen model for further information on how the area is calculated.
-
peak_power¶ Peak power of PV system in Watt.
See
pv_system_peak_powerattribute of your chosen model for further information and specifications on how the peak power is calculated.
-
required¶ The power plant parameters the specified model requires.
Check the model’s
power_plant_requiresattribute for further information.
- model (A subclass or instance of subclass of