You are currently viewing a new version of our website. To view the old version click .
World Electric Vehicle Journal
  • Article
  • Open Access

Published: 24 December 2021

Co-Simulation and Modeling of PMSM Based on Ansys Software and Simulink for EVs

and
1
School of Automotive Engineering, Wuhan University of Technology, Wuhan 430070, China
2
Hubei Key Laboratory of Advanced Technology for Automotive Components, Wuhan University of Technology, Wuhan 430070, China
3
Hubei Collaborative Innovation Center for Automotive Components Technology, Wuhan 430070, China
*
Author to whom correspondence should be addressed.

Abstract

Electric vehicles (EVs) should have an electrical motor with high efficiency, high power density, and a wider constant power operating region, as well as ease of control and inexpensive manufacturing cost. To achieve these requirements, a real-time control-oriented electric motor model is essential. A co-simulation method based on Ansys software (Maxwell and Twin Builder) and MATLAB/Simulink for Permanent Magnet Synchronous Motor (PMSM) model is presented, which can improve the design of the PMSM and evaluate its performance by Rotating Machine Expert (RMxprt) when any slight modification of parameters and output inaccuracy occur. The PMSM drive system under different input reference speeds was analyzed by simulation, which testified that co-simulation of the magnetic and electrical domain is necessary to capture all applicable effects. The simulation results show the good feasibility of the motor model and control method, which achieves the desired effect and fast response with a small torque ripple as well. Such a developed prototype allows both accurate and simple characterization and optimization to be made possible.

1. Introduction

