Validating PMSM Parameter Identification Algorithms with a High-Fidelity Physical Model
By Elia Brescia and Giuseppe Leonardo Cascella, Politecnico di Bari
Simulated values of the parameters depend on the trends of the stator and rotor temperatures and of the motor current, demonstrating how temperature and magnetic saturation effects are effectively simulated by the Simscape model.
Engineers working with systems that include permanent magnet synchronous machines (PMSMs) need to know the values of key PMSM parameters for several reasons. Most control strategies need accurate values for motor parameters to ensure stable performance and optimal efficiency. In addition, developing reliable digital twins of electric motors to observe parameter values as they change over time enables engineers to evaluate the motor’s state of health to support predictive maintenance, fault diagnosis, condition monitoring, and other similar activities. However, it is challenging to directly monitor key parameters, such as stator inductance, rotor flux linkage, and stator resistance during normal operations of a commercial drive, since this monitoring typically requires downtime to conduct offline tests or the addition of costly sensors and instrumentation.
To obtain accurate estimates of hard-to-measure PMSM parameters based on values that are more readily available—such as rotor speed, voltage, and current measurements—engineers and researchers continue to develop a wide variety of parameter identification algorithms. However, quickly validating these algorithms can be difficult. Our research group at Politecnico di Bari has encountered this problem as we develop novel PMSM parameter identification algorithms and methods. Testing on a real drive is slow and cumbersome, as is using finite element analysis software to model the motor, its geometry, and the materials used to construct it.
Recently, our team has accelerated the development and validation of PMSM parameter identification algorithms using a physical model that we developed in Simulink® and Simscape™. Simscape enables us to integrate the thermal, mechanical, and electromagnetic aspects of the motor into a single high-fidelity multidomain model that produces accurate simulation results without lengthy computation times. Via simulation, we can see how those parameter values that are difficult or impossible to measure in a real commercial drive are changing and how well our algorithm estimates track those values.
Creating the Multidomain PMSM Model with Simscape
We based our Simscape model on the three-phase PMSM drive with thermal model example provided by MathWorks. This model includes several components from Simscape Electrical™, including PMSM, PMSM Field-Oriented Control, and Battery blocks, as well as an IGBT (insulated gate bipolar transistor) block that serves as the three-phase inverter (Figure 1). It also includes a thermal model that is used to simulate temperature dynamics within the motor, including thermal exchange between the motor and the ambient environment.
We customized this base model to support validation of our parameter estimation algorithms. Specifically, we added a load block, which is used to apply a resistant torque to the mechanical shaft of the motor and included additional voltage sensors to the model’s existing sensor block.
Lastly, we configured the properties of the PMSM block. We defined the flux and stator resistance as functions of the rotor and stator temperature (Figure 2) to reflect two well-known effects in PMSM systems: As the temperature rises, electrical resistance of the conductors inside the stator increases while rotor flux linkage decreases. These effects are important, because both lead to the increase of losses, and therefore a reduction of the efficiency of the motor and its ability to produce torque. We also set up the inductances as functions of the PMSM currents, which capture magnetic saturation of the iron, another well-known effect.
Simulation, Parameter Estimation, and Validation
Once we had customized and configured our PMSM model, we began using it to run simulations in Simulink to test parameter estimation algorithms. In these simulations, the model’s voltage, current, and rotor speed signals, which are readily available in a commercial motor, are used as inputs to the parameter estimation algorithm we are evaluating (Figure 3). For example, we recently used this setup to validate a parameter estimation approach based on Adaline neural networks that we implemented in MATLAB®. We then compare the algorithm’s output—estimated stator resistance, rotor flux, and stator inductance—with those same values from the Simscape model.
It can take an hour or more for the temperature in a real PMSM to increase to a point where its effects on flux and resistance are noticeable, so we decided to shorten simulation times for testing a wide range of flux and resistance values by making minor adjustments to the model. Specifically, we decreased the iron losses in the motor and decreased the thermal mass of the rotor and stator. These changes did not affect the fidelity of the model or our ability to assess parameter estimation algorithms, but they did cut the required simulation time from hours to seconds.
After running simulations, we use MATLAB to generate plots that showed how closely our algorithm’s parameter estimates tracked the simulated values for flux linkage (Figure 4), stator resistance (Figure 5), and stator inductance (Figure 6). After an initial period in which the motor is in a transient state before reaching its steady-state speed, the plots reveal a close match between estimated and simulated values (labeled as “actual” in the figures). It is also worth noticing how the simulated values of the parameters depend on the trends of the stator and rotor temperatures and of the motor current, which are shown on the right in Figures 4, 5, and 6. This demonstrates how temperature and magnetic saturation effects of the motor are effectively simulated by the Simscape model.
Into the Classroom and Into the Lab
At Politecnico di Bari, we use Simulink and Simscape in the classroom as well as in our research. For example, students taking a graduate-level course on electric drives in the electrical and automation engineering program complete exercises using custom models we have developed with MATLAB and Simulink, and more recently, with Simscape. During lectures, we also work through an analysis of motor efficiency using a Simscape model that is similar to the model that we use to validate parameter estimation algorithms.
Currently, my group is working with a Simscape model that will serve as the digital twin of a real electric drive in our lab consisting of an inverter, motor, controller, and other components. We are using the digital twin to validate error analysis by obtaining predictions of estimation errors first via simulation before proceeding with experimental tests on the actual hardware (Figure 7). Use of the model is significantly accelerating this effort because performing the preliminary analysis in simulation is much faster than completing the entire study on the real drive.

Figure 7. Testbench with two coupled PMSM drives in the electrical machines and drives laboratory at Politecnico di Bari.
Published 2024