Ask Your Question
0

My output from python is different from PSSE

asked 2023-03-26 03:37:38 -0500

erikpalen gravatar image

updated 2023-03-26 03:41:08 -0500

Hello! I am trying to run some dynamic simulations in a small network. I used the .sld, .sav, and .dyr to run the simulation in PSSE to make sure that it was working correctly. Then I wanted to run it through Python to automate it but when I looked at the output from the python code I thought it looked slightly different. I thought that the simulation in PSSE might use some different command so I went into PSSE again and recorded the process of: 1. doing a load flow, 2. converting loads and generators, 3. loading the .dyr-file. 4 setting up the channel wizard, 5 running the simulation where I apply a fault at a particular bus for 100 ms.

When I stopped the recording and looked at the generated python code I thought it looked very similar to the one I had been using before. I tried running the generated code and compared the output coming directly from PSSE. To my surprise, there was still a small difference. The output file from PSSE is also slightly bigger (119 kb vs 114 for python).

I would provide a picture of a voltage graph but the forum won't let me.

edit retag flag offensive close merge delete

Comments

Are you talking about the size of the out-file?

perolofl gravatar imageperolofl ( 2023-03-26 06:55:41 -0500 )edit

@perolofl Yes, the sizes of the files are different but the values are also different. For example, when I look at the voltage at one of the buses during a fault the oscillation that happens after the fault has a smaller amplitude in the file that I get when running through python

erikpalen gravatar imageerikpalen ( 2023-03-27 00:56:24 -0500 )edit

Execute the python script from PSSE and check the results.

perolofl gravatar imageperolofl ( 2023-03-27 06:09:16 -0500 )edit

@perolofl How do I do that? I can't find where I should paste the code.

erikpalen gravatar imageerikpalen ( 2023-03-28 01:25:35 -0500 )edit

Use "Run program Automation file...".

perolofl gravatar imageperolofl ( 2023-03-28 02:54:16 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2023-04-17 09:49:51 -0500

Alex P gravatar image

Double check that your dynamic simulation parameters are the same. Or make sure they are the same by pro-actively setting them to what you want. Particularly simulation time step, acceleration factor and frequency filter.

psspy.dynamicssolutionparam_2

Dynamics > Solution parameters... > Dynamic Solution Parameters

Good luck ;)

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

Stats

Asked: 2023-03-26 03:37:38 -0500

Seen: 706 times

Last updated: Apr 17 '23