Ask Your Question
1

What does psspy.asys do

asked 2012-01-25 02:00:11 -0500

JervisW gravatar image

updated 2012-01-26 15:35:21 -0500

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.
edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2012-01-30 00:08:25 -0500

JervisW gravatar image

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.

edit flag offensive delete link more
1

answered 2012-02-21 23:55:13 -0500

Daniel_Hillier gravatar image

updated 2012-02-21 23:56:46 -0500

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.

edit flag offensive delete link more

Comments

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

JervisW gravatar imageJervisW ( 2012-02-22 04:27:26 -0500 )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

1 follower

Stats

Asked: 2012-01-25 02:00:11 -0500

Seen: 1,503 times

Last updated: Feb 21 '12