Due to the fact that air pollution has become a global problem, alongside economic issues, governments and academical institutions have been making progress to establish a clean, efficient, and environmentally sustainable urban transportation system that uses electric vehicles (EVs) [,]. EVs have the potential of having major impacts on energy, the climate and transport, as well as on the advancement of hi-tech, the creation of new industries, and economic development. EVs have been known as the main direction of the automotive industry’s transformation and development in the 21st century []. The main technologies for the production of EVs include body design, energy system and management, motor drive system, and system-level optimization. In body design, aerodynamics drag will be considered to give a vehicle on the road a better performance. The motor drive system, which consists of three main components (control, power converter, and motor), is an essential part because it is a power conversion unit that has a significant impact on the performance of EVs. The DC motor drive was initially adapted in EVs but its commutator and brush require regular maintenance. However, with the advancement of motor drive control engineering, computer technologies, and permanent magnet materials, many proposed advanced motor drive technologies, such as induction motors, permanent magnet synchronous motors (PMSM), and switched reluctance motors (SRM), now offer better performance than DC motors []. For several years, the study of high-performance drive motors for EVs has therefore been a research priority []. Among them is the PMSM, a rotating synchronous machine with permanent magnets on the rotor and a three-phase stator with sinusoidal distributed windings, which is a competitive alternative over traditional AC motor for EVs []. Their main advantages include high efficiency, which is due to the use of permanent magnets for excitation that consume no power, and high-power density which can produce high flux densities and high torque. A synchronous electric motor drive utilizing permanent magnets uses the finite element analysis (FEA) technique to estimate the motor’s electromagnetic parameters. This is accomplished via the use of Ansys Maxwell/Simplorer, which allows the integration of FEA-generated models into a system simulation []. Several components, such as electrical machines, which are comprised of nonlinear dynamic systems, should be modeled using FEA in order to accurately represent the device’s output. Software tools based on the FEA method are flexible for dynamically linking with the external control drive circuit simulator. After having an understanding why electric motors are of great interest, this study deals with a brief overview of the state of the art, as follows: first looking at the PMSM and second the controls. Knowing the state of the art of the PMSM motor and its controls, the next step will deal with a technical bibliography for detailed modeling and valid system simulation as well as the controls of PMSM, which is an essential step before implementing the controls in experiment. Many measurements must be determined when designing a motor, but the main and decisive element is the motor’s size, since proper functioning of the motor and the required flux induction depends on the area involved. This paper chose a pear-shaped groove because it can minimize core loss and pulsating loss effectively, and because its groove area usage rate is high. In the design to decrease the torque ripple, the PMSM’s electromotive force and torque ripple waveforms must also be considered. As a result, the flux density of the air gap should be under the saturation limit to avoid an increase in cogging torque.
Various research has conducted FEA analyses on the PMSM drive. Sun et al. [] considered the PMSM design, analysis, and optimization for EVs being used for campus patrols with such a specific drive cycle. The coupling of Ansys and MATLAB software for precise design and optimization of systems is shown in []. The motor model in Maxwell 2D, power converter model in Ansys Simplorer, and MATLAB/Simulink for the control model comprise the drive’s system model. Chen and Zhou [] proposed a co-simulation technique for modeling brushless DC motor speed control systems based on Maxwell, Simplorer, and Simulink. Wu et al. [] use a Finite-Element Method (FEM) coupled field-circuit to present an efficiency optimization method for PMSM drive in hybrid electric vehicle or electric vehicle application. Ansys created a 2D-Maxwell FEM model of a 15 kW PMSM, while Simplorer created a model of a vector control circuit. A typical HEV is designed and analyzed using VHDL-AMS, one of the hardware description languages, for simulation and modeling of PMSM utilized in electric vehicles, modeled and investigated in []. Kachin et al. [] discuss how to simulate PMSM using numerical methods implemented in Ansys 2D-Maxwell and Simplorer. In this article, the complete model is comprised of an inverter produced in Simplorer and a PMSM constructed in Maxwell. The vector control has been mentioned [,], which was deployed on PMSM. Performance of the vector control is a perfectly acceptable method of getting rapid response, even at extremely high-speed ranges. FEA software tools, such as Ansys Maxwell, AMESim, JMAG and Cedrat Flux, allow co-simulation with external drive control software, such as MATLAB-Simulink, PSpice, and PSIM. Basnet and Pillay [] present a co-simulation platform based on JMAG and MATLAB for a variable flux PMSM of an electric vehicle motor. The co-simulation results were compared with a conventional (dq-mathematical model) simulation, and the experimental tests show a more highly accurate result. In the above published literature, PMSM modeling and simulation were presented, and used different software to obtain high performance and precision. However, none of them have considered a co-simulation with a double closed-loop control algorithm (FL and PI controller), based on Ansys and MATLAB, to overcome the difficulty to control PMSM, since they show nonlinear dynamic behavior that varies in time.
The aim of this paper is therefore to develop a novel alternative for the modeling and simulating of PMSM and its control for electric vehicles, using Ansys and MATLAB. With this goal in mind, a valid model including the PMSM’s dynamics and electrical principles was developed, resulting in useful system observations and the best method to solve the optimization time problem.
Overall, the structure of this paper comprises five sections. In Section 2, the modeling of a PMSM and power circuit using Ansys is mentioned. Section 3 presents the design of the control structure by using Twin Builder and Simulink. Section 4 shows the motor performance after performing simulation. Section 5 presents the conclusion.

2. Model of PMSM

2.1. PMSM

The permanent magnet synchronous motor (PMSM) is designed better now, since the emergence of new magnetic and earth materials has increased. These materials’ magnetic properties allow them to be used in highly energy-efficient and high-performance drives. Because of its high energy density, low expense, and ease of availability, neodymium-iron-boron (NdFeB) is mostly utilized. The PMSM motor construction is compact and robust. The motor is a synchronous AC motor with a salient pole and with sinusoidally distributed windings, so the motor is fed with a sinusoidal wave supply. To design a PMSM motor for EVs, the calculation of power output and speed range are a main preliminary work. These main parameters are strongly corelated to the motor size, speed parameters, drive system of researched EVs, and road conditions. Therefore, it is essential to correctly evaluate the PMSM parameters. If the rated power becomes too low, the motor will be overloaded for a long time. On the other hand, if the rated power becomes too large, the motor will be underloaded, resulting in reduced efficiency and power factor. The permanent magnets are placed in a synchronous motor on the rotor core that has the same function as field winding. Here, DW315-50 is adopted according to the theory of high magnetic conductivity, low electrical conductivity, and an effective decrease in hysteresis and eddy current losses of the magnetic field in the stator and rotor core.

