Deriving a Fast and Accurate PMSM Motor Model from Finite Element Analysis The MathWorks, Inc. 1

Similar documents
Motor-CAD combined electromagnetic and thermal model (January 2015)

CHAPTER 2 MODELLING OF INTERIOR PERMANENT MAGNET SYNCHRONOUS MOTOR

Dynamic Modeling of Surface Mounted Permanent Synchronous Motor for Servo motor application

Project 1: Analysis of an induction machine using a FEM based software EJ Design of Electrical Machines

Inductance Testing According to the New IEEE Std 1812 Application and Possible Extensions for IPM Machines

INDUCTION MOTOR MODEL AND PARAMETERS

Sensorless Speed Control for PMSM Based On the DTC Method with Adaptive System R. Balachandar 1, S. Vinoth kumar 2, C. Vignesh 3

2010 ANSYS, Inc. All rights reserved. 11 ANSYS, Inc. Proprietary

Equivalent Circuits with Multiple Damper Windings (e.g. Round rotor Machines)

Parameter Prediction and Modelling Methods for Traction Motor of Hybrid Electric Vehicle

Step Motor Modeling. Step Motor Modeling K. Craig 1

International Journal of Advance Engineering and Research Development SIMULATION OF FIELD ORIENTED CONTROL OF PERMANENT MAGNET SYNCHRONOUS MOTOR

HIGH PERFORMANCE CONTROLLERS BASED ON REAL PARAMETERS TO ACCOUNT FOR PARAMETER VARIATIONS DUE TO IRON SATURATION

Simplorer and Mechanical. David Twyman Technical Services

Mathematical Modelling of Permanent Magnet Synchronous Motor with Rotor Frame of Reference

A Microscopic Investigation of Force Generation in a Permanent Magnet Synchronous Machine

The synchronous machine (detailed model)

International Journal of Advance Engineering and Research Development

Third harmonic current injection into highly saturated multi-phase machines

Design of low electromagnetic Noise, Vibration, Harshness (NVH) electrical machines using FEMAG and MANATEE software

STAR-CCM+ and SPEED for electric machine cooling analysis

From now, we ignore the superbar - with variables in per unit. ψ ψ. l ad ad ad ψ. ψ ψ ψ

DcMotor_ Model Help File

Finite Element Based Transformer Operational Model for Dynamic Simulations

Speed Sensorless Control of a Long-Stator Linear Synchronous-Motor arranged by Multiple Sections

Control of an Induction Motor Drive

Synchronous machine with PM excitation Two-axis model

ECE 5670/6670 Lab 8. Torque Curves of Induction Motors. Objectives

Lecture 9: Space-Vector Models

Nonlinear Electrical FEA Simulation of 1MW High Power. Synchronous Generator System

Model of a DC Generator Driving a DC Motor (which propels a car)

Prediction of Electromagnetic Forces and Vibrations in SRMs Operating at Steady State and Transient Speeds

Proceedings of the 6th WSEAS/IASME Int. Conf. on Electric Power Systems, High Voltages, Electric Machines, Tenerife, Spain, December 16-18,

Lecture 8: Sensorless Synchronous Motor Drives

Modeling Free Acceleration of a Salient Synchronous Machine Using Two-Axis Theory

Unified Torque Expressions of AC Machines. Qian Wu

Dynamics of the synchronous machine

Modelling of Closed Loop Speed Control for Pmsm Drive

Mechatronics Engineering. Li Wen

Flux: Examples of Devices

Magnetic Saturation and Iron Loss Influence on Max Torque per Ampere Current Vector Variation of Synchronous Reluctance Machine

Behaviour of synchronous machine during a short-circuit (a simple example of electromagnetic transients)

Mathematical Modelling of an 3 Phase Induction Motor Using MATLAB/Simulink

4 Finite Element Analysis of a three-phase PM synchronous machine

Evaluation Method to Estimate Position Control Error in Position Sensorless Control Based on Pattern Matching Method

Master thesis Model-based-design to develop sensorless fan

Mathematical MATLAB Model and Performance Analysis of Asynchronous Machine

