Skip to content

Commit

Permalink
Designed subhourly corrections box with descriptive text in AC losses
Browse files Browse the repository at this point in the history
section
  • Loading branch information
mjprilliman committed Aug 23, 2023
1 parent cae5ac9 commit 6b2617a
Showing 1 changed file with 141 additions and 25 deletions.
166 changes: 141 additions & 25 deletions deploy/runtime/ui/PV Losses.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"Name": "PV Losses",
"Width": 853.0,
"Height": 1000.0,
"Width": 857.0,
"Height": 1183.0,
"FormObjects": {
"GroupBox": {
"Visible": 1.0,
Expand Down Expand Up @@ -53,7 +53,7 @@
},
"Y": {
"Type": 3.0,
"Integer": 864.0
"Integer": 1026.0
},
"Width": {
"Type": 3.0,
Expand Down Expand Up @@ -98,7 +98,7 @@
},
"Height": {
"Type": 3.0,
"Integer": 77.0
"Integer": 233.0
},
"Tool Tip": {
"Type": 5.0,
Expand Down Expand Up @@ -127,7 +127,7 @@
},
"Y": {
"Type": 3.0,
"Integer": 651.0
"Integer": 810.0
},
"Width": {
"Type": 3.0,
Expand Down Expand Up @@ -164,7 +164,7 @@
},
"Y": {
"Type": 3.0,
"Integer": 774.0
"Integer": 936.0
},
"Width": {
"Type": 3.0,
Expand Down Expand Up @@ -1317,7 +1317,7 @@
},
"Y": {
"Type": 3.0,
"Integer": 885.0
"Integer": 1047.0
},
"Width": {
"Type": 3.0,
Expand Down Expand Up @@ -1450,7 +1450,7 @@
},
"Y": {
"Type": 3.0,
"Integer": 906.0
"Integer": 1068.0
},
"Width": {
"Type": 3.0,
Expand Down Expand Up @@ -1704,7 +1704,7 @@
},
"Y": {
"Type": 3.0,
"Integer": 906.0
"Integer": 1068.0
},
"Width": {
"Type": 3.0,
Expand Down Expand Up @@ -1765,7 +1765,7 @@
},
"Y": {
"Type": 3.0,
"Integer": 885.0
"Integer": 1047.0
},
"Width": {
"Type": 3.0,
Expand Down Expand Up @@ -1894,11 +1894,11 @@
},
"X": {
"Type": 3.0,
"Integer": 534.0
"Integer": 24.0
},
"Y": {
"Type": 3.0,
"Integer": 726.0
"Integer": 669.0
},
"Width": {
"Type": 3.0,
Expand Down Expand Up @@ -1983,6 +1983,43 @@
"Type": 5.0,
"String": "object 4"
},
"X": {
"Type": 3.0,
"Integer": 15.0
},
"Y": {
"Type": 3.0,
"Integer": 648.0
},
"Width": {
"Type": 3.0,
"Integer": 825.0
},
"Height": {
"Type": 3.0,
"Integer": 144.0
},
"Tool Tip": {
"Type": 5.0,
"String": ""
},
"Caption": {
"Type": 5.0,
"String": "PV Subhourly Clipping Correction"
},
"Bold": {
"Type": 2.0,
"Boolean": 1.0
}
}
},
"GroupBox": {
"Visible": 1.0,
"ObjectProperties": {
"Name": {
"Type": 5.0,
"String": "object 439"
},
"X": {
"Type": 3.0,
"Integer": 6.0
Expand Down Expand Up @@ -2022,27 +2059,27 @@
},
"X": {
"Type": 3.0,
"Integer": 21.0
"Integer": 315.0
},
"Y": {
"Type": 3.0,
"Integer": 591.0
"Integer": 663.0
},
"Width": {
"Type": 3.0,
"Integer": 813.0
"Integer": 516.0
},
"Height": {
"Type": 3.0,
"Integer": 24.0
"Integer": 108.0
},
"Tool Tip": {
"Type": 5.0,
"String": ""
},
"Caption": {
"Type": 5.0,
"String": "AC losses apply to the electrical output of the inverter and account for losses not calculated by the inverter performance model."
"String": "The PV Subhourly Clipping Correction calculates expected losses from inverter clipping with the Allen method. These inverter clipping losses are calculated at each timestep by indexing a matrix of DNI clearness index and Clipping Potential. The losses are only applicable for hourly timeseries weather data. The suggested matrix to use in this calculation is in the PV Subhourly Clipping dropdown below. This matrix should only be changed if you have alternative matrix values calculated for a particular site. "
},
"TextColour": {
"Type": 4.0,
Expand Down Expand Up @@ -2385,6 +2422,68 @@
}
}
},
"Label": {
"Visible": 1.0,
"ObjectProperties": {
"Name": {
"Type": 5.0,
"String": "object 740"
},
"X": {
"Type": 3.0,
"Integer": 21.0
},
"Y": {
"Type": 3.0,
"Integer": 591.0
},
"Width": {
"Type": 3.0,
"Integer": 813.0
},
"Height": {
"Type": 3.0,
"Integer": 24.0
},
"Tool Tip": {
"Type": 5.0,
"String": ""
},
"Caption": {
"Type": 5.0,
"String": "AC losses apply to the electrical output of the inverter and account for losses not calculated by the inverter performance model."
},
"TextColour": {
"Type": 4.0,
"Color": {
"Red": 0.0,
"Green": 0.0,
"Blue": 0.0,
"Alpha": 255.0
}
},
"Bold": {
"Type": 2.0,
"Boolean": 0.0
},
"FontSize": {
"Type": 3.0,
"Integer": 0.0
},
"WordWrap": {
"Type": 2.0,
"Boolean": 1.0
},
"AlignRight": {
"Type": 2.0,
"Boolean": 0.0
},
"AlignTop": {
"Type": 2.0,
"Boolean": 1.0
}
}
},
"Label": {
"Visible": 1.0,
"ObjectProperties": {
Expand All @@ -2398,7 +2497,7 @@
},
"Y": {
"Type": 3.0,
"Integer": 669.0
"Integer": 828.0
},
"Width": {
"Type": 3.0,
Expand Down Expand Up @@ -2460,7 +2559,7 @@
},
"Y": {
"Type": 3.0,
"Integer": 882.0
"Integer": 1044.0
},
"Width": {
"Type": 3.0,
Expand Down Expand Up @@ -2584,7 +2683,7 @@
},
"Y": {
"Type": 3.0,
"Integer": 792.0
"Integer": 954.0
},
"Width": {
"Type": 3.0,
Expand Down Expand Up @@ -6114,7 +6213,7 @@
},
"Y": {
"Type": 3.0,
"Integer": 741.0
"Integer": 900.0
},
"Width": {
"Type": 3.0,
Expand Down Expand Up @@ -6197,7 +6296,7 @@
},
"Y": {
"Type": 3.0,
"Integer": 714.0
"Integer": 873.0
},
"Width": {
"Type": 3.0,
Expand Down Expand Up @@ -6280,7 +6379,7 @@
},
"Y": {
"Type": 3.0,
"Integer": 819.0
"Integer": 981.0
},
"Width": {
"Type": 3.0,
Expand Down Expand Up @@ -7349,7 +7448,8 @@
"\tpv_losses_enable_subarray_items( 3, value('subarray3_enable') != false );",
"\tpv_losses_enable_subarray_items( 4, value('subarray4_enable') != false );",
"\tloss_adjustment_set();",
"\tdc_loss_adjustment_set();",
"\tdc_loss_adjustment_set();\r",
"\tsubhourly_clipping_check();",
"\t",
"\t// Remove the following once there's a bifacial rack shading calculation",
"\tshow('Label_bifacial_0', false);",
Expand Down Expand Up @@ -7434,6 +7534,22 @@
"\telse {",
"\t\tproperty('dc_adjust', 'AnalysisPeriod', 1);",
"\t}",
"}"
"}\r",
"\r",
"function subhourly_clipping_check()\r",
"{\r",
"\ttimestep = value('ui_step_minutes');\r",
"\tif (timestep < 60) {\r",
"\t\tvalue('enable_subhourly_clipping', 0);\r",
"\t\tenable('enable_subhourly_clipping', false);\r",
"\t}\r",
"\telse {\r",
"\t\tenable('enable_subhourly_clipping', true);\r",
"\t}\r",
"}\r",
"\r",
"on_change{'ui_step_minutes'} = define() {\r",
"\tsubhourly_clipping_check();\r",
"};"
]
}

0 comments on commit 6b2617a

Please sign in to comment.