Simulation speed reduced when using Simscape PWM Generator

Hello !
Model having LLC resonant converter plant when integrated with a pulse generator using simscape PWM Generator performing extremly slow. !! Without the PWM Generator block model finish the execution quickly. Also, I can observe that when changing the frequency to normal hz range, simulation is speeding up ! but unfortunatly the model need to run at converter resonant frequency (250Khz) any help would be much appreciated.
Attached sreenshot of the model.
Thanks
Sreeraj Arole

답변 (1개)

Joel Van Sickel
Joel Van Sickel 2020년 9월 9일

0 개 추천

Hello Sreeraj,
the speed of your simulation is inversely proportional to the frequency content in it. For instance, if I have a simulation with switching frequency of 1 khz, and resonant frequency of 10 khz, the simulation with resonant frequency of 10 khz, will be 10 times slower than the simulaiton with resonant frequency of 1 khz. It is understandable that you would see a significant slow down when adding your PWM at this has drastically decreased the minimum time step required to simulate it correctly. In order to speed up the simulation, please make sure to use piecwise linear switching devices. If you use a fixed step simulaiton, try using a fixed step 100 times smaller than your switching frequency, and if you are using a variable step solver, please try using odeN with ode14x, and set your step time to 5 to 10 times smaller than your switching frequency.
Here is a starting point for using mathworks tools for power electronics: https://www.mathworks.com/solutions/power-electronics-control/power-electronics-simulation.html
Regards,
Joel

댓글 수: 4

Hello Joel,
Thank you for the support.
Understand simulation time will be slower with increase in frequency content. For my battery charging application to see 5% incerease in Soc I would need at least 36s of simulation and cannot attain 1% of the time unfortunatly !
Curisos to know how much time I should expect for the simulation to complete for 200khz frequency component for 36s simulation time.
Tried reduing the sample time and following error is reported while doing so !
Hello Sreeraj,
I can't give you a specific number for that as it's highly dependent on your computer and complexity of the circuitry and other models.
The error you are getting is because something in your model is not converging. There are multiple causes for this. It could be how the model is set up, or it could be the solver settings. Your previous screen shot showed open loop control, in which case, I would guess that it is solver settings, but I usually see this error when there is a closed loop or ideal switches are being used. Are you able to share your model? If you cannot share your model on this forum, please contact technical support for further help.
Regards,
Joel
Hello Joel,
Thank for the suport.
I am currently runnin the model in open Loop. Currently building Open Loop CLLC resonant converter and using Ideal switches in my model. Would that be causing the issue ? attached model screenshot.
Hello Sreeraj,
unfortunately, the ideal switches usually cause problems because the diode isn't added in parallel. You have added a diode so it is less likely this is the issue. However, you could still try using a mosfet or IGBT block to see if that improved performance.
Regards,
Joel

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Simscape Electrical에 대해 자세히 알아보기

제품

릴리스

R2020a

질문:

2020년 9월 9일

댓글:

2020년 9월 16일

Community Treasure Hunt

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

Start Hunting!

Translated by