Skip to main content

calc_wye_neutral_position

Function calc_wye_neutral_position 

Source
pub fn calc_wye_neutral_position(
    network: &MulticonductorNetwork,
    bus: &str,
    terminal_map: &[String],
) -> Result<Option<usize>, String>
Expand description

The position of a WYE connection’s explicit neutral in an element’s terminal map: the one mapped terminal whose role on the bus (crate::calc_terminal_role over the network’s terminal conventions) is not a phase, ground terminal 0 included (calc_mapped_neutral_position). None when every mapped terminal is a phase.

§Errors

A bus the network does not declare, or more than one mapped terminal that is not a phase.