Main Content

Import IPMSM Flux Linkage Data from Motor-CAD

This example shows how you can import a motor design from Motor-CAD into a Simscape™ simulation.

Flux Linkage Data

This example shows two approaches to import flux linkage from Motor-CAD. The first approach is to export the flux linkage and iron loss data to a MATLAB® data file using the Motor-CAD saturation and loss map export utility. The ee_import_fem_motorcad_sat_loss_map.m script implements this first approach. The second is to extract data using the Motor-CAD ActiveX interface. The ee_import_fem_motorcad_data.m implements this second approach.

Model

In this test, each winding phase is connected to a 1 megohm resistor. The neutral port is connected to electrical ground to allow non-zero zero-sequence currents. This allows the third harmonic to show up in the back EMFs. Both A-phase and Park's axes fluxes are exported from Motor-CAD, but you must use the A-phase data for higher harmonics to appear in the simulation results.

Simulation Results from Simscape Logging

The plot below shows the simulated open-circuit voltages. Notice the nonlinear back EMF profile that would not be captured if using a simplified PMSM model with fixed back EMF constant.