Physical Modelling with Simscape Rick Hyde

Different Techniques for Calculating Apparent and Incremental Inductances using Finite Element Method

Anakapalli Andhra Pradesh, India I. INTRODUCTION

Rotary Motion Servo Plant: SRV02. Rotary Experiment #01: Modeling. SRV02 Modeling using QuaRC. Student Manual

1439. Numerical simulation of the magnetic field and electromagnetic vibration analysis of the AC permanent-magnet synchronous motor

Mathematical Modeling and Dynamic Simulation of DC Motors using MATLAB/Simulink Environment

CHAPTER 5 SIMULATION AND TEST SETUP FOR FAULT ANALYSIS

Revision Guide for Chapter 15

Hybrid Excited Vernier Machines with All Excitation Sources on the Stator for Electric Vehicles

Sensorless Field Oriented Control of Permanent Magnet Synchronous Motor

Keywords: Electric Machines, Rotating Machinery, Stator faults, Fault tolerant control, Field Weakening, Anisotropy, Dual rotor, 3D modeling

FEEDBACK CONTROL SYSTEMS

Mathematical Modeling and Dynamic Simulation of a Class of Drive Systems with Permanent Magnet Synchronous Motors

Electromagnetics and Electric Machines Stefan Holst, CD-adapco

Sensorless Sliding Mode Control of Induction Motor Drives

EE 742 Chapter 3: Power System in the Steady State. Y. Baghzouz

DESIGN AND COMPARISON OF FIVE TOPOLOGIES ROTOR PERMANENT MAGNET SYNCHRONOUS MOTOR FOR HIGH- SPEED SPINDLE APPLICATIONS

Research on Permanent Magnet Linear Synchronous Motor Control System Simulation *

magneticsp17 September 14, of 17

ME 3210 Mechatronics II Laboratory Lab 4: DC Motor Characteristics

MATLAB SIMULINK Based DQ Modeling and Dynamic Characteristics of Three Phase Self Excited Induction Generator

Fachgebiet Leistungselektronik und Elektrische Antriebstechnik. Test Examination: Mechatronics and Electrical Drives

ENGG4420 LECTURE 7. CHAPTER 1 BY RADU MURESAN Page 1. September :29 PM

EFFICIENCY OPTIMIZATION OF PMSM BASED DRIVE SYSTEM WALEED J. HASSAN

Implementation of Twelve-Sector based Direct Torque Control for Induction motor

Quanser NI-ELVIS Trainer (QNET) Series: QNET Experiment #02: DC Motor Position Control. DC Motor Control Trainer (DCMCT) Student Manual

PRINCIPLE OF DESIGN OF FOUR PHASE LOW POWER SWITCHED RELUCTANCE MACHINE AIMED TO THE MAXIMUM TORQUE PRODUCTION

JRE SCHOOL OF Engineering

Determination of a Synchronous Generator Characteristics via Finite Element Analysis

Dr. N. Senthilnathan (HOD) G. Sabaresh (PG Scholar) Kongu Engineering College-Perundurai Dept. of EEE

ACOUSTIC NOISE AND VIBRATIONS DUE TO MAGNETIC FORCES IN ROTATING ELECTRICAL MACHINES

Texas A & M University Department of Mechanical Engineering MEEN 364 Dynamic Systems and Controls Dr. Alexander G. Parlos

6 Chapter 6 Testing and Evaluation

Automatic Control Systems. -Lecture Note 15-

Lecture 7: Synchronous Motor Drives

Sensorless Control of a Hub Mounted Switched Reluctance Motor

Robust sliding mode speed controller for hybrid SVPWM based direct torque control of induction motor

Stability Analysis and Research of Permanent Magnet Synchronous Linear Motor

Robust Speed Controller Design for Permanent Magnet Synchronous Motor Drives Based on Sliding Mode Control

Torque Ripple Reduction Using Torque Compensation Effect of an Asymmetric Rotor Design in IPM Motor

Review of Basic Electrical and Magnetic Circuit Concepts EE

MATHEMATICAL MODELING OF OPEN LOOP PMDC MOTOR USING MATLAB/SIMULINK

