MR damper Bouc-Wen simulink model error
6 次查看(过去 30 天)
显示 更早的评论
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
回答(1 个)
Pratyush Roy
2021-11-17
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!
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 General Applications 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!