2.2. FEA Model of PMSM (Ansys Maxwell)

The PMSM model was first developed using the Ansys Electronics Desktop Suite magnetic circuit method. RMxprt enables rapid implementation of basic motor design and performance evaluation, reduction in the motor’s design space, and development of the motor’s Maxwell two-dimensional (2D) finite element model, as seen in Figure 1. Maxwell is a rotary motor design software solution that is capable of quickly calculating the performance indicators of a variety of motors (synchronous motors, induction motors, mechanical, or electronic commutation motors, etc.). In the process of using RMxprt, the user should specify the motor’s stator and rotor diameter, slot, iron core length, insulation, winding, and some other related parameters, as well as the size of the permanent magnet with the material type []. PMSM design involves a variety of parameters, including electrical (inductance, resistance, back emf, and current), geometric (outside/inside radius of rotor, outside/inside radius of stator, and stator back) and magnetic. While designing, some parameters must be fixed, which is under the control of the designer. After observing the motor for varying stack lengths, top tooth widths, rotor structures, and steady state characteristics, the design is optimized. Design calculations were performed using the motor’s specified rating and a few assumptions. Additionally, the user defines boundary conditions and mesh division (the software’s automated meshing is very rough, resulting in inaccurate calculation results) to accomplish the desire for increased efficiency. Finally, the Maxwell model is imported to the Ansys Electronic Desktop platform for further processing and co-simulation [].
Figure 1. RMxprt and Maxwell 2D Model.
The main structural parameters of PMSM are shown in Table 1, Table 2 and Table 3.
Table 1. Stator Specifications.
Table 2. Rotor Specification.
Table 3. PMSM Specifications.

4. Simulation Result

Through Maxwell, Twin Builder, and Simulink, a dynamic model and control structure of permanent magnet synchronous motor (PMSM) is proposed. In the Twin Builder environment, the simulation model components are interconnected to each other. The PMSM parameters are as follows: the stator resistance of 0.448 Ohm, the inductance 0.080378 mH, the rotational inertia of 0.067 kg/m2 and IGBT switch frequency of 10 kHz with the initial given speed of 1000 rpm, set the rotational speed to jump to 1500 rpm at the 30 ms and 2500 rpm at the 60 ms, then run the simulation model for 100 ms to get the simulation results of the phase current, phase voltage, electromagnetic torque waveforms, flux-linkage, and d- and q-axis currents. It took 7 h 31 min to run the simulation for a minimum time step of 10µs and maximum time step of 0.1 ms, with the system configuration of 8 GB RAM, i7-4710 CPU @ 2.50 GHz processor. As can be seen from the simulation, the torque waveform is shown in Figure 7, the motor is seen to be in the unbalanced zone for up to 1.08 ms at 30 ms and 1.36 ms at 60 ms, then stabilizes with the lowest value of 65 N m and 42 N m, the highest torque value being about 70 N m and 46 N m, and the average value being about 68 N m and 44.5 N m, with the torque ripple of less than 10%. Therefore, it could maintain the electric car stationarity while it is running. The three-phase input current and voltage outputs of the PMSM drive are shown in Figure 8 and Figure 9, which shows non-sinusoidal waveforms at the start and at the time of speed change, but becomes sinusoidal after reaching steady state, thus confirming that it is sinusoidal. The voltage and current should have a 120° phase difference and equal magnitude with one another for the purpose of generating an appropriate rotational flux, which is consistent with theoretical theories. The stator currents measured with these voltages show the characteristic transient waveforms found in every article modelling PMSM. The simulation also calculates the flux linkage values across the three phase conductors in the stator. Figure 10 illustrates each determined value from the simulation. Figure 11 shows the waveform of current of d- and q-axis, which settles down after an average of 1.2ms because of the increase in the speed. Currents along the d- and q-axes might vary rapidly depending on the reference speed characteristics. It is important to note the sudden shift in all of these waveforms at 30 and 60 ms, when the speed increases. With regard to control currents, it is recognized that the q-current has the same waveform as the electric torque, showing the relationship between torque and q-current is linear.
Figure 7. Output Torque waveform.
Figure 8. Phase Current waveform Ia, Ib, Ic.
Figure 9. Phase Voltage waveform Va, Vb, Vc.
Figure 10. Flux-linkage.
Figure 11. Current Iq and Id waveform.

