Thread Subject: simscape simulation

Subject: simscape simulation

From: Tan Chin Yew

Date: 18 Apr, 2011 07:02:04

Message: 1 of 2

i am running a simulation on pv using the simscape,

i think my model is correct.

Then this message's error show up

"Trouble solving algebraic loop containing 'pv_char_1/MATLAB Fcn' at time 0.001. Stopping simulation. There may be a singularity in the solution. If the model is correct, try reducing the step size (either by reducing the fixed step size or by tightening the error tolerances)"


what does it meant?

how can i solve it?

Subject: simscape simulation

From: Arnaud_Miege

Date: 18 Apr, 2011 15:03:59

Message: 2 of 2



"Tan Chin Yew" <hayview@gmail.com> wrote in message
news:iognlc$ssb$1@fred.mathworks.com...
> i am running a simulation on pv using the simscape,
>
> i think my model is correct.
>
> Then this message's error show up
>
> "Trouble solving algebraic loop containing 'pv_char_1/MATLAB Fcn' at time
> 0.001. Stopping simulation. There may be a singularity in the solution. If
> the model is correct, try reducing the step size (either by reducing the
> fixed step size or by tightening the error tolerances)"
>
>
> what does it meant?
>
> how can i solve it?

It means that you have an algebraic loop in your model and the solver can't
solve it. It's difficult to comment any further without seeing the model,
but it seems that you are using a "MATLAB Fcn" block in your model. I would
strongly advise against doing this. This calls into the MATLAB engine at
each time step and is very inefficient. What solver are you using, with
which tolerances? You can find general recommendations on how to deal with
algebraic loops in the Simulink documentation:
http://www.mathworks.com/help/toolbox/simulink/ug/f7-8243.html#f7-19688

If your loops stay within the Simscape environment, then you won't have any
algebraic loops:
http://www.mathworks.com/help/toolbox/physmod/simscape/ug/bqqjdvg-1.html#bqqjdvg-4

HTH,

Arnaud
 

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
simscape Tan Chin Yew 18 Apr, 2011 03:04:08
pv Tan Chin Yew 18 Apr, 2011 03:04:08
rssFeed for this Thread

Contact us at files@mathworks.com