Ask Your Question

yugpatel22's profile - activity

2023-05-14 00:24:06 -0500 received badge  Famous Question (source)
2022-12-22 12:26:19 -0500 received badge  Famous Question (source)
2022-12-22 12:26:19 -0500 received badge  Notable Question (source)
2022-12-22 12:26:19 -0500 received badge  Popular Question (source)
2022-10-09 08:01:04 -0500 received badge  Famous Question (source)
2022-10-01 10:35:16 -0500 received badge  Notable Question (source)
2022-09-27 10:08:40 -0500 received badge  Popular Question (source)
2022-09-26 16:19:18 -0500 commented answer Extract Bus Voltage Magnitude and Angle from .sav case

Can you please share, how can I extract the Power Injection data? Thanks!

2022-09-26 16:18:23 -0500 received badge  Supporter (source)
2022-09-26 16:18:04 -0500 commented answer Extract Bus Voltage Magnitude and Angle from .sav case

Okay, this was helpful. I initially used the .raw case and hence I had ```psspy.read(0,RAWFILE)```. Now, I am getting the required Voltage magnitude and Angle based on suggested change: ```psspy.case(SAVFILE) ```

2022-09-26 16:15:59 -0500 commented answer Extract Bus Voltage Magnitude and Angle from .sav case

I want to get the Voltage and Current data to further perform state estimation

2022-09-26 13:33:28 -0500 asked a question Extract Bus Voltage Magnitude and Angle from .sav case

I have these converged Power Flow cases as .sav files. I want to extract the Bus Voltage Magnitude and Angle, Current Magnitude and Angle data. I am using the ABUSREAL function from the PSSE API to get the values of 'PU', 'KV', 'ANGLE', and 'ANGLED'. However, this is the error message from my script:

ierr, [PU, KV, ANGLE, ANGLED] = psspy.abusreal(sid = -1, flag = 2, string = ['PU', 'KV', 'ANGLE', 'ANGLED']) TypeError: cannot unpack non-iterable NoneType object

Also, for getting the current magnitude and angle data, I believe I may have to extract the admittance matrix data using output_y_matrix and I may be able to get the Current related data based on the obtained Voltage and Admittance data. Any suggestions for this would be helpful.

If anyone has encountered this or similar types of issues while extracting this data from PSSE to excel, I would appreciate feedback or suggestions to resolve this error and get the required output.

2022-09-08 01:47:59 -0500 received badge  Famous Question (source)
2022-09-07 05:03:41 -0500 received badge  Notable Question (source)
2022-09-07 05:03:41 -0500 received badge  Popular Question (source)
2022-09-06 14:24:52 -0500 received badge  Notable Question (source)
2022-09-05 13:10:35 -0500 asked a question Interchange or swap winding columns for 2-winding transformer in PSSE using python (psspy)

I am running a power flow solution in PSSE and its solving without any errors. However, when I try to implement the same parameter settings through python (psspy) the solution is unable to converge.

With all the parameters to be the same as selected manually in PSSE and psspy.fnsl() the solution is expected to converge in both cases. But for some reason not able to solve via python. There are these warning messages that the idle is showing after the run:

" Messages for api TWOWINDINGCHNG_6

Messages for two-winding transformer circuit "1" from BUSNUMBER* to BUSNUMBER* (005056)

Warn: Winding 1 bus base voltage (69.0000) and nominal voltage (161.000) differ by more than 20(005076)

Warn: Winding 2 bus base voltage (161.000) and nominal voltage (69.0000) differ by more than 20(005076)

Info: Winding 1 and winding 2 sides are interchanged (005095) "

Note: BUSNUMBER* corresponds to the FROM and TO bus number respectively

As I can't see anything that should be going wrong when running through python, I believe the problem might be these warning messages. There are large number of same warning messages saying Winding 1 and Winding 2 sides are interchanges (005095). This interchange of winding columns is happening after the python script run (I don't know why, but its happening). Is there a way that I can swap the columns for Bus Base Voltage/Nominal Bus Voltage using psspy function?

Any suggestions/feedback for the same will be appreciated. Cheers!

2022-09-04 23:19:33 -0500 received badge  Popular Question (source)
2022-09-04 16:33:14 -0500 received badge  Enthusiast
2022-09-03 15:38:29 -0500 asked a question 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!

2022-09-01 13:39:17 -0500 commented answer Save .raw case after updating the transformer limits in python

That was helpful. Appreciate your response!

2022-08-31 16:16:10 -0500 received badge  Editor (source)
2022-08-31 16:15:48 -0500 received badge  Organizer (source)
2022-08-31 16:15:02 -0500 asked a question Save .raw case after updating the transformer limits in python

Hello! I have a quick question to save .raw case in the python script.

I am implementing a python script for changing the voltage limits of the 2-winding transformer using this function from the PSSEv35 API: twowindingchng_6. The code is running without any error and I can see the voltage limit changes being made in the Logfile that is generated after the run. However, I am unable to see these changes in the .raw case file even if I reopen it in PSSE after the successful script run. If you can help me get around this issue or point to a helpful API function that would be great. Cheers!

2022-08-29 13:53:42 -0500 received badge  Scholar (source)
2022-08-29 13:53:39 -0500 commented answer psspy function list all the FROM BUS NUMBER and TO BUS NUMBER column data

Appreciate your response, this was helpful!

2022-08-29 08:43:31 -0500 received badge  Notable Question (source)
2022-08-29 01:22:28 -0500 received badge  Popular Question (source)
2022-08-28 16:31:19 -0500 asked a question psspy function list all the FROM BUS NUMBER and TO BUS NUMBER column data

I am looking to create a list of all the data in the FROM BUS NUMBER and TWO BUS NUMBER. If there is a function to do so in the API manual for PSSE 35 please direct me to the same or any related information will be helpful. Thanks! :)