Simplified Analysis Technique for Double Layer Non-overlap Multiphase Slip Permanent Magnet Couplings in Wind Energy Applications

PERFORMANCE ANALYSIS OF DIRECT TORQUE CONTROL OF 3-PHASE INDUCTION MOTOR

EDEXCEL NATIONALS UNIT 5 - ELECTRICAL AND ELECTRONIC PRINCIPLES. ASSIGNMENT No. 3 - ELECTRO MAGNETIC INDUCTION

Chapter 4. Synchronous Generators. Basic Topology

DTC Based Induction Motor Speed Control Using 10-Sector Methodology For Torque Ripple Reduction

MODELING surface-mounted permanent-magnet (PM)

Analytical Model for Sizing the Magnets of Permanent Magnet Synchronous Machines

ELECTRICALMACHINES-I QUESTUION BANK

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Electric Machines

Permanent Magnet Wind Generator Technology for Battery Charging Wind Energy Systems

Generators for wind power conversion

Transcription:

Deriving a Fast and Accurate PMSM Motor Model from Finite Element Analysis Dakai Hu, Ph.D Haiwei Cai, Ph.D MathWorks Application Engineer ANSYS Application Engineer 2017 The MathWorks, Inc. 1

Motivation Traditionally, workflow of the machine design team and the control team have proceeded separately. DoE on a dyno setup requires an understanding of the machine characteristics and simulation can help determine a minimum number of points to test. Accurate torque ripple profile of a high fidelity machine model facilitates the development of torque ripple mitigation algorithms. 2

Content MathWorks Objective and Workflow Overview Three Levels of PMSM Model Fidelity How to Obtain Saturation + Spatial Harmonics Data Saturation + Spatial Harmonics PMSM Model Structure ANSYS Introduction of Maxwell Equivalent Circuit Extraction (ECE) Model Importing Raw Data from Maxwell Finite Element Result to Simulink Comparison between PMSM model in Simulink and Maxwell (FEA) 3

Content MathWorks Objective and Workflow Overview Three Levels of PMSM Model Fidelity How to Obtain Saturation + Spatial Harmonics Data Saturation + Spatial Harmonics PMSM Model Structure ANSYS Introduction of Maxwell Equivalent Circuit Extraction (ECE) Model Importing Raw Data from Maxwell Finite Element Result to Simulink Comparison between PMSM model in Simulink and Maxwell (FEA) 4

Objective and Workflow Overview ANSYS Maxwell Simulink 5

Objective and Workflow Overview ANSYS Maxwell generates Model_RawData.txt file Process raw data into proper format through MATLAB scripting Bring processed data into Simulink saturation + harmonics motor model structure 6

Content MathWorks Objective and Workflow Overview Three Levels of PMSM Model Fidelity How to Obtain Saturation + Spatial Harmonics Data Saturation + Spatial Harmonics PMSM Model Structure ANSYS Introduction of Maxwell Equivalent Circuit Extraction (ECE) Model Importing Raw Data from Maxwell Finite Element Result to Simulink Comparison between PMSM model in Simulink and Maxwell (FEA) 7

Three Levels of PMSM Model Fidelity Torque Torque Torque Current Current Current Lumped Parameter Saturation Saturation + Spatial Harmonics 8

Lumped-Parameter Model Torque Current 9

Required Parameters Electrical Model v d = Ri d L q pω r i q + L d d dt i d v q = Ri q + pω r L d i d + λ + L q d dt i q ω e = pω r T e = 1.5p λi q + L d L q i d i q T e = K t i q assumes round rotor, L d = L q Mechanical Model d dt ω r = 1 H T e sgn ω r J 0 bω r T J load 10

How to Get Those Parameters? Motor Tests Parameters Identified Identification method Back EMF Test Friction Test Number of Pole Pairs (p) Flux Linkage Constant (λ) Torque Constant (K t ) Viscous Damping Coefficient (b) Coulomb Friction (J 0 ) Calculation Curve fitting Coast Down Test Rotor Inertia (J) Curve fitting DC Voltage Step Test Resistance (R) Inductance (L) Parameter estimation https://www.mathworks.com/company/newsletters/articles/creating-a-high-fidelity-model-of-an-electricmotor-for-control-system-design-and-verification.html 11

