Skip to content

Commit 26bdc41

Browse files
mikofskiechedey-ls
authored andcommitted
shaded fraction consistently
1 parent 317e008 commit 26bdc41

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pvlib/shading.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def projected_solar_zenith_angle(solar_zenith, solar_azimuth,
310310
def tracker_shaded_fraction(tracker_theta, gcr, projected_solar_zenith,
311311
cross_axis_slope=0):
312312
r"""
313-
Shade fraction (FS) for trackers with a common angle on an east-west slope.
313+
Shaded fraction for trackers with a common angle on an east-west slope.
314314
315315
Parameters
316316
----------
@@ -328,7 +328,7 @@ def tracker_shaded_fraction(tracker_theta, gcr, projected_solar_zenith,
328328
329329
Returns
330330
-------
331-
shade_fraction : numeric
331+
shaded_fraction : numeric
332332
The fraction of the collector width shaded by an adjacent row. A
333333
value of 1 is completely shaded and zero is no shade.
334334
@@ -379,20 +379,20 @@ def tracker_shaded_fraction(tracker_theta, gcr, projected_solar_zenith,
379379
# there's only row-to-row shade loss if the shadow on the ground, z, is
380380
# longer than row-to-row pitch projected on the ground, P*cos(theta_g)
381381
zp_cos_g = zp*np.cos(theta_g_rad)
382-
# shade fraction
382+
# shaded fraction (fs)
383383
fs = np.where(zp_cos_g <= 1, 0, 1 - 1/zp_cos_g)
384384
return fs
385385

386386

387-
def linear_shade_loss(shade_fraction, diffuse_fraction):
387+
def linear_shade_loss(shaded_fraction, diffuse_fraction):
388388
"""
389389
Fraction of power lost to linear shade loss applicable to monolithic thin
390390
film modules like First Solar CdTe, where the shadow is perpendicular to
391391
cell scribe lines.
392392
393393
Parameters
394394
----------
395-
shade_fraction : numeric
395+
shaded_fraction : numeric
396396
The fraction of the collector width shaded by an adjacent row. A
397397
value of 1 is completely shaded and zero is no shade.
398398
diffuse_fraction : numeric
@@ -418,4 +418,4 @@ def linear_shade_loss(shade_fraction, diffuse_fraction):
418418
>>> P_linear_shade = P_no_shade * (1-loss) # [kWdc] output after loss
419419
# 90.71067811865476 [kWdc]
420420
"""
421-
return shade_fraction * (1 - diffuse_fraction)
421+
return shaded_fraction * (1 - diffuse_fraction)

0 commit comments

Comments
 (0)