Skip to main content

calc_phase_from_sequence

Function calc_phase_from_sequence 

Source
pub fn calc_phase_from_sequence<T>(
    n: usize,
    positive: T,
    zero: T,
    third: SequenceThird,
) -> Vec<Vec<T>>
where T: Copy + Add<Output = T> + Sub<Output = T> + Mul<f64, Output = T> + Div<f64, Output = T>,
Expand description

The n × n phase matrix of a transposed element from its positive and zero sequence values (calc_sequence_self on the diagonal, calc_sequence_mutual off it). The one sequence to phase expansion: the OpenDSS line code, line and source readers and the pandapower reader read it, for impedance, resistance, reactance and susceptance alike.