Ask Your Question
0

Can you tell if a branch is a transformer or non-transformer based on "fromBus", "toBus" info?

asked 2014-08-24 22:10:06 -0500

ypwang gravatar image

updated 2014-08-25 11:29:15 -0500

Hi all,

Now I have a list of interesting branches that contain only the "fromBus", "toBus" and "ckt id" for each branch. I wonder if there is any API can tell is a particular branch is a transformer or not just based the above information.

My intention to do this is to trip each branch in the list using appropriate "data change" function, i.e. non-transformer branch should use "branch_chng" and two winding transformer needs to use "two_winding_chng_4".

So currently I think of a "OKAY" solution that works as follows: 1) first pretend the currently considered branch is a non-transformer and try to trip it (change its status from 1 to 0) using "branch_chng" API and if ierr = 0, then proceed to next step, if ierr =3 (if all input options were good, deal with the exception case, i.e. errors other than 0 and 3), it means it is a transformer branch, then switch to "two_winding_chng_4" API.

Yaping

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
4

answered 2014-08-25 20:01:21 -0500

amaity gravatar image

updated 2014-08-25 20:02:04 -0500

Use the subsystem_info function described here. The full listing is available here. This little function saves you the bother of distinguishing lines from transformers. This is how I use it:

branchinfo = subsystem_info('brn', ['FROMNUMBER', 'TONUMBER', 'MVA', 'P'], sid=1)
#print branchinfo
trfinfo = subsystem_info('trn', ['FROMNUMBER', 'TONUMBER', 'MVA', 'P'], sid=1)
#print trfinfo

Hope that helps.

edit flag offensive delete link more

Comments

Thanks a lot, those are great functions. So I need to register as GitHub member to see the complete code of function "subsystem_info"? Since I didn't see the options 'brn' and 'trn'.

ypwang gravatar imageypwang ( 2014-08-25 21:49:09 -0500 )edit

Not at all. I don't think you need to register to access the public folders in github. Folks correct me if I am wrong. How you can adapt the function for your needs has been explained in the function description. Just plug 'trn' or 'brn' in place of 'bus'. HTH.

amaity gravatar imageamaity ( 2014-08-26 10:11:10 -0500 )edit

Sorry I didn't look into your first link, which also called "here" :-) I will check out the first post. Thanks very much!

ypwang gravatar imageypwang ( 2014-08-26 11:39:53 -0500 )edit
1

answered 2014-08-27 03:08:32 -0500

rimux gravatar image

updated 2014-08-27 03:10:22 -0500

Nice solution from amaity.

Another possibility - use abrncount, abrnint and other API commands for retrieving all branch data for defined subsystem at once. Just use right option FLAG, e.g. FLAG = 1 for only in-service non-transformer branches and FLAG = 5 for only in-service two-winding transformers.

Also if need to check just one branch if it is line or transformer - just get the base voltages form both sides of a branch (by using psspy.busdat(bus,"BASE")) and compare them - if voltages are different - this is transformer.

edit flag offensive delete link more

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: 2014-08-24 22:10:06 -0500

Seen: 23,545 times

Last updated: Aug 27 '14