using Battery Voltage in Algebraic Loops

조회 수: 4 (최근 30일)
Ki Kon
Ki Kon 2013년 11월 19일
댓글: Ki Kon 2013년 11월 20일
I'd like to study the dis/charging characteristics of MATLAB/Simulink/Battery model in some condition I want.
dis/charging current is calculated by dividing reference power by battery voltage.
but i received below message
Algebraic state in algebraic loop containing 'file name' computed at time 0.0 is Inf or NaN. There may be a singularity in the solution. If the model is correct, try reduction the step size (either by reducing the fixed step size or by tightening the error tolerances)
how can i use the value without any error? plz, help.

답변 (1개)

A Jenkins
A Jenkins 2013년 11월 19일
You most likely have an algebraic loop because you are trying to use the value of the battery voltage in a calculation for the current, but the battery voltage cannot be calculated until the value of the current is known.
The simplest (but maybe not the best) way to get around this for now would be to calculate the current using the "old" value of battery voltage. To do this, you can put a memory block right before your use of voltage in your current calculation. Then it will use the previous value of battery voltage to calculate the new current, and then use the new current to calculate the new battery voltage, etc.
To give any better advice, I think we would need to see your model.
  댓글 수: 1
Ki Kon
Ki Kon 2013년 11월 20일
That's what I want. Thank U so much!!

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

커뮤니티

더 많은 답변 보기:  Power Electronics Community

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by