Ask Your Question
1

Disconnecting branches

asked 2014-03-26 17:17:20 -0600

lmcvey21 gravatar image

Is there a command i can use that will disconnect a branch between two buses, allow me to perform a power flow and then reconnect the branch ?

thanks

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2014-03-26 20:53:38 -0600

Eli Pack gravatar image
# Disconnect branch
psspy.branch_data(101,102,r"""1""",[0,_i,_i,_i,_i,_i],[_f,_f,_f,_f,_f,_f,_f,_f,_f,_f,_f,_f,_f,_f,_f])
# Solve
psspy.fnsl()
# Reconnect branch
psspy.branch_data(101,102,r"""1""",[1,_i,_i,_i,_i,_i],[_f,_f,_f,_f,_f,_f,_f,_f,_f,_f,_f,_f,_f,_f,_f])
edit flag offensive delete link more

Comments

so i have a 14 bus system but not all buses are connected. for example bus one is connected to bus 2 but not to bus 3. Is there some way to check if the buses are connected and if no then perform the above code if not check the next bus an so on? Thanks so much for your help

lmcvey21 gravatar imagelmcvey21 ( 2014-03-27 18:48:55 -0600 )edit

This will give you all branch data: bFrom = psspy.abrnint(sid=-1,owner=1,ties=3,flag=4,entry=1,string="FROMNUMBER")[1][0] bTo = psspy.abrnint(sid=-1,owner=1,ties=3,flag=4,entry=1,string="TONUMBER")[1][0] bId = psspy.abrnchar(sid=-1,owner=1,ties=3,flag=4,entry=1,string="ID")[1][0]

Eli Pack gravatar imageEli Pack ( 2014-03-27 19:11:06 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

Stats

Asked: 2014-03-26 17:17:20 -0600

Seen: 1,274 times

Last updated: Mar 26 '14