Issues with Generating Required Lookup Tables for PMSM in Flux and PSIM
Hi Altair Community,
I am currently working on 1D system modeling for a Permanent Magnet Synchronous Motor (PMSM) and drive through Flux and PSIM. I have encountered a challenge related to the generation of lookup tables needed for iron losses and eddy current losses, which are crucial for the proper functioning of the IPM drive in PSIM.
While trying to generate the .mat file using the Flux e-Machine Toolbox in MS mono-position computation mode (which is the only mode that allows .mat file export), I noticed that the lookup tables for iron losses and eddy current losses are not included in the export. These tables are essential for the IPM drive in PSIM to work correctly.
I came across a macro called LUT_2D_FORSYSTEMANALYSIS.PFM, which can compute these lookup tables, but it requires Bertotti Losses Coefficients to calculate the iron losses. Unfortunately, I do not have these coefficients for the material I am using. The Altair documentation suggests that the Bertotti Losses Coefficients can be found in the BertottiLossesCoefficients.xls file located in the directory: [FLUX INSTALLATION DIRECTORY]\flux\Flux\DocExamples\Tools\BertottiLossesCoefficients\BertottiLossesCoefficients.xls. However, I am unable to locate this .xls file in the specified directory in my installation (Altair v2024.1 Student Version).
Would anyone be able to share this .xls file or suggest an alternative method to access it?
Additionally, when I generate the .mat file through the Flux e-Machine Toolbox, it correctly exports the rotor’s initial position (15° in my case, when "Auto" is selected for the initial rotor position). However, when I use the LUT_2D_FORSYSTEMANALYSIS.PFM script, it calculates the initial rotor position as -104.64°, which is incorrect. I would like to set the initial rotor position to the angle I specified (15°), which I also set in the Mechanical settings for rotor position at t=0.
Is there a way to adjust the script to set the rotor’s initial position as 15°? Alternatively, is there a way to obtain all the required lookup tables directly from the Flux e-Machine Toolbox when generating the .mat file?
Any assistance would be greatly appreciated!
Thank you in advance.
Answers
-
Dear @Khizer321,
PSIM is expecting .mat files from Flux or FluxMotor that include copper and core losses, among other things.
-The process to generate them from Flux/FluxMotor is described here:
https://www.youtube.com/watch?v=W9Zr2s44swU-Then working around them in PSIM is described here:
https://www.youtube.com/watch?v=tjnBcTiI9jw&t=101s
If the issue still persists, I would advise that you contact Altair Support and request support from our Flux experts. You will probably need to share more detailed information, so Altair's support hub would be the place to do that in confidentiality, instead of the forum.
0 -
Hi,
Thank you for the prompt response. As mentioned in the video, I need to use the LUT_2D_FORSYSTEMANALYSIS_nPhases to generate .mat files for PSIM. However, I am unable to find the BertottiLossesCoefficients.xls file in my installation directory as mentioned above. Could you please guide me on how I can obtain this file so that I can calculate the Bertotti Losses Coefficients and run the macro?
If the issue persists after this, I will reach out to Altair support for further assistance from the experts.
Thank you for your help!
0 -
Hello @Khizer321,
You can use material identification tool to do the same and you can refer to an example excel sheet BertottiLossesCoefficients. Xls in installation folder as referred below. "C:\ProgramFiles\Altair\2024\flux\Flux\MaterialIdentification\Bertotti_Fitting_Tool\sources\BertottiModifiedExample.csv".If you cannot find one in the path you can create a new xls file as in the below screenshot. Please be careful about the units. You can also refer to the Youtube video on How to use material identification tool to extract material properties in Altair Flux?Hope this information is helpful.
Best Regards,
Charishma Modem0