Skip to main content

effective_injection

Function effective_injection 

Source
pub fn effective_injection(bus: &Bus) -> (f64, f64)
Expand description

Computes the effective (P, Q) injection at a bus at its current voltage magnitude: p_spec/q_spec (constant-power) plus any ZIP terms evaluated at bus.voltage_mag. For a bus with no ZIP terms this is exactly (bus.p_spec, bus.q_spec).