PWM Motor Waveform Calculator

Simulate the steady-state three-phase currents and terminal voltage of a PMSM driven by a space-vector PWM inverter. Enter your motor parameters and RMS back-EMF, set an operating point, and view the settled waveforms.

Inputs

PMSM + SVPWM
Inverter
Motor Parameters
Back-EMF Source
Operating Point

Back-EMF Note

RMS mode assumes a sinusoidal back-EMF; the PM flux linkage is ψm = √2 · Erms / ωe, with ωe = 2π·(RPM/60)·(poles/2).

Custom CSV mode imports a measured/FEA back-EMF (angle, Ea, Eb, Ec over one electrical period). Its amplitude is scaled by RPM / captured RPM, the fundamental is auto-aligned to the q-axis, and the harmonics carry through as ed(θ), eq(θ) — so the current picks up the resulting distortion.

Either way, currents are integrated in the rotor (d-q) frame so saliency (Ld ≠ Lq) is exact, then run to steady state before plotting.

Derived Quantities

PM Flux ψm
Vs (Wb-turn)
Electrical Freq
Hz
Fund. Period
ms
Modulation Index
m (lin. max 1.0)
Phase Current RMS
A
Phase Current Peak
A
Vref (L-N peak)
V fundamental
VLL RMS
V line-to-line
Back-EMF THD
% (harmonic)
Current THD
% of fundamental

Three-Phase Currents

Steady state, 1 cycle
ia
ib
ic

Phase A Terminal Voltage van

Zoom: 3 PWM cycles
van (switched, L-N)
fundamental