Dynamic Modelling of Permanent Magnet Synchronous Motors with Graphical Simulation Validation
Abstract:
Permanent Magnet Synchronous Motors (PMSMs) have garnered sustained attention over the past four decades due to their high efficiency, superior torque density, and dependable operational characteristics, making them highly suitable for a wide range of industrial applications. Accurate dynamic modelling of PMSMs is essential for performance evaluation and the development of advanced drive control strategies. Although previous studies have addressed customized modelling approaches for various PMSM types, a streamlined method for deriving model parameters from standard manufacturer specifications remains insufficiently explored. As a result, simulation studies are often disconnected from commercially available motor data, thereby limiting their practical relevance. In this study, the dynamic model of a PMSM is reformulated within the synchronous rotating reference frame (d-q axis) and implemented using mathematical function blocks in the MATLAB/Simulink environment. A systematic procedure is developed to extract key motor parameters from typical manufacturer data sheets. This approach bridges the gap between theoretical modeling and real-world motor implementation. The proposed modelling framework is validated using a standard 1 hp, 2.2 Nm, 1500 rpm PMSM, and its performance is benchmarked against the built-in Simulink PMSM blockset. Simulations are conducted to evaluate the mechanical output, rotor speed, and electromagnetic torque responses under step variations in load torque. The results exhibited strong agreement between the custom mathematical model and the blockset counterpart, confirming the accuracy and practical applicability of the parameter extraction methodology.1. Introduction
Due to the high-paced industrial automation, the electrical drive systems have been widely studied and contemplated [1]. The application ambit of drives has straddled widely in several fields such as robotics [2], electrical vehicles [3], automation equipment [4], material handling [5], air conditioning and refrigeration [6], rolling mills [7], wind energy conversion systems [8], aerospace [9], domestic appliances [10], etc. The technical feasibility of manufacturing permanent magnetic materials with the required strength and shape, combined with digital controllers, has made PMSMs a potential alternative to the induction motor in many applications [11]. PMSMs are preferred due to their merits such as improved power density (compactness), increased torque-to-inertia ratio, high efficiency (minimal losses and heat dissipation), easy maintenance, and reliability [12]. Aforementioned details urge both the establishment of the PMSM simulation model and the subsequent development of application driven control systems, hence satisfying/customising the system requirements [13].
A mathematical (equation) model of an electric motor is basically a set of equations that represents the dynamics of the system accurately, including the coupled, nonlinear, intertwined relationships amid voltages, currents, and motor inductances. From these basic equations of the pristine motor, the model for the nascent motors with structural modifications can be deduced appropriately. The other characteristics for those improved versions can always be obtained from the original characteristics even for their nuance in the design structure and/or the material selection [14], [15]. Different modelling approaches are available, namely, the d-q synchronous rotating frame model, the stationary two-axis model [16], the arbitrary reference frame model, the finite element analysis (FEA) patronal neutral network model [17], etc. Researchers in the field of Alternating Current (AC) motor dynamic have vehemently asserted the conduciveness of the synchronous rotating frame model for both research and control problems of motors. The complex time-varying nature of AC motor dynamics becomes much simpler to analyse and control when represented in the rotating d-q frame. Hence the basic dynamic model for any poly phase machine, including the PMSM, is actualised in a two-phase machine analogy, which is well accepted because it enables a straightforward understanding of the working with the two-winding arrangement. The merit of this model is the precise alignment of the magnetic field produced by the stator currents with the desired rotor flux, which enables the prediction of the optimal torque requirement at any loading condition. This leads to the extraction of two-axis currents as Direct Current (DC) quantities.
Amid two categories of permanent magnet motors, i.e., the PMSM and the brushless DC motor (BLDCM), the PMSM does have the sinusoidal back electromotive force (BEMF) while the BLDCM has the trapezoidal BEMF [18]. Additionally, the BLDCM requires a rectangular stator current to produce the smooth electromagnetic torque. Due to the inherent self-controlled operation in the field-oriented control (FOC), the damper winding in the PMSM is not considered gratuitously. Therefore, the basic d-q PMSM model can be obtained from the pristine synchronous machine equations by removing the terms pertaining to the damper winding and the field current. Simple equivalent circuits for two categories of PMSMs, namely, PMSMs with the projecting magnet (surface mount) rotor and the imbedded magnets rotor, along with high-energy rare-earth magnets, have been developed along with experimental verification [19].
Bowen et al. [20] illustrated the model and the simulation study of the PMSM based on the state space technique. Both Park and Clark transformations were employed in deciding the initial conditions wherein their motive was modelling and simulating the space-space controlled six-step inverter fed PMSM drive. Zhang et al. [21] actualised the state-space model and a speed controller for the FOC-inverter drive fed PMSM. Performance differences amid twosome inverter drive mode, i.e., pulse width modulation (PWM)-based operation and hysteresis current controller-based operation, were examined. Even a subtle deviation in the PMSM parameters due to the inaccurate estimation, d- and q-axis inductances, phase angle of stator current and stator winding resistances, can influence electromagnetic torque and rotor speed [22]. Hence, it is commonly recommended to involve FEA for the parameter computation in the dynamic modelling. The model suggested by Dutta and Tripathi [23] has accounted the core saturation and successfully demonstrated the effect of the included core loss resistance in the PMSM performance. The influence of PMSM parameters, namely, stator resistance, flux linkage, d axis inductances and q axis inductances, on the control was recognised during their changes caused by skin effect, magnetic saturation, temperature variations, etc [24]. The necessity of accurate parameter computation was highlighted by involving a Chaotic Gaussian-Cauchy RAO algorithm in the parameter identification process of PMSMs. Deep learning neutral network has improved the parameter estimation of PMSMs more accurately than earlier attempts [25].
However, the motor parameters are easily affected by temperature changes, skin effect, and magnetic saturation, which can lead to poor control performance of the Proportional-Integral-Derivative (PID) controller and thus affect the motor’s operating performance. Therefore, to achieve high dynamic response and high-precision control, accurate motor parameters are needed, and fast and effective parameter identification methods are required to improve the control performance of the entire servo system.
Apart from selecting the pertinent model for the study, deeper knowledge on the model and savvy to customise same is mandatory for researchers due to the reasons below. Researchers need to develop the control structure for the drive system, monitor the system, suggest protective arrangements, and determine the rating of different modules in the application under study. In this study, the synchronous rotating frame-based dynamic model is rekindled for the surface-mounted PMSM. The lucid model developed was schematised in the MATLAB-Simulink platform and customised for obtaining the basic system variables (line voltages/currents, torque, speed, etc.). A formulaic procedure was also suggested in this study for obtaining parameters required for the simulation study from the typical specification tables of the commercial PMSMs. The extracted motor parameters were fed to the schematised model as wells as the built-in PMSM blockset model of the Simulink. As the ultimate focus of this study is to assertion an accurate study platform for the PMSM research, these two motor replications, i.e., the equation-based mathematical replication and the built-in blockset of the Simulink, were critically compared in this study.
2. PMSM
Like any three-phase motor such as the induction motor and the wound rotor synchronous motor (WRSM), the stator of the PMSM does accommodate the three-phase distributed winding. The rotor of the PMSM does have permanent magnets made of rare-earth materials with very high resistivity, which makes the induction in the rotor negligible. The BEMF established by the permanent magnet and the one established by the distributed windings can be considered as the same. This enables that the treatment of the mathematical models of the PMSM and the WRSM is similar. In the PMSM rotor, the magnetic flux is ascertained by permanent magnets, which makes the PMSMs brushless. This brushless excitation not only makes the rotor free from winding arrangements but also helps in increasing the power density, which in turn reduces the size and weight. The absence of rotor copper losses patronages in efficiency enhancement. Amid the variety of PMSM rotor options, the surface-mounted PMSM bestows the merit, i.e., low construction cost compared to its counterpart—the inset type. Due to the chance of detaching the rotor permanent magnets particularly at high rotor speeds, surface-mounted type rotors are not recommended for high-speed applications. The mounting is supported by the saliency created in the core structure, which helps in managing the stress caused by the centrifugal forces. Hence, the associated design can support little higher speed ranges.
3. Mathematical Modelling of the PMSM
A thorough knowledge of the motor design and working and the dynamic model are prerogatives for the engineers practicing in the electric drive field. To have a simplified analysis, the PMSM was modelled in the synchronous reference (d-q) frame of the rotor, which transforms all the variables into DC quantities simultaneously. The PMSM model commonly consists of three sets of equations, namely, the voltage equation set, the flux linkage equation set, and the motion equations. If the PMSM model is derived from the most familiar induction motor model, it will be conducive for the readers. As both constructional and behavioural features of the PMSM stator is identical to that of an induction motor, the d-q axis model of the PMSM stator is the same as that of the induction motor. Figure 1 and Figure 2 show the q and q-axis equivalent circuits of the induction motor.


