Simscape slower than Specialised Technology in Accelerator mode

1 次查看(过去 30 天)
I am ruing the same model: a three-phase source and diode rectifier and measuring the same signals. It seems that the Simscape model is slower than the Specialised Technology when running in Accelerator mode.
The test code is
Tstop = 2;
Power.Ts = 1e-6;
tic
sim('Rectifier_Simscape');
toc
tic
sim('Rectifier_Specialised');
toc
Files are in the attachment (R2018a).
Results are
Initial run (empty workspace):
  • Elapsed time is 8.078532 seconds.
  • Elapsed time is 5.754597 seconds.
Second run:
  • Elapsed time is 5.905777 seconds.
  • Elapsed time is 4.282237 seconds.
3rd run:
  • Elapsed time is 5.629353 seconds.
  • Elapsed time is 4.345153 seconds.
Is is possible to speed-up the Simscape model?
I plan to expand the model and add dc/dc and dc/ac converters, filters, switches, etc and now even with the passive elements, the Simscape is >30% slower

回答(1 个)

Sabin
Sabin 2023-1-30
First of all the Specialized Technology model is in discrete-time and the Simscape model in continuous-time. Simulation speed in R2022b is similar when using Local solver Partitioning in the Simscape model.
More about how the partitining solver works:

类别

Help CenterFile Exchange 中查找有关 Electrical Systems 的更多信息

产品


版本

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by