Ask Your Question
2

Display report of branch with phyton

asked 2012-09-08 07:16:58 -0500

anonymous user

Anonymous

updated 2012-09-10 09:56:24 -0500

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

edit retag flag offensive close merge delete

Comments

1

Can you please clarify your question. Are you wanting to select, for example, all branches with a flow between 100 and 150 MW?

jsexauer gravatar imagejsexauer ( 2012-09-10 06:11:58 -0500 )edit

for example if a bus connecting five branches I want to show me only two.

Juan gravatar imageJuan ( 2012-09-10 09:59:29 -0500 )edit

On what criteria would choose which two branches to select?

jsexauer gravatar imagejsexauer ( 2012-09-10 14:32:45 -0500 )edit

@Juan do you mean that you want to click on the branches to select them?

JervisW gravatar imageJervisW ( 2012-09-10 17:37:58 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2012-10-03 07:24:06 -0500

rimux gravatar image

updated 2012-10-03 07:36:28 -0500

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)
edit flag offensive delete link more

Comments

Looks like a great way to display the branch information just the way you like it. For those interested the output looks like this (correct me if I'm wrong @rimux): 1. 6704-6886-1 5.23 MVA 2. 6740-6885-1 7.48 MVA

JervisW gravatar imageJervisW ( 2012-10-03 19:39:43 -0500 )edit

yes thats right :) Actually, I have little wider output, including bus names as well (have to have another function - def GetBusName(busnr)) and make report like that: 6704-6886-1 name1-name2 5.23 MVA

rimux gravatar imagerimux ( 2012-10-04 06:38:44 -0500 )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: 2012-09-08 07:16:58 -0500

Seen: 545 times

Last updated: Oct 03 '12