1

What does psspy.asys do

I tried using psspy.asys to create a group of buses that are in two subsystems. After running the command I expected to see 23 buses in the subsystem. Instead there were 0 buses loaded into the subsystem.

What do you use it for, and how do you use it?

(edit) Here are some of the commands I used:

psspy.asys(sid=1, num=2, areas=[3,4])
ierr, buses = psspy.abuscount(sid=1)
# ierr == 2! Invalid SID value; BUSES returned as 0.

My work around

psspy.bsys

I use this to create subsystem of the buses in areas 3 and 4:

psspy.bsys(sid=1, numarea=2, areas=[3,4])
ierr, buses = psspy.abuscount(sid=1)
# ierr == 0! this method works.
JervisW's avatar
1.3k
JervisW
asked 2012-01-25 02:00:11 -0500, updated 2012-01-26 15:35:21 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

2 Answers

1

Your workaround is the correct way of creating a Bus subsystem from all the buses in the areas supplied.

As for what you use Area subsystems for:

psspy.asys() is used to create a subsystem of Areas. The Area subsystem will then refer to a set of areas, much like how a Bus subsystem refers to a set of buses.

Area subsystems are used in functions that indicate they take Area subsystems as the sid input. Most functions in the psspy data retrieval section take bus subsystems as the sid input. Only the functions under the subheading "Area Data" in the data retrieval section and the functions used to define Area subsystems (as far as my quick search could tell) take an Area subsystem as sid.

Daniel_Hillier's avatar
462
Daniel_Hillier
answered 2012-02-21 23:55:13 -0500, updated 2012-02-21 23:56:46 -0500
edit flag offensive 0 remove flag delete link

Comments

Great answer. Now I know the _why_ behind area subsystems.

JervisW's avatar JervisW (2012-02-22 04:27:26 -0500) edit
add a comment see more comments
1

Only use bsys to create a subsystem

There are four types of subsystem:

  1. Bus;
  2. Area;
  3. Owner; and
  4. Zone.

Only the bus subsystem is used in the psspy subsystem data retrieval commands. The other three are used for reporting from the GUI:

Power Flow > Reports > Area / Owner / Zone totals..

Changing the area subsystem has no effect on the area selections of the current bus subsystem.

The answer for this was found in Chapter 4.8 - Subsystem Selection in the Program Operation Manual.

JervisW's avatar
1.3k
JervisW
answered 2012-01-30 00:08:25 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Login/Signup to Answer