pub fn calc_bus_totals(
n_buses: usize,
bus_of_gen: &[usize],
values: &[f64],
) -> Vec<f64>Expand description
The per bus totals of an element column: values[e] added to bus
bus_of[e] for each element, in element order, over n_buses buses. The
one sum of a generator (or any element) column onto buses: the nodal
generator data of the DC and AC preparations reads it, and a caller
summing scheduled outputs or reactive limits by bus calls it.
ยงPanics
Panics if a bus is >= n_buses or values is shorter than bus_of.