Figure 3 represents the d-q frame model of the synchronous motor. In the induction motor model, the speed $(\omega)$ of the arbitrary reference frame can be replaced by the rotor speed $\left(\omega_r\right)$ to obtain the model in the rotor synchronous frame. The magnetising inductance of the induction motor, $L_m$ (in H), was replaced with the d- and q-axis magnetising inductances, $L_{d m}($in H$)$ and $L_{q m}$ (in H$)$ of the PMSM. It is worth to note that in case of cylindrical synchronous motors, the d-and q-axis magnetising inductances are equal $\left(L_{d m}=L_{q m}\right)$, while in the case of salient-pole motors, the d-axis magnetising inductance is normally lesser than the q-axis magnetising inductance $(L_{d m} $$<$$L_{q m})$. $L_{l s}$ and $L_{l r}$ are the leakage inductances of the stator and rotor windings, respectively, in $\mathrm{H} ; I_{d m}$ and $I_{q m}$ are currents (in A) in $L_{d m}$ and $L_{q m}$, respectively; $R_s$ and $R_r$ are the stator and rotor resistances, respectively, in $\Omega$; and $I_{d s}$ $\left(I_{q s}\right)$ and $I_{d r}\left(I_{q s}\right)$ are the stator and rotor d (q) axis components of currents, respectively, in A. In the PMSM, the permanent magnets were used to replace the field winding in the WRSM, which can be modelled by an equivalent current source with a fixed current magnitude, If (in A), to have the identical flux linkage, $f$ (in wb), of the WRSM.

