Two-level converter causing computation spike every 3.3 ms
1 view (last 30 days)
Show older comments
I am currently running a real time simulator based on a simulink model. In this model I use the Two-level-converter block available in simulink. The problem I encounter is that every 3.333ms it uses large computational time.
This can be observed in the added picture where you should compare the computation time when using the two-level converter and when using a controlled voltage source (the converter controller is never changed.)
Any idea of what is causing this? (3.333 ms is exactly 6 times in a 50 Hz cycle, 50 Hz is the power system frequency)
Any idea on how to reduce the spikes in computation time?
3 Comments
Joel Van Sickel
on 6 Feb 2023
Can you share your model? Are you using simscape (blue) or specialized power systems (black)? You can also run the profiler in Simulink to see how long a model runs. Can you recreate this problem on desktop? In general, even if something strange is happening with commutation, a fixed step solver should take the same amount of time. The exception to this rule is if somehow a setting it set allowing the solver to iterate. The other difference would be if you are logging significantly more data with the new block, but that would not likely line up with your system frequency.
Answers (0)
Communities
More Answers in the Power Electronics Control
See Also
Categories
Find more on Switches and Breakers 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!