Skip to content

Commit

Permalink
Remove duplicate sizing functions that were causing ac sizing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
brtietz committed Oct 10, 2023
1 parent 1d48010 commit 0cef7c0
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions deploy/runtime/ui/Battery Current and Capacity.json
Original file line number Diff line number Diff line change
Expand Up @@ -3029,17 +3029,10 @@
"\t\treturn;",
"\t}",
"\t",
"\t// AC-coupled",
"\tif (${batt_ac_or_dc} == 1)",
"\t{",
"\t\t// Size for AC discharge capacity",
"\t\tif (${batt_bank_size_dc_ac} == 1)",
"\t\t\tbatt_bank_capacity /= (${batt_dc_ac_efficiency}*0.01);",
"\t\tif (${batt_bank_power_dc_ac} == 1)",
"\t\t\tbatt_bank_power /= (${batt_dc_ac_efficiency}*0.01);",
"\t}",
"\t// AC-coupled - nothing to do",
"",
"\t// DC-coupled",
"\telse ",
"\tif (${batt_ac_or_dc} == 0)",
"\t{ ",
"\t\tinv_model = ${inverter_model};",
"\t\tif (inv_model == 0){",
Expand All @@ -3056,11 +3049,6 @@
"\t\t}",
"\t\tinv_eff *= ${batt_dc_dc_efficiency} * 0.01 * 0.01;",
"\t\t",
"\t\t// Size for AC side discharge",
"\t\tif (${batt_bank_size_dc_ac} == 1)",
"\t\t\tbatt_bank_capacity /= inv_eff;",
"\t\tif (${batt_bank_power_dc_ac} == 1)",
"\t\t\tbatt_bank_power /= inv_eff;",
"\t}",
"\t",
"\t",
Expand Down

0 comments on commit 0cef7c0

Please sign in to comment.