Can you tell if a branch is a transformer or non-transformer based on "fromBus", "toBus" info?
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