The equations for the stator voltages were arrived in terms of the d-axis $\left(V_{d s}\right)$ and q-axis $\left(V_{q s}\right)$ components.
where, $\lambda_{d s}$ and $\lambda_{q s}$ are the d- and q-axis stator flux linkages (in wb), respectively. The flux linkages of the d- and q-axis stator windings can be computed by adding the flux linkages due to their respective excitation and mutual flux linkages caused from other winding's current and excitation current equivalent to permanent magnets.
where, $\lambda_{\text {ris }}$ indicates the flux linkage in rotor (in wb); and $L_{d d}$ and $L_{a a}$ are the d- and q-axis self-inductances (in H), respectively. Relations between the above-mentioned flux linkage and self-inductances are as follows:
With the substitution of Eqs. (3) and (4) in Eqs. (1) and (2) and also considering $d \lambda r / d t=0$ at fixed If and $\lambda r$ values, $V_{d s}$ and $V_{q s}$ can be obtained.
Figure 4 portrays an uncomplicated model for the synchronous motor, which can be obtained from Eqs. (8) and (9). The circuits shown in Figure 4 are straightforward representations of the general d- and q-axis model equations pertaining to the rotor synchronous reference frame.

The electromagnetic torque $\left(T_e\right)$ is the imperative output variable, which governs the dynamics of the motor in terms of the rotor position speed.
where, $P$ is the number of poles. Substitution of the flux linkages in terms of the inductances and current yields the following electromagnetic torque equation in N-m.
where, two terms constitute the electromagnetic torque, namely, the permanent magnet torque component and the reluctance torque component. The first term is constituted by the product of the q-axis current and the flux linkage. The second term is influenced by the product of the difference between the d- and q-axis inductances and currents.
The basic torque balance equation is presented in Eq. (12).
where, $T_L$ is the load torque (in Nm); $J$ is the moment of inertia (in $\mathrm{kg} \cdot \mathrm{m}^2$); $B$ is the viscous friction coefficient ($\mathrm{Nm}-\mathrm{s} / \mathrm{rad}$); and $m$ is the measured speed of the motor. The rotor mechanical speed is given by Eq. (13).
Figure 5 shows the basic block diagram of the PMSM model which have four sub-blocks. These sub-blocks represent the axis transformation, the flux calculation in d-q axes corresponding to d- and q -axis currents and the computation of mechanical variables. The additional feed back block is used to determine the position from the (rotor) speed information. For the input load torque $\left(T_L\right)$ and the three-phase supply voltage $\left(V_a, V_b\right.$, and $\left.V_c\right)$, the model provides the electromagnetic torque and rotor speed as outputs.

