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

Ask Your Question
1

Disconnecting branches

asked Mar 26 '14

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

1 answer

Sort by » oldest newest most voted
2

answered Mar 27 '14

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])
link

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 (Mar 28 '14)

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 (Mar 28 '14)

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

Stats

Asked: Mar 26 '14

Seen: 1,292 times

Last updated: Mar 26 '14