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

Ask Your Question
0

Export line data

asked Dec 6 '16

vikram gravatar image

How would you export line data with admittances, line connections, angle at all the buses after running a power flow, B inverse matrix by using PSSE?

1 answer

Sort by » oldest newest most voted
0

answered Dec 8 '16

mjinli gravatar image

Admittance matrix:

psspy.output_y_matrix(0,1,0,0,r"""C:\example.dat""")

and then use the csv module to read the file you create.

You can also read the line connections from that file after removing self-admittance entries.

For bus angles, you can use

ierr, rarray = abusreal(0, 2, "ANGLED")

See the API documentation for more options for abusreal if you want to specify a subsystem or limit the results to only in-service buses.

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

1 follower

Stats

Asked: Dec 6 '16

Seen: 1,849 times

Last updated: Dec 08 '16