kicad2ems.pcbqs.pdn.droop

The droop of a load step in time from the rail's impedance at the load (R-E14):
a current step of `step` A rising in `rise` s, the voltage it takes off the rail
there.

For a causal impedance Z(w) the step response (V per A) is h(t) = R0 + (2 / pi)
int_0^inf g(w) cos(w t) dw with g = Im Z / w (its inductance; R0 = Re Z at the
lowest frequency, the DC path), and the ramp's response v(t) = step / rise (H(t)
- H(t - rise)), H = int_0^t h. With g linear in w between the samples, each
segment's integral is exact through the sine integral, a(Si(w2 t) - Si(w1 t)) +
b / t (cos(w1 t) - cos(w2 t)), so the samples' log spacing and a long t cost no
accuracy; below the lowest frequency g is held at its value there, above the
highest at its value there (the mounting's inductance). It is the impedance as
solved, between the frequencies it was solved at: a resonance between two
samples is as sharp as they show it.

    t, v = droop(f, Z, step=1.0, rise=1e-9)  # v: the rail's drop, V (positive:
                                             # down)
kicad2ems.pcbqs.pdn.droop.droop(f, Z, step=1.0, rise=1e-09, t=None, points=600)[source]
(t s, v V) of a current step of `step` A rising in `rise` s at a load
whose impedance is Z (complex, at f Hz, rising): v is the rail's drop there.
t: the times (default: log-spaced from a tenth of the rise to two periods of
the lowest frequency).
kicad2ems.pcbqs.pdn.droop.summary(f, Z, step, rise)[source]
dict(peak_V, at_s, settled_V, t_s, v_V) of droop's response (the times
decimated for the JSON).