MR damper Bouc-Wen simulink model error

6 views (last 30 days)
William Cawthra
William Cawthra on 11 Nov 2021
Answered: Pratyush Roy on 17 Nov 2021
I was able to run the simulation I created via simulink when I reduced the input amplitude and frequency, but if I increase them, the model throws this error:
An error occurred while running the simulation and the simulation was terminated
Caused by:
  • Derivative of state '1' in block 'bouc_wen/Integrator4' at time 7.5 is not finite. The simulation will be stopped. There may be a singularity in the solution. If not, try reducing the step size (either by reducing the fixed step size or by tightening the error tolerances)
I have attached the file to the model and could use any pointers if anyone knows. As is, the simulation will run as I mentioned above

Answers (1)

Pratyush Roy
Pratyush Roy on 17 Nov 2021
Hi William,
This error occurs when there is an integrator in the Simulink model.
Open Configuration Parameter, set the diagnostic "Inf or NaN block output" to error, you will get the error as follows:
An error occurred while running the simulation and the simulation was terminated
Caused by:
  • Block 'BlockName' outputs 'NaN' for element x of output port x at major time step 7.5
where BlockName is the block in which error is thrown.
This blocks has a divide by zero, which creates a Inf that when fed to an Integrator, generates this error.
So, avoiding division by zero in the logic might mitigate the problem.
Hope this helps!

Products

Community Treasure Hunt

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

Start Hunting!