First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!

Ask Your Question
1

Bus vectors PSSE/E + Python

asked May 28 '13

Javier gravatar image

Hello,

I'm running a Python code in which I call PSSE/E to solve a power flow. I would like to obtain all the bus variables of the grid: Voltages, angles, active power and reactive power. One way is using a "for" loop and extract each variable of each bus one-by-one (example, with psspy.busdat(i ,'PU') ). Please, does anyone know if there is another method to obtain the variables of all the buses in a vector form? i.e, I would like to obtain the whole vector at once and do not use loops.

Thank you Javier

Comments

Thank you very much. The funciton psspy.abusreal() worked fine!

Javier gravatar imageJavier (May 30 '13)

1 answer

Sort by » oldest newest most voted
1

answered May 29 '13

yfwing gravatar image

YOu can try to use function in Chapter 8 (Subsystem Data Retrieval) of API. As for your example, you can use

ierr, rarray = psspy.abusreal(-1, 1, 'PU');

The above script will output the bus voltages for all the in-service buses in the system to the vector (array) rarray.

link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.
Want to format code in your answer? Here is a one minute demo on Youtube

Add Answer

[hide preview]

Question Tools

Stats

Asked: May 28 '13

Seen: 1,624 times

Last updated: May 29 '13