id [A] iq [A] 200-200 -400-600 -800 0.2 1500 1000 500 0-500 -1000-1500 0.2 0 0.1 0.1 0 0-0.1-0.1-0.2-0.2-0.1-0.1-0.05-0.05 0 0 0.05 0.05 0.1 0.1 Saturation Model Torque Z 1 Z 1 i [ ] d n v [ ] d n v [ ] q n Calculate Flux [ n d ] d[ n] d[ n 1] TS vd[ n] RSid [ n 1] e[ n 1] q[ n 1] q[ n] q[ n 1] TS vq[ n] RSiq[ n 1] e[ n 1] d[ n 1] q[ n ] [ 1] [ 1] [ n 1] e n q n [ n e ] 1 Z i [ 1] q n d i [ 1] d n 1 Z Z 1 q [v.s] q [v.s] d [v.s] id LookupTable q d [v.s] i LookupTable [ n] [ n 1] T (1/ J)( T[ n] T [ n] B [ n 1]) rm rm S e L rm i [ ] q n Calculate Torque 3 Te[ n] p d[ n] iq[ n] q[ n] id[ n] 22 T [ ] e n [ n] PP [ n] T [ n] e rm Calculate Speed L Current 12

Two Ways to Obtain Saturation Data Current Sensor Torque Sensor IPM Dyno LPF Dyno testing FEA 13

Nonlinear Flux and Current Tables 14

Saturation PMSM Model in Simscape id vd λd vq λq iq Mechanical Eqn. 15

Saturation + Spatial Harmonics Model Torque Current 16

Rotor Position Dependency Animation: flux variation at different rotor position 17

Content MathWorks Objective and Workflow Overview Three Levels of PMSM Model Fidelity How to Obtain Saturation + Spatial Harmonics Data Saturation + Spatial Harmonics PMSM Model Structure ANSYS Introduction of Maxwell Equivalent Circuit Extraction (ECE) Model Importing Raw Data from Maxwell Finite Element Result to Simulink Comparison between PMSM model in Simulink and Maxwell (FEA) 18

How to Obtain Saturation + Spatial Harmonics Data? Current Flux Linkage Rotor Position Torque Sweep in FEA Tool 19

Content MathWorks Objective and Workflow Overview Three Levels of PMSM Model Fidelity How to Obtain Saturation + Spatial Harmonics Data Saturation + Spatial Harmonics PMSM Model Structure ANSYS Introduction of Maxwell Equivalent Circuit Extraction (ECE) Model Workflow of Importing Maxwell ECE model to Simulink Comparison between PMSM model in Simulink and Maxwell (FEA) 20

Saturation + Spatial Harmonics Model Structure in Simulink λd λq θ id iq Te λd θ λq θ 21

Content MathWorks Objective and Workflow Overview Three Levels of PMSM Model Fidelity How to Obtain Saturation + Spatial Harmonics Data Saturation + Spatial Harmonics PMSM Model Structure ANSYS Introduction of Maxwell Equivalent Circuit Extraction (ECE) Model Importing Raw Data from Maxwell Finite Element Result to Simulink Comparison between PMSM model in Simulink and Maxwell (FEA) 22 2016 ANSYS, Inc. May 8, 2017

Content MathWorks Objective and Workflow Overview Three Levels of PMSM Model Fidelity How to Obtain Saturation + Spatial Harmonics Data Saturation + Spatial Harmonics PMSM Model Structure ANSYS Introduction of Maxwell Equivalent Circuit Extraction (ECE) Model Importing Raw Data from Maxwell Finite Element Result to Simulink Comparison between PMSM model in Simulink and Maxwell (FEA) 23 2016 ANSYS, Inc. May 8, 2017

What does ANSYS Maxwell do? ANSYS Maxwell is a premier low-frequency electromagnetic field simulation solution which uses the highly accurate finite element method to solve static, frequency-domain, and time-varying electromagnetic and electric fields. Typical application of Maxwell includes electric machines, transformer, actuator, sensor, etc. FEA Meshing for Induction Machine 2D FEA PMSM Model 3D FEA PMSM Model 24 2016 ANSYS, Inc. May 8, 2017

