pub fn calc_terminal_role<S: AsRef<str>>(
terminals: &[S],
terminal: &str,
conventions: Option<&Value>,
) -> TerminalRoleExpand description
The role of terminal among a bus’s terminals. With BMOPF terminal
conventions (the terminal_conventions block, whose neutral and
earth lists name terminals) a named terminal takes the role it is
named in and every other terminal is a phase. Without conventions n or
N is neutral, and so is 4 when the terminals are exactly 1 to 4
(the four wire spelling OpenDSS and PowerModelsDistribution share), and
every other terminal is a phase. Ground terminal 0 is earth either way.
The one terminal classification: DistBus::phase_indices,
DistBus::neutral_indices, the WYE neutral of a connection
(crate::calc_wye_neutral_position), the BMOPF reader, validator and
writer, the PMD MATHEMATICAL writer, the multiconductor to balanced
lowering, and the CIM and MG-RAVENS readers and writers (over the CIM
wire convention, which those readers state for their networks:
MulticonductorNetwork::terminal_conventions) read it.