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.