5. Conclusions

The modeling and control system simulation of the permanent magnet synchronous motor (PMSM) was developed, and Ansys software was used to perform finite element analysis (FEA). To begin, a Maxwell (2D) model of the PMSM is produced by using the RMxprt program in Maxwell to create a geometric model of the PMSM based on the motor’s actual size and parameters for FEA. Then, using Simulink, a double closed-loop control unit was developed using the PMSM speed FL controller and current PI controller. Finally, utilizing the three software platforms (Simulink, Twin Builder, and Maxwell), the co-simulation model was created in the Twin Builder environment. The simulation results demonstrate that the co-simulation model presented in this study can react rapidly with an imbalanced operation zone of less than 2 ms to achieve steady state and thereafter function stably. This suggested control method, including inner current control and outer speed control utilizing the FL controller, was not tested experimentally due to COVID-19 and the lockdown that followed.

Author Contributions

C.D. made a substantial contribution to the following tasks of the research: conceptualization, funding acquisition, project administration, supervision, and writing—reviewing and editing. T.K.M. participated in the design of the motor, methodology, and writing—original draft. All authors have read and agreed to the published version of the manuscript.

Funding

This work was financially supported by the Natural Science Foundation of China (51775393), the 111 Project(B17034) and the Technology innovation plan of Hubei Province, China (2018AAA053).

