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 Pvlib which 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 Pvlib model is currently the only implemented photovoltaic model see power_plant_parameters parameter feedin() for further information.

Methods

__init__([model])
feedin(weather[, scaling]) Calculates PV system feed-in in Watt.

Attributes

area Area of PV system in m^2.
peak_power Peak power of PV system in Watt.
required The power plant parameters the specified model requires.
__init__(model=<class 'feedinlib.models.Pvlib'>, **attributes)[source]
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 the Pvlib model is currently the only implemented photovoltaic model see feedin() 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:

pandas.Series

area

Area of PV system in m^2.

See pv_system_area attribute 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_power attribute 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_requires attribute for further information.