← Back to Blog

How PWM Excitation Affects Motor Performance

Motor Design · Simulation Study  |  MotorDesignSoftware

When designing an electric motor, it is common to do a time-stepping simulation using ideal sinusoidal currents. This is a useful approximation, particularly during the initial design stage.

However, a real motor is often driven by an inverter using pulse-width modulation (PWM), and the resulting current is not perfectly sinusoidal. This difference becomes particularly important for low-inductance / high-speed motors, where the motor current can contain significant switching-frequency ripple.

In this article, we compare a motor simulated with ideal sinusoidal excitation against the same motor using PWM-derived current waveforms at different switching frequencies. The aim is to see how much difference the actual excitation waveform makes to the simulated motor performance.

Why does PWM cause current ripple?

A simplified motor phase can be represented by:

V = R i + L (di/dt)

The motor inductance opposes rapid changes in current. A motor with high inductance will naturally smooth the voltage switching, while a low-inductance motor allows the current to change more quickly. The electrical time constant is approximately:

τ = L / R

When the PWM switching period is not sufficiently small compared with this time constant, the current can contain significant ripple. For example, instead of an ideal current such as:

Ideal sinusoidal phase current waveform used as the reference excitation
An ideal sinusoidal phase-current waveform.

the actual current may look more like:

PWM-derived phase current showing high-frequency switching ripple around the sinusoidal average
A PWM-derived phase current: the average still follows the sinusoidal reference, but high-frequency switching ripple is superimposed.

The average current can still follow the desired sinusoidal reference, but additional high-frequency components are present. These components can affect motor losses and torque ripple.

Generating the PWM excitation

To investigate this, we first need a realistic current waveform. The MotorDesignSoftware PWM waveform calculator computes the current response from parameters such as phase resistance, phase inductance, switching frequency, electrical frequency, DC-bus voltage, and the back-EMF value or waveform.

MotorDesignSoftware PWM waveform calculator web page with input parameters and resulting current
The online PWM waveform calculator generating a current response from the motor and inverter parameters.

The resulting current waveform can be exported as a spreadsheet and then imported into the motor simulation as a custom excitation waveform. This lets the same motor model be simulated under different excitation conditions without changing the motor geometry.

MotorDesignSoftware desktop application importing a custom PWM current excitation waveform
Importing the exported current waveform into MotorDesignSoftware as a custom excitation.

Simulation setup

For this study, a generic 36-slot, 6-pole, medium-inductance motor with the following parameters was considered:

ParameterValue
Rated power3 kW
Rated speed1500 rpm
Phase resistance0.5 Ω
d-axis inductance (NL)8.67 mH
q-axis inductance (NL)27.92 mH
Current10 A
Electrical frequency75 Hz
Cross-section geometry of the 36-slot 6-pole interior permanent magnet motor used in the study
The 36-slot, 6-pole motor geometry used for the comparison.

To keep the comparison fair, all simulation parameters except the current waveform were kept the same, and the following four cases were simulated and compared:

  1. Ideal sinusoidal excitation
  2. PWM excitation at 4 kHz
  3. PWM excitation at 16 kHz
  4. PWM excitation at 100 kHz

To get the current waveform at each switching frequency, the back-EMF waveform was extracted from the simulation and entered into the PWM waveform calculator to produce the corresponding PWM current waveforms.

Note: to make the effect of PWM excitation visible, the motor was deliberately designed with high back-EMF ripple. In practice, the stator or rotor would be skewed to reduce back-EMF ripple and cogging torque.

Simulation

Back-EMF simulation

The current waveform depends on the back-EMF of the motor, so to get an accurate current waveform a back-EMF simulation was done first, using a 600-step simulation for higher waveform accuracy. The back-EMF graphs, resistance, Ld, Lq, speed and pole count were then exported and entered into the calculator.

Simulated back-EMF waveform of the motor used to derive the PWM current
The simulated back-EMF waveform, used as an input to derive the PWM current.

Simulation with current excitation

Four simulations were run — one with sinusoidal current and three with PWM current at different switching frequencies. The difference in current waveform is quite evident:

Overlay of sinusoidal and PWM phase currents at 4, 16 and 100 kHz switching frequencies
Comparison of the sinusoidal current and the PWM currents at 4, 16 and 100 kHz. Lower switching frequencies show noticeably more ripple.

For good accuracy, the number of steps per electrical cycle was set to 1500, and the air-gap mesh density was adjusted to give at least five mesh layers across the air gap.

Note: here it was assumed that Ld and Lq stay the same at no load and at rated current, which is usually not the case, especially if the motor is saturated. A future article will show how current affects the inductances — stay tuned.

Results

The simulation results are summarized below.

Excitation typeTorque rippleCu lossCore lossMagnet lossEfficiency
Sinusoidal42.7 %87.9 W45.55 W0.09 W95.55 %
4 kHz PWM84.3 %93.7 W58.2 W0.135 W93.1 %
16 kHz PWM67.13 %91.5 W58.43 W0.135 W93.2 %
100 kHz PWM61.36 %90.6 W58.45 W0.132 W93.25 %

The comparison of torque ripple and copper loss across all excitation types is shown below.

Bar chart of torque ripple for sinusoidal and PWM excitation at 4, 16 and 100 kHz
Torque ripple by excitation type — highest at 4 kHz, falling as switching frequency increases.
Bar chart of copper loss for sinusoidal and PWM excitation at 4, 16 and 100 kHz
Copper loss by excitation type — higher at lower switching frequencies due to increased current ripple.

Analyzing why the graphs look the way they do would need an article of its own, so here is a short comparison:

Note: seasoned motor designers will spot that core losses are very high compared with copper losses. That is because the motor is not operating at its rated current and is not fully optimized — it was deliberately designed with high back-EMF ripple to make the effect of PWM excitation clearly visible.

How important is PWM excitation?

The answer depends on the motor. For a relatively high-inductance motor operating at a high switching frequency, the actual current may be close enough to sinusoidal that the difference is small. For a low-inductance motor, the difference can be much more significant. This suggests a useful two-stage approach during motor development:

Conclusion

Ideal sinusoidal excitation remains a very useful approximation for motor design, but it does not always represent the current the motor will actually experience. For low-inductance motors in particular, PWM switching can produce significant current ripple.

By importing a realistic excitation waveform into an electromagnetic simulation, we can check whether this ripple has a meaningful effect on torque, losses and efficiency. The comparison in this example shows that the switching frequency can have a measurable effect on motor performance. So once the basic design is established, including the actual inverter excitation gives a more realistic picture of the final motor performance.


About the simulation

The simulations in this article were performed using MotorDesignSoftware and FEMM. MotorDesignSoftware supports custom excitation waveforms, so motors can be analyzed using realistic current waveforms rather than only ideal sinusoidal excitation. The accompanying PWM waveform calculator generates current excitation data for different motor and switching conditions. Try it yourself:

Explore MotorDesignSoftware →

← Back to all articles