Export line data
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?
First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
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?
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.
Asked: 2016-12-06 13:16:31 -0500
Seen: 1,822 times
Last updated: Dec 08 '16
The tutorial steps for PSSE and Python for starters
PSSe Results to Excel: Results to different Column
Best way to read *.out file with PSSExplore34? Excel or python?
Export the PV analysis output in an Excel file
exporting dynamic simulation results to excel using python
Exporting data to Excel without using Python
How can I export limit check results to excel?
How do I export short circuit data(.sc) to an excel file using pss/e and python?