Long simulation times with flexible simscape
10 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Rosario La Regina
le 29 Déc 2022
Réponse apportée : dst
le 1 Juil 2024
Hello everybody,
I've been using flexible multibody simscape for a few days.
I have found the simulations to be very slow both using the default bodies and using Reduce Order. is this a common problem?
how can i fix it?
0 commentaires
Réponse acceptée
Praharshita
le 5 Jan 2023
Dear Rosario,
I understand that you are facing an issue of slow simulation using default bodies and reduced order.
This issue can happen in large models combining Simscape and Simscape Multibody. In most cases, this issue has been observed in models where prismatic joints in Simscape Multibody are interfaced with Hydraulic Cylinders from Simscape Fluids.
The root cause of this issue is the size of the numerical perturbation used to compute the solver Jacobian, relative to the amplitude of the state. For this type of model, the perturbation can be too small, leading to numerical noise in the Jacobian computation process.
To view if nominal values could help the numerical robustness of the model, run the simulation through the Solver Profiler and then launch the
If you identify states belonging to Simscape blocks that take very large values, it is recommended that you scale them down using nominal values. See the documentation for how to specify nominal values for individual states or for all the states with a similar unit.
We recommend scaling states so they operate mostly in the -1 to 1 range.
0 commentaires
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur Troubleshooting dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!