Skip to main content

calc_reactive_ratio

Function calc_reactive_ratio 

pub fn calc_reactive_ratio(pf: f64, form: ReactiveRatioForm) -> f64
Expand description

The reactive over active power ratio a power factor fixes, OpenDSS and BMOPF by sign: Q / P = tan(acos |pf|) with pf > 0, Q on the same side as P, and the opposite sign for pf < 0, formed as form states. Infinite at pf = ±0 and NaN when |pf| > 1.