Ask Your Question

Extract entire array of Magnetizing susceptance(B) of 2-winding Transformer using psspy function in python

asked 2022-09-03 15:38:29 -0500

yugpatel22 gravatar image

updated 2022-09-03 15:40:14 -0500

Hello! Quick question: I want to extract the column of "Magnetizing B (pu)" from PSSE .raw case file in python using psspy.

I am exploring the API manual and found something related to Magnetizing Susceptance under TWO_WINDING_CHNG_6. However, this function is used to modify the data which is not needed in this case. Previously for extracting the entire column in an array for getting VMAX and VMIN, the API function atrnreal was useful (which is under section 12.13). However, again, I was unable to see anything related to MAG2/ magnetizing susceptance in this section. If you have any feedback or suggestions for the same that will be appreciated. Cheers!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2022-09-04 09:23:40 -0500

perolofl gravatar image

The magnetizing admittance is returned as a complex value. Hence, API ATRNCPLX shall be used. See example below:

ierr, [ymag] = psspy.atrncplx(-1,  entry=1, string=['YMAG'])
for c in ymag:

Here list ymag contains the complex value of (G,B) in pu system base.

edit flag offensive delete link more

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


Asked: 2022-09-03 15:38:29 -0500

Seen: 445 times

Last updated: Sep 04 '22