Ask Your Question
0

(API)Power Flow Operation - DIFF

asked 2023-01-31 11:16:45 -0500

rhapsody gravatar image

updated 2023-01-31 11:22:50 -0500

Hello community,

I am trying to write a python script comparing two saved cases using the DIFF API.

psspy.asys(sid=0,num=1,areas=99)

psspy.diff(sid=0, all=0, apiopt=1, status=[],cfile = compfile)

Subsystem identifier 0 is defined for Area 99 for the case comparison.

I received an error message as shown below:

Messages for api DIFF

Invalid SID value or subsystem SID is not defined: 0 (001382)

Can anyone help with this error? Thanks!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2023-01-31 11:39:32 -0500

acd1 gravatar image

I believe you need to first initialize the area subsystem 0 with psspy.asysinit(0)

edit flag offensive delete link more

Comments

Thanks for the reply. It is a mistake that I should use BSYS instead of ASYS as I am comparing the buses in the DIFF API.

rhapsody gravatar imagerhapsody ( 2023-01-31 12:44:07 -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: 2023-01-31 11:16:45 -0500

Seen: 219 times

Last updated: Jan 31 '23