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

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.
Randy Chen
Randy Chen 2021년 10월 23일
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?
Randy Chen
Randy Chen 2021년 10월 23일
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.
Randy Chen
Randy Chen 2021년 10월 23일
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.

댓글을 달려면 로그인하십시오.

답변 (1개)

Aqib Memon
Aqib Memon 2021년 10월 23일

0 개 추천

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.

카테고리

도움말 센터File Exchange에서 General Applications에 대해 자세히 알아보기

태그

질문:

2021년 10월 15일

댓글:

2021년 10월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by