@@ -718,6 +718,10 @@ def noct(poa_global, temp_air, wind_speed, noct, eta_m_ref,
718
718
effective_irradiance = None , transmittance_absorbtance = 0.9 ,
719
719
array_height = 1 , mount_standoff = 3.5 ):
720
720
'''
721
+ Cell temperature model from the System Advisor Model (SAM).
722
+
723
+ The model is described in [1], Section 10.6.
724
+
721
725
Parameters
722
726
----------
723
727
poa_global : numeric
@@ -750,7 +754,7 @@ def noct(poa_global, temp_air, wind_speed, noct, eta_m_ref,
750
754
array_height : int, default 1
751
755
Height of array above ground in stories (one story is about 3m). Must
752
756
be either 1 or 2. For systems elevated less than one story, use 1.
753
- If system is elevated more than two stories, use 2. [unitless]
757
+ If system is elevated more than two stories, use 2.
754
758
755
759
mount_standoff : numeric, default 3.5
756
760
Distance between array mounting and mounting surface. Use default
@@ -761,6 +765,17 @@ def noct(poa_global, temp_air, wind_speed, noct, eta_m_ref,
761
765
cell_temperature : numeric
762
766
Cell temperature. [C]
763
767
768
+ Raises
769
+ ------
770
+ ValueError
771
+ If array_height is an invalid value (must be 1 or 2).
772
+
773
+ References
774
+ ----------
775
+ .. [1] Gilman, P., Dobos, A., DiOrio, N., Freeman, J., Janzou, S.,
776
+ Ryberg, D., 2018, "SAM Photovoltaic Model Technical Reference
777
+ Update", National Renewable Energy Laboratory Report
778
+ NREL/TP-6A20-67399.
764
779
'''
765
780
if effective_irradiance is None :
766
781
irr_ratio = 1.
@@ -772,7 +787,8 @@ def noct(poa_global, temp_air, wind_speed, noct, eta_m_ref,
772
787
elif array_height == 2 :
773
788
wind_adj = 0.61 * wind_speed
774
789
else :
775
- raise ValueError ()
790
+ raise ValueError (
791
+ f'array_height must be 1 or 2, { array_height } was given' )
776
792
777
793
noct_adj = noct + _adj_noct (mount_standoff )
778
794
tau_alpha = transmittance_absorbtance * irr_ratio
0 commit comments