0

blown up power flow code

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.

Ali's avatar
26
Ali
asked 2017-12-19 16:42:46 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

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

ival = psspy.solved()
perolofl's avatar
3.8k
perolofl
answered 2017-12-20 00:34:31 -0500
edit flag offensive 0 remove flag delete link

Comments

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

SqFKYo's avatar SqFKYo (2017-12-22 01:30:55 -0500) edit
add a comment see more comments

Your Answer

Login/Signup to Answer