First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
1 | initial version |
maccartm,
I think the following may get the job done for you:
psspy.bsysinit(0)
psspy.bsys(0,1,[229,231],<count of areas>,[<areas>],0,[],0,[],0,[])
psspy.ties(0,0)
The above code initializes subsystem 0, containing only the 229-231 kV system in the areas you specify. Then it uses the ties API to return the flows on all the area tie lines, across all areas in the specified subsystem.
Hopefully this works. Good luck.
2 | No.2 Revision |
maccartm,
I think the following may get the job done for you:
psspy.bsysinit(0)
psspy.bsys(0,1,[229,231],<count of areas>,[<areas>],0,[],0,[],0,[])
psspy.ties(0,0)
The above code initializes subsystem 0, containing only the 229-231 kV system in the areas you specify. Then it uses the ties API to return the flows on all the area tie lines, across all areas in the specified subsystem.
Hopefully this works. Good luck.
EDIT: Oops, you need variables. I guess the best you can do is direct the output from the above code into a file, and do some processing on the file to get what you need. PSSe output files are generally pretty simple to process with python.