pub fn calc_reduced_leakage(
leakage: &[Vec<Complex64>],
reference: usize,
) -> Vec<Vec<Complex64>>Expand description
The pairwise leakage of calc_transformer_leakage_impedances reduced
against the reference winding to the winding difference impedance
matrix, over every other winding in winding order:
ZB[i][j] = z[i][r] (i = j)
= (z[i][r] + z[j][r] - z[i][j]) / 2 (i ≠ j)Row i is the voltage of winding i less the reference winding’s. The
one reduction: calc_transformer_winding_admittance inverts it against
the last winding, and the multiconductor OPF descriptor keeps it in
impedance form against the first.
§Panics
A reference outside the matrix.