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

Ask Your Question
0

How do I export short circuit data(.sc) to an excel file using pss/e and python?

asked May 30 '17

Kabir Singh gravatar image

How do I export short circuit data(.sc) to an excel file using pss/e and python?

4 answers

Sort by » oldest newest most voted
0

answered Jan 13 '1

jconto gravatar image

updated Jan 19 '1

I posted a python code at my googledrivesite to export short circuit result to excel. Download “SCexcel_20210118.zip”. Check the readme file for more information and how to run it. Edit the input data file to customize the study. (update on Jan 18, 2021.)

link
0

answered Jan 11 '1

lfplan2 gravatar image

updated Jan 11 '1

Hello , I am unable to get the result. I am using ASCC analysis and I wish to get the result like

" Busnumber" "Busname" "FaultLevel (MVA)" "Fault Current (Amp)"

kindly help. I am new to psse. thanks

link
0

answered Jun 1 '17

nelak gravatar image

updated Jun 1 '17

I don't have an example for this portion but you would use the command ASCC_SCFILE, this imports your scfile.

I do have an example for running Short Circuit itself and exporting this data with the ASCCCURRENTS command. The parameters would be set according to your situation. rlst = pssarrays.ascccurrents(subsystem, 0, 1, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 2, 2, 1, 1, 1, '', '', '')

This returns an object which you can access such as: print rlst.fltbus[0] print rlst.thevzpu[0].z1 print rlst.fltlg[0].ia print rlst.flt3ph[0].ia2

Hopefully this gives you a starting point.

link

Comments

Thank you.

Kabir Singh gravatar imageKabir Singh (Jun 26 '17)
0

answered Jun 6 '17

kcruz gravatar image

updated Jun 6 '17

Hi

yes this is posible , is necesary use the ascc_currents ( you can see the API manual) this function return the short circuit current and you can save the result in a variable and that write in a excel file

In this example I a use for write the 3 phase fault and line to groun fault in a excel file:

rlst = pssarrays.ascc_currents(sid= system, all = 0, flt3ph = 1, fltlg = 1 )# take the short circuit result and save in the rlst variable

excelfile.setcell((filacont,4),rlst.flt3ph[i].ia.real/1000, numberFormat = '0.00') # here write the 3 phase fault ( rlst.flt3ph[i].ia.real/1000) in KA in a excel file ( for can use excel see in the API excelpy)

excelfile.setcell((filacont,5),rlst.fltlg[i].ia.real/1000, numberFormat = '0.00') # here write the line to groun fault ( rlst.fltlg[i].ia.real/1000) in KA in a excel file

link

Comments

Thank you. Will give it a try

Kabir Singh gravatar imageKabir Singh (Jun 26 '17)

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 30 '17

Seen: 2,495 times

Last updated: Jan 18 '21