18
18
19
19
20
20
def rotor_velocity_yaw_correction (
21
- pP : float ,
21
+ cosine_loss_exponent_yaw : float ,
22
22
yaw_angles : NDArrayFloat ,
23
23
rotor_effective_velocities : NDArrayFloat ,
24
24
) -> NDArrayFloat :
25
25
# Compute the rotor effective velocity adjusting for yaw settings
26
- pW = pP / 3.0 # Convert from pP to w
26
+ pW = cosine_loss_exponent_yaw / 3.0 # Convert from cosine_loss_exponent_yaw to w
27
27
# TODO: cosine loss hard coded
28
28
rotor_effective_velocities = rotor_effective_velocities * cosd (yaw_angles ) ** pW
29
29
@@ -32,7 +32,7 @@ def rotor_velocity_yaw_correction(
32
32
def rotor_velocity_tilt_correction (
33
33
tilt_angles : NDArrayFloat ,
34
34
ref_tilt : NDArrayFloat ,
35
- pT : float ,
35
+ cosine_loss_exponent_tilt : float ,
36
36
tilt_interp : NDArrayObject ,
37
37
correct_cp_ct_for_tilt : NDArrayBool ,
38
38
rotor_effective_velocities : NDArrayFloat ,
@@ -50,7 +50,10 @@ def rotor_velocity_tilt_correction(
50
50
# Compute the rotor effective velocity adjusting for tilt
51
51
# TODO: cosine loss hard coded
52
52
relative_tilt = tilt_angles - ref_tilt
53
- rotor_effective_velocities = rotor_effective_velocities * cosd (relative_tilt ) ** (pT / 3.0 )
53
+ rotor_effective_velocities = (
54
+ rotor_effective_velocities
55
+ * cosd (relative_tilt ) ** (cosine_loss_exponent_tilt / 3.0 )
56
+ )
54
57
return rotor_effective_velocities
55
58
56
59
def simple_mean (array , axis = 0 ):
@@ -177,8 +180,8 @@ def rotor_effective_velocity(
177
180
yaw_angle : NDArrayFloat ,
178
181
tilt_angle : NDArrayFloat ,
179
182
ref_tilt : NDArrayFloat ,
180
- pP : float ,
181
- pT : float ,
183
+ cosine_loss_exponent_yaw : float ,
184
+ cosine_loss_exponent_tilt : float ,
182
185
tilt_interp : NDArrayObject ,
183
186
correct_cp_ct_for_tilt : NDArrayBool ,
184
187
turbine_type_map : NDArrayObject ,
@@ -198,8 +201,8 @@ def rotor_effective_velocity(
198
201
yaw_angle = yaw_angle [:, ix_filter ]
199
202
tilt_angle = tilt_angle [:, ix_filter ]
200
203
ref_tilt = ref_tilt [:, ix_filter ]
201
- pP = pP [:, ix_filter ]
202
- pT = pT [:, ix_filter ]
204
+ cosine_loss_exponent_yaw = cosine_loss_exponent_yaw [:, ix_filter ]
205
+ cosine_loss_exponent_tilt = cosine_loss_exponent_tilt [:, ix_filter ]
203
206
turbine_type_map = turbine_type_map [:, ix_filter ]
204
207
205
208
# Compute the rotor effective velocity adjusting for air density
@@ -212,7 +215,7 @@ def rotor_effective_velocity(
212
215
213
216
# Compute the rotor effective velocity adjusting for yaw settings
214
217
rotor_effective_velocities = rotor_velocity_yaw_correction (
215
- pP ,
218
+ cosine_loss_exponent_yaw ,
216
219
yaw_angle ,
217
220
rotor_effective_velocities
218
221
)
@@ -222,7 +225,7 @@ def rotor_effective_velocity(
222
225
turbine_type_map ,
223
226
tilt_angle ,
224
227
ref_tilt ,
225
- pT ,
228
+ cosine_loss_exponent_tilt ,
226
229
tilt_interp ,
227
230
correct_cp_ct_for_tilt ,
228
231
rotor_effective_velocities ,
0 commit comments