Skip to content

Commit 75a5653

Browse files
committed
Adapt ModelChain docstring
1 parent d8f3f17 commit 75a5653

File tree

1 file changed

+70
-34
lines changed

1 file changed

+70
-34
lines changed

windpowerlib/modelchain.py

Lines changed: 70 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -16,71 +16,107 @@
1616
class ModelChain(object):
1717
r"""Model to determine the output of a wind turbine
1818
19+
The ModelChain class provides a standardized, high-level
20+
interface for all of the modeling steps necessary for calculating wind
21+
turbine power output from weather time series inputs.
22+
1923
Parameters
2024
----------
2125
power_plant : :class:`~.wind_turbine.WindTurbine`
2226
A :class:`~.wind_turbine.WindTurbine` object representing the wind
2327
turbine.
2428
wind_speed_model : str
2529
Parameter to define which model to use to calculate the wind speed at
26-
hub height. Valid options are 'logarithmic', 'hellman' and
27-
'interpolation_extrapolation', 'log_interpolation_extrapolation'.
30+
hub height. Valid options are:
31+
32+
* 'logarithmic' -
33+
See :func:`~.wind_speed.logarithmic_profile` for more information.
34+
The parameter `obstacle_height` can be used to set the height of
35+
obstacles in the surrounding area of the wind turbine.
36+
* 'hellman' -
37+
See :func:`~.wind_speed.hellman` for more information.
38+
* 'interpolation_extrapolation' -
39+
See :func:`~.tools.linear_interpolation_extrapolation` for more
40+
information.
41+
* 'log_interpolation_extrapolation' -
42+
See :func:`~.tools.logarithmic_interpolation_extrapolation` for more
43+
information.
44+
2845
Default: 'logarithmic'.
2946
temperature_model : str
3047
Parameter to define which model to use to calculate the temperature of
31-
air at hub height. Valid options are 'linear_gradient' and
32-
'interpolation_extrapolation'. Default: 'linear_gradient'.
48+
air at hub height. Valid options are:
49+
50+
* 'linear_gradient' -
51+
See :func:`~.temperature.linear_gradient` for more
52+
information.
53+
* 'interpolation_extrapolation' -
54+
See :func:`~.tools.linear_interpolation_extrapolation` for more
55+
information.
56+
57+
Default: 'linear_gradient'.
3358
density_model : str
3459
Parameter to define which model to use to calculate the density of air
35-
at hub height. Valid options are 'barometric', 'ideal_gas' and
36-
'interpolation_extrapolation'. Default: 'barometric'.
60+
at hub height. Valid options are:
61+
62+
* 'barometric' -
63+
See :func:`~.density.barometric` for more information.
64+
* 'ideal_gas' -
65+
See :func:`~.density.ideal_gas` for more information.
66+
* 'interpolation_extrapolation' -
67+
See :func:`~.tools.linear_interpolation_extrapolation` for more
68+
information.
69+
70+
Default: 'barometric'.
3771
power_output_model : str
3872
Parameter to define which model to use to calculate the turbine power
39-
output. Valid options are 'power_curve' and 'power_coefficient_curve'.
73+
output. Valid options are:
74+
75+
* 'power_curve' -
76+
See :func:`~.power_output.power_curve` for more information. In order
77+
to use the density corrected power curve to calculate the power
78+
output set parameter `density_correction` to True.
79+
* 'power_coefficient_curve' -
80+
See :func:`~.power_output.power_coefficient_curve` for more
81+
information.
82+
4083
Default: 'power_curve'.
4184
density_correction : bool
42-
If the parameter is True the density corrected power curve is used for
43-
the calculation of the turbine power output. Default: False.
85+
This parameter is only used if the parameter `power_output_model` is
86+
'power_curve'. For more information on this parameter see parameter
87+
`density_correction` in :func:`~.power_output.power_curve`.
88+
Default: False.
4489
obstacle_height : float
45-
Height of obstacles in the surrounding area of the wind turbine in m.
46-
Set `obstacle_height` to zero for wide spread obstacles. Default: 0.
90+
This parameter is only used if the parameter `wind_speed_model` is
91+
'logarithmic'. For more information on this parameter see parameter
92+
`obstacle_height` in :func:`~.wind_speed.logarithmic`. Default: 0.
4793
hellman_exp : float
48-
The Hellman exponent, which combines the increase in wind speed due to
49-
stability of atmospheric conditions and surface roughness into one
50-
constant. Default: None.
94+
This parameter is only used if the parameter `wind_speed_model` is
95+
'hellman'. For more information on this parameter see parameter
96+
`hellman_exponent` in :func:`~.wind_speed.hellman`. Default: None.
5197
5298
Attributes
5399
----------
54100
power_plant : :class:`~.wind_turbine.WindTurbine`
55101
A :class:`~.wind_turbine.WindTurbine` object representing the wind
56102
turbine.
57103
wind_speed_model : str
58-
Parameter to define which model to use to calculate the wind speed at
59-
hub height. Valid options are 'logarithmic', 'hellman' and
60-
'interpolation_extrapolation', 'log_interpolation_extrapolation'.
61-
Default: 'logarithmic'.
104+
Defines which model is used to calculate the wind speed at hub height.
62105
temperature_model : str
63-
Parameter to define which model to use to calculate the temperature of
64-
air at hub height. Valid options are 'linear_gradient' and
65-
'interpolation_extrapolation'. Default: 'linear_gradient'.
106+
Defines which model is used to calculate the temperature of air at hub
107+
height.
66108
density_model : str
67-
Parameter to define which model to use to calculate the density of air
68-
at hub height. Valid options are 'barometric', 'ideal_gas' and
69-
'interpolation_extrapolation'. Default: 'barometric'.
109+
Defines which model is used to calculate the density of air at hub
110+
height.
70111
power_output_model : str
71-
Parameter to define which model to use to calculate the turbine power
72-
output. Valid options are 'power_curve' and 'power_coefficient_curve'.
73-
Default: 'power_curve'.
112+
Defines which model is used to calculate the turbine power output.
74113
density_correction : bool
75-
If the parameter is True the density corrected power curve is used for
76-
the calculation of the turbine power output. Default: False.
114+
Used to set `density_correction` parameter in
115+
:func:`~.power_output.power_curve`.
77116
hellman_exp : float
78-
The Hellman exponent, which combines the increase in wind speed due to
79-
stability of atmospheric conditions and surface roughness into one
80-
constant. Default: None.
117+
Used to set `hellman_exponent` in :func:`~.wind_speed.hellman`.
81118
obstacle_height : float
82-
Height of obstacles in the surrounding area of the wind turbine in m.
83-
Set `obstacle_height` to zero for wide spread obstacles. Default: 0.
119+
Used to set `obstacle_height` in :func:`~.wind_speed.logarithmic`.
84120
power_output : :pandas:`pandas.Series<series>`
85121
Electrical power output of the wind turbine in W.
86122

0 commit comments

Comments
 (0)