During simulation of mathematical model occuring following error

1 view (last 30 days)
Derivative of state '1' in block 'Model/Integrator1' at time 161.23669481078912 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)

Answers (2)

VBBV
VBBV on 28 Aug 2022
Use limit output option for selecting integrator saturation limits. May be in your case, its running indefinitely.
  2 Comments
Kunal Vasudeo Mahajan
Kunal Vasudeo Mahajan on 29 Aug 2022
I changed limits and changed solver too still not getting desirable output.
Can you please help me ?
VBBV
VBBV on 30 Aug 2022
Edited: VBBV on 30 Aug 2022
Add a summer block before the Integrator block and give a feedback loop. It seems your velocity values in scope display block dont seem realistic. There are also no damping and stiffness gains the feedback that need to be connected to summer (adder) block in the feedback

Sign in to comment.


Sam Chak
Sam Chak on 28 Aug 2022
Edited: Sam Chak on 28 Aug 2022
The evolution of the states due to one or some unknown singularity-induced terms (something happened in the feedback loop, not displayed in the image) caused the system to blow up to .
Please check the Equations of Motion for the division-by-zero terms, or the logarithmic or trigometric singularities. A light aircraft probably have the mass of 5,000 kg.

Categories

Find more on General Applications in Help Center and File Exchange

Products


Release

R2022a

Community Treasure Hunt

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

Start Hunting!