Skip to main content

calc_flooded_zone_bases

Function calc_flooded_zone_bases 

Source
pub fn calc_flooded_zone_bases(
    seeds: impl IntoIterator<Item = (usize, f64)>,
    edges: &[(usize, usize)],
    carry: impl Fn(usize, bool, f64) -> Option<f64>,
) -> BTreeMap<usize, f64>
Expand description

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.