Channels - tool to process outs files
Channels is a python code that uses dyntools to process out files from a PSSe dynamic simulation. It runs in PSSe v33, v34 & v35. The tool allows to export any type of channels the user select to an excel file; request information about channels names & numbers; plot selected channels, plotting same channels from multiple outs files (=compare channels performance); and rank channel performance based on user criteria with option to plot (which voltage channels goes below a certain threshold...).
You can download the channels tool with a demo set from [copy the link into your browser if it does not connect when clicking on it]:JConto_google drive
Once you select “channelsxxxxx.zip”, an icon on the top-center screen will perform the download.
Once downloaded & unzipped, rename *.tab to *.bat, open a DOS window on the channels' folder and run the following [it will export volt channels to a excel file]: c:..>channels chan_V_exp
Follow the instruction in the read.me file to run the other demos included.
Jconto, excellent example and effort! Thanks. I have also done some data mining using the channels out module.
jconto. Excellent utility! Where can I find the PDF file you refer to "CHANNELS_tool_PSEE_UGM_2017_v2.pdf"? Thank you. Matt
I added to the channels's zip file, and I did re-posted it. Also I put a copy on the folder "Papers & Presentations" within my google_drive folder.
Thanks so much.
Are numpy and matplotlib a requirement for Channels to work?
Yeah, both numpy and matplotlib are required. Use pip to install them: In a CMD windows type:pip install numpy.
Thanks jconto!
Hi jconto, this is a very minor thing, but I can't seem to get dashed/dotted lines in the plot activity (changed text in .ini). Is there any way to fix this?
Thanks for using Channels. I would consider the line style as a user option (INI input) on the next release. But then, all curves would be of the same line style! Channels purpose is to plot 'large' amount of plots with same settings, so it cannot have customization per plot.
Thanks jconto! There's an option for linestyle in the .INI. Is that for the flatline or xy profile lines? I was hoping to only make the flatline or xy profile line dashed
Jconto, I have tried your channels program and the plotting function works right out of the box. I can not seem to get the damping example to work. I don't receive any errors but I don't see any results. Any suggestions? I am using the example outfiles on your drive..
The damping calculation depends on pandas. Use pip to install it, in a CMD windows type: pip install pandas
I confirmed my install of pandas but I still don't get results. The end of my log looks like this Activity Damping Modal MPAA run 2, Pe_2
It was scipy that I was missing. It seems to be working now. I do have to make sure my plots are not showing, otherwise it crashes. Thank you!
Thanks for testing it. I have make small changes to eliminate such error. Please download the latest posting: "channels_JConto_20210704.zip" Now the modal process will run sequentially.
Hi jconto, when I use chan_A_cmp, it doesn't seem to merge the PDF's into one file. Instead, I get only 1 PDF in the final file. Is there something I'm doing wrong?
The python module PYPDF2 is needed to merge created pdfs. On its absence, the pdfs created per channel selected are kept. To assign unique pdf names linked to its channel, on the INI file, update the next var as follows: plotsubfile = studyname_studytype_chani.pdf
Thanks jconto!
Hi jconto, is there a way to make Channels work with Python 3?
Hi jconto, when I try to plot multiple angles using chan_a_plt, I notice that the page titles in the pdf are not unique to the out files. It seems like only one out file is being chosen for the page title even though the var page title = studyname outlsti . Any possible fix for this?
Channels creates a pdf file per each outfile. Set var 'pagetitle' = studyname outlsti, comment var title as "//title=...", set var 'legend' = chani Run demos and check other *.ini files to mimic use of titles (or other vars).
Thanks jconto!
Hi jconto, for damping analysis using Channels, I notice that I only get the results for 10 generators as opposed to all the units in my system. Is there a way to fix this?
The tool does not have a count limit on generators. It analyzes all signals with the "matrix pencil" algorithm based on the setting in the INI file, section "[damping]". Try increasing the value for "dampingpct" or change "Time_lastpct" for a different data window, or increase "num_iter", etc.
Thanks jconto, out of 81 signals in my case, I'm able to see modes only for the value set for num_iter. For example, if I set num_iter to 10, I see 10 units in my final results pdf file. If I set num_iter to 15 then I see 15 units in the pdf file. Could you please help me understand num_iter better?
Search the internet for 'Iterative Matrix Pencil' or 'HICSS_2019_Overbye.pdf'. Slide 11 touch on the 'num_iter' variable. Worse damping signal are added iteratively to a matrix to 'help' recalculate previous results. When set to 10, I expect to get less than 10 signals with worse damping.
Hi, can anyone help me with this issue. I use python2.7 for psse 33 but I cannot install numpy, even by using the command 'pip install numpy' error is there saying that this is possible for python39. I also tried to add numpy through interpreter settings, no positive result. I cannot use python39.