0

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

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!

yugpatel22's avatar
7
yugpatel22
asked 2022-09-03 15:38:29 -0500, updated 2022-09-03 15:40:14 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

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:
    print(c.real,c.imag)

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

perolofl's avatar
3.8k
perolofl
answered 2022-09-04 09:23:40 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Login/Signup to Answer