Skip to content

Commit f692343

Browse files
committed
Adapt TurbineClusterModelChain docstring
1 parent a7936a4 commit f692343

File tree

1 file changed

+105
-59
lines changed

1 file changed

+105
-59
lines changed

windpowerlib/turbine_cluster_modelchain.py

Lines changed: 105 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -26,54 +26,117 @@ class TurbineClusterModelChain(ModelChain):
2626
representing the wind turbine cluster.
2727
wake_losses_model : str or None
2828
Defines the method for taking wake losses within the farm into
29-
consideration. Options: None, 'wind_farm_efficiency' or the name of a
30-
wind efficiency curve like 'dena_mean'. Default: 'dena_mean'.
31-
Use :py:func:`~.wake_losses.get_wind_efficiency_curve` for all provided
32-
wind efficiency curves.
29+
consideration.
30+
31+
* None -
32+
Wake losses are not taken into account.
33+
* 'wind_farm_efficiency' -
34+
See :func:`~.power_curves.wake_losses_to_power_curve` for more
35+
information.
36+
* 'dena_mean' or name of other wind efficiency curve -
37+
See :func:`~.wake_losses.reduce_wind_speed` and
38+
:func:`~.wake_losses.get_wind_efficiency_curve` for more information.
39+
40+
Default: 'dena_mean'.
3341
smoothing : bool
3442
If True the power curves will be smoothed before or after the
3543
aggregation of power curves depending on `smoothing_order`.
44+
See :func:`~.power_curves.smooth_power_curve` or more information.
3645
Default: False.
3746
block_width : float
3847
Width between the wind speeds in the sum of the equation in
3948
:py:func:`~.power_curves.smooth_power_curve`. Default: 0.5.
4049
standard_deviation_method : str
4150
Method for calculating the standard deviation for the Gauss
42-
distribution. Options: 'turbulence_intensity', 'Staffell_Pfenninger'.
51+
distribution.
52+
53+
* 'turbulence_intensity' -
54+
See :func:`~.power_curves.smooth_power_curve` for more information.
55+
* 'Staffell_Pfenninger' -
56+
See :func:`~.power_curves.smooth_power_curve` for more information.
57+
4358
Default: 'turbulence_intensity'.
4459
smoothing_order : str
45-
Defines when the smoothing takes place if `smoothing` is True. Options:
46-
'turbine_power_curves' (to the single turbine power curves),
47-
'wind_farm_power_curves'. Default: 'wind_farm_power_curves'.
60+
Defines when the smoothing takes place if `smoothing` is True.
61+
62+
* 'turbine_power_curves' -
63+
Smoothing is applied to wind turbine power curves.
64+
* 'wind_farm_power_curves' -
65+
Smoothing is applied to wind farm power curves.
66+
67+
Default: 'wind_farm_power_curves'.
4868
4969
Other Parameters
5070
----------------
5171
wind_speed_model : str
52-
Parameter to define which model to use to calculate the wind speed
53-
at hub height. Valid options are 'logarithmic', 'hellman' and
54-
'interpolation_extrapolation'.
72+
Parameter to define which model to use to calculate the wind speed at
73+
hub height. Valid options are:
74+
75+
* 'logarithmic' -
76+
See :func:`~.wind_speed.logarithmic_profile` for more information.
77+
The parameter `obstacle_height` can be used to set the height of
78+
obstacles in the surrounding area of the wind turbine.
79+
* 'hellman' -
80+
See :func:`~.wind_speed.hellman` for more information.
81+
* 'interpolation_extrapolation' -
82+
See :func:`~.tools.linear_interpolation_extrapolation` for more
83+
information.
84+
* 'log_interpolation_extrapolation' -
85+
See :func:`~.tools.logarithmic_interpolation_extrapolation` for more
86+
information.
87+
88+
Default: 'logarithmic'.
5589
temperature_model : str
56-
Parameter to define which model to use to calculate the temperature
57-
of air at hub height. Valid options are 'linear_gradient' and
58-
'interpolation_extrapolation'.
90+
Parameter to define which model to use to calculate the temperature of
91+
air at hub height. Valid options are:
92+
93+
* 'linear_gradient' -
94+
See :func:`~.temperature.linear_gradient` for more
95+
information.
96+
* 'interpolation_extrapolation' -
97+
See :func:`~.tools.linear_interpolation_extrapolation` for more
98+
information.
99+
100+
Default: 'linear_gradient'.
59101
density_model : str
60-
Parameter to define which model to use to calculate the density of
61-
air at hub height. Valid options are 'barometric', 'ideal_gas' and
62-
'interpolation_extrapolation'.
102+
Parameter to define which model to use to calculate the density of air
103+
at hub height. Valid options are:
104+
105+
* 'barometric' -
106+
See :func:`~.density.barometric` for more information.
107+
* 'ideal_gas' -
108+
See :func:`~.density.ideal_gas` for more information.
109+
* 'interpolation_extrapolation' -
110+
See :func:`~.tools.linear_interpolation_extrapolation` for more
111+
information.
112+
113+
Default: 'barometric'.
63114
power_output_model : str
64-
Parameter to define which model to use to calculate the turbine
65-
power output. Valid options are 'power_curve' and
66-
'power_coefficient_curve'.
115+
Parameter to define which model to use to calculate the turbine power
116+
output. Valid options are:
117+
118+
* 'power_curve' -
119+
See :func:`~.power_output.power_curve` for more information. In order
120+
to use the density corrected power curve to calculate the power
121+
output set parameter `density_correction` to True.
122+
* 'power_coefficient_curve' -
123+
See :func:`~.power_output.power_coefficient_curve` for more
124+
information.
125+
126+
Default: 'power_curve'.
67127
density_correction : bool
68-
If the parameter is True the density corrected power curve is used
69-
for the calculation of the turbine power output.
128+
This parameter is only used if the parameter `power_output_model` is
129+
'power_curve'. For more information on this parameter see parameter
130+
`density_correction` in :func:`~.power_output.power_curve`.
131+
Default: False.
70132
obstacle_height : float
71-
Height of obstacles in the surrounding area of the wind turbine in
72-
m. Set `obstacle_height` to zero for wide spread obstacles.
133+
This parameter is only used if the parameter `wind_speed_model` is
134+
'logarithmic'. For more information on this parameter see parameter
135+
`obstacle_height` in :func:`~.wind_speed.logarithmic`. Default: 0.
73136
hellman_exp : float
74-
The Hellman exponent, which combines the increase in wind speed due
75-
to stability of atmospheric conditions and surface roughness into
76-
one constant.
137+
This parameter is only used if the parameter `wind_speed_model` is
138+
'hellman'. For more information on this parameter see parameter
139+
`hellman_exponent` in :func:`~.wind_speed.hellman`. Default: None.
77140
78141
Attributes
79142
----------
@@ -83,55 +146,38 @@ class TurbineClusterModelChain(ModelChain):
83146
representing the wind turbine cluster.
84147
wake_losses_model : str or None
85148
Defines the method for taking wake losses within the farm into
86-
consideration. Options: None, 'wind_farm_efficiency' or the name of a
87-
wind efficiency curve like 'dena_mean'. Default: 'dena_mean'.
88-
Use :py:func:`~.wake_losses.get_wind_efficiency_curve` for all provided
89-
wind efficiency curves.
149+
consideration.
90150
smoothing : bool
91-
If True the power curves will be smoothed before or after the
92-
aggregation of power curves depending on `smoothing_order`.
93-
Default: False.
151+
If True the power curves will be smoothed.
94152
block_width : float
95153
Width between the wind speeds in the sum of the equation in
96-
:py:func:`~.power_curves.smooth_power_curve`. Default: 0.5.
154+
:py:func:`~.power_curves.smooth_power_curve`.
97155
standard_deviation_method : str
98156
Method for calculating the standard deviation for the Gauss
99-
distribution. Options: 'turbulence_intensity', 'Staffell_Pfenninger'.
100-
Default: 'turbulence_intensity'.
157+
distribution.
101158
smoothing_order : str
102-
Defines when the smoothing takes place if `smoothing` is True. Options:
103-
'turbine_power_curves' (to the single turbine power curves),
104-
'wind_farm_power_curves'. Default: 'wind_farm_power_curves'.
159+
Defines when the smoothing takes place if `smoothing` is True.
105160
power_output : :pandas:`pandas.Series<series>`
106161
Electrical power output of the wind turbine in W.
107162
power_curve : :pandas:`pandas.Dataframe<frame>` or None
108163
The calculated power curve of the wind farm.
109164
wind_speed_model : str
110-
Parameter to define which model to use to calculate the wind speed
111-
at hub height. Valid options are 'logarithmic', 'hellman' and
112-
'interpolation_extrapolation'.
165+
Defines which model is used to calculate the wind speed at hub height.
113166
temperature_model : str
114-
Parameter to define which model to use to calculate the temperature
115-
of air at hub height. Valid options are 'linear_gradient' and
116-
'interpolation_extrapolation'.
167+
Defines which model is used to calculate the temperature of air at hub
168+
height.
117169
density_model : str
118-
Parameter to define which model to use to calculate the density of
119-
air at hub height. Valid options are 'barometric', 'ideal_gas' and
120-
'interpolation_extrapolation'.
170+
Defines which model is used to calculate the density of air at hub
171+
height.
121172
power_output_model : str
122-
Parameter to define which model to use to calculate the turbine
123-
power output. Valid options are 'power_curve' and
124-
'power_coefficient_curve'.
173+
Defines which model is used to calculate the turbine power output.
125174
density_correction : bool
126-
If the parameter is True the density corrected power curve is used
127-
for the calculation of the turbine power output.
175+
Used to set `density_correction` parameter in
176+
:func:`~.power_output.power_curve`.
128177
obstacle_height : float
129-
Height of obstacles in the surrounding area of the wind turbine in
130-
m. Set `obstacle_height` to zero for wide spread obstacles.
178+
Used to set `obstacle_height` in :func:`~.wind_speed.logarithmic`.
131179
hellman_exp : float
132-
The Hellman exponent, which combines the increase in wind speed due
133-
to stability of atmospheric conditions and surface roughness into
134-
one constant.
180+
Used to set `hellman_exponent` in :func:`~.wind_speed.hellman`.
135181
136182
"""
137183
def __init__(self, power_plant, wake_losses_model='dena_mean',

0 commit comments

Comments
 (0)