Change model parameters during simualtion
Mostrar comentarios más antiguos
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 :)

Respuestas (1)
Sam Chak
el 24 de Mzo. de 2022
0 votos
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.
Categorías
Más información sobre Specialized Power Systems en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!