SIMULINK model of a mass-spring with discrete external force is stuck

3 views (last 30 days)
I'm trying to implement this Modelica model in SIMULINK to see why it is stuck on OpenModelica. I see that SIMULINK is also not able to finish the simulation though!
Capture222.PNG

Answers (1)

Naman Bhaia
Naman Bhaia on 1 Mar 2019
Hey Foad,
I tried running your model at my end and similarly got stuck at ~29%. It actually isnt stuck, it is just progressing very slowly. Try using any stiff solver by choosing it from Configuration Parameters->Solver.
For more clarification you can visit this page.

Categories

Find more on Simulation in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!