MR damper Bouc-Wen simulink model error

9 visualizaciones (últimos 30 días)
William Cawthra
William Cawthra el 11 de Nov. de 2021
Respondida: Pratyush Roy el 17 de Nov. de 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

Respuestas (1)

Pratyush Roy
Pratyush Roy el 17 de Nov. de 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!

Categorías

Más información sobre Event Functions en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by