pub fn switch_reactance() -> f64Expand description
The impedance a regularized switch is given: purely inductive, at the
magnitude of topology::IDEAL_CONNECTION_Y.
Purely reactive, deliberately. IDEAL_CONNECTION_Y = 2e5 + j2e5 has a
positive imaginary part inherited from power-grid-model, which inverts to
a negative reactance — harmless in AC but sign-flipping in DC, where
linear::btheta needs an explicit guard for the PGM link that carries it.
A switch branch has no such history to preserve, so it takes the same
stiffness with the conventional sign and needs no guard anywhere.