Simscape slower than Specialised Technology in Accelerator mode
조회 수: 2 (최근 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
댓글 수: 0
답변 (1개)
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:
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Electrical Systems에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!