Institutional Review Board Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Hassouna, F.M.A.; Nassar, R.; Tubaleh, H. Electric Vehicles as an Alternative to Conventional Vehicles: A Review. Int. J. Adv. Sci. Technol. 2020, 29, 5695–5701. [Google Scholar]
  2. Mohammadi, F.; Nazri, G.-A.; Saif, M. Modeling, Simulation, and Analysis of Hybrid Electric Vehicle Using MATLAB/Simulink. In Proceedings of the 2019 International Conference on Power Generation Systems and Renewable Energy Technologies (PGSRET), Istanbul, Turkey, 26–27 August 2019; pp. 1–5. [Google Scholar]
  3. Iwai, A.; Honjo, S.; Suzumori, H.; Okazawa, T. Development of traction motor for new zero-emission vehicle. In Proceedings of the 2018 International Power Electronics Conference (IPEC-Niigata 2018-ECCE Asia), Niigata, Japan, 20–24 May 2018; pp. 2066–2072. [Google Scholar]
  4. Chau, K.; Chan, C.C.; Liu, C. Overview of permanent-magnet brushless drives for electric and hybrid electric vehicles. IEEE Trans. Ind. Electron. 2008, 55, 2246–2257. [Google Scholar] [CrossRef] [Green Version]
  5. Namiki, K.; Murota, K.; Shoji, M. High Performance Motor and Inverter System for a Newly Developed Electric Vehicle; SAE Technical Paper: Warrendale, PA, USA, 2018. [Google Scholar]
  6. Bilgin, B.; Liang, J.; Terzic, M.V.; Dong, J.; Rodriguez, R.; Trickett, E.; Emadi, A. Modeling and analysis of electric motors: State-of-the-art review. IEEE Trans. Transp. Electrif. 2019, 5, 602–617. [Google Scholar] [CrossRef] [Green Version]
  7. ANSYS. Ansys Mawell: Low Frequency Electromagnetic Field Simulation. 2020. Available online: https://www.ansys.com/Products/Electronics/ANSYS-Maxwell (accessed on 16 December 2021).
  8. Sun, X.; Shi, Z.; Lei, G.; Guo, Y.; Zhu, J. Analysis and design optimization of a permanent magnet synchronous motor for a campus patrol electric vehicle. IEEE Trans. Veh. Technol. 2019, 68, 10535–10544. [Google Scholar] [CrossRef]
  9. Schulte, C.; Böcker, J. Co-simulation of an electric traction drive. In Proceedings of the 2013 International Electric Machines & Drives Conference, Chicago, IL, USA, 12–15 May 2013; pp. 974–978. [Google Scholar]
  10. Chen, X.; Zhou, J. Co-simulation based on Maxwell and Simulink of brushless DC motors. Electron. Des. Eng. 2015, 23, 1–4. [Google Scholar]
  11. Wu, J.; Wang, J.; Gan, C.; Sun, Q.; Kong, W. Efficiency optimization of PMSM drives using field-circuit coupled FEM for EV/HEV applications. IEEE Access 2018, 6, 15192–15201. [Google Scholar] [CrossRef]
  12. Jaber, K.; Fakhfakh, A.; Neji, R. Modeling and simulation of high performance electrical vehicle powertrains in VHDL-AMS. In Electric Vehicles–Modelling and Simulations; IntechOpen: London, UK, 2011; Available online: https://www.intechopen.com/chapters/19572 (accessed on 19 December 2021).
  13. Kachin, O.S.; Kiselev, A.V.; Serov, A.B. Research of operation modes of the synchronous electric motor drive system with use of software ANSYS maxwell and simplorer. In Proceedings of the 2014 15th International Conference of Young Specialists on Micro/Nanotechnologies and Electron Devices (EDM), Novosibirsk, Russia, 30 June–4 July 2014; pp. 362–364. [Google Scholar]
  14. Xu, K.; Chen, W.; Xu, Y.; Gao, M.; He, Z. Vector control for PMSM. Sens. Transducers 2014, 170, 227. [Google Scholar]
  15. Xi, D.; Li, X.; Zhang, Y. The Vector Control System Design of PMSM Based on DSP Motor Controller. 2017. Available online: https://www.degruyter.com/document/doi/10.1515/9783110540048-060/html (accessed on 16 December 2021).
  16. Basnet, B.; Pillay, P. Co-simulation Based Electric Vehicle Drive for a Variable Flux Machine. In Proceedings of the 2020 IEEE Transportation Electrification Conference & Expo (ITEC), Chicago, IL, USA, 23–26 June 2020; pp. 1133–1138. [Google Scholar]
  17. Chen, Q.; Wei, J.; Zeng, F.; Xiao, Q.; Chen, H. Design and analysis of driving motor system for hybrid electric vehicle. J. Vibroeng. 2020, 22, 437–450. [Google Scholar] [CrossRef]
  18. Huang, Q.; Huang, Y.; Zhang, F.; Chen, Y.-C. Co-simulation of Hybrid Power Plant of Electric Drive System for Armored Vehicles. Acta Armamentar 2008, 29, 11–14. [Google Scholar]
  19. Virani, V.; Arya, S.; Baria, J.C. Modelling and Control of PMSM Drive by Field Oriented Control For HEV. In Proceedings of the Advances in Power Generation from Renewable Energy Sources (APGRES) 2019, Banswara, India, 11–12 February 2019. [Google Scholar]
  20. Kallio, S.; Andriollo, M.; Tortella, A.; Karttunen, J. Decoupled dq model of double-star interior-permanent-magnet synchronous machines. IEEE Trans. Ind. Electron. 2012, 60, 2486–2494. [Google Scholar] [CrossRef]
  21. Cash, S.; Zhou, Q.; Olatunbosun, O.; Xu, H. A Robust Fuzzy Logic Field-Oriented Control Scheme for Hybrid and Electric Vehicles. In Proceedings of the 4th Biennial International Conference on Powertrain Modelling and Control Testing, Loughborough, UK, 10–11 September 2018. [Google Scholar]
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.