Skip to main content

calc_voltage_zone_labels

Function calc_voltage_zone_labels 

Source
pub fn calc_voltage_zone_labels(
    network: &MulticonductorNetwork,
    switches: ZoneSwitches,
) -> Result<Vec<usize>, String>
Expand description

The voltage zone of each network bus, in bus table order: buses joined by a line or a switch switches admits share a label (a representative bus index), with bus identities compared ASCII case insensitively. Transformers separate zones. The one network zone partition: the multiconductor to balanced lowering, the GridLAB-D writer and the load nominal voltage inference read it over closed switches, the MG-RAVENS writer’s base voltages over every switch.

§Errors

A line or admitted switch naming a bus the network does not declare.