Skip to main content

calc_coil_susceptance_matrix

Function calc_coil_susceptance_matrix 

Source
pub fn calc_coil_susceptance_matrix(
    terminal_count: usize,
    coils: &[ConnectionChannel],
    susceptance: &[f64],
) -> ConductorMatrix
Expand description

The susceptance matrix over terminal_count terminals of coils coils with susceptances susceptance (one per coil, in coil order): each coil adds its susceptance to its terminal’s diagonal and, when it returns through another terminal rather than ground, to that terminal’s diagonal and subtracts it between the two. The one capacitor coil stamp: calc_capacitor_susceptance, the BMOPF per coil capacitor lowering and the OpenDSS common return capacitor bank read it.

§Panics

A coil terminal outside terminal_count, or a number of susceptances other than the number of coils.