Display report of branch with phyton
How can display a report in PSSE only selecting the any branches that I want wiht MW or MVR? for example if a bus connecting five branches I want to show me only two
First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
How can display a report in PSSE only selecting the any branches that I want wiht MW or MVR? for example if a bus connecting five branches I want to show me only two
I am doing branch reports with python. Have written functions that retrieve information about branch, and later just construct report the way I like, e.g.:
def GetBranchMVA(bus1,bus2,id):
e, mva = psspy.brnmsc(bus1,bus2,id,"MVA")
if e==0:
return mva
else:
return 0
branches=[[6704,6886,"1"],[6740,6885,"1"]]
l_branches=len(branches)
for i in range(l_branches):
mva=GetBranchMVA(branches[i][0],branches[i][1],branches[i][2])
s=str(i+1)+". "+str(branches[i][0])+"-"+str(branches[i][1])+"-"+str(branches[i][2])+" "+str(round(mva,2))+" MVA"+"\n"
psspy.progress(s)
Asked: 2012-09-08 07:16:58 -0600
Seen: 564 times
Last updated: Oct 03 '12
Can you please clarify your question. Are you wanting to select, for example, all branches with a flow between 100 and 150 MW?
for example if a bus connecting five branches I want to show me only two.
On what criteria would choose which two branches to select?
@Juan do you mean that you want to click on the branches to select them?