feedinlib.models.PhotovoltaicModelBase

class feedinlib.models.PhotovoltaicModelBase(**kwargs)[source]

Expands model base class Base by PV specific attributes.

Methods

__init__(**kwargs)
feedin(weather, power_plant_parameters, **kwargs) Calculates power plant feed-in in Watt.

Attributes

power_plant_requires The (names of the) power plant parameters this model requires in order to calculate the feed-in.
pv_system_area Area of PV system in m^2.
pv_system_peak_power Peak power of PV system in Watt.
requires The (names of the) parameters this model requires in order to calculate the feed-in.
__init__(**kwargs)
feedin(weather, power_plant_parameters, **kwargs)

Calculates power plant feed-in in Watt.

As this is an abstract method you have to override it in a subclass so that the power plant feed-in using the respective model can be calculated.

Parameters:
  • weather – Weather data to calculate feed-in. Format and required parameters depend on the model.
  • power_plant_parameters (dict) – Dictionary with power plant specifications. Keys of the dictionary are the power plant parameter names, values of the dictionary hold the corresponding value. The dictionary must at least contain the power plant parameters required by the respective model and may further contain optional power plant parameters. See power_plant_requires property of the respective model for futher information.
  • **kwargs – Keyword arguments for respective model’s feed-in calculation.
Returns:

feedin – Series with power plant feed-in for specified time span in Watt. If respective model does calculate AC and DC feed-in, AC feed-in should be returned by default. mode parameter can be used to overwrite this default behavior and return DC power output instead (for an example see feedin()).

Return type:

pandas.Series

power_plant_requires

The (names of the) power plant parameters this model requires in order to calculate the feed-in.

As this is an abstract property you have to override it in a subclass so that the model can be instantiated. This forces implementors to make the required power plant parameters for a model explicit, even if they are empty, and gives them a good place to document them.

By default, this property is settable and its value can be specified via an argument upon construction. If you want to keep this functionality, simply delegate all calls to the superclass.

Parameters:names (list(str), optional) – Containing the names of the required power plant parameters.
pv_system_area

Area of PV system in m^2.

As this is an abstract property you have to override it in a subclass so that the model can be instantiated. This forces implementors to provide a way to retrieve the area of the PV system that is e.g. used to scale the feed-in by area.

pv_system_peak_power

Peak power of PV system in Watt.

As this is an abstract property you have to override it in a subclass so that the model can be instantiated. This forces implementors to provide a way to retrieve the peak power of the PV system that is e.g. used to scale the feed-in by installed capacity.

requires

The (names of the) parameters this model requires in order to calculate the feed-in.

As this is an abstract property you have to override it in a subclass so that the model can be instantiated. This forces implementors to make the required model parameters explicit, even if they are empty, and gives them a good place to document them.

By default, this property is settable and its value can be specified via an argument upon construction. If you want to keep this functionality, simply delegate all calls to the superclass.

Parameters:names (list(str), optional) – Containing the names of the required power plant parameters.