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!