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

Ask Your Question
0

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

asked Sep 3 '2

yugpatel22 gravatar image

updated Sep 3 '2

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!

1 answer

Sort by » oldest newest most voted
0

answered Sep 4 '2

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

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

link

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

1 follower

Stats

Asked: Sep 3 '2

Seen: 540 times

Last updated: Sep 04 '22