I have created a PMSM motor model and wanted to validate the motor that I created with the PMSM motor from simscape motor Blockset. Output Te,speed are different that I get

1 次查看(过去 30 天)
File myFOC_13 is the simulink model.
There are two Motor Models, Topmost model is the created model and the model below is the Simscape model.
I have attached the simulink file (myFOC_13) and .m file for reference.
Figures Attached :
Iabc is shown, it is evident about the difference.
I appreciate a genuine help in figuring out the error.

采纳的回答

Keyur Mistry
Keyur Mistry 2021-7-21
To find out how the equations have been implemented for the motor block, use "Look Under Mask" option.
Right click on the block -> go to "Mask" option -> select "Look Under Mask" (Or select block and use short-cut "Ctrl+U")
If the motor equations are implemented exactly same then we do not expect the difference.
Please add comment if you have any specific query regarding implementation of the equation for the motor block.
  2 个评论
Varun Nair
Varun Nair 2021-7-21
Thanks Keyur.
It really helped to validate if my model had some equational or parameter errors. I think I need to trim and try to implement close to the simscape model. Said that ,my next scope is to load the torque and speed into my workspace and calculate efficiency, and then to plot as 2d using Meshgrid function (Efficiency Mapping). When I tried loading the Speed and Torque its of different sizes. How to trim and them into same size like interpolate or extrapolate?
Keyur Mistry
Keyur Mistry 2021-7-22
I would like to know and understand the workflow you are following to create meshgrid (efficiency vs torque and speed). Please provide following information :-
  1. What variable values you are choosing to calculate efficiency?
  2. Are you using speed array or torque array output from a single simulation of the model? (If yes it should not be correct because speed array is speed w.r.t. time and torque array is torque w.r.t. time. Array will be of different size if sampling rate will be different for speed and torque)
  3. In the model Iq ref is constant hence motor will achieve only one speed. So to get different speeds do you change Iq ref? What different values of Iq ref have been choosen?

请先登录,再进行评论。

更多回答(0 个)

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by