HOW TO MAKE ODE14X RUN WITHOUT ERRORS?

조회 수: 1 (최근 30일)
Andreas
Andreas 2013년 3월 4일
댓글: doliph 2014년 7월 30일
Derivative input 24 of 'final3opamp/N-Channel MOSFET1' at time 3.0E-7 is Inf or NaN. Stopping simulation. 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).
this is the error I get. I need a discret time solver in order to get the fft of some signals in my system. i use local solver(trapezoidal and backward) but it does nt produce quite good results- it is far too digital-many pulse-like oscillations ocure.
So I only need to run the fixed step ODE14X. any ideas?
thank you for helping.
  댓글 수: 2
Andreas
Andreas 2013년 3월 4일
and when i changed the consistency tolerence to 1e-12 i get this kind of major error (which shows up in many occasions when i try to set the model up)
Steady state solve failed to converge. ...Nonlinear solver: failed to converge, residual norm too large. ......Here is the set of components with unconverged equations: 'final3opamp/N-Channel MOSFET' 'final3opamp/N-Channel MOSFET1'
Andreas
Andreas 2013년 3월 8일
any ideas?

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

답변 (2개)

Guy Rouleau
Guy Rouleau 2013년 3월 8일
Very likely this is because the dynamics in your model is too fast to be captured by the solver step size. You know... the Nyquist criteria.
This article should help moving from variable to fixed step:

ahmed
ahmed 2013년 4월 17일
Mr. Rouleau;
The PDF link was useful....thank you
But, still there is no direct solution to adapt the solver...! or even the system...!
My model is a Hybrid vehicle, including DC motor and Generic engine working together via PSD...the problem arises between the engine and the solver...any idea?
  댓글 수: 1
doliph
doliph 2014년 7월 30일
Hi ahmed,
I am doing a doing a similar simulation to you but for a fully electric vehicle. I am running into the same issues. Were you able to resolve the problem?
Cheers,
Dustin

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

카테고리

Help CenterFile Exchange에서 Simscape에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by