First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
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.
2 | No.2 Revision |
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.