4. Obtaining Motor Parameters from the Datasheet
Any motor is a heterogeneous dynamic system, which includes the interaction of electromagnetic and mechanical variables. Typical model equations involve electrical, magnetic, and mechanical parameters of the PMSM. The various electrical parameters and constants are $R_s(\Omega)$, stator inductance $L_s(\mathrm{H})$, BEMF constant $K_b(\mathrm{~V}-\mathrm{s} / \mathrm{rad})$, electrical time constant $\tau \_a(\mathrm{~s})$, etc. The mechanical parameters and constants are J, B, torque constant $K T(\mathrm{Nm} / \mathrm{A})$, mechanical time constant $\tau_{-} m(\mathrm{~s})$, etc. The data of the manufacturer specifications are sometimes insufficient or indirect for incorporating the model in the entirety. The unavailability of the required procedure for obtaining model parameters hindered the study as the direct measurement of few parameters are cumbersome at operating conditions. However, the lingering data can be computed inventively. A formulaic procedure was coined to obtain the required information which is not directly given on the motor nameplate. $R_s$ accounts the per phase resistance obtained between a line and the neutral. It is a common practice that in PMSMs, the neutral of star-connected stator winding is not taken out for the access and thus the resistance has to be measured between line-to-line.
The synchronous axis inductances, $L_d$ and $L_q$, can be obtained from the line-to-line inductance, as two-thirds of $L_{L L}$, respectively, at the rotor angle $\theta$ (electrical) values 0 degree and 90 degrees.
The synchronous inductances of the surface-mounted PMSM are almost equal because the permanent magnets are surface mounted and the reluctance is the same in every position. The BEMF constant, Kb (V-s/rad), was computed by measuring the no-load line voltage induced across the motor’s line terminals while the motor is rotated through its shaft at a constant speed of $\omega m$. For determining the mechanical parameters, $J$ and $B$, several online and offline methods were suggested by researchers [26]. The constant represents the ratio between BEMF and the angular electrical frequency/speed. Table 1 shows the specification of the PMSM used in this study. This kind of 1 hp motors are very attractive in Indian subcontinent and its Ministry of New and Renewable Energy (MNRE) has approved it for solar submergible pumps. The cross-sectional view of a typical PMSM is shown in Figure 6.
Parameter | Symbol (Unit) | Value |
Power rating | Pr (hp) | 1 |
Stator voltage rating | Vs (V) | 220 |
Stator current rating | Is (A) | 3.69 |
Speed rating | Nr (rpm) | 1500 @ 50 Hz |
Torque rating | Tr (Nm) | 2.2 |
Stator resistance | RLL ($\Omega$) | 5.55 |
q-axis inductance | LLL at $900 (\mathrm{mH})$ | 3.285 |
d-axis inductance | LLL at $00 (\mathrm{mH})$ | 3.285 |
Number of poles | P | 4 |
Permanent magnet flux | f (wb) | 0.140 |
BEMFconstant | $\mathrm{Kb}(\mathrm{V}-\mathrm{s} / \mathrm{rad})$ | 36 |
Torque constant | Kt (Nm/A) | 0.60 |
Electrical time constant | e (s) | 2.14 ms |
Mechanical time constant | m (s) | 1.8 ms |
Motor of inertia | J ($\mathrm{kg}-\mathrm{m}^2$) | 0.028 |
Viscous damping coefficient | B (N-s/m) | 0.000334 |

