Ask Your Question
0

How to retrieve data loads (PmW and QMvar) from PSS/E using Python?

asked 2022-04-26 03:33:10 -0500

Moha jbr gravatar image

I try to retrieve data from PSS/E using python, I already retrieve same data using this code below but i can't find à fonction that can retrieve Pload in API of PSS/E.

psspy.bsys(0,1,[MINkV,MAXkV],iar,[iar],0,[],0,[],0,[])
ierr, (owner,) = psspy.aloadint(0, 3, 'OWNER') ierr, (NumBus,) = psspy.aloadint(0, 3, 'NUMBER') ierr, (NumZone,) = psspy.aloadint(0, 3, 'ZONE') ierr, (ScalableFlag,) = psspy.aloadint(0, 3, 'SCALE') ieer, (BusName,) = psspy.aloadchar(0, 3, 'NAME')

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2022-04-26 05:43:17 -0500

perolofl gravatar image

Use psspy.aloadcplx to get the complex load (P+jQ).

edit flag offensive delete link more

Comments

I want only P, if i get (P+jQ) i can't get P

Moha jbr gravatar imageMoha jbr ( 2022-04-26 05:57:43 -0500 )edit

Take real part of the complex value!!! xxx.real

perolofl gravatar imageperolofl ( 2022-04-26 09:23:34 -0500 )edit

thank you it's work

Moha jbr gravatar imageMoha jbr ( 2022-04-27 03:46:12 -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

Stats

Asked: 2022-04-26 03:33:10 -0500

Seen: 60 times

Last updated: Apr 26