First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!

Ask Your Question
0

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

asked Apr 26 '2

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')

1 answer

Sort by » oldest newest most voted
0

answered Apr 26 '2

perolofl gravatar image

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

link

Comments

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

Moha jbr gravatar imageMoha jbr (Apr 26 '2)

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

perolofl gravatar imageperolofl (Apr 26 '2)

thank you it's work

Moha jbr gravatar imageMoha jbr (Apr 27 '2)

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.
Want to format code in your answer? Here is a one minute demo on Youtube

Add Answer

[hide preview]

Question Tools

Stats

Asked: Apr 26 '2

Seen: 304 times

Last updated: Apr 26 '22