Ask Your Question
1

How to assign a subsystem id for a defined subsystem in GUI?

asked 2014-08-15 21:38:38 -0600

ypwang gravatar image

updated 2014-08-15 21:39:06 -0600

Hello everyone,

I searched through both API.pdf and POM.pdf, and could not find a way to assign a subsystem id for a GUI defined subsystem. My problem occurs when I

1) defined the subsystem in a .sub file through GUI (Drop-down list path: Power flow->Linear network->create SUB,CON,MON files), where you are required to give a subsystem label that will appear in the .sub file

2) then when I want to use module "amachint" to find out the bus IDs that has generators, and this "amachint" module asks for "subsystem ID" as an argument (not a subsystem name).

The problem is that I could find the system ID associated with the subsystem I just defined through GUI, or I am not if a subsystem id was assigned to my previously defined subsystem.

I saw a module called "BSYS" that can define a bus subsystem through python, but it doesn't return or define me a corresponding subsystem label that I use in the .con file because it seems to me that the .con file requires a subsystem label other than a subsystem id. Maybe I am wrong.

Please advise. Appreciate your kind help. I will continue messing around until I get it run correctly as I expected. I will report what I find if I succeed.

edit retag flag offensive close merge delete

Comments

1

I just tested using "BSYSISDEF" to see if any valid subsystem id (0-11) are already assigned to a define system. The answer is NO.

ypwang gravatar imageypwang ( 2014-08-15 21:55:10 -0600 )edit

An interesting test @ypwang so based on the result you'd say they aren't linked?

JervisW gravatar imageJervisW ( 2014-08-17 19:27:35 -0600 )edit

@JervisW: I might be missing something that could prove my conclusion is wrong. So I would say, as far as I searched, PSS\E doesn't have API to link them for me.

ypwang gravatar imageypwang ( 2014-08-17 21:02:12 -0600 )edit

1 answer

Sort by » oldest newest most voted
1

answered 2014-08-17 11:58:08 -0600

ypwang gravatar image

I searched through all help documentations provided by PSS\E and tried to read everything related to subsystem carefully in hope that I can find the answer to my above posted question. Unfortunately NO answer so far available to me.

However, to resolve my own problem, I have a workaround solution that could serve my need perfectly without resolving the correspondence problem between a subsystem label (created in GUI) and subsystem ID (created in API).

My task is that I would like to define a subsystem (of course not the whole working case) description file in GUI that will be used later in Python to form a DFAX file and eventually to run ACCC. However, when I want to use some subsystem data retrieval APIs to fetch the network details about branch, buses and machines in my previously define subsystem in GUI which only has a subsystem label, those data retrieval APIs force me to provide the corresponding subsystem ID, which I don't have and don't know an existing API that can assign one.

Workaround solution: Let's say I want to define subsystem based on the areas in the network, then

I just need to make sure I include the same areas as the predefined subsystem I defined through GUI as my subsystem when I define subsystem (note that this subsystem is just a conceptual subsystem copy I used to refer the subsystem defined GUI to make sure I am fetching the correct subsystem network information) using API.

I hope I made myself clear on this issue. I wish this will of some help to those who might wonder the same question as I did.

YP

edit flag offensive delete link more

Comments

I am currently trying to define a function that acts on the bus subsystem currently displayed in the GUI, but of course I encountered the same error as you. Did you ever manage to extract the GUI subsystem using psspy?

oreus4924 gravatar imageoreus4924 ( 2017-08-17 12:55:36 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

Stats

Asked: 2014-08-15 21:38:38 -0600

Seen: 1,348 times

Last updated: Aug 17 '14