Simulation Running too slow

조회 수: 24 (최근 30일)
Rajendra
Rajendra 2011년 8월 18일
I am trying to do a simple power system simulation. I just need to view the rms value of current. But since, the simulation is running very slow at steps of 1e-8 seconds, I am only getting instantaneous value. How to just solve the circuit for steady state condition? Here is a picture https://lh4.googleusercontent.com/-tBjv-eZlM2I/Tk1auvIklLI/AAAAAAAAA80/YeXeE8z1q0A/s800/too_slow.JPG
  댓글 수: 2
Fangjun Jiang
Fangjun Jiang 2011년 8월 18일
Any particular reason using such a small step size? What is the frequency of the signal that you are simulating?
Rajendra
Rajendra 2011년 8월 19일
I am not using any step. It automatically does that. I simply hit run. Its 60 hz ofcourse.

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

답변 (1개)

Fangjun Jiang
Fangjun Jiang 2011년 8월 19일
I don't have that Toolbox. I remember reading some posts here that the simulation step is variable step. I think you can go to menu Simulation->Configuration Parameters ...Solver to set up the maximum step size. Step size of 1e-8 seems to small. 1e-3 sounds more reasonable.
  댓글 수: 2
Rajendra
Rajendra 2011년 8월 19일
I just tried setting the min step size (which was previously set to auto) to 0.001.
But when simulating, I get this error message
Derivative input 1 of 'transmission/RMS/integ' at time 0.002200000000000017 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).
Fangjun Jiang
Fangjun Jiang 2011년 8월 19일
Okay. There might be some dynamics that require small step size. To find out, you can choose fixed step size and then try-and-error a few times, form 1e-4 to 1e-5, 1e-6, etc.

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by