Skip to content

Commit

Permalink
South latitude solstice on 6/21/14
Browse files Browse the repository at this point in the history
  • Loading branch information
cdeline committed Feb 7, 2018
1 parent 89c4986 commit 8f98feb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bifacialvf/vf.py
Expand Up @@ -1386,15 +1386,15 @@ def rowSpacing(beta, sazm, lat, lng, tz, hour, minute):
if lat >= 0:
[azm, zen, elv, dec, sunrise, sunset, Eo, tst] = solarPos (2014, 12, 21, hour, minute, lat, lng, tz)
else:
[azm, zen, elv, dec, sunrise, sunset, Eo, tst] = solarPos (2014, 6, 20, hour, minute, lat, lng, tz)
[azm, zen, elv, dec, sunrise, sunset, Eo, tst] = solarPos (2014, 6, 21, hour, minute, lat, lng, tz)
tst = 8.877 ##DLL Forced value
minute -= 60.0 * (tst - hour); # Adjust minute so sun position is calculated for a tst equal to the
# time passed to the function

if lat >= 0:
[azm, zen, elv, dec, sunrise, sunset, Eo, tst] = solarPos(2014, 12, 21, hour, minute, lat, lng, tz)
else:
[azm, zen, elv, dec, sunrise, sunset, Eo, tst] = solarPos(2014, 6, 20, hour, minute, lat, lng, tz)
[azm, zen, elv, dec, sunrise, sunset, Eo, tst] = solarPos(2014, 6, 21, hour, minute, lat, lng, tz)

# Console.WriteLine("tst = {0} azm = {1} elv = {2}", tst, azm * 180.0 / Math.PI, elv * 180.0 / Math.PI);
D = math.cos(sazm - azm) * math.sin(beta) / math.tan(elv);
Expand All @@ -1421,4 +1421,4 @@ def trackingBFvaluescalculator(beta, hub_height, r2r):
#C = 0.5+Cv-hm # Ground clearance of PV panel (in PV panel slope lengths).
C = hub_height - hm #Adding a 0.5 for half a panel slope length, since it is assumed the panel is rotating around its middle axis

return C, D;
return C, D;

0 comments on commit 8f98feb

Please sign in to comment.