Skip to main content

Module voltage_zones

Module voltage_zones 

Source
Expand description

Voltage base zones: the buses that share one voltage base, and the flood of zone bases across transformers.

Enums§

ZoneSwitches
Which switches join a voltage zone (calc_voltage_zone_labels).

Functions§

calc_flooded_zone_bases
Flood zone voltage bases across transformer edges, depth first from the seeded zones (seeds, in the order given; the last seed is explored first): crossing edge k from edges[k].0 to edges[k].1 gives the far zone carry(k, true, base), and the reverse crossing carry(k, false, base), where base is the near zone’s. A zone keeps the first base that reaches it; carry returning None does not cross. The one zone base flood: the multiconductor to balanced lowering (the far winding’s rated voltage) and the PMD MATHEMATICAL writer (tm_nom, as PMD’s calc_voltage_bases scales) state only their crossing rule.
calc_voltage_zone_labels
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.