pub fn calc_element_connection(
network: &MulticonductorNetwork,
bus: &str,
terminal_map: &[String],
configuration: Configuration,
channel_count: Option<usize>,
) -> Result<Vec<ConnectionChannel>, String>Expand description
The channels of an element’s connection at bus over its terminal map
(calc_connection_channels), with a WYE neutral found by
calc_wye_neutral_position. channel_count is the element’s number of
stated powers or phases; None reads it from the map: a WYE has one
channel per phase terminal, a two terminal DELTA or single phase element
one channel, and any other DELTA one channel per terminal (a ring).
The one rule for which terminal pair each coil of a connection spans: the multiconductor OPF, the capacitor primitive, the transformer primitive and its ideal constraints read it.
§Errors
An undeclared bus, an ambiguous WYE neutral, or a connection
calc_connection_channels refuses.