kicad2ems.pcbqs.power_waveforms

Adaptive ngspice waveform export and non-aliased periodic Fourier
inference.
kicad2ems.pcbqs.power_waveforms.periodic_coefficients(time, currents, frequency, harmonics=31)[source]
Integrate piecewise-linear adaptive currents with 4-point Gauss
quadrature.

No uniform resampling precedes the Fourier integral. The coefficients use
absolute switching phase; mean-square current is integrated analytically.
kicad2ems.pcbqs.power_waveforms.read_raw(path)[source]
Read ngspice's real binary rawfile (native float64), selected vectors
only.