feedinlib.models.WindpowerlibTurbine

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

Model to determine the feed-in of a wind turbine using the windpowerlib.

The windpowerlib [1] is a python library for simulating the performance of wind turbines and farms. For more information about the model check the documentation of the windpowerlib [2].

Notes

In order to use this model various power plant and model parameters have to be provided. See power_plant_requires as well as requires for further information. Furthermore, the weather data used to calculate the feed-in has to have a certain format. See feedin() for further information.

References

[1]windpowerlib on github
[2]windpowerlib documentation

Methods

__init__(**kwargs)
feedin(weather, power_plant_parameters, **kwargs) Calculates power plant feed-in in Watt.
instantiate_turbine(**kwargs) Instantiates a windpowerlib.WindTurbine object.

Attributes

nominal_power_wind_power_plant Nominal power of wind turbine in Watt.
power_plant_requires The power plant parameters this model requires to calculate a feed-in.
requires The parameters this model requires to calculate a feed-in.
__init__(**kwargs)[source]
feedin(weather, power_plant_parameters, **kwargs)[source]

Calculates power plant feed-in in Watt.

This function uses the windpowerlib’s ModelChain to calculate the feed-in for the given weather time series and wind turbine.

Parameters:
  • weather (pandas.DataFrame) – Weather time series used to calculate feed-in. See weather_df parameter in windpowerlib’s Modelchain run_model method for more information on required variables, units, etc.
  • 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 required power plant parameters (see power_plant_requires) and may further contain optional power plant parameters (see windpowerlib.WindTurbine).
  • **kwargs – Keyword arguments can be used to overwrite the windpowerlib’s ModelChain parameters.
Returns:

Power plant feed-in time series in Watt.

Return type:

pandas.Series

instantiate_turbine(**kwargs)[source]

Instantiates a windpowerlib.WindTurbine object.

Parameters:**kwargs – See power_plant_parameters parameter in feedin() for more information.
Returns:Wind turbine to calculate feed-in for.
Return type:windpowerlib.WindTurbine
nominal_power_wind_power_plant

Nominal power of wind turbine in Watt.

See WindTurbine.nominal_power in windpowerlib for further information.

power_plant_requires

The power plant parameters this model requires to calculate a feed-in.

The required power plant parameters are:

hub_height, power_curve/power_coefficient_curve/turbine_type

hub_height (float)

Hub height in m.

See also WindTurbine.hub_height in windpowerlib documentation.

power_curve (pandas.DataFrame or dict)

DataFrame/dictionary with wind speeds in m/s and corresponding power curve value in W.

See also WindTurbine.power_curve in windpowerlib documentation.

power_coefficient_curve (pandas.DataFrame or dict)

DataFrame/dictionary with wind speeds in m/s and corresponding power coefficient.

See also WindTurbine.power_coefficient_curve in windpowerlib documentation.

turbine_type (str)
Name of the wind turbine type as in the oedb turbine library. Use get_power_plant_data() with dataset = ‘oedb_turbine_library’ to get an overview of all provided turbines. See the data set metadata [3] for further information on provided parameters.

References

[3]oedb wind turbine library
requires

The parameters this model requires to calculate a feed-in.

This model does not require any additional model parameters.