pub fn calc_transformer_leakage_impedances(
transformer: &DistTransformer,
base: &TransformerLeakageBase,
) -> Result<Vec<Vec<Complex<f64>>>, Error>Expand description
The pairwise leakage impedances of a multiwinding transformer, referred
to the first winding: for windings a and b, on a per winding base
B_a and a reference base B_ref,
z[a][b] = (r_a · B_ref / B_a + r_b · B_ref / B_b) / 100 + j · xsc_ab / 100with xsc_pct in pair order (1,2), (1,3), …, (2,3), …. The
TransformerLeakageBase states B_a and B_ref (the winding rating
and the first winding’s rating for TransformerLeakageBase::Nameplate,
the phase bases for TransformerLeakageBase::WindingPhase), or reads a
regulator’s stated ohms (TransformerLeakageBase::StatedOhms). The
diagonal is zero. The one leakage derivation: the multiconductor OPF
transformer descriptor scales it to its ohmic base,
calc_transformer_winding_admittance inverts it,
calc_transformer_primitive_admittance stamps it, and the
multiconductor to balanced lowering reads a two winding unit’s pair.
§Errors
Fewer than two windings, a winding rating that is not finite and
positive, a resistance that is not finite, or an xsc_pct whose length is
not one value per winding pair. For a phase base, a power base that is not
finite and positive or a phase count per winding that is missing or not
finite and positive. For stated ohms, a transformer without exactly two
windings, a second winding tap that is not finite and positive, or a
stated value that is not a finite nonnegative number.