Ask Your Question
0

damping ratio

asked 2023-04-18 20:05:45 -0500

erika gravatar image

hi all, can anyone please tell me if it is possible to get power oscillation damping ratio out of any dynamic .out file through any code and if anyone has such code?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2023-04-18 21:42:15 -0500

jconto gravatar image

check the post "Has anyone checked the damping ratios from the channels in the .out files?" or search for "damp" & "channels"

edit flag offensive delete link more

Comments

thank you! But in that answer, you mentioned a readme file which I couldn't find there. Could you please tell me where I can get detailed instruction?

erika gravatar imageerika ( 2023-04-18 22:22:13 -0500 )edit

That posting redirect you to the post "Channels - tool to process outs files" for instruction to download the tool. The readme file is part of the release.

jconto gravatar imagejconto ( 2023-04-19 08:59:55 -0500 )edit

thankyou so much for the resources! However I am encountering the following issue. When in the dos window I type channels_chan_Pe_plt I get the following error: File "C:\Users\jsm20\Documents\code\Python\channels.py",line 139 in <module> ImportError: No module named Matplotlib

erika gravatar imageerika ( 2023-04-19 22:35:00 -0500 )edit

The ppt 'manual' says that additional python modules are needed: matplotlib, numpy, scipy, PyPDF2. With admin rights, in a DOS window, enter: pip install matplotlib. To run a damping calculation test, enter: channels chan_Pe_dmp

jconto gravatar imagejconto ( 2023-04-20 08:52:17 -0500 )edit

if I write pip install matplotlib,it shows "the system can not execute the specified program". What might cause this issue? is it compatible only with psse33 and python 2.7? Right now I was using psse34 and python 3.7

erika gravatar imageerika ( 2023-04-20 09:23:00 -0500 )edit

On a DOS window, change directory to c:\python37\scripts and execute the pip command. Channels is compatible with python 2.7, 3.7 to 3.9 and PSSe 33 to 35

jconto gravatar imagejconto ( 2023-04-20 09:45:22 -0500 )edit

The directory should be the location where the scripts folder is, right? for me it is C:\Users\erika\Desktop\s\channel\channels_JConto_20211031\SCRIPTs and in scripts folder should I move the chan_Pe_dmp file?

erika gravatar imageerika ( 2023-04-20 09:54:20 -0500 )edit

I would use "C:\Users\erika\Desktop\s\channel\channels_JConto_20211031" as the working folder, same where to open the DOS window, and place a copy of the ini file there. Inside the ini file, all paths should be relative to this working folder or use full absolute paths. Run: channels chan_Pe_dmp

jconto gravatar imagejconto ( 2023-04-20 13:28:09 -0500 )edit

now it is showing "channels"is not recogniuzed as an internal or external command. What should be done to fix this error?

erika gravatar imageerika ( 2023-04-20 20:11:01 -0500 )edit

I got that issue resolved now. But I have a question. After running that channels chan_Pe_dmp I got a plot. But an excel table should also be created showing the damping ratio, right? or where should I find the find the damping ratio now?

erika gravatar imageerika ( 2023-04-21 01:56:32 -0500 )edit

hi Jconto! got the issues resolved now. Thanks a bunch! Just another question. Is there any code to extract voltage ratios from the .out file like the damping one?

erika gravatar imageerika ( 2023-04-21 02:22:20 -0500 )edit

So damping calculations works! Results in csv file. For voltage ratios, open a new question. Please explain why voltage ratios would be needed, how are they going to be used?

jconto gravatar imagejconto ( 2023-04-21 11:18:42 -0500 )edit

Do you want to evaluate the damping on a voltage signal? If yes, change in the INI file the variable "chanmask" to be "VOLT", var studyname to V, and comment variable "chan_fx".

jconto gravatar imagejconto ( 2023-04-21 12:40:48 -0500 )edit

dear jconto! okay I will ask my question about ratio in details soon in a new pool. However about the damping calculation, i still have some questions. would you please help me to understand those? In a different .out file to calculate the damping ratio, what changes to make in chan_Pe_dmp file?

erika gravatar imageerika ( 2023-04-23 15:01:47 -0500 )edit

i was working in a different .out file where I took some frequency signals and then got the damping ratio from your code. But the results came weird. some of them were negative values which shouldn't be. So I wanted to ask yo, if there is any particular parameter that need to be modified in the code

erika gravatar imageerika ( 2023-04-23 20:51:26 -0500 )edit

For a different OUT file, in the INI file, update variable "OUTLST". If the damping factor is positive, plot the signal if growing within the scanning period, between "Time_begin" and "Time_end" or the end tail period set by "Time_lastpct" (set at 50%, meaning last half of total run time).

jconto gravatar imagejconto ( 2023-04-24 09:05:03 -0500 )edit

Damping calculation is a form of linearized modal calculation where the range of the oscillatory signal is in the range 0.2 to 2.0 Hz in power systems. For osc. signal outside the range, the code might not work. Review the MatrixPencil code and also check the internet for the matrix pencil theory.

jconto gravatar imagejconto ( 2023-04-24 09:11:56 -0500 )edit

Dear jconto! thank you very much. However, I was trying to compare the result from this code and TSAT's prony analysis tool. For the .out file you provided in your folder, the result matched with TSAT's prony tool. But for a different .out file it is not matching. Should I change damping pct?

erika gravatar imageerika ( 2023-04-24 09:21:55 -0500 )edit

TSAT's prony tool works on the angle signal (of a generator). Check in the INIs folder for a file "chan_Angl_dmp.ini" file and adjust var "outlst" value or re-use the "chan_Pe_dmp.ini" file by updating var "chanmask" to "ANGL".

jconto gravatar imagejconto ( 2023-04-24 17:11:52 -0500 )edit

So TSAT's prony tool doesn't work on voltage or frequency signal? and would you please tell me about damping pct? For your case you set it 3.5. does it mean it will only show the signal whose damping percentage is lower than 3.5? Can I set it a larger value then?

erika gravatar imageerika ( 2023-04-24 19:40:26 -0500 )edit

The TSAT manual only mentions angle signal for their damping calculation. You can check with Powertech directly. In USA, a typical damping factor is 3%. Set it to a larger value to screen more damped oscillations.

jconto gravatar imagejconto ( 2023-04-25 11:13:13 -0500 )edit

Thanks a ton for your help,Jconto! just one last thing. Do you recommend reading any chapter from the psse documentation or anything to understand your channels code better?

erika gravatar imageerika ( 2023-04-25 19:35:16 -0500 )edit

The Matrix Pencil algorithm is not used by PSSe, The PSSPLT manual describes their prony analysis implementation. Search the internet or github for "Matrix Pencil".

jconto gravatar imagejconto ( 2023-04-25 22:59:18 -0500 )edit

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

Stats

Asked: 2023-04-18 20:05:45 -0500

Seen: 672 times

Last updated: Apr 18 '23