How can I increase the speed of scheme simulation?

1 vue (au cours des 30 derniers jours)
stepa
stepa le 12 Fév 2024
Réponse apportée : Sumukh le 23 Août 2024
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.

Réponses (1)

Sumukh
Sumukh le 23 Août 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:

Catégories

En savoir plus sur Manual Performance Optimization dans Help Center et File Exchange

Produits


Version

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by