Skip to content

Commit d54c1c7

Browse files
committed
Change order of parameters in v_wind_hellman() for consistency
1 parent bc922b0 commit d54c1c7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

windpowerlib/modelchain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ def v_wind_hub(self, weather, data_height):
260260
v_wind = wind_speed.v_wind_hellman(
261261
weather['v_wind'], data_height['v_wind'],
262262
self.wind_turbine.hub_height,
263-
self.hellman_exp, weather['z0'])
263+
weather['z0'], self.hellman_exp)
264264
else:
265265
raise ValueError("'{0}' is an invalid value.".format(
266266
self.wind_model) + "`wind_model` " +

windpowerlib/wind_speed.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ def logarithmic_wind_profile(v_wind, v_wind_height, hub_height, z_0,
8282
np.log((v_wind_height - 0.7 * obstacle_height) / z_0))
8383

8484

85-
def v_wind_hellman(v_wind, v_wind_height, hub_height, hellman_exp=None,
86-
z_0=None):
85+
def v_wind_hellman(v_wind, v_wind_height, hub_height, z_0=None,
86+
hellman_exp=None):
8787
r"""
8888
Calculates the wind speed at hub height using the hellman equation.
8989
@@ -99,14 +99,14 @@ def v_wind_hellman(v_wind, v_wind_height, hub_height, hellman_exp=None,
9999
Height for which the parameter `v_wind` applies.
100100
hub_height : float
101101
Hub height of wind turbine.
102+
z_0 : pandas.Series or numpy.array or float
103+
Roughness length. Default: None. If given and `hellman_exp` is None:
104+
`hellman_exp` = 1 / ln(h_hub/z_0), otherwise `hellman_exp` = 1/7.
102105
hellman_exp : float
103106
The Hellman exponent, which combines the increase in wind speed due to
104107
stability of atmospheric conditions and surface roughness into one
105108
constant. Default: None. If None and roughness length is given
106109
`hellman_exp` = 1 / ln(h_hub/z_0), otherwise `hellman_exp` = 1/7.
107-
z_0 : pandas.Series or numpy.array or float
108-
Roughness length. Default: None. If given
109-
`hellman_exp` = 1 / ln(h_hub/z_0), otherwise `hellman_exp` = 1/7.
110110
111111
Returns
112112
-------

0 commit comments

Comments
 (0)