How can I increase the speed of scheme simulation?

1 view (last 30 days)
A circuit with one asynchronous motor is simulated quite quickly. But if I put another one in succession, then I have to wait at least three hours for five seconds of simulation. How can you speed up simulation time? Maybe it's better to replace some blocks or do I just have a weak computer? For reference, the computer has eight gigabytes of RAM.

Answers (1)

Sumukh
Sumukh on 23 Aug 2024
Hi stepa,
The provided model is stiff and has both fast and slow-changing components. The “Solver” used in the “Configuration Parameters” is not able to solve the model quickly, as “ode45” is a non-stiff solver. When the “Solver” is changed to “auto” mode, Simulink automatically takes up “ode23tb”- a stiff solver and the speed of the simulation picks up. You can refer to the following documentation to learn more about the various stiff solvers available in Simulink:
Stiff models work with less computation cost and more speed using stiff solvers. You can refer to the following documentation to determine the stiffness of a model:

Categories

Find more on Manual Performance Optimization in Help Center and File Exchange

Products


Release

R2023a

Community Treasure Hunt

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

Start Hunting!