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
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)
 
 
                
                whit loves you.      Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.
            
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?