First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
1 | initial version |
Here are few steps to do the task:
Firstly, you have to record the macro you want to apply, using the reocding button in the GUI of PSSE.
Secondly, fill in these below code, which will do the task for you.
import psspy
File_List = [your list of sav formatted file names you want to excecute]
for file in File_List:
psspy.case(file) #or load a raw formated file by psspy.rawd_2()
#insert your macro here
#save sav file if you want by psspy.sav()
Thirdly, run it.
Above are just some simple stuffs, for more infomation you should check out the documents of PSSE.
2 | No.2 Revision |
Here are few steps to do the task:
Firstly, you have to record the macro you want to apply, using the reocding button in the GUI of PSSE.
Secondly, fill in these below code, which will do the task for you.
import psspy
File_List = [your list of sav formatted file names you want to excecute]
for file in File_List:
psspy.case(file) #or load a raw formated file by psspy.rawd_2()
psspy.read()
#insert your macro here
#save sav file if you want by psspy.sav()
psspy.sav(); save raw file by psspy.rawd_2()
Thirdly, run it.
Above are just some simple stuffs, for more infomation you should check out the documents of PSSE.