@@ -2018,14 +2018,16 @@ def _pp_trafos_output_3ph(self): # pylint: disable=too-many-statements
20182018 loading_multiplier = pp_input_transformers ["df" ] * 1e2
20192019 if self .trafo_loading == "current" :
20202020 # since "i_from" and "i_to" are (n, 3) arrays while "u1" and "u2" are (n,) arrays, valueError is generated during broadcost
2021- ui_from = pgm_output_transformers ["i_from" ] * np .tile (pgm_input_transformers ["u1" ][:, None ], (1 ,3 ))
2022- ui_to = pgm_output_transformers ["i_to" ] * np .tile (pgm_input_transformers ["u2" ][:, None ], (1 ,3 ))
2021+ ui_from = pgm_output_transformers ["i_from" ] * np .tile (pgm_input_transformers ["u1" ][:, None ], (1 , 3 ))
2022+ ui_to = pgm_output_transformers ["i_to" ] * np .tile (pgm_input_transformers ["u2" ][:, None ], (1 , 3 ))
20232023 # for phase wise loading, sn_ph = sn / 3, v_n = v / sqrt(3), so (i * u / sqrt(3)) / (sn / 3) --> sqrt(3) * i * u / sn
20242024 loading_a_percent = np .sqrt (3 ) * np .maximum (ui_from [:, 0 ], ui_to [:, 0 ]) / pgm_input_transformers ["sn" ]
20252025 loading_b_percent = np .sqrt (3 ) * np .maximum (ui_from [:, 1 ], ui_to [:, 1 ]) / pgm_input_transformers ["sn" ]
20262026 loading_c_percent = np .sqrt (3 ) * np .maximum (ui_from [:, 2 ], ui_to [:, 2 ]) / pgm_input_transformers ["sn" ]
20272027 # for total loading, phase wise powers are be calculated using v_n instead of v.
2028- loading = (np .maximum (np .sum (ui_from , axis = 1 ), np .sum (ui_to , axis = 1 ))/ np .sqrt (3 )) / pgm_input_transformers ["sn" ]
2028+ loading = (
2029+ np .maximum (np .sum (ui_from , axis = 1 ), np .sum (ui_to , axis = 1 )) / np .sqrt (3 )
2030+ ) / pgm_input_transformers ["sn" ]
20292031 elif self .trafo_loading == "power" :
20302032 loading_a_percent = (
20312033 np .maximum (
0 commit comments