windpowerlib.modelchain.ModelChain¶
-
class
windpowerlib.modelchain.
ModelChain
(wind_turbine, wind_speed_model='logarithmic', temperature_model='linear_gradient', density_model='barometric', power_output_model='power_curve', density_correction=False, obstacle_height=0, hellman_exp=None)[source]¶ Model to determine the output of a wind turbine
Parameters: - wind_turbine (WindTurbine) – A
WindTurbine
object representing the wind turbine. - wind_speed_model (string) – Parameter to define which model to use to calculate the wind speed at hub height. Valid options are ‘logarithmic’, ‘hellman’ and ‘interpolation_extrapolation’. Default: ‘logarithmic’.
- temperature_model (string) – Parameter to define which model to use to calculate the temperature of air at hub height. Valid options are ‘linear_gradient’ and ‘interpolation_extrapolation’. Default: ‘linear_gradient’.
- density_model (string) – Parameter to define which model to use to calculate the density of air at hub height. Valid options are ‘barometric’, ‘ideal_gas’ and ‘interpolation_extrapolation’. Default: ‘barometric’.
- power_output_model (string) – Parameter to define which model to use to calculate the turbine power output. Valid options are ‘power_curve’ and ‘power_coefficient_curve’. Default: ‘power_curve’.
- density_correction (boolean) – If the parameter is True the density corrected power curve is used for the calculation of the turbine power output. Default: False.
- obstacle_height (float) – Height of obstacles in the surrounding area of the wind turbine in m. Set obstacle_height to zero for wide spread obstacles. Default: 0.
- hellman_exp (float) – The Hellman exponent, which combines the increase in wind speed due to stability of atmospheric conditions and surface roughness into one constant. Default: None.
-
wind_turbine
¶ WindTurbine – A
WindTurbine
object representing the wind turbine.
-
wind_speed_model
¶ string – Parameter to define which model to use to calculate the wind speed at hub height. Valid options are ‘logarithmic’, ‘hellman’ and ‘interpolation_extrapolation’. Default: ‘logarithmic’.
-
temperature_model
¶ string – Parameter to define which model to use to calculate the temperature of air at hub height. Valid options are ‘linear_gradient’ and ‘interpolation_extrapolation’. Default: ‘linear_gradient’.
-
density_model
¶ string – Parameter to define which model to use to calculate the density of air at hub height. Valid options are ‘barometric’, ‘ideal_gas’ and ‘interpolation_extrapolation’. Default: ‘barometric’.
-
power_output_model
¶ string – Parameter to define which model to use to calculate the turbine power output. Valid options are ‘power_curve’ and ‘power_coefficient_curve’. Default: ‘power_curve’.
-
density_correction
¶ boolean – If the parameter is True the density corrected power curve is used for the calculation of the turbine power output. Default: False.
-
hellman_exp
¶ float – The Hellman exponent, which combines the increase in wind speed due to stability of atmospheric conditions and surface roughness into one constant. Default: None.
-
obstacle_height
¶ float – Height of obstacles in the surrounding area of the wind turbine in m. Set obstacle_height to zero for wide spread obstacles. Default: 0.
-
power_output
¶ pandas.Series – Electrical power output of the wind turbine in W.
Examples
>>> from windpowerlib import modelchain >>> from windpowerlib import wind_turbine >>> enerconE126 = { ... 'hub_height': 135, ... 'rotor_diameter': 127, ... 'turbine_name': 'ENERCON E 126 7500'} >>> e126 = wind_turbine.WindTurbine(**enerconE126) >>> modelchain_data = {'density_model': 'ideal_gas'} >>> e126_mc = modelchain.ModelChain(e126, **modelchain_data) >>> print(e126_mc.density_model) ideal_gas
-
__init__
(wind_turbine, wind_speed_model='logarithmic', temperature_model='linear_gradient', density_model='barometric', power_output_model='power_curve', density_correction=False, obstacle_height=0, hellman_exp=None)[source]¶
Methods
__init__
(wind_turbine[, wind_speed_model, ...])density_hub
(weather_df)Calculates the density of air at hub height. run_model
(weather_df)Runs the model. temperature_hub
(weather_df)Calculates the temperature of air at hub height. turbine_power_output
(wind_speed_hub, density_hub)Calculates the power output of the wind turbine. wind_speed_hub
(weather_df)Calculates the wind speed at hub height. - wind_turbine (WindTurbine) – A