Change model parameters during simualtion
显示 更早的评论
Hello dear Matlab community,
my problem is that i need to change the model parameters during the simulation. My model is a "Permanent Magnet Synchronous Machine" and before running the simulation I initialize the nessessery things like resistance, inductance etc. But I want to change the inductance during the simulation depending on the current that flows. I have create two 1D-Lookup-Table for the inducatnce. One for Ld und the other on for Lq. The input of this tables are the Id und Iq and the outputs are Ld and Lq. This inductance change i need to put in my motor modell, but i dont now how. Is there any simple solution for my simple problem?
Thank you :)

回答(1 个)
Sam Chak
2022-3-24
0 个投票
This looks like a block in Simulink. If the parameters are preset in the model, it maybe difficult. If MATLAB, maybe I can help.
To create variations in the parameters during the simulation, you can use either the MATLAB function block or the S-function block. If it is a static variation (does not depend on time), then use the MATLAB function block.
If it is a dynamic variation (depends on time), I'd suggest you to write the ODEs of the PMSM in the S-function block.
类别
在 帮助中心 和 File Exchange 中查找有关 Specialized Power Systems 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!