API¶
Classes¶
|
Defines a standard set of wind turbine attributes. |
|
Defines a standard set of wind farm attributes. |
Defines a standard set of wind turbine cluster attributes. |
|
|
Model to determine the output of a wind turbine |
Model to determine the output of a wind farm or wind turbine cluster. |
Temperature¶
Function for calculating air temperature at hub height.
|
Calculates the temperature at hub height using a linear gradient. |
Density¶
Functions for calculating air density at hub height.
|
Calculates the density of air at hub height using the barometric height equation. |
|
Calculates the density of air at hub height using the ideal gas equation. |
Wind speed¶
Functions for calculating wind speed at hub height.
|
Calculates the wind speed at hub height using a logarithmic wind profile. |
|
Calculates the wind speed at hub height using the hellman equation. |
Wind turbine data¶
Functions and methods to obtain the nominal power as well as
power curve or power coefficient curve needed by the WindTurbine
class.
Fetches turbine data from a csv file. |
|
|
Loads turbine library from the OpenEnergy database (oedb). |
|
Get all provided wind turbine types provided. |
Data Container¶
Create data container to be used as an input in classes und functions.
|
A simple data container to define more than one turbine of the same type. |
Creates a |
Wind farm calculations¶
Functions and methods to calculate the mean hub height, installed power as well
as the aggregated power curve of a WindFarm
object.
Function to check wind turbine fleet user input. |
|
The nominal power is the sum of the nominal power of all turbines. |
|
Calculates the mean hub height of the wind farm. |
|
Calculates the power curve of a wind farm. |
Wind turbine cluster calculations¶
Functions and methods to calculate the mean hub height, nominal power as well
as the aggregated power curve of a WindTurbineCluster
object.
This is realized in a new module as the functions differ from the functions in
the WindFarm
class.
The nominal power is the sum of the nominal power of all turbines in the wind turbine cluster. |
|
Calculates the mean hub height of the wind turbine cluster. |
|
|
Calculates the power curve of a wind turbine cluster. |
Power output¶
Functions for calculating power output of a wind power plant.
Calculates the turbine power output using a power coefficient curve. |
|
|
Calculates the turbine power output using a power curve. |
Calculates the turbine power output using a density corrected power curve. |
Alteration of power curves¶
Functions for smoothing power curves or applying wake losses to a power curve.
|
Smoothes a power curve by using a Gauss distribution. |
Reduces the power values of a power curve by an efficiency (curve). |
|
|
A list, numpy.array, pandas.Series or other iterables can be passed to define the wind speed and the power output. |
Wake losses¶
Functions for applying wake losses to a wind speed time series.
|
Reduces wind speed by a wind efficiency curve. |
Reads wind efficiency curve(s) specified in curve_name. |
ModelChain¶
Creating a ModelChain object.
|
Model to determine the output of a wind turbine |
Running the ModelChain.
|
Runs the model. |
Methods of the ModelChain object.
|
Calculates the temperature of air at hub height. |
|
Calculates the density of air at hub height. |
|
Calculates the wind speed at hub height. |
Calculates the power output of the wind power plant. |
TurbineClusterModelChain¶
The TurbineClusterModelChain inherits all functions from the ModelChain.
Creating a TurbineClusterModelChain object.
Model to determine the output of a wind farm or wind turbine cluster. |
Running the TurbineClusterModelChain.
|
Runs the model. |
Methods of the TurbineClusterModelChain object.
|
Calculates the power curve of the wind turbine cluster. |
|
Calculates the temperature of air at hub height. |
|
Calculates the density of air at hub height. |
|
Calculates the wind speed at hub height. |
|
Calculates the power output of the wind power plant. |
Tools¶
Additional functions used in the windpowerlib.
Linearly inter- or extrapolates between the values of a data frame. |
|
Logarithmic inter- or extrapolation between the values of a data frame. |
|
|
Gauss distribution. |
|
Estimate turbulence intensity by the roughness length. |
ModelChain example¶
The modelchain_example
consists of the following functions.
|
Imports weather data from a file. |
Initializes three |
|
Calculates power output of wind turbines using the |
|
|
Plots or prints power output and power (coefficient) curves. |
Runs the basic example. |
TurbineClusterModelChain example¶
The turbine_cluster_modelchain_example
consists of the following functions
as well as it uses functions of the modelchain_example
.
|
Initializes two |
|
Initializes a |
|
Calculates power output of wind farms and clusters using the |
Plots or prints power output and power (coefficient) curves. |
|
Runs the example. |