Skip to content

Commit 72b9839

Browse files
committed
undo edits to temperature.py
1 parent 1398207 commit 72b9839

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

pvlib/temperature.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ def faiman(poa_global, temp_air, wind_speed=1.0, u0=25.0, u1=6.84):
509509
return temp_air + temp_difference
510510

511511

512-
def faiman_rad(poa_global, temp_air, wind_speed=1.0, longwave_down=None,
512+
def faiman_rad(poa_global, temp_air, wind_speed=1.0, ir_down=None,
513513
u0=25.0, u1=6.84, sky_view=1.0, emissivity=0.88):
514514
r'''
515515
Calculate cell or module temperature using the Faiman model augmented
@@ -534,7 +534,7 @@ def faiman_rad(poa_global, temp_air, wind_speed=1.0, longwave_down=None,
534534
factor was determined. The default value 1.0 m/s is the wind
535535
speed at module height used to determine NOCT. [m/s]
536536
537-
longwave_down : numeric, default 0.0
537+
ir_down : numeric, default 0.0
538538
Downwelling infrared radiation from the sky, measured on a horizontal
539539
surface. [W/m^2]
540540
@@ -572,11 +572,11 @@ def faiman_rad(poa_global, temp_air, wind_speed=1.0, longwave_down=None,
572572
are vectors they must be the same length.
573573
574574
When only irradiance, air temperature and wind speed inputs are provided
575-
(`longwave_down` is `None`) this function calculates the same device
576-
temperature as the original faiman model. When downwelling long-wave
577-
radiation data are provided (`longwave_down` is not None) the
578-
default `u0` and `u1` values from the original model should not be used
579-
because a portion of the radiative losses would be double-counted.
575+
(`ir_down` is `None`) this function calculates the same device temperature
576+
as the original faiman model. When down-welling long-wave radiation data
577+
are provided as well (`ir_down` is not None) the default u0 and u1 values
578+
from the original model should not be used because a portion of the
579+
radiative losses would be double-counted.
580580
581581
References
582582
----------
@@ -606,11 +606,11 @@ def faiman_rad(poa_global, temp_air, wind_speed=1.0, longwave_down=None,
606606
abs_zero = -273.15
607607
sigma = scipy.constants.Stefan_Boltzmann
608608

609-
if longwave_down is None:
609+
if ir_down is None:
610610
qrad_sky = 0.0
611611
else:
612612
ir_up = sigma * ((temp_air - abs_zero)**4)
613-
qrad_sky = emissivity * sky_view * (ir_up - longwave_down)
613+
qrad_sky = emissivity * sky_view * (ir_up - ir_down)
614614

615615
heat_input = poa_global - qrad_sky
616616
total_loss_factor = u0 + u1 * wind_speed

0 commit comments

Comments
 (0)