Objective and Workflow Overview ANSYS Maxwell generates Model_RawData.txt file Process raw data into proper format through MATLAB scripting Bring processed data into Simulink saturation + harmonics motor model structure 25 2016 ANSYS, Inc. May 8, 2017

How to obtain raw data for PMSM model by ANSYS Maxwell? Steps to Generate ECE Model for PMSM Step1: Create Regular FEA Model Step2: Specify Model Resolution ECE3_Model ECER_Model Step3: Run FEA Model to Generate Lookup Table Current & Position Flux & Torque Model_RawData.txt 26 2016 ANSYS, Inc. May 8, 2017

What is Equivalent Circuit Extraction (ECE) Model in ANSYS Maxwell ECE Model - A circuit model based on a lookup table from precomputed Finite Element Analysis result. It is also known as Reduced Order Model (ROM). 27 2016 ANSYS, Inc. May 8, 2017

ECE Models Needed for PMSM ECE3 and ECER Equivalent Circuit Extraction (ECE) Models Needed for PMSM ECE3_Model - Setup the sweeping of currents in three-phase windings ECER_Model - Setup the sweeping of rotor position -- ECE Simulink Model (.txt) 28 2016 ANSYS, Inc. May 8, 2017

ECE3 Model - Setup Sweeping of Current in Three-Phase Winding CurrentSweep: Specify Current Range and Resolution PhAngIntervals: Choose Current Sweep Coordinate System 29 2016 ANSYS, Inc. May 8, 2017

ECE3 Model - Current Sweep Coordinate System Options 1) DQ Coordinate System: 0: positive d & q. 1: positive q, all d. 2: all d & q (default) q 0 2 2 1 1 d d d 2 2 2) αβ Coordinate System 3) Polar DQ Coordinate System q q e.g. PhAngIntervals=16 30 2016 ANSYS, Inc. May 8, 2017

ECER Model - Setup Sweeping of Rotor Position RotAngMax: Maximum rotating angle for sweep for each Id-Iq variation. In balanced cases, a 60 elec. degree sweep is sufficient. Auto d-axis alignment (no need to manually adjust initial rotor position) Slots: enable a separate lookup table for cogging torque. 31 2016 ANSYS, Inc. May 8, 2017

Fast Model Generation Technique - Partial Model Sweeping for Symmetric Structure 60 Degree Phase Symmetry - Duplicate Data from 60 degree segments: PhaseA Reconstruction: A, -B, C, -A, B, -C PhaseB Reconstruction: B, -C, A, -B, C, -A PhaseC Reconstruction: C, -A, B, -C, A, -B One 60 elec. Degree Sweep 360 elec. degree Reconstructed B -A B auto d-axis alignment C A A -B C -C 32 2016 ANSYS, Inc. May 8, 2017

Example Setups- Takes 3 h 30 min single core Id 15 deg/mech. = 60 deg/elec. for an 8 pole machine Current Sweeps: (10*2+1)^2 = 441 Id-Iq variations Id = -300A, -270A,, -30A,0,30A,, 270 A, 300A Iq = -300A, -270A,, -30A,0,30A,, 270 A, 300A Rotor Position Sweep: 0 deg (d-axis), 1 deg, 2 deg, 3 deg,,14deg. 15 rotor positions. For each Id-Iq variation, 15 rotor positions will be swept to reconstruct a 360 elec. degree sweep. Total number of time steps calculated = 441 * 15 = 6615. (About 2 second/step) Iq Rotor Position Torque 33 2016 ANSYS, Inc. May 8, 2017

Content MathWorks Objective and Workflow Overview Three Levels of PMSM Model Fidelity How to Obtain Saturation + Spatial Harmonics Data Saturation + Spatial Harmonics PMSM Model Structure ANSYS Introduction of Maxwell Equivalent Circuit Extraction (ECE) Model Importing Raw Data from Maxwell Finite Element Result to Simulink Comparison between PMSM model in Simulink and Maxwell (FEA) 34 2016 ANSYS, Inc. May 8, 2017

