@@ -249,7 +249,7 @@ def _townsend_effective_snow(snow_total, snow_events):
249249def loss_townsend (snow_total , snow_events , surface_tilt , relative_humidity ,
250250 temp_air , poa_global , slant_height , lower_edge_height ,
251251 string_factor = 1.0 , angle_of_repose = 40 ,
252- front_side_fraction = None ):
252+ front_side_fraction = 1.0 ):
253253 '''
254254 Calculates monthly snow loss based on the Townsend monthly snow loss
255255 model.
@@ -294,13 +294,12 @@ def loss_townsend(snow_total, snow_events, surface_tilt, relative_humidity,
294294 Piled snow angle, assumed to stabilize at 40°, the midpoint of
295295 25°-55° avalanching slope angles. [deg]
296296
297- front_side_fraction : numeric or array-like, default None
298- Optional multiplier applied to the calculated loss fraction. For
299- bifacial systems, this can be used to scale the snow loss by the
300- front-side energy fraction from a no-soiling simulation. For example,
301- use 0.9 when 90% of monthly energy is from the front side and 10% is
302- from the rear side. If None, no bifacial adjustment is applied. [-]
303-
297+ front_side_fraction : numeric or array-like, default 1.0
298+ Fraction of monthly energy from front-side insolation (unitless).
299+ Multiplies the calculated loss fraction. For example,
300+ use 0.9 when 90% of monthly energy is from the front side
301+ of a bifacial system and 10% is from the rear side.
302+
304303 Returns
305304 -------
306305 loss : array-like
@@ -319,8 +318,8 @@ def loss_townsend(snow_total, snow_events, surface_tilt, relative_humidity,
319318 The definition for snow events documented above is based on [3]_.
320319
321320 For bifacial systems, [2]_ recommends including both front-side and
322- rear-side insolation in ``poa_global``. The resulting loss may then be
323- scaled by the front-side energy fraction using ``front_side_fraction``.
321+ rear-side insolation in ``poa_global``. The resulting loss is
322+ scaled by the front-side energy fraction ``front_side_fraction``.
324323
325324 References
326325 ----------
@@ -396,8 +395,6 @@ def loss_townsend(snow_total, snow_events, surface_tilt, relative_humidity,
396395 * string_factor
397396 )
398397
399- if front_side_fraction is not None :
400- front_side_fraction = np .asarray (front_side_fraction )
401- loss_fraction = loss_fraction * front_side_fraction
398+ loss_fraction = loss_fraction * front_side_fraction
402399
403400 return np .clip (loss_fraction , 0 , 1 )
0 commit comments