From 0cef7c0297430a1c86acfc42b293f6590907df00 Mon Sep 17 00:00:00 2001 From: Brian Mirletz Date: Tue, 10 Oct 2023 11:39:21 -0600 Subject: [PATCH] Remove duplicate sizing functions that were causing ac sizing issues --- .../ui/Battery Current and Capacity.json | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/deploy/runtime/ui/Battery Current and Capacity.json b/deploy/runtime/ui/Battery Current and Capacity.json index 3d72e17b79..627d89ffe8 100644 --- a/deploy/runtime/ui/Battery Current and Capacity.json +++ b/deploy/runtime/ui/Battery Current and Capacity.json @@ -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){", @@ -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",