Please take a minute to review and accept our Terms of Use.
Welcome to the PLECS User Forum, where you can ask questions and receive answers from other members of the community.

Many technical questions regarding PLECS are answered on the Technical Solutions page of our website. Tutorial videos, specific application examples, and pre-recorded webinars are available on our YouTube page. Please follow us on LinkedIn for the latest Plexim news.

How to generate FEA data for LUT based PMSM?

0 votes
74 views
I have been trying to create a nonlinear model of a PMSM as stated in this video. https://plexim.com/content/demo-model-video-plecs-lookup-table-pmsm

In the video, it is stated that there is an application note on the Plexin website showing how to import FEA data in PLECS readable form.

The only content related to this I have found is https://www.plexim.com/support/application-examples/948

However, this tutorial/ example does not seem to work.

Is there any tutorials relating to the import of FEA data from third-party software like Motorsolve?
asked Mar 27 by Bijen Mali (12 points)

1 Answer

0 votes
The application note you referenced is dated, as the library model for the Non-Excited Synchronous Machine (Look-up) has a different input data format.

Exploring the machine data used in the "Look-up table based PMSM” demo model might be instructive.  The data is in the look_up_table_based_pmsm_prius_motor_data.mat file. Attached to this post is an Octave script to plot the data so you can better visualize it.

Basically, 2D look-up tables are required for the D and Q axis flux linkages (Psid and Psiq) where the flux linkage values will vary as a function of the D and Q axis currents.  Psid=F(Id,Iq) and Psiq=G(Id,Iq)  where D axis current corresponds to the row and Q axis current corresponds to the column of the table.  Id and Iq are row vectors corresponding to the machine’s operating point.

You can specify incremental inductance tables in the same format.  If you leave the incremental inductance fields blank, then the values will be calculated using the flux linkage data entered.

If you have example output data from MotorSolve I can help you convert the data into the appropriate format.  However we do not have MotorSolve licenses so I cannot guide you through the export process.
answered Mar 28 by Bryan Lieblick (1,909 points)
Thank you for the insight.
As per your suggestion, I have tried visualizing the FEA data obtained using your .m file.

I have included FEA data in the attached Matlab file as well as the plot.
Is there a way to convert this data into the one that is suited to be implemented in PLECs.
The idd and iqq matrices aren't ordered in your data. Here's a bit of code that can resort the data appropriately.  The remaining issue is that the interpolation methods I used to reshape the data do not support extrapolation, so extrapolated data is a NaN in the attached script.

Your idd, iqq data points fill an oval on the id,iq plane. The input data for the model requires a rectangular projection on the id, iq plane (since Id and Iq are row vectors).  I will leave solving the NaN issue to you, but if you stay in the id, iq area of your initial data the model should not run into extrapolation issues.
...