PDF Gtpplot DL
PDF Gtpplot DL
Canadian/American
Canadian/American EMTP User Group 3000Argentina
Santa Fe
[email protected]
1. Introduction.
GTPPLOT is a plotting program for ATP output, compiled with the GNU FORTRAN 95
(g95), and makes use of the graphical package DISLIN. The program is available for
Windows 32 and Linux. It has the following capabilities and limitations.
limit ations.
The present version of GTPPLOT can read widenn, formatted graphics files (FMTPL4 =
10Fnn.) both with nn arbitrary, C-like binary files, including the new format obtained with
NEWPL4=2 (called PISA), and F FORTRAN
ORTRAN (DOS-djgpp, Mingw32, Linux, and S SALFORD)
ALFORD)
unformatted files. The extension of the graphic file must be .PL4 for convenience, but the user
can choose other extensions. If the extension is .cfg, the program will regard the file as a
COMTRADE file, and will read the pair .cfg and .dat, converting them to a .pl4 file. The
program detects automatically the format of the file. If the extension is .pss, the program will
regards the file as a PSSPLT ASCII file. PSSPLT is the stability plotter program of PSS/E 26
package (Power
(Power Technologies IInc.)
nc.)
Number of points:
points:
This website stores data such as
cookies to enable essential site
functionality, as The GTPPLOT
well as marketing,can process graphics files within the limit of available memory up to near 2
personalization,GB, no specific
and analytics. limits to number of variables or number of ponts. The program uses
You all the
may change your points, there
settings are time
at any no smoothing.
smoothing.
or accept the default settings.
Number of curves:
curves:
Privacy Policy The program can plot graphics with 1 to 20 curves. The curves can be distinguished by color,
line type, or symbols, or the combinations of them.
Marketing
Personalization
Mouse and screen
screen control:
Analytics
The program cannot control the mouse. The user must use the keyboard for all the input
operations. The command may be in upper or lower case. The screen scrolls continuously. The
Save Accept All
1
Mingw32 and Linux versions use the right button mouse or <ENTER> key or <ESCAPE> key
to escape from graphic mode. The pointer must be in the plot.
Output Formats:
The program can generate graphics files in different formats: HP-GL (Hewlett-Packard
Graphic Language), CGM (Computer Graphics Metafile), WMF (Windows Meta File), PNG
(Portable Network Graphics), JAVA, PCX, PostScript, PPM (Portable PixMap), PDF, BMP
(Windows Bit Map), MATLAB, MATHCAD, MATHEMATICA, GNUPLOT and CSV
(Comma Separated Values). Some options are limited with GNUPLOT format.
The screen plot can be in various formats, in color or black and white, and the screen
resolutions supported by the operative system.
Available Commands:
FOURIER: GTPPLOT calculates the Fourier components of the selected variable, calculates
the most common Power Quality Indices, and creates a plot with the derating of a
transformer as function of Pce-r (ANSI
(ANSI 57.110), with K (derating
(derating factor) as para
parameter.
meter.
It can create a family of Fourier series as time function. For a FREQUENCY SCAN or
HARMONIC FREQUENCY SCAN case, FOURIER plots the time function of the
variable (inverse Fourier). For HFS, sub and inter harmonics are allowed.
NAME: To choose the variables
variables to plot by nname,
ame, not by nnumber.
umber.
SHAFT: To calculate generator shaft fatigue. See Appendix 5.
CACHE: To plot variables from different files in the same figure.
SCAN PL4: To show the values in .pl4 file as text
SCAN PLOT: To show the selected variables as text.
LEVEL: To search for the first level crossing of selected variables.
PAUSE: To stop momentarily the text screen,
s creen, useful for demonstrations.
BODE: To plot a frequency func
function
tion as Bode plot.
AUTO SCALE: To scale all the selected variables to the same size in plot.
JOIN: To create a new graphic file with variables of two
t wo different files.
COMTRADE: To generate IEC COMTRADE files from graphic files.
RELAY: To generate formatted files with up to 20 variables plus time, or all the variables if
RELAY ALL is sent.
PEAKS: To search a selected variable for peaks.
ZEROES:
KIZILCAY: ToTosearch a selected
generate data variable for zeroF-DEPENDENT
of KIZILCAY crossing and slopefrom
calculation.
FREQUENCY SCAN
cases.
MATLAB: To generate MATLAB binary files with up to 20 variables plus time, or all the
variables if MATLAB ALL is sent.
MATHCAD: To generate MATHCAD CSV files with up to 20 variables plus time, or all the
variables if MATHCAD ALL is sent.
MATKA: To generate MATHEMATICA ASCII files with up to 20 variables plus time, or all
the variables if MATKA ALL is sent.
ADF: To read ASCII Data Files with PLOTXY format. Up to 20 variables plust time are
allowed.
LOGY: To plot with logarithmic y-axis.
LOGX: To plot with logarithmix x-axis.
Privacy Policy
Marketing
Personalization
Analytics
The program can be invoked with the filename (for a .pl4 file) or @@filename for a
command file (batch process). If the graphic file has a different extension, this extension must
be sent too.
If the user does not send a filename, the program lists all the .pl4 files on the screen, and a
explanation about that can be done.
With the program running, the user can send the commands as listed.
l isted.
The first command the user generally sends is CHOICE: the screen shows all the available
variables, with a number.
The user sends the pound symbol (#), followed by the variable number as desired, ended by
<enter>.
If the user sends the command “GO”, the program creates all the files as enabled by the
gtpplot.ini file indicates, and then plots the graphics on the screen.
gtpplo01.ext, gtpplo02.ext... with ext= plt for HP-GL format, cgm for CGM format, wmf for
for
WMF, png for PNG, jav for JAVA, eps for Postscript format, pcx for PCX format, ppm for
PPM format, pdf for
for PDF, bmp for Windows Bit Map, and gnu for GNUPLOT format.
The program can generate a log file, with the responses to the commands. The usefulness of
the log file is for the programmer, of course, but the general user can find some results, as the
Fourier series, in the log file. This file is called gtpplot.log.
Personalization
If the user send # command to choose variables, only the variables selected will be in the
Analytics
MATLAB
variables infile,
plotup
filetowill
20 be
plus
in time. If the userfile.
the MATLAB sends the command followed by ALL, all the
Save Accept All
5
The MATHCAD command allows generate data in MATHCAD CSV format. The
MATHCAD files are serialized using the name of plot file with last two bytes replaced by nn
increasing from 01 in the same gtpplot session, with extension .prn. A parallel file, with node
names and variable types description is generated, with the same name, and extension .cfg.
If the user send # command to choose variables, only the variables selected will be in the
MATHCAD file, up to 20 plus time. If the user sends the command followed by ALL, all the
variables in plot file will be in the MATHCAD file.
The MATKA command allows generate data in MATHEMATICA ASCII format. The
MATHEMATICA files are serialized using the name of plot file with last two bytes replaced
by nn increasing
increasing from 01 in the same gtpplot session, with extension .m.
If the user send # command to choose variables, only the variables selected will be in the
MATHEMATICA file, up to 20 plus time. If the user sends the command followed by ALL,
all the variables in plot file will be in the MATHEMATICA file.
The AGFPLOT command allows to plot the graphic output files as produced by Taku Noda
fitter ARMAFIT. A series of files agfplnnn.ext is generated, with all the available graphic
formats.
The HSOURCE command allows to produce HFS sources from time function harmonics. The
output files are serialized hsourc01.pch, etc.
The IMPEDANCE command is to toggle on or off the impedance calculation from a Voltage-
Current variables pair. The beginning time and frequency are requested, with (0.0, FPOWER)
as default.
The PARAM command allows produce plots of parameters as function of frequency. The
output is serialized parame01, parame02 , etc.
The PHASOR command allows to plot the steady state solution as wrote in .lis file by ATP.
The following few subcommands are allowed:
This website stores data such as
cookies to enable essentialNAME,
CHOICE, site #, GO, END, STOP. The output will wi ll be in phasornn.ext files.
functionality, as well as marketing,
personalization, and analytics. You
The TRV command allows draw IEC 56 lines superimposed to TRV plots. The output is
may change your settings at any time
serialized trvplo01, trvplo02, etc. For details, see gtpplot.hlp.
or accept the default settings.
The PCVP command allows draw a family of time simulations as result of a PCVP case. The
Privacy Policy user must open the first file of the series (file.001, file.002... if the number of files is up to
999, file.0001, file.0002... if there are more than 999 files), to allow gtpplot to know the file
Marketingname of the series, and the file type. Only a variable at time can be plotted. Up to 9999 files
can be processed.
Personalization
Analytics
The
THDTHD command
allows allows by
to be followed plotanTotal Harmonic
optional Distortion
number: as time function
it is the window for THDfor one variable.
calculation. The
Save Accept All
6
The FILTER command allows calculate RLC filters from FREQUENCY SCAN .pl4 files.
The output must be POLAR, RECTANGULAR or BOTH. It is responsibility of the user to
choose impedance (voltages for 1 A current) variables.
The program rejects the calculation if a negative resistance appears in .pl4 file.
The SAVE command allows generate data in PISA ATP format. The name of file is requested
to the user, or save.pl4 is used by default.
If the user send # command to choose variables, only the variables selected will be in the .pl4
file, up to 20 plus time. If the user sends the command followed by ALL, all the variables in
plot file will be in the .pl4 file.
The TYPE-1 command
command allows generate data in ATP TYPE-1 sources fo
format.
rmat. The name of
file is requested to the user, or type1.pch is used by default.
If the user send # command to choose variables, only the variables selected will be in the .pch
file, up to 20 plus time. If the user sends the command followed by ALL, all the variables in
plot file will be in the .pch file.
The CSV command allows generate data in CSV format. The name of file is requested to the
user, or csv.csv is used by default.
If the user send # command to choose variables, only the variables selected will be in the .csv
file, up to 20 plus time. If the user sends the command followed by ALL, all the variables in
This website stores data such as
plot
cookies to enable file willsite
essential be in the .csv file.
functionality, as well as marketing,
personalization, and analytics. You
may change your settings at any time
or accept the default settings.
Privacy Policy
Marketing
Personalization
Analytics
The different options for some features of GTPPLOT can be selected from the gtpplot.ini file.
This ASCII file can (and must) be edited with the user’s preferred editor, to adapt all the
parameters to the user needs.
The sense of the variables is the same as the STARTUP: the 1 enables the NOxxxx. With the
values shown, the user obtains HPGL output, screen output, a grid is added, the curves are
with different line types, and with different colors. As sample, the gtpplot.ini file follows:
Privacy Policy
Marketing
Personalization
Analytics
Personalization
Analytics
Notes:
1. Proportion width to height for the plots (from 0.2 to 1.0)
2. All the components greater that this threshold value, relative to maximum component, will be added to HSOURCE list.
3. The number of components can be between 1 and 3000.
4. The shading can be between 0 (blank box) and 17. 16 is a black box. For multiple barcharts (HFS), this is the initial
shading pattern. -1 plots all the bars as filled boxes, -2, plots all the bars as empty boxes.
5. The shading can be between 0 (blank box) and 17. 16 is a black box.
6. If the fundamental component is zero, the plot is done in absolute values, not percent.
7. For NSTATI =1 or NSTATI=2, a probability plot will be obtained. If 10 is added to NSTATI, a stair plot will be obtained.
for probability.
8. C-like, PISA, gnu and Salford UNFORMATTED .pl4 files allowed.
9. The command must include the program call with the needed parameters. Both PRINTGLD (shareware) and HP2XX
(freeware) were tested.
10. A text editor is used to change permanently some parameters in gtpplot.ini file. It must be in the path.
11. The fonts can be DISALF, SIMPLX, COMPLX, DUPLX, TRIPLX, SERIF, HELVE. The fonts are not available for
GNUPLOT format. The default font is SIMPLX. If the FONT has an extension .ttf, a TrueType Font will be used. The .ttf
will be searched in the working directory or FONTS directory of Windows (normally c:\Windows\FONTS). For Linux, the
directory /usr/X11R6/lib/X11/fonts/truetype/ will be searched.
Privacy Policy
Marketing
Personalization
Analytics
5. Samples
The following are samples of graphics obtained with GTPPLOT. All the figures are imported
from the .wmf files
files and have COMPLX font.
Privacy Policy
Marketing
Personalization
Analytics
Privacy Policy
Marketing
Personalization
Analytics
Privacy Policy
Marketing
Personalization
Analytics
Privacy Policy
Marketing
Personalization
Analytics
14
Privacy Policy
Marketing
Personalization
Analytics
15
Privacy Policy
Marketing
Personalization
Analytics
16
Sample of AGFPLOT
Privacy Policy
Marketing
Personalization
Analytics
17
Sample of functions
Privacy Policy
Marketing
Personalization
Analytics
18
Sample of PARAM. It corresponds to three conductors into a pipe. The last figure is the
corresponding DIBCLP
DIBCLP sample.
Privacy Policy
Marketing
Personalization
Analytics
19
Privacy Policy
Marketing
Personalization
Analytics
20
Privacy Policy
Marketing
Personalization
Analytics
21
Privacy Policy
Marketing
Personalization
Analytics
22
Privacy Policy
Marketing
Personalization
Analytics
23
Sample of FILTER
FI LTER command
Privacy Policy
Marketing
Personalization
Analytics
24
Privacy Policy
Marketing
Personalization
Analytics
25
Privacy Policy
Marketing
Personalization
Analytics
26
References
Privacy Policy
Marketing
Personalization
Analytics
27
Appendix 1
The program is easily installed copying all the files in the same directory, included in the
PATH definition.
DOS version
Graphics modes.
The graphics modes for the GTPPLOT can be set as follows setting the environment variable
GRX20DRV
With the DOS command set, the variable GRX20DRV can be set to the
t he adequate value.
Memory manager.
The CWSDPMI.EXE program is the memory manager. Must be in the path. The program runs
automatically when runs GTPPLOT.
For Windows NT, the environmental variable GTPPLOT must be set equal to the directory
where gtpplot is installed.
Marketing
Personalization
Analytics
28
Appendix 3
Appendix 4
The Fourier option calculates the Fourier decomposition of a cycle of the selected wave. The
GTPPLOT, as TPPLOT, determines the RMS (root mean square), and THD (Total Harmonic
Distortion). These are calculated as
N
h N I h2
h 2
RMS
2
I0 1
2 I hpeak
2
THD
I 1
h1
The GTPPLOT determines another quality factors, as the even and odd, the total, balanced
and residual THD, and TIF (Telephone Influence Factor), the total, balanced and residual
C message index and I·T product, and the K factor (Transformer derating).
h N
This website stores data such as
cookies to enable essential site
h 1
V h W h2
Marketing
and the weighting factor W h is
Personalization
various frequencies. The factor pf was added to simulate coupling with an adjacent telephone
line. p=5 has traditionally been used aand
nd is standard
standardized
ized by IEER Std. 519 for power system
applications.
h N
Vh C h2
h1
C messa
message
ge ind
index
ex =
V total
The factor Wh or generally Wf is also called the Single Frequency TIF and is listed in the
table below on a 60 Hz base.
base. For 50 Hz systems on
onee would interpolate.
Marketing
Personalization
Analytics
30
h
h1 h I
K h N
I h 2
h1
h N
1 Pec r
I h2 1 K Pec r
h 1
where Pec-r is the rated eddy load factor in per unit. The generated graphics files of derating
as function of Pec-r are serialized as derate01.ext, derate02.ext..., with ext= plt for HP-GL
format,
for Postscript for
cgm CGMpcx
format, format, wmf for
for Windows
for PCX format, and gnuMetafile,
png for PNG, jav for JAVA, eps
for GNUPLOT format.
2
1 THD
DIN
THD2
Peak Value
Marketing
Vavg Vi / n
i 1
Personalization
Crest Factor
Analytics
Save
The crest factor is
Accept All
31
V peak
Crest Factor
V rms
Form Factor
In the above formula IEC recommends that N up to 40 be used. The ANSI and Canadian
standards limit the total harmonic load to 1.35 per unit rating.
In all the equations:
Personalization
Derived from table:
1) RMS Fundamental = 3.6373E+02 Subharmonics = 6.2373E+01
Analytics Harmonics = 2.5108E+01 Interharmonics = 0.0000E+00
Distortion = 6.7237E+01 Total = 3.6989E+02
2) THD Even = 0.0000E+00 % Odd = 6.9030E+00 %
Save AcceptBalanced
All = 6.9030E+00 % Residual = 0.0000E+00 %
Subharmonics = 1.7148E+01 % Harmonics = 6.9030E+00 %
Interharmonics = 0.0000E+00 % Total = 1.8485E+01 %
32
The balanced PQI refers to positive and negative sequence components, (not triplen
harmonics) for three-phase systems, and residual refers to homopolar sequence components
(triplen harmonics).
Even or odd refers to only even or only odd components added to the corresponding THD.
Some Standards allow different magnitudes for even or odd harmonics.
More information over definitions and applications of this Power Quality Indices as calculated
by
in aGTPPLOT can be found
Circle Publications, 9637inN.
the117
book “Electric Power Quality”,
Street-Tradewinds- Scottsdale,byAZ
Prof. G. T.
85259 Heydt, Stars
USA.
Privacy Policy
Marketing
Personalization
Analytics
33
Selected Guidelines, Recommended Practices, and Standard Limits of THD, TIF, V·T,
and I·T Product
Privacy Policy
Marketing
Personalization
Analytics
34
GTPPLOT can calculate and plot a family of Fourier series. This option is available by setting
time0 to a negative value. This type of plot can be useful to study resonance phenomena. If
FREQF is negative, only this harmonic will be plotted as time function.
An example of ferroresonance follows, where the amplitude for some frequencies rise with
time
Privacy Policy
Marketing
Personalization
Analytics
35
Appendix 5
SHAFT.
GTPPLOT can estimate fatigue from the torque output and shaft data.
This website stores data such as
cookies to enable The methodsite
essential is described in [8].
functionality, as well as marketing,
personalization,Theand authors
analytics.ofYouthis paper developed an auxiliary program (named PERVIDSM) to estimate
may change your thesettings
fatigue,at reading
any timethe torques from the .lis file (the ATP output) of each case. The program
was settings.
or accept the default compiled with constant parameters, corresponding to the machine studied, and was
verified with a commercial program of a European consulting firm.
Privacy Policy GTPPLOT reads the torque values from a ATP case, and shaft data from an auxiliary file (one
for each shaft section)
Marketing
The shaft section data may be in Metric or
Personalization British units.
Analytics
As sample, the following are the data for the
t he first section of the machine studied
st udied in the paper:
Save Accept All
In metric units
36
or in British units
HP-IP SECTION section's name
ENGLISH
102.41 SU static strength (kpsi)
12.7952756 DEXT external diameter (inches)
5.11811024 DINT internal diameter (inches)
2.40 K stress concentration factor
1.11 CS roughness factor
1.27 AKT size factor
References:
[11]data
This website stores A. C.
suchAlvarez,
as J. A. Nizovoy and L. A. Almassio, 'FATIGA POR OSCILACIONES
cookies to enable TORSIONALES
essential site EN UNIDADES TURBOGENERADORAS', (in Spanish), Seminario
functionality, as Universidad Nacional de Bahía Blanca, Argentina. Bahía Blanca, Dec. 1984.
well as marketing,
personalization, and analytics. You
may change your settings at any time
or accept the default settings.
Sample of SHAFT
Privacy Policy
Output of GTPPLOT for a case: (only the significative parts)
Marketing........
Section HP-IP
Static admissible stress 706.376221 MPa = 102.410004 kpsi
Personalization
External diameter 0.325000 m = 12.795276 inches
Internal diameter 0.130000 m = 5.118110 inches
Analytics
Theoretical concentration stress factor 2.400000
Roughness factor 1.110000
Save Size Accept
factor All 1.270000
Total reduction factor for fatigue 3.383280
37
Privacy Policy
Marketing
Personalization
Analytics