I've bee trying to make a vehicle model to simulate the behaviour of a formula student car using Sumscape Multi body and MFeval.
I can run a simulation and it solves in a reasonable amount of time (5 second simulation takes ~15-20 seconds) however when it reaches 100% complete, simulink hangs and won't respond to any input for a long time (10+ minutes). While I'm waiting for simulink to respond I can still scrub forward and backwards through the timeline in the mechanics explorerer, but every other window is greyed out and won't respond. This includes scope windows and the diagnostic viewer.
I've uploaded a simulink file that gives me the results I'm describing. It's a simple quarter car model that uses the default tir file that comes with MFeval. I'm using simscape multibody to calculate the suspension kinematics and then ideal force sensors and force blocks to apply the resultant tire forces back onto the suspension.
If it helps, Solver settings:
- ode23t (mod. stiff/Trapezoidal)
- Relative tolerance 1e-3
- everything else either auto or the default value.