필터 지우기
필터 지우기

simulink model running acceleration

조회 수: 1 (최근 30일)
d d
d d 2015년 4월 8일
편집: d d 2015년 4월 9일
Hi everyone,
I have problems with running my simulink model, it's a multi-generator system, all are defined by mathematic models and constructed by user defined functions and other Matlab-imbedded models. However, the simulation run very slowly. Since not all the states of the generators are stable and I doubt whether that's the question but when I reduce the number of the generators, it works. Could anyone give me some suggestions on how to accerlate the simulation. Many Thanks!!

답변 (1개)

Sebastian Castro
Sebastian Castro 2015년 4월 8일
Some ideas, assuming you're using SimPowerSystems Specialized Technology:
  1. Do you see any warnings displayed in the diagnostic viewer (or command window, if it's an older version) when you simulate the model? For instance, anything related to algebraic loops, zero crossings, etc.? If so, those should be addressed as they can significantly slow down the simulation.
  2. What solver are you using for your model? Is it set to ode23tb ? This is the solver that works best, and other solvers (like the default ode45 ) will really slow you down.
  3. Do you have any power electronics devices in your model? If not, you can try switching to phasor simulation mode. Even switching from a continuous to discrete simulation mode in powergui can sometimes speed up your simulation.
  4. Have you tried using Accelerator and Rapid Accelerator modes to speed up your simulation using code generation? Don't worry, this doesn't need any extra licenses beyond Simulink.
- Sebastian
  댓글 수: 1
d d
d d 2015년 4월 9일
편집: d d 2015년 4월 9일
I tried to use the ode23tb solver and disabled zero-crossing control. However, when the running time reached to some point, in my case, around 0.28 seconds. it just froze there, more precisely speaking, the command window displayed the warning message shown in the picture attached(the consecutive times value keep increasing).It seems the solver tried to reduce the step size to achieve the error tolerance.But even I changed it to higher values and decrease the minimum step size. The error occured too. I am wondering what caused it? Thanks for your kind help!

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

카테고리

Help CenterFile Exchange에서 General Applications에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by