PMSM drive using imported FEM data and optimized Field-Oriented Control (FOC), with supporting design scripts that:
- Determine open-loop frequency response and check stability margins. This requires Simulink® Control Design™, using the Frequency Response Estimator block.
- Determine the optimal d-axis and q-axis currents that minimize overall motor losses when delivering a commanded torque and speed.
The Electric Drive is implemented using:
- A detailed Simscape™ Electrical™ nonlinear motor model in the form of tabulated flux linkages and Steinmetz coefficients. For more information, see this example.
- A Field-Oriented Controller (FOC) that has been optimized to minimize motor losses.
The drive is parameterized for a 70 kW (maximum power), 150 Nm (maximum torque) motor, suitable for an electric vehicle powertrain. The supply is a 500 V DC source.
The PMSM Field-Oriented Controller subsystem has an outer loop of speed control, and an inner loop of current control. The outer loop determines the current references for the inner loop.
The motor losses depend on d-axis and q-axis currents, and rotor speed. Motor losses are a combination of copper losses and iron losses.
The ControllerOptimization.mlx Live Script computes the optimal d-axis and q-axis current references that minimize motor losses, in function of rotor speed and reference torque.
The test scenario is a reference speed of 3000 rpm and a torque load stepped from 0 Nm to 50 Nm at t=0.1s.
You can notice the lower motor losses when using optimized control parameters.
Open the project file PmsmDriveOptimization.prj to get started.
- Run workflows/ControllerOptimization.mlx to compute the optimal control parameters.
- Run workflows/FreqResponseAnalysis.mlx to check the control system stability margins. This is computationally intensive.
MathWorks Products (https://www.mathworks.com)
Requires MATLAB® release R2021b or newer.
- Simscape
- Simscape Electrical
- Simulink
- Simulink Control Design
- Control System Toolbox
- Optimization Toolbox
To learn more about modeling and simulation with Simscape™, please visit:
The license is available in the License file within this repository.
Copyright 2022 The MathWorks, Inc.