Ask Your Question
0

blown up power flow code

asked Dec 19 '17

Ali gravatar image

Hello Everyone,

Let's say I use ierr = psspy.fnsl() to run power flow and the power flow does not converge or blows up. How can I distinguish between these cases? ierr returns 0 for a converged or a blown up case.

Any help is appreciated.

Thank you very much.

1 answer

Sort by » oldest newest most voted
1

answered Dec 20 '17

perolofl gravatar image

Use API solved to check the result of the last solution attempt. I.e.:

ival = psspy.solved()
link

Comments

As a detail: Blown up generally means solved returns value of 2, 1 might be still ok, 0 is completely fine.

SqFKYo gravatar imageSqFKYo (Dec 22 '17)

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.
Want to format code in your answer? Here is a one minute demo on Youtube

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: Dec 19 '17

Seen: 998 times

Last updated: Dec 20 '17