0

Automatically Change All Rates

Is there a way to change all of the "rates" in a user defined zone automatically using a script? I am looking for a way to perform this task without defining each branch or 2 winding device individually.

For example, every instance that Rate A is equal to 20, for a branch in Zone 1, I want the python script to change that value to 30. Similarly for 2 winding devices, every time Rate A is 20, change Rate A to 25, etc.

I am currently using PSSE 33.

Thanks!

mcj04001's avatar
1
mcj04001
asked 2015-10-28 09:04:41 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

Use bsys command to set a bus subsystem. Then use that subsystem to iterate through all the to- and from points of all branches and set them to new values.

Something like this: psspy.bsys(sid=0, numarea=1, areas=[zonenumber]) ierr, (tobuses, frombuses) = psspy.abrnint(sid=0, string=['TONUMBER', 'FROMNUMBER'] branchids = psspy.abrnchar(sid=0, string='ID')[1][0] for tobus, frombus, branchid in zip(tobuses, frombuses, branchids): <change value="" for="" the="" branch="">

EDIT: How do edit to make it look like code?

SqFKYo's avatar
126
SqFKYo
answered 2015-11-05 01:14:39 -0500, updated 2015-11-05 01:15:21 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Login/Signup to Answer