We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1aab7fc commit 0af6fe0Copy full SHA for 0af6fe0
pvl_klucher1979.m
@@ -72,9 +72,14 @@
72
GHI(GHI < 1E-6) = 1E-6; % Prevent division by 0
73
% Dec 2012: A bug was identified by Rob Andrews (Queens University) in this equation in PV_LIB
74
% Version 1.0. Fixed in Version 1.1.
75
+% COSTT is cos(angle between sun vector and array normal)
76
COSTT = cosd(SurfTilt).*cosd(SunZen) + sind(SurfTilt).* ...
77
sind(SunZen).*cosd(SunAz-SurfAz);
78
79
+% Aug 2018: Restrict COSTT>=0, so that circumsolar irradiance is not added
80
+% to total sky diffuse when the sun is behind the array
81
+COSTT(COSTT<0) = 0.0;
82
+
83
F = 1 - ((DHI./GHI).^2);
84
SkyDiffuse = DHI ...
85
.* (0.5 .* (1 + cosd(SurfTilt))) ...
0 commit comments