Skip to content

Commit

Permalink
fixing azimuth opt for south hemi
Browse files Browse the repository at this point in the history
  • Loading branch information
qualand committed Nov 6, 2024
1 parent bc48aa2 commit 689fa90
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions deploy/runtime/ui/Tower SolarPilot Solar Field.json
Original file line number Diff line number Diff line change
Expand Up @@ -5049,15 +5049,16 @@
"\t\t\tW_rec = ssc_var(obj, \"rec_width_opt\");\r",
"\t\t\tRec_azi_opt = ssc_var(obj, \"rec_azimuth_opt\");\r",
"\t\t\t\r",
"\t\t\t// increase length to 4\r",
"\t\t\tnum_recs = ssc_var(obj, \"num_recs\");\r",
"\t\t\tif (num_recs == 1) {\r",
"\t\t\t\tRec_azi = [0,0,0,0];\r",
"\t\t\t\tRec_azi = [Rec_azi_opt[0],0,0,0];\r",
"\t\t\t}\r",
"\t\t\telse if (num_recs == 2) {\r",
"\t\t\t\tRec_azi = [Rec_azi_opt, -Rec_azi_opt, 0, 0];\r",
"\t\t\t\tRec_azi = [Rec_azi_opt[0], Rec_azi_opt[1], 0, 0];\r",
"\t\t\t}\r",
"\t\t\telse if (num_recs == 3) {\r",
"\t\t\t\tRec_azi = [Rec_azi_opt, 0, -Rec_azi_opt, 0];\r",
"\t\t\t\tRec_azi = [Rec_azi_opt[0], Rec_azi_opt[1], Rec_azi_opt[2], 0];\r",
"\t\t\t}\r",
"\t\t}",
"",
Expand Down

0 comments on commit 689fa90

Please sign in to comment.