Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Nice solution from amaity.

But it could be not necessary if using 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.

Nice solution from amaity.

But it could be not necessary if using 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.