5. Simulation Study and Corroboration of the Developed Model
After performing the comprehensive rekindling of the model and determining appropriate parameters, a systematic schematisation can lead to the verification of the model by comparing the results with the performance of the PMSM Simulink library blockset model after feeding the system parameters. The suggested PMSM model was schematised in the graphical programming platform, Simulink (MATLAB 2018a), using the ordinary differential equation (ODE) solver ode23tb with a start time of 0 s and a stop time of 0.3 s in the variable-step simulation. The mathematical equations were transferred into the Simulink schematic using the appropriate blocks available in the library and the comprehensive design is demonstrated in Figure 7.
The result corresponding to rated output condition is illustrated as a representative case in this section. Figure 8 to Figure 10 demonstrate the results of the model, wherein Figure 8 shows the three-phase supply voltages and their corresponding d-q frame components after the Park-Clarke transformation. The red coloured waveforms belong to the q-axis while the blue coloured ones are the d-axis components. Figure 9 pictures d- and q-axis currents and flux linkage components. Figure 10 presents the response in terms of both electromagnetic torque and speed at the rated operating condition. The results confirm the values of ${Tr}$(2.2 Nm) and $Nr$(1500 rpm).


To facilitate an effective comparison, a dual-model schematic comprising an equation-based model and a Simulink blockset model was developed and is presented in Figure 11. This comparison bestows several interesting results for the ready reference. Figure 12 to Figure 14 show the comparison amid results obtained from the mathematical model and the Simulink blockset model. The red waveform corresponds to the mathematical model while the blue waveform corresponds to the blockset model. The responses of the mathematical model closely match with the blockset model. Table 2 explores the effectiveness of the developed mathematical model by comparing its error (%) and convergence time with the Simulink blockset model. Figure 15 shows the torque and speed responses for the change in the torque reference from 2.2 Nm to 4 Nm at 1 second. In the open loop operation of the model after the transition, both torque and speed settle. Figure 16 and Figure 17 show the representative stator phase currents and their harmonic spectrum, respectively, obtained from the equation model and the blockset model schematics. Both cases have the same total harmonic distortion (THD) as 1.73%. The lowest line current harmonics$\left(5^{\text {th}}\right.$ and $\left.7^{\text {th}}\right)$ are negligibly minimum, which are 0.55% and 0.28%, respectively. The startup transient behaviours of torque and speed are depicted in Figure 18 and Figure 19, respectively, for the equation model and the blockset model. Figure 18 and Figure 19 show the Time Domain Specifications (TDSs).











Metrics | Model | Voltage | Current | Torque | Speed | |||
$V_{d s}$ | $V_{q s}$ | $I_{d s}$ | $I_{q s}$ | |||||
Error (%) | Blockset | - | - | - | - | - | - | |
Equation | 0.41 | 0.29 | 0.18 | 0.18 | 0.15 | 0.17 | ||
Convergence time (ms) | Blockset | 0.107 | 0.130 | 0.121 | 0.132 | 0.138 | 0.141 | |
Equation | 0.078 | 0.092 | 0.062 | 0.080 | 0.071 | 0.091 |
6. Conclusion
The structural configuration of the PMSM closely resembles that of a conventional wound rotor synchronous machine, with the key distinction being the use of embedded permanent magnets for field excitation in place of windings, and the absence of damper windings. The d-q model of the PMSM was obtained from the d-q axis model of the synchronous machine just by removing the terms pertaining to the damper windings and field current variations. The generic mathematical model of the PMSM developed from the fundamental tenet was implemented in MATLAB-Simulink for a specific rating. The suggested simple procedure helps in extracting the required parameters for the simulation study from the typical manufacturer’s datasheet. The comprehensive comparison between the equation model and the Simulink blockset model for the commercially available PMSMs invigorates the practicing engineers in getting deeper dive on the domain. Research on the PMSM model in open loop at both the studied steady state and transient (step changes) state was conducted. The degree of self-resilience of the motor in open loop against perturbations was validated. The accurateness of the rekindled model was ascertained by comparing it with the MATLAB library blockset. Each model block must be contemplated thoroughly and hence the future customisation will be easy. It should be noted that simultaneously achieving high model accuracy and incorporating multiple criteria may be challenging due to potential contradictions. With the developed accurate model, young researchers can develop closed-loop control focusing on design of both inner and outer loop controllers.
The data used to support the research findings are available from the corresponding author upon request.
The authors declare no conflict of interest.
