From 6b2617aa49caafb5755a3f8bb73dbeae74b1b474 Mon Sep 17 00:00:00 2001 From: Matt Prilliman Date: Wed, 23 Aug 2023 11:04:23 -0600 Subject: [PATCH] Designed subhourly corrections box with descriptive text in AC losses section --- deploy/runtime/ui/PV Losses.json | 166 ++++++++++++++++++++++++++----- 1 file changed, 141 insertions(+), 25 deletions(-) diff --git a/deploy/runtime/ui/PV Losses.json b/deploy/runtime/ui/PV Losses.json index 45ab29ad16..ee53a4f2ef 100644 --- a/deploy/runtime/ui/PV Losses.json +++ b/deploy/runtime/ui/PV Losses.json @@ -1,7 +1,7 @@ { "Name": "PV Losses", - "Width": 853.0, - "Height": 1000.0, + "Width": 857.0, + "Height": 1183.0, "FormObjects": { "GroupBox": { "Visible": 1.0, @@ -53,7 +53,7 @@ }, "Y": { "Type": 3.0, - "Integer": 864.0 + "Integer": 1026.0 }, "Width": { "Type": 3.0, @@ -98,7 +98,7 @@ }, "Height": { "Type": 3.0, - "Integer": 77.0 + "Integer": 233.0 }, "Tool Tip": { "Type": 5.0, @@ -127,7 +127,7 @@ }, "Y": { "Type": 3.0, - "Integer": 651.0 + "Integer": 810.0 }, "Width": { "Type": 3.0, @@ -164,7 +164,7 @@ }, "Y": { "Type": 3.0, - "Integer": 774.0 + "Integer": 936.0 }, "Width": { "Type": 3.0, @@ -1317,7 +1317,7 @@ }, "Y": { "Type": 3.0, - "Integer": 885.0 + "Integer": 1047.0 }, "Width": { "Type": 3.0, @@ -1450,7 +1450,7 @@ }, "Y": { "Type": 3.0, - "Integer": 906.0 + "Integer": 1068.0 }, "Width": { "Type": 3.0, @@ -1704,7 +1704,7 @@ }, "Y": { "Type": 3.0, - "Integer": 906.0 + "Integer": 1068.0 }, "Width": { "Type": 3.0, @@ -1765,7 +1765,7 @@ }, "Y": { "Type": 3.0, - "Integer": 885.0 + "Integer": 1047.0 }, "Width": { "Type": 3.0, @@ -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, @@ -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 @@ -2022,19 +2059,19 @@ }, "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, @@ -2042,7 +2079,7 @@ }, "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, @@ -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": { @@ -2398,7 +2497,7 @@ }, "Y": { "Type": 3.0, - "Integer": 669.0 + "Integer": 828.0 }, "Width": { "Type": 3.0, @@ -2460,7 +2559,7 @@ }, "Y": { "Type": 3.0, - "Integer": 882.0 + "Integer": 1044.0 }, "Width": { "Type": 3.0, @@ -2584,7 +2683,7 @@ }, "Y": { "Type": 3.0, - "Integer": 792.0 + "Integer": 954.0 }, "Width": { "Type": 3.0, @@ -6114,7 +6213,7 @@ }, "Y": { "Type": 3.0, - "Integer": 741.0 + "Integer": 900.0 }, "Width": { "Type": 3.0, @@ -6197,7 +6296,7 @@ }, "Y": { "Type": 3.0, - "Integer": 714.0 + "Integer": 873.0 }, "Width": { "Type": 3.0, @@ -6280,7 +6379,7 @@ }, "Y": { "Type": 3.0, - "Integer": 819.0 + "Integer": 981.0 }, "Width": { "Type": 3.0, @@ -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);", @@ -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", + "};" ] } \ No newline at end of file