First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!

Ask Your Question
0

psspy tree PSSE command API

asked Nov 21 '16

Power_System_Engineer gravatar image

What's the best way to check for island buses? I found the psspy.tree(1,0) but unfortunately, if there are no island buses, it throws an error when I change the option to 2 to disconnect all island buses. What I would like to do is check if there are island buses not equal to zero, then execute the psspy.tree(2,1).

1 answer

Sort by » oldest newest most voted
0

answered Nov 21 '16

perolofl gravatar image

updated Nov 22 '16

The easiest way to disconnect all island buses is to use API island!

ierr = psspy.island()

ierr shows the number of tripped islands

link

Comments

That works great if there are island buses, but it is throwing me an ierr = 1 which indicates that there are no island buses. So how would I check if there are island buses or not and if so then invoke the psspy.island()? Ok nvm I figured it out. Thanks for your help!

Power_System_Engineer gravatar imagePower_System_Engineer (Nov 22 '16)

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: Nov 21 '16

Seen: 1,459 times

Last updated: Nov 22 '16