Simulink simulation error: solution not finite

I encountered the following simulation error:
I tried reducing the step size in the solver but it doesn't work. How should I fix this?

6 Comments

Sometimes there is just a singularity, and you need to either change the blocks (so you are doing something different), or else you need to change the initial or boundary conditions in a way that avoids the singularity.
I recommend logging (scoping) the output of the signal to see what the trend is.
Hi, here is what happened to the scope of my angle:
It seems like at T=3.5 s, the angle just blew up to an astronomical value. I wonder how I should fix this error?
It doesn't look like I can change the initial conditions for my 'theta' block, because I'm modelling an inverted airfoil, and the initial angle measured from the vertical is pi, and that's consistent with how I derived my equations of motion
I suggest that set the stop time to 3.5 and look at the signal. Flat on the 10^190 scale might be pretty bumpy locally.
It turns out that 3.5 seconds also yields a non-finite result. I changed the stop time to 2.3 seconds, and here is what happened:
\
Does this mean I have to tune my PID gains now?
I am a little confused, in that your original post the error message had a singularity about 1.88 seconds
Sorry, I have never looked at airfoils at all.

Sign in to comment.

Answers (1)

Are you using a fixed time step in your simulation settings? if yes, then try setting it to variable time step and see if it works.

Categories

Find more on General Applications in Help Center and File Exchange

Tags

Asked:

on 15 Oct 2021

Commented:

on 23 Oct 2021

Community Treasure Hunt

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

Start Hunting!