Change model parameters during simualtion
2 views (last 30 days)
Show older comments
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 :)
0 Comments
Answers (1)
Sam Chak
on 24 Mar 2022
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.
0 Comments
See Also
Categories
Find more on Block and Blockset Authoring in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!