Objective and Workflow Overview ANSYS Maxwell generates Model_RawData.txt file Process raw data into proper format through MATLAB scripting Bring processed data into Simulink saturation + harmonics motor model structure 35 2016 ANSYS, Inc. May 8, 2017

Four Steps in Maxwell_to_MATLAB Script.m Model_RawData.txt Maxwell_to_MATLAB Script.m Simulink Model Step 1: Import Original Raw Data from Maxwell ECE Model. Step 2: Create (Id, Iq, Angle) to (Flux D, Flux Q, Torque) Lookup Table (3D Lookup Table) based on the raw data. Step 3: Create inverse lookup table to get current from flux input. (Flux D, Flux Q, Angle) to (Id, Iq, Torque) Lookup. Step 4: Provide additional Parameters. Initial rotor angle, phase resistance, rotor inertia, friction coefficient. 36 2016 ANSYS, Inc. May 8, 2017

n-d Lookup Table in Simulink There are three Tabs in the n-d Lookup Table block: 1) Table and Breakpoints; 2) Algorithm and 3) Data Types. As an example, the screen shots below show a Table and Breakpoints setup for d- axis flux 3D lookup table. Iq_index, Id_index, Angle_index and Flux_d_ofIdIqTheta are defined in Workspace already. 3D Data Table Flux_d_ofIdIqTheta Iq_index Id_index Angle_index Input indexes for data lookup Fd(Iq,Id,Theta) Output 37 2016 ANSYS, Inc. May 8, 2017

Set up n-d Lookup Table in Simulink Model Structure. 38 2016 ANSYS, Inc. May 8, 2017

Content MathWorks Objective and Workflow Overview Three Levels of PMSM Model Fidelity How to Obtain Saturation + Spatial Harmonics Data Saturation + Spatial Harmonics PMSM Model Structure ANSYS Introduction of Maxwell Equivalent Circuit Extraction (ECE) Model Importing Raw Data from Maxwell Finite Element Result to Simulink Comparison between PMSM model in Simulink and Maxwell (FEA) 39 2016 ANSYS, Inc. May 8, 2017

Objective and Workflow Overview ANSYS Maxwell generates Model_RawData.txt file Process raw data into proper format through MATLAB scripting Bring processed data into Simulink saturation + harmonics motor model structure 40 2016 ANSYS, Inc. May 8, 2017

Comparison between Simulink model and Maxwell FEA model: Four cases to compare current, flux, and torque waveform. 1. Open circuit 2. Sinusoidal winding current input 3. Voltage input under constant rotor speed 4. Voltage input with mechanical dynamic (Starting of PMSM) Simulink model Maxwell FEA model 41 2016 ANSYS, Inc. May 8, 2017

Example Prius IPM motor Open circuit Cogging torque & Back EMF Simulink Result Maxwell Result Simulink result is compared with Maxwell result. The results are very close. Inverse lookup is successful. 42 2016 ANSYS, Inc. May 8, 2017

Sinusoidal winding current input Torque ripple Simulink Result Maxwell Result Simulink result is compared with Maxwell result. The results are identical. Data transfer is successful. 43 2016 ANSYS, Inc. May 8, 2017

Voltage input under constant rotor speed Electrical Transient Simulink Result Maxwell Result Simulink result is compared with Maxwell result. The results are very close. Motor phase resistance is considered. 44 2016 ANSYS, Inc. May 8, 2017

Voltage input with mechanical dynamic Mechanical & Electrical Transient Simulink Result Maxwell Result Simulink result is compared with Maxwell result. The results are very close. Mechanical dynamic is considered. 45 2016 ANSYS, Inc. May 8, 2017

Key Takeaways: ANSYS Maxwell can perform sweeping and generate raw machine data. Raw machine data can be processed and brought into Simulink for high fidelity machine modeling. High fidelity machine model is an accurate representation of the actual machine and it runs really fast in Simulink. 46 2016 ANSYS, Inc. May 8, 2017