Disconnecting branches
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
First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
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
# 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])
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
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]
Asked: 2014-03-26 17:17:20 -0600
Seen: 1,274 times
Last updated: Mar 26 '14