Waveform analysis specialist for power electronics simulators. Covers FFT-based harmonic decomposition, THD, power factor, RMS/average/peak calculations, steady-state detection, and spectral leakage mitigation. Use when processing simulation output waveforms for quality metrics, harmonic content, or determining when the simulation has reached periodic steady state. Trigger for terms like "FFT", "harmonic", "THD", "RMS", "power factor", "steady state", "spectral leakage", "windowing", "DFT", "harmonic distortion", "cycle detection", or "convergence to steady state".
Use this skill when the simulation has produced waveform data and needs to be post-processed: extracting RMS values, harmonic content, power quality metrics, or detecting when the simulation has reached a periodic steady state.
Default stance:
Detect steady state.
references/steady-state-detection.md for cycle-by-cycle comparison method.Extract the steady-state window.
Compute RMS, average, and peak.
references/power-quality-metrics.md for exact formulas.Apply FFT.
references/spectral-analysis.md for FFT setup and interpretation.Compute power quality metrics.
references/power-quality-metrics.md for metric definitions and limits.Report results.
| Topic | Reference | Load when |
|---|---|---|
| FFT and spectral analysis | references/spectral-analysis.md | Setting up FFT, windowing, identifying harmonics, interpreting spectra |
| Steady-state detection | references/steady-state-detection.md | Detecting convergence to periodic steady state in simulation output |
| Power quality metrics | references/power-quality-metrics.md | Computing THD, power factor, DPF, crest factor, or checking against standards |
| Script | Purpose | Usage |
|---|---|---|
scripts/analyze_waveform.py | Detect steady state, compute RMS/DC/AC-RMS/peak/crest factor, FFT harmonic decomposition, and THD from a CSV waveform file | python skills/waveform-analysis/scripts/analyze_waveform.py --file waveform.csv --channel v_out --fundamental 50 |
For waveform analysis tasks, provide: