Simulink simulation becomes very slow after adding FOC to a 6-phase PMSM drive with CHB inverter
I am simulating an asymmetrical six-phase PMSM drive in Simulink (R2025b).
The original model consisted of:
– 5-level cascaded H-bridge inverter
– phase-shifted PWM (PSPWM)
– asymmetrical 6-phase PMSM (30° phase shift)
In this configuration the simulation runs normally. After introducing field-oriented control (FOC) the simulation becomes very slow.
The FOC implementation includes:
– VSD transformation (abc-def → αβxy)
– Park transformation
– PI current controllers (id, iq, ix, iy)
– speed PI controller
– inverse transformations
– discrete current filters ( for i_αβ)
Main parameters:
– PWM carrier frequency: fcr = 5 kHz
– duty cycle update rate: 100 kHz
– solver: ode14x
– Simulink version: R2025b
The electrical model of the inverter and machine has not changed, only the control structure was added.
My question is: Is it normal that adding FOC significantly slows down the simulation in Simulink, and what are recommended practices to keep such motor drive simulations efficient (solver choice, controller sampling rates, or implementation of transformations)?I am simulating an asymmetrical six-phase PMSM drive in Simulink (R2025b).
The original model consisted of:
– 5-level cascaded H-bridge inverter
– phase-shifted PWM (PSPWM)
– asymmetrical 6-phase PMSM (30° phase shift)
In this configuration the simulation runs normally. After introducing field-oriented control (FOC) the simulation becomes very slow.
The FOC implementation includes:
– VSD transformation (abc-def → αβxy)
– Park transformation
– PI current controllers (id, iq, ix, iy)
– speed PI controller
– inverse transformations
– discrete current filters ( for i_αβ)
Main parameters:
– PWM carrier frequency: fcr = 5 kHz
– duty cycle update rate: 100 kHz
– solver: ode14x
– Simulink version: R2025b
The electrical model of the inverter and machine has not changed, only the control structure was added.
My question is: Is it normal that adding FOC significantly slows down the simulation in Simulink, and what are recommended practices to keep such motor drive simulations efficient (solver choice, controller sampling rates, or implementation of transformations)? I am simulating an asymmetrical six-phase PMSM drive in Simulink (R2025b).
The original model consisted of:
– 5-level cascaded H-bridge inverter
– phase-shifted PWM (PSPWM)
– asymmetrical 6-phase PMSM (30° phase shift)
In this configuration the simulation runs normally. After introducing field-oriented control (FOC) the simulation becomes very slow.
The FOC implementation includes:
– VSD transformation (abc-def → αβxy)
– Park transformation
– PI current controllers (id, iq, ix, iy)
– speed PI controller
– inverse transformations
– discrete current filters ( for i_αβ)
Main parameters:
– PWM carrier frequency: fcr = 5 kHz
– duty cycle update rate: 100 kHz
– solver: ode14x
– Simulink version: R2025b
The electrical model of the inverter and machine has not changed, only the control structure was added.
My question is: Is it normal that adding FOC significantly slows down the simulation in Simulink, and what are recommended practices to keep such motor drive simulations efficient (solver choice, controller sampling rates, or implementation of transformations)? simulink, motor-control, pmsm, foc, power_electronics_control MATLAB Answers — New Questions









