ATPRuleBook BM PDF
ATPRuleBook BM PDF
ransients
rogram
(AT P)
R u Ie Book
Copyright © 1987-92 by Canadian I American EMTP User Group
o. Table of Contents
No page numbers accompany the chapters and sections listed below because such
numbers are methodically generated from the given information. This is most easily
explained by illustration. Section I-D is seen to concern the SUBROUTINE CIMAGE,
which would begin on page number 1D-1. The following page would be numbered 1D-2,
etc. This assumes that there is sufficient material to warrant two levels of
independence (Chapter I, Section D). Some chapters are so short that sections are
not warranted, in which case the letter in the middle will be omitted. For
example, the references of Chapter XXV begin on page 25-1, followed by page 25-2,
etc. In rare cases there may be three levels of categorization. For example,
Section IV-D-3 will begin on page 4D3-1, followed by page 4D3-2, etc.
A. Purpose of TACS
B. Summary of TACS capability
C. How to simulate what
D. TACS steady-state initialization rules
E. TACS elements and card formats
1. Transfer functions or S-blocks
2. Limiters
3. Signal sources
4. Supplemental variables and devices
5. TACS output-variable specification
6. TACS user-defined initial conditions
F. Printed/Plotted Output of the TACS Variables
G. TACS User-Defined Initial Conditions
H. Use of TACS and MODELS in the Same Data Case
I. MODELS: more powerful, flexible, and newer than TACS
o. Table of Contents - 2
No part of either this manual or the associated computer program (ATP version
of the EMI'P)may be reproduced in any fonn, using cards, paper, microfilm, magnetic
media, or any other means, without written permission from the Canadian/American
(Can/Am) EMI'P User Group. Further, such materials have restricted circulation, and
their informational content shall not be released to third parties.
The content of this manual, the associated computer program, and all other
ATP EMI'P materials, are all made available .for use by others without any guarantee
of usefulness, accuracy, fidelity, or completeness. No author, licensing agent,
or authorized distributor wi~~ be he~d responsib~e for any damages that might
possibly result from the use or misuse of ATP EMI'P materials for any purpose. The
user is solely responsibility for any damages that might possibly result from the
use or misuse of ATP EMI'P materials for any purpose.
EMI'P has its roots in Portland, Oregon (USA), at the Bonneville Power
Administration (BPA), an agency of the U.S. Department of Energy. Thanks to
generous contributions of both manpower and money (the latter to support
specialists working on EMI'P research and development under contract), BPA dominated
EMI'P development for more than a decade. This was all public-domain work, and it
was given freely to any interested party. This was prior to attempted
commercialization of the EMI'P during the summer of 1984 (see Section I-A-1
below) .
The present manual basically is just a complete .set of rules for EMI'P input
and output. Except for the Table of Contents and Introduction at the front
(through the end of Section I), and the References and Index at the back
(Sections XXV and XXVI, respectively), nothing but rules of program usage will be
found. Since most EMI'P data have a required order of input, the rules of this book
have been written in this same order of data input. Supporting programs (e.g.,
"LINE CONSTANTS") are exceptions, and they have all been forced to the back
(Chapters XVII through XXIV) to agree with the order of appearance wi thin the
computer source file (UTPF). Details about interactive execution, observation, and
control (SPY) also have no fixed order, and they have been placed in Chapter XVI,
preceding the supporting programs.
The Can/Am user group is grateful to BPA for all of its public-domain EMTP
development that formed the basis for this newer, improved, offering of the
program. The roots of ATP can be traced to early 1984, when it became apparent
to BPA EMTP developers that DCG was not working as it was supposed to, and formed
a threat to free EMTP. At that point (February or March), 12 years of "EMTP
Memoranda" were ended by Dr. Meyer, and every available hour of his free (non-
BPA) time was switched from BPA's EMTP to the creation of a viable alternative that
would be denied to those having commercial ambitions (already apparent among
several DCG members). ATP, the Alternative Transients Program, was the result
during the fall of 1984. This followed Dr. Meyer's return from Europe (the first
European EMTP short course, in Leuven) and purchase of his first horne computer (the
new IBM PC AT) during August of 1984.
But such DCG/EPRI policy was nothing more than wishful thinking by those
wanting to commercialize the EMTP. During April of 1985, a U.s. Freedom of
Information Act (FOIA) request was filed with BPA, and BPA disclosed its
then-latest version of the UTPF as required by that U.S. law. Since then, strong
statements from BPA indicated that both U.S. government work and money must result
only in public-domain EMTP products. This was consistent with the hopes of
European EMTP users, of course. Prior to such statements by higher management and
its representatives at BPA, LEC (the Leuven EMTP Center with headquarters on the
campus of K.U. Leuven in Belgium) was formed by Prof. Daniel Van Dommelen during
the spring and summer of 1984 as a defensive measure. This was after hearing of
proposed DCG/EPRI prices during. a personal visit by DCG Chairman Doug Mader.
Although LEC later had problems of mismanagement, everyone involved can be proud
of those early years, and the obvious spirit of independence ("hell no, we won't
pay") that drove the effort. The first annual meeting. of LEC was held in Leuven
on November 4th of 1985, and Dr. Meyer agreed to bring ATP. About possible
cooperation with those who then were trying to sell EMTP, the official minutes of
this meeting records the following:
If_ It was unanimously agreed that the User Group wants to
influence the politics of development by making a
distinction between:
- the EMTP proper (UTPF),
which should remain free and intact.
- Preprocessors, postprocessors and data bases,
which could be things to sell.
- After this discussion, it was agreed that TA should
contact DCG in order to request EPRI not to sell the EMTP
proper (UTPF). Should this first attempt prove to be
unsuccessful, then DVD could try."
Here "TA" stands for Mr. Ture Adielson of MEA, who at the time was the EMTP
representative of MEA to both DCG and LEC. Finally "DVD" indicates Prof. Van
Dommelen, the Chairman of LEC. Prior to the vote authorizing this statement, Dr.
Meyer had agreed to turn his ATP work into the public domain provided DCG and
EPRI would do likewise. No response from DCG or EPRI was ever received, as far
as the Can/~ user group knows.
I-A. Background of ATP; User Groups; Education - 3
Both K.U. Leuven and LEC operated through 1993 without any formal connection
to any power organization of North America. However, LEe did cooperate with BPA
on an informal basis for several years (most effectively from 1985 to 1989), and
it remained willing to consider the establishment of a formal tie provided non-
commercial EMI'P activity at K.U. Leuven could thereby be assisted. This was the
stated goal of LEC, which was supposed to be a nonprofit organization. The
Chairman did serve without pay, and decisions normally were made (or subsequently
reaffirmed) by majority vote of the members. That was through 1990, anyway. But
with growth came affluence, and with affluence seemed to come corruption as
discovered by LEC's own Steering Committee. After failing to account for all money
collected from members, and failing to honor voting rights of members in this
regard (accurate accounting of money), LEC was closed at the end of 1993.
But the European EMI'P User Group (EEUG) was reformed in Hannover, Germany,
during November of 1994. This followed the leadership of Dr. Mustafa Kizilcay, who
was working for Lahmeyer International as the meeting was planned, but had been
named to be a Professor at the university in Osnabrueck before the meeting was
actually held. By German law, all money must be accounted for, and voting rights
of members are guaranteed by an associated charter. As this text is being revised
during the spring of 1995, operation is beginning slowly (German law is
demanding), but with considerable promise.
While each group was primarily designed to serve users of its geographical region,
anyone in the world can order ATP materials directly from either Osnabrueck or
Portland. Also, computer files are being shared on a world-wide basis among ATP-
licensed users by E-mail (the Internet). See later paragraph.
of 1989 saw the beginning of such now-famous PC-based education offered by Prof.
Dennis Carroll at the University of Florida in Gainesville. Prof. Ned Mohan began
his popular 2-day, traveling (it follows IEEE PES Summer Meetings) course in 1990
when the PES meeting was near his home campus in Minneapolis. As for more advanced
education, Europeans were first, when a high-level course for experienced users
was given during the summer of 1984 by Prof. Daniel Van Dommelen atK.U. Leuven in
Belgium. While needed, such advanced courses have difficulty attracting adequate
numbers of students to be offered regularly.
The EMTP Rule Book contains almost nothing about what is happening in the
world of EMTP usage and development. For EMTP-related announcements, reports of
interesting stUdies by program users, corrections to the Rule Book and/or common
program versions, and summaries of ongoing EMTP research, see the newsletter of
the Can/Am user group. This is Can/Am EMTP News, which during 1994 and 1995 has
consisted of 20 pages per quarterly issue (January, April, July, and October of
each year). Dating to the second half of 1988, WordPerfect 5.1 documents of the
content can be obtained by E-mail from several Anonymous FTP sites around the world
(more about such E-mail usage later).
"EMTP News" was a valuable journal about EMTP that was published by LEC for
some 6 or 7 years prior to LEC's demise in 1993. Early issues of the Can/Am
newsletter will refer to this, which is an important part of the historical record
of ATP usage and development. Unfortunately, no computer storage of most of the
published material is believed to exist. It is hoped that the tradition of a
journal for .full-Iength articles about ATP use (more than development) can be
resurrected during 1995 by the new EEUG, which would use the more appropriate name
"EMTP Journal." A newsletter, this was not (during its prime, each issue of the
quarterly "EMTP News" averaged about 100 pages).
E-mail (electronic mail) has become critically important to many ATP users.
As WordPerfect disk files, the newsletter and other ATP-useful things can be
obtained from FTP server f~.[Link] (the former plains server, which became
a mirror [Link] during April of 1995) using Anonymous FTP transfers
of Internet. These two sites are in the north-central USA (Michigan Tech in
Houghton and North Dakota State University in Fargo, respectively). There also is
a mirror in Europe, at the University of Hannover in Germany at address
[Link] Details are summarized in the January, 1995, newsletter. Prof. Bruce
Mork of Michigan Tech in Houghton manages this material. He also established a
free electronic bulletin board atp-em~@~.[Link] that allows ATP users to
exchange messages. See the october, 1991, issue of the newsletter for Prof. Bruce
Mork's 3-page exposition about this pioneering, ATP service he founded. That
article also can be found in [Link] within disk file EMro:[Link] on the GIVE2
disk of SalfordEMTP distribution. The service is free, and had grown to more
than 200 addresses by the end of 1994. Prof. Mork explained FTP use in the July,
1992, issue (see [Link] within EMro:[Link]). ATP itself can be distributed
by FTP, but not without security (a password). ATP also can be distributed by
normal E-mail using the Attach button of MS Mail within MS Windows (this
UUENCODEs an archive such as GIVEI. ZIP automatically) as described in the
January, 1995, newsletter.
BPA personnel who are preoccupied with free EMTP development are Drs. W.
Scott Meyer and Tsu-huei Liu, who most easily can be reached by telephone using
number (503) 230-4404. Dr. Liu's telephone is -4401, but this is less useful
because it has no recorder, and a secretary might answer. If no human answers
4404, after a full four rings a personalized recording in Dr. Meyer's voice will
be heard. If the phone is in use, the recording will be heard immediately.
Following Dr. Meyer's brief greeting, a caller will be given an opportunity (after
the tone) to leave a recorded message (not over about 8 minutes). A warning is
appropriate, however: Speak slowly and distinctly, since the recording system
produces distortion of j ts own as evidenced by the quality of the recording. When
the message is complete, a flashing red light will be seen on Dr. Meyer's
telephone. For a telephone call to be returned, be sure the name
and telephone number are slowly and clearly enunciated. Finally, the address for
conventional mail, E-mail, and also telephone facsimile (FAX) is:
Dr. W. Scott Meyer or
Dr. Tsu-huei Liu E-mail: thliu@[Link]
BPA, Route TEOS; Floor 4, Post S-14
P. o. Box 3621
Portland, Oregon 97208
U.S.A. FAX: (503) 230-3212
Those wanting to use a delivery service will require a street address: 905 N.E.
11th Avenue, with different postal code 97232. Be sure to include the floor and
post, since BPA's is one big building of some 2200 workstations.
Laurent Dube, author of MODELS (new control system modeling), also can
be reached most easily by E-mail. Use dube@[Link] (Internet address). He also
has voice telephone with a recorder: (503) 392-4551. For FAX, Mr. Dube uses
392-4575. Located on the Oregon coast about 2 hours by car from Portland, the
mailing address is: DEI Simulation Software
7000 Rowan Road Manor
P. O. Box 848
Neskowin, Oregon 97149
U. S .A.
* Lumped resistance, R
* Lumped inductance, L
* Lumped capacitance, e:
* Multiphase pi-equivalents,
where the preceding scalar
R, L, and e become
symmetric, square matrices
[R] , [L] , and [e].
* Multiphase distributed-parameter
transmission lines, wherein propagation
time of the component is represented.
Both constant-parameter and frequency-
dependent representations are provided.
I-C .. Summary Program Capability - 2
* Time-varying resistance.
As a general rule, the new EMTP (i.e., ATP) is less demanding of computers
than were the older ("M39." and before) versions. However, structure is different,
so successful experience gained from "M39." and earlier versions is being omitted
from this documentation. Most if not all of the two dozen. or more distinct
computers that once were proven to be EMTP-compatible (for the old code) probably
remain compatible for the new code, too. Yet this is not yet known for sure. As
an honest, conservative approach, all former (pre-ATP) material is being removed.
For those wanting information about the portability of "M39." and earlier EMTP
Versions, refer to the Rule Book dated June, 1984.
For all computer systems, program execution begins with a one-line prompt
that shows the most important alternatives within parentheses:
$emtp
EMTP begins. Send (SPY, file_name, DISK, HELP, GO, KEY)
Spy
If the user is communicating with the operating system in real time via a keyboard
(as opposed to being horne in bed while some batch-mode processor runs his job
during the middle of the night), then his next input is crucial to how the program
begins execution. If the user knows nothing, he might send the 4th listed
alternative ("HELP"), which results in the following universal information about
the various choices:
2) "file name". If not one of the listed key words (in capital letters),
the input line is taken as the name of a disk file of data. for batch-mode solution.
If this ends with a period, ".dat" (the implied file type DATTYP of the
STARTUP file) will be appended.
3) "DISK" is request for later prompt for LUNIT6 disk file name.
5) "GO" is for batch solution, like 2, only for the special case of an
external connection of the data file to LUNITS.
6) "KEY" is for use of LUNIT5#=#S data input (no use of LUNT10 cache).
The 1st alternative, "SPY", should be used only with those computers that have
the capability of interactive EMTP execution, observation, and control. Verify
availability in the installation-dependent section applicable to the computer of
interest before any such attempt. Then refer to Section#XVI for generic
instructions of usage. A disk file name. may follow "SPY", separated by a blank
and possibly preceed~d by the character. "@" (indicating a Spy command file rather
than an EMTP data file). For further details, see the "DATA" command of Spy in
Section XVI:"C-l.
I-C. Summary Program Capability - 4
Arguments of the type used with SINCLUDE can follow the file name for
special cases. Of course, a special data file is required, and arguments must
match the demands of the data file in both number and type. If ".dat" is not
explicitely keyed, remember to leave room for it (at least 4 blanks) before any
arguments begin, since the ".dat" will erase whatever exists at the time and
place of its application. An illustration using a single argument is provided by
BENCHMARK DC-65, which begins execution as follows. Note that there is only one
argument, the end time TMAX of the study, which is being set to 7/10 second:
Semtp
EMTP begins. Send (SPY, file_name, DISK, HELP, GO, KEY)
dc65. 0.70
For more details, see "DATA BASE MODULE" of Section XIX-F. Two or more arguments
require use of a comma "," as a separator (possibly changed by variable CHRCOM
on card 19 of the STARTUP file). To continue the argument list on a second or
later input line, simply key "SS" (possibly changed by variable CHRCOM on card
19 of the STARTUP file) on the right in any columns not exceeding 79-80. The
following continuation line begins in column 2 (column 1 is ignored, so do not
begin an argument there). There is no limit to the number of such continuation
lines.
To over-write an existing file of the same name, append "-r" or "-R" for most
computers. For example: "dc4. -rtf. Without this request to replace the old file
with the new one, the EMTP will prompt for a correction.
The 5th alternative input is "GO", which is not universal, and which is not
recommended for any computer that has dynamic OPEN/CLOSE capability. It is only
necessary and sufficient for those installations that lack such capability (e.g.,
mainframe IBM systems) --- computers that require the user to connect the EMTP
input data file externally. For typical batch-mode IBM usage, this would be as
part of the Job Control Language that runs the program. The "GO" command then
informs the computer that data has already been connected, and that the user now
wants the solution to proceed.
The 6th al ternati ve input is "KEY", which has specialized use. One
application is for program (or data) debugging using computers with windows (see
the Apollo pages). Another application is for the production of batch-mode EMTP
plots one at a time, with the user allowed to see the preceding plot before
creating the following plot card. This assumes that the user is communicating with
the operating system in real time, and that he is using a terminal that is capable
of displaying the requested plots. It also assumes that the simulation of interest
has already been performed, and that raw plot data points have been saved on disk
(integer miscellaneous data parameter ICAT > 0). Consider the following sequence
of keyed input lines in response to the initial EMTP prompt:-
I-D. $-Cards of "CIMAGE" Can Be Ordered Arbitrarily - 1
KEY
$OPEN, UNIT=4 FILE=//A/WSM/DC3T054.PL4 .... (etc.)
REPLOT
144 1. 0.0 20. 18-A 18-B 18-C
The 2nd card shown connects the plot file to the program, whereas the 3rd
("REPLOT") transfers control to batch-mode EMTP plotting. The 4th card is the 1st
of an indeterminate number of batch-mode EMTP plot cards. Since these are only
read one at a time as needed, the user can request whatever he wants in whatever
quantity he wants, based of the results of previous plots. It is possible that an
extra card, "DISK PLOT DATA", might be required after "KEY" and before
"REPLOT". This is the case for those program versions (e.g., Apollo) that do not
have an LUNIT4 connection to disk by default. There may also be need of a
"CALCOMP PLOT" or "PRINTER PLOT" request before the first [Link] card, if .the
STARTUP file does not correspond to the available mode of the terminal being used.
Finally, remember that the $OPEN card is installation-dependent. For details
of this example, see BENCHMARK DC-54.
The 7th and final alternative, not suggested by the prompt, ~s "STOP",
which represents a generic way to terminate program execution. But since most if
not all computers have vendor-specific ways that may be more convenient and
natural, it is unclear whether the average user will want to key "STOP" just to
halt the program.
Once program execution is under way, output designed for the line printer
(the LUNIT6 I/O channel) will be created at intervals, and variables of interest
may be written to a disk file (typically with file type ".PL4") for later
plotting. Whether the user sees much if any of this will depend upon whether or
not he can see the LUNIT6 output on a computer monitor during this time. The
"DISK" conunand obviously prevents this for most systems, as might the "GO"
conunand (if a file were assigned externally to LUNIT6).
Formal error terminations are a special form of output with which every user
should be familiar. It is difficult to overlook any such messages, since the
LUNIT6 output is marked before and after by the following characteristic, 4-line
band of printing that is a full 132 columns wide:
ERROR/ERROR/ERROR/ERROR/ERROR/ERROR/ERROR/ERROR/ERROR/ERROR/ERROR/ .. , etc.
ERROR/ERROR/ERROR/ERROR/ERROR/ERROR/ERROR/ERROR/ERROR/ERROR/ERROR/
Non-fatal warning messages are usually much more inconspicuous, but should
be looked for, and understood, by the intelligent user. Usually such messages will
be indented, and often they are preceded by several special symbols. As an
example, consider: "///##Warning.##Nonzero XOPT or COPT differs from the power
frequency of 6.00000000E+Ol Hz. Did the user really want this?" Not shown here
is the indentation of two spaces.
I-D. $-Cards of ·CIMAGE" Can Be Ordered AIbitrarily - 2
It is such universal rules that will be described in the remainder of the present
section. For specifics of computer- or installation-dependent exceptions or
extensions, see that section of the Rule Book that applies to the computer of
interest.
Note the single comma, after the request word. All other qualifiers are separated
from each other by one or more blanks, not commas (note!). Although the display
has been spread onto a second line for convenience of presentation, this is not
allowed as EMTP data, which must all fit within a single, SO-column card image.
The qualifiers can appear in any order, and variations should be obvious to any
FORTRAN programmer. For example, FORM=FORMATTED would be possible, as would
STATUS=NEW, STATUS=SCRATCH, or STATUS=UNKNOWN. Yet some of this is
computer-dependent. For example, VAX can always create a NEW file (given a higher
version number by VAX/VMS), whereas Apollo only can do so if a file of the desired
name does not already ~xists. An unfortunate peculiarity of Apollo Aegis is the
need for the "RECL=" qualifier (most systems can dispense with this detail).
Remember that using STATUS=SCRATCH conflicts with the use of "FILE=", so these
two should never be used together (see the 2nd subcase of BENCHMARK DC-24 for
sample STATUS=SCRATCH usage).
C 1 2 3 4 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
Connect disk file to I/O unit. I$OPEN, UNIT=2 FILE=DC24.
Other test cases illustrating $OPEN are: 1)##DC-3, which illustrates the manual
naming of the plot file (rather than having a random name based on the date and
time of day); 2) ##the second subcase of DC-24, to connect the file of
user-supplied switch times, [Link], to unit 8; 3)##DC-32, where the disk
file of program tables (created because MEMSAV#=#l) must be connected by the
user. 4)##DC-46, where the plot file created by DC-45, DC45.PL4, is connected
for postprocessing using TACS; 4)##DC-49, which is like DC-40 except for the
lack of dice rolling (it provides a continuation for the deterministic DC-32);
5)##DC-54, where the plot file created by DC-3, DC3T054.PL4, is connected for
purposes of delayed, batch-mode plotting. using REPLOT.
Should more than 80 columns be required due to a long file name, the user is
advised to use a continuation request "=$$" on the right of his $OPEN card. All
partial cards begin with "$OPEN," in columns 1-6. For an illustration of such
usage, see BENCHMARK DC-66. Interpretation will be identical whether or not the
$OPEN is contained on a single card.
The addition of "SHOW CARDS" anywhere on the $CLOSE request will result
in a listing of 80-column card images of the file just as though the cards had been
punched (see $PUNCH). This is just before the file is released. For an
illustration, see the second subcase of BENCHMARK DC-52.
C 1 2 3 4 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
Disconnect disk file from I/O unit. I$CLOSE, UNIT=2 STATUS=K
Any data case with MEMSAV#=#l, or the associated subsequent "START AGAIN", will
use $CLOSE. Other test cases are the first and third subcases of BENCHMARK
DC-24, DC-32, all subcases of DC-49, and the 2nd subcase of DC-52.
$WIDTH,#M##allows the user to modify the LUNIT6 output Width, most commonly
between 80 and 132. Such $-card specification will overide the initial choice that
has been built into the STARTUP file. All output structures for simulation usage
can have the width so controlled, although little has been done for non-simulation
supporting programs (e. g. , "LINE CONSTANTS"), most of which produce only
132-column output. '~ne usage that may have nothing to do with width is to have
132-column output everywhere except for the branch flows and nodal injections of
I-D. $-Caras of "CIMAGE".Can Be Ordered Arbitrarily - 4
the phasor solution. This can both speed output and save considerable paper, since
no reverse flows are printed, and the forward flows are shorter.
C 1 2 3 4 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
New KOL132 = 80 (LUNIT6 output width). I$WIDTH, 80, { Req
$ABORT results only in setting the error flag KILL#=#88. For most places
of a data case, this will direct control to special error message number 88, and
then result in a skip to the next data subcase of the disk file, should one exist.
The location of $ABORT is not arbitrary, although it can be placed before just
about any blank terminator card as an extra record.
C 1 2 3 4 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
End data subcase. "[Link]" sets KILL = 88. I$ABORT { :Illustration
Any $ INCLUDE file may contain $DISABLE and $ENABLE as a matched pair.
Just be sure that $ ENABLE always appears in the same disk file as the preceding
$DISABLE. For an illustration, see BENCHMARK DC-17, which has $DISABLE and
$ENABLE within [Link], which is called by [Link] (in turn called
by DCn .DAT) •
C 1 2 3 4 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
End of data to be .ignored (implicit ftC ft). I $ENABLE, ONLY THIS ONE C
•.. ARD ENDING 5 CARDS OF $DISABLE/ENABLE IS RETAINED.
Another illustration can be found in BENCHMARK DC-24:
I-D. $-Cards of "CIMAGE" Can Be Ordered Arbitrarily - 5
Interpretation of the $NEW#EPSILN request confirms both the old and the new
value for the tolerance. The following illustration is from BENCHMARK DC-12:
C 1 2 3 4 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
EPS:LN change. Old, new = 1.000E-08 1.000E-09 1$ NEW EPSILN, 1.E-9, {
So much for the original use of $MONITOR, which was designed before the use
of scientific workstations such as Apollo. For dedicated personal computers that
have scrollable windows, there is seldom a good excuse for diverting the LUNIT6
output from the window in which the program is being executed. So, there was
little use for the $-card. When the idea of a request for the wall-clock time came
to mind, it was easy to switch to this more useful and different meaning. So, for
Apollc and some other more modern computers, $MONITOR will still produce the
132-cclumn line of the preceding paragraph, but this is just part of the regular
LUNITE output. The card index for LUNTI0 storage is displayed, as shown by the
following illustration:
C 1 2 3 4 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
Send time to CRT monitor. Card NUMDCD = 5492. 1$MONITOR { Request t
But there also is an extra such output that includes the date and the time in the
interpretation, and this extra line goes to the CRT screen (Apollo window). An
illustration follows:
C 1 2 3 4 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
Monitor time = 10-Apr-86 14.10.30 I$MONITOR { Request t
To observe such usage, see the solution to standard test case BENCHMARK DC-3 for
the computer of interest. The preceding. two examples were taken from the Apollo
solution of this data.
I-D. $-Cards of ftCIMAGE" Can Be Ordered AIbitrarily - 6
:I -0-9 • .!IIi$~LI.:!7t.!lS~TO~N~_~t:::o~r..:!ei:.ls~t~1T~ne......!!<o:.!Out.::t~p~u~t=:"1",,,'n~q::t-l.=·~n~t:.:o:e""rp,.......re~t::e""d",,-=;m=a::g""e,..s......o...,f=--l.=·""n""p;.::u""t.....,c",,&r=d.s=
C 1 2 3 4 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
Turn off input data listing at card 5505 I$LISTOFF, ----- Precedi
Turn on input data listing at card 5508 I$LISTON
Note that two card images, numbered 5506 and 5507 (indices of the EMTP card cache),
are invisible in between the two that are seen in the solution.
$VINTAGE,#M allows the user to choose between old and new data formats on
a component by component basis. Here integer constant "M" characterizes the age
of the data (only 0 and 1 have meaning so far). Data options will be described
later in the manual, along with the components that allow such a choice.
C 1 234 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
New MOLDAT = 1 (data vintage). I$VINTAGE, I, {Switch fr
When data of a disk file runs out (blank card ending the last EMTP data case),
execution returns to this prompt. Well, this is the intended result of $STOP
usage, too. Yet operation is necessarily less than perfect, depending upon where
execution was when the card was read. All "[Link]" can do is set a flag (KILL =
-9999) that will be looked for at various places in the program (e.g., the end of
each overlay). Since there are hundreds of calls to the module, it is unrealistic
I-D. $-Cards of "CIMAGE" Can Be Ordered Arbitrarily - 7
to burden the program with a check after each call. So, there will be the hoped
for reprompt if nothing illegal to the operating system (e.g., a numerical decode
of the character string "$STOP") occurs before the flag is observed. For an
example, see BENCHMARK DC-42, the second subcase of which uses $STOP after plot
cards. There is no problem with recognition and recovery, it will. be seen.
C 1 234 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
Halt execution: "CIMAGE" sets KILL = -9999. I$STOP { Illustrate im
C 1 2 3 4 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
5602 :BLANK card ending branch cards
C 1 2 3 4 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
Paint input data on screen, every 25 -th card. I$WATCH, 25, { Illustrate
$ COMMENT serves to toggle the binary flag that controls the interpreted
output of comment cards among input data. Following the first appearance of such
a card, comment cards will be discarded and. not seen in the LUNIT6 file. A second
such request card will return the control to its original state, so that subsequent
comment cards will be interpreted and displayed.
C 1 2 3 4 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------I----~--------------------
Toggle comment card destruction. New Nl1 = 1. I$COMMENT {
I-D. $-Cards of "CIMAGE" Can Be Ordered Arbitrarily - B
C 1 2 3 4 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
New IPRSUP = 8 (DIAGNOSTIC value). I$DEBUG, 8, {Illustrativ
Interpretation of the input data confirms the new values for parameters XOPT
and COPT. An illustration is provided by BENCHMARK DC-11, from which the
following line was taken:
C 1 2 3 4 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
New XOPT, COPT = 1.59154943E-01 1.59154943E-07 I$UNITS, .1591549431, .15
Of course, punched cards have just about gone the way of the dinosaur, so the
first question is about the disposition of the card images. Most systems will
produce both a separate disk file and also a labeled display of the card images on
LUNIT6. For details, consult the appropriate installation-dependent information
in Section I-F, and look to established illustrations such as BENCHMARK DC-13.
It should always be legal to follow the request by a disk file name that is
separated from the preceding "$ PUNCH " by a comma and an arbitrary number of
blanks. See the illustration immediately below. But be aware that there is no
guarantee that all computers will actually send the punched cards to that file.
Most should, however.
I-D. $-Cards of ftCIMAGE ft Can Be Ordered Arbitrarily - 9
C 1 2 3 4 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
Request for flushing of punch buffer. I $ PUNCH, [Link]
Immediately after this will follow a listing of the card images being
processed, below a 4-line heading that includes an 80-column ruler. The heading
will appear as follows (truncated on the right):
A listing of 80-column card images now being flushed from punch buffer folIo
=======~================================---================================
1234567890123456789012345678901234567890123456789012345678901234567890123456
============================================================================
After the last card image, there will be a single bounding record to inform
the user that card "punching" is done. This will appear as follows (truncated on
the right):
:I-D-17. SEBASE to ini [Link] the buffer that holds punched cards
$ERASE##is used to destroy any card images that might be in the punch buffer
at the time this request is encountered. A conservative strategy is to always
include $ ERASE at the start of data that is designed to result in punched cards,
since it is not always clear what might be executed ahead of the data case of
interest.
C 1 2 3 4 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
Erase all of 0 cards in the punch buffer. . I$ERASE
C 1 2 345 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ---------------------<--------------------------- I -------------------------
Reinitialize using this STARTUP file. I$STARTUP, [Link]
C 1 2 345 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
Data input next from keyboard (until "END"). I$KEY
$BREAK##is similar to the preceding $KEY, only here the alternate input is
changed to the SPY input channel rather than the keyboard. Of course, the two
channels may be the same, for a crude, single-window implementation. But whether
or not the input medium or channel is distinct, the destination of the input data
is completely different. Whereas $KEY introduces normal EMTP data cards, $BREAK
introduces Spy data. Time-sharing has automatically been disabled, so Spy input
will continue until the user sends "GO". Of course, $BREAK can only be used
with interactive execution (Spy), and this must be selected at the beginning of
execution.
$BREAK##is much more powerful than $KEY because Spy provides a new
dimension of flexibility. For example, the user can modify any EMTP variable using
DEPOSIT, and this includes the variable controlling $KEY usage. That is, if the
user wants $KEY to be in effect when he leaves Spy with a subsequent "GO",
he need only change the value of binary flag KEYBRD from zero to one.
test cases do not illustrate such usage because, if it were added, the case then
could not be properly executed in the batch mode. So, if the user wants an
illustration, he must make his own. In any case, interpretation should appear as
follows:
C 1 2 3 4 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
Data input next from Spy (until SPY "GO"). 1 $ BREAK
I -0-21. !I'$~I....
N..,C""L"!:UD~...
E'___ _ _~n~o<-...:1.""o""n....:::tg~e"'r......,w"'1=·..>:t~h"".i....n____'_'C::<:I""MA,""",G,..E,,-"
$INCLUDE##is a very powerful and important command that once was honored by
"CIMAGE". But since the advent of data modularization and sorting by class (see
Section I-J), the original code of "CIMAGE" was removed. In its place, fortified
and generalized service has been added at the beginning of program execution. So,
if the original data had $ INCLUDE usage, all of this will have been converted
before "CIMAGE" is called for the first time.
I.E Computer-Dependent Aspects and Alternatives - 1
Disk file names are not defined by the ANSI FORTR.l\N 77 standard. Disk,
directory, and subdirectory names, and file extensions (if any) all may vary from
one system to another. There are no general rules. Furthermore, beware of the
fact that some operating systems (e.g. Unix and Apollo Aegis SRlO.x) are case
sensitive as far as file naming is concerned. Hence, all program features that
depend on file names (e.g., REPLOT, $ INCLUDE , $ PUNCH , etc.) might vary from one
computer to another. Most such usage relies on the FORTR.l\N OPEN statement,
which may involve further variations, and which may not even exist in the intended,
dynamic sense (for years, ATP versions for IBM mainframe computers allowed no such
use). Installation-dependent information must be consulted for all aspects of disk
file naming and use.
The environment for actually executing EMTP depends upon the computer being
used and also, sometimes, upon the mode of usage (thinking of the difference
between "batch mode" and "demand service"). Operating systems will vary with
manufacturer, except for the increasingly popular Unix that now is available (but
not always used) for almost any computer. Hence, no details that are universal,
and applicable to all computers, can be provided. Yet local experts should always
be able to advise about such matters.
STARTUP is the name of a disk file that will be used by all computers to
initialize installation-dependent variables as a new disk file of input data is
about to be loaded. Possibly the name will be different for some computers or
installations, however, because it is installation-dependent FUNCTION RFUNL1
that connects STARTUP. In any case, a representative sample of the disk file for
Salford EMTP, as distributed by the Can/Am user group during March of 1994, is
shown immediately below.
1 RHIGH EPSZNO EPWARN EPSTOP EPSUBA EPDGEL EPOMEG SZPLT SZBED TENFLZ
1.D+10 1.D-8 1.D-3 0.1 100. 1. D-16 1.D-15 10.0 72.0 10.
2 SIGMAX TENERG DEGMIN DEGMAX ZNOLIM ( 1), ( 2 ) STATFR ZNVREF XMAXMX AINCR
4.0 1.D+20 0.0 360. 1.0 1.5 60.0 1.E-6 2.0 .05
3 FREQFR HLETT1 Unused VHS VS VH TAXISL VAXISL FILL1 FILL2
0.25 8.0 1.0 10. 10.0 8.0 6. 7.0
4 TOLRCE FHTAX FXSUP FYSUP FXTIT FYTIT VPLOTS VPLOTL Unused FTCARR
8.E-5 0.5 .25 .03 0.10 0.1 1.0 5.0 1.5
5 FXNUMV FXNUMH FVAXTT FXVERT Unused TIMTAC OVRLAP FLZERO EPSILN FLTINF
1.5 5.0 -2.5 0.0 0.0 0.5 1. D-12 1.D-8 1.D+19
6 XHEADM YHEADM HGTHDM XCASTI YCASTI HGTCST XLEGND YLEGND HGTLGN PIXPUN
2.5 7.95 .55 0.5 7.3 .35 0.5 1. 30 .25 40
7 XALPHA YALPHA HGTALF D4FACT PEKEXP EPSLRT EPSPIV PLMARK FACOSC
1.5 6.5 . 25 -2.0 43 . 1.E-12 1. E-16 1.0 0.3
8 NMAUTO INTINF KOL132 MUNIT5 MAXZNO IPRSPY IPRSUP LNPIN MINHAR MAXHAR
1 9999999 132 1 50 o o 6 0 20
9 NFORS2 NIOMAX MRGN LINLIM MPAGE MODE28 KPGRID KPEN(l) KPEN(2) KPEN(3)
30 10 2 100 o 1 3 12 10 11
10 .. (4) KOMLEV NSMTH MODSCR KOLALP MAXFLG LIMCRD NOBLAN MOUSET NOTPPL
14 -1 50 2 5 1 3000 1 o 1
1 NOCOMM NOHELP NEWPL4 JDELAY Unused NSMPLT KOLWID KOLSEP JCOLU1 KSLOWR
o o o 0 -777 50 11 1 o 5
2 KSYMBL NOBACK KOLEXM LTEK NCUT1 NCUT2 INCHPX INCHPY NODPCX LCHLIM
200 1 60 1 13 11 2 2 o o
3 NORUN JTURBO MAXSYM IHS LIMCOL KLEVL KEXTR NOHPGL NOPOST IZGR1
013 3 79 o 000 2
14 IZGR2 LENREC LU6VRT LRLIM KASEND LUNDAT KTRPL4 JORIEN LIMPNL LUNTEX
o o 32768 75 5 3 -4 o 200 -11
5 KINSEN LISTON LIMTAC NOCALC MFLUSH L4BYTE KOMPAR LIST01 NOGNU
1 o 25 o 1000 1 1 o 1
6 LUNIT1 LUNIT2 LUNIT3 LUNIT4 LUNIT5 LUNIT6 LUNIT7 LUNIT8 LUNIT9 LUNT10
21 22 3 -4 1 6 7 8 9 10
17 KS (1) KS(2) KS(3) KS(4) KP(l) KP(2) KP(3) KP(4) KOLROV Unused
o o 12 10 7 14 o o 18
18 Name of language font file ] Window] SPY @K file name ] Central Monte file]
\atp\[Link] junk inclspy .dat
9 SSONLY CHEFLD TEXNAM CHVBAR BRANCH TXCOPY USERID -TRASH -TERRA CHRCOM
PHASOR E DUM I NAME COPY HANNOV TERRA C {} $,
o DATTYP LISTYP PCHTYP PL4TYP EFIELD FMTPL4 PSCTYP -BLANK
.dat .lis .pch .p14
C After regular STARTUP comes optional VMS-like symbol definitions that are
C used for input data file name in response to the opening prompt.
scott:==c:\atp\ {1st of 2 remote directories
ieee:==c:\surges\study\ {2nd of 2
$EOF {Software end-of-file terminates last of 20 or fewer VMS-like symbols
Note that each data card with meaningful numbers is (and must always be)
preceded by a comment card upon which the card number and variable names can
conven~ently be remembered. There are a total of 20 cards, beginning with seven
I.E Computer-Dependent Aspects and Alternatives - 4
1 RHIGH EPSZNO EPWARN EPSTOP EPSUBA EPOGEL EPOMEG SZPLT SZBED TENFAC
1.0+10 1.0-8 1.0-3 0.1 100. 1.0-16 1.0-15 10.0 72.0 10.
RHIGH (1-8) is a near-infinite value of resistance. The program may add such
resistance internally, for reasons of connectivity (e.g., in parallel with
the Type-99 pseudo-nonlinear resistance element). It should be low enough
so as to be legal, yet high enough so that no numerical problems (e.g.,
overflow) result. The reciprocal of 100 times FLZERO is commonly used.
EPSZNO (9-16) is the convergence tolerance for the Newton iteration to solve
nonlinear elements such as ZnO. This is just an initial value. It might
later be redefined by a "ZINC OXIDE" request in EMTP data.
EPSUBA (33-40) is the normalized damping index Rp/(2*L/dT) for the Type-59 S.M.
This is just an initial value. It might later be redefined by a
"TOLERANCES" request within S.M. data.
EPOGEL (41-48) is a warning convergence tolerance for the Type-59 S.M. This is
just an initial value that later might be redefined by a "TOLERANCES"
request within S.M. data.
EPOMEG (49-56) is a fatal error tolerance for the Type-59 S.M. This is just a
default value. It might be redefined by a "TOLERANCES" request within
S.M. data.
SZPLT (57-64) is the height of the plotter paper, in [inches], for batch-mode
vector (CALCOMP PLOT) plotting. The value could be changed later by a
"PLOTTER PAPER HEIGHT" request at the start of any data subcase.
SZBEO (65-72) is the limiting plot length in [inches], for the batch-mode vector
(CALCOMP PLOT) plotting. This was originally used for flat-bed plotters
(mnemonically, "size of bed"), which had a clear maximum. SZBED has no
meaning for Salford EMTP with its Epson or LJ2 outputs.
2 SIGMAX TENERG DEGMIN DEGMAX ZNOLIM(l) , (2) STATFR ZNVREF XMAXMX AINCR
4.0 1.D+20 0.0 360. 1.0 1.5 60.0 1.E-6 2.0 .05
TENERG (9-16) is the time (in seconds) for table dumping of Monte Carlo
simulations. Any value in excess of 1.E+I0 is interpreted as a request
for table dumping SIGMAX (typically 4) standard deviations before the
smallest mean switching time. This is what the average STATISTICS user
wants, since it will avoid repetitive resimulation of most of the previous
deterministic portion of the solution. For those wanting to dump tables
at time zero, a value less than or equal to -1.E+I0 is required.
DEGMIN (17-24) is the beginning angle of any extra, random switch bias.
DEGMAX (25-32) is the ending angle of any extra, random switch bias.
ZNOLIM(l) (33-40) is the maximum per unit voltage correction that will be permitted
for any iteration of Newton I s method that is used to solve nonlinear
elements such as Zinc Oxide (ZnO) surge arresters. This initial value
might be redefined later by a ZINC OXIDE request at the beginning of any
data subcase.
ZNOLIM(2) (41-48) is like the preceding ZNOLIM(l) but applies to variable value
rather than the change in that value.
STATFR (49-56) is the default power frequency in [Hertz]. The value could be
redefined later by a "POWER FREQUENCY" request at the start of any data
subcase. Note that a STARTUP file from North America will normally
contain a value of 60 Hz whereas many in the world will want to change this
to 50 Hz.
XMAXMX (65-72) is an initial per unit value that is expected to limit all
variables that are to be tabulated statistically at the conclusion of a
STATISTICS or SYSTEMATIC simulation. Later, during such tabulations,
XMAXMX could be changed by a STATISTICS DATA request. The base value
of each tabulation can be defined on the request itself (see Section XV-B,
parameter BASE in columns 3-14). For the original case of voltage
I.E Computer-Dependent Aspects and Alternatives - 6
AINCR (73-80) is the initial per unit compartment size used for statistical
tabulations. As '..vith the preceding XMAXMX, AINCR later could be
changed by a STATISTICS DATA request.
HLETT1 (9-16) is the height lettering for the curve numbers and symbols on the
right edge of a batch-mode, vector-graphic (CALCOMP PLOT) plot. Beside
each curve number and symbol is a sample horizontal line.
VHS (17-24) is the length of the vertical (Y) axis for batch-mode, vector-
graphic (CALCOMP PLOT) graphs.
VS (25-32) is the height of the lower end of the vertical (Y) axis for batch-
mode, vector-graphic (CALCOMP PLOT) graphs.
VH (33-40) is the height of the plot paper being used for batch-mode, vector-
graphic (CALCOMP PLOT) graphs.
TAXISL (41-48) is the length of the horizontal axis of both vector and character
graphs of SPY plotting.
VAXISL (49-56) is the length of the vertical (Y) axis, as used for vector Spy
plotting.
FILL1 (64-72) is for SPY vector-graphic plotting. For Salford EMTP, it is the
color number for SPY "PLOT" axes and their numbers. The floating-point
number will be moved to an INTEGER variable prior to its use, so FILLI
should be an integer (e.g., "6."). For original, monochrome Apollo, FILLI
was a fill-in or visibility factor of the first of two possible
superimposed grids of Spy vector-graphic plotting. Grids were drawn with
dashed lines, and this was the fraction of drawing (as opposed to spacing) .
Unity gave a solid grid, which was usually good enough for at least one of
the grids. If two grids were used (so horizontal and vertical lines every
half unit, for more accuracy), then one could be dashed for
distinguishability.
FILL2 (73-80) is for SPY vector-graphic plotting. For Salford EMTP, it is the
color number for the SPY "PLOT" legend, which begins with the text "Graph
Number", followed by date and time, etc. The floating-point number will
be moved to an INTEGER variable prior to its use, so FILL2 should be
an integer (e.g., "7."). For original, monochrome Apollo, FILL2 was the
fill-in or visibility factor of the second of two possible superimposed
grids of Spy vector-graphic plotting. See preceding FILL1.
I.E Computer-Dependent Aspects and Alternatives - 7
4 TOLRCE FHTAX FXSUP FYSUP FXTIT FYTIT VPLOTS VPLOTL Unused FTCARR
S.E-5 0.5 .25 .03 0.10 0.1 1.0 5.0 1.5
TOLRCE (1-8) is the square of the maximum distance that a point can depart from
a curve and yet still be discarded in order to speed SPY plotting and
minimize the associated storage. A value of zero or blank means that all
points will be plotted (i.e., none will be discarded).
FHTAX (9-16) is the fractional height to place the horizontal axis for Spy
plotting should there be no zero level. The fraction is expressed in terms
of the vertical-axis height, so that zero will place the horizontal axis
at one end of the vertical axis, and unity will place it at the other end.
Note that "one" and "the other" are used rather than "bottom" and "top" due
to the inverted pixel addressing of some computers.
FXSUP (17-24) is the fractional horizontal offset for the start of the single-
line super title line for Spy plotting. The fraction is expressed in terms
of the horizontal-axis length, so that zero will begin the super title at
the left end of the horizontal axis, whereas unity (never used) would place
it off the right side, beginning at the right edge of the horizontal axis.
FYSUP (25-32) is the fractional vertical offset for the start of the single-line
super title (SPY plotting). The fraction is expressed in terms of the
vertical-axis length, so that zero will place the super title at one end
of the Y-axis, whereas unity would place it at the other.
FXTIT (33-40) is the fractional horizontal offset for the start of the multi-
line case title of Spy plotting. The fraction is expressed in terms of the
horizontal-axis length, so that zero will begin the case title at the left
end of the horizontal axis, whereas unity (never used) would place it off
the right side, beginning at the right edge of the horizontal axis.
FYTIT (41-48) is the fractional vertical offset for the start of line one of the
mUlti-line case of SPY plotting. The fraction is expressed in terms of the
vertical-axis length, so that zero will place the super title at one end
of the Y-axis, whereas unity would place it at the other.
VPLOTS (49-56) is the vertical position of the lower end of the Y-axis of a
vector Spy plot, expressed in inches.
VPLOTL (57-64) is the span or length in inches of the vertical axis of a vector
SPY plot.
VPLOTH (65-72) is unused beginning 28 March 1994. For older programs, it is the
vertical position of the top end of the vertical axis of vector Spy plot.
Note VPLOTH must equal the sum of VPLOTS and VPLOTL.
FTCARR (73-80) is the factor controlling vertical, interline spacing of text for
a vector Spy plot. The vertical pixels of one line are displaced from
those of the next line by FTCARR times the height of the letters. Hence
a value of unity provides no extra space (single spacing), whereas the
value 2.0 would provide double spacing.
I.E computer-Dependent A3pect3 and Alternatives - 8
--------------------------------------------------------------------------------
5 FXNUMV FXNUMH FVAXTT FXVERT Unused TIMTAC OVRLAP FLZERO EPSILN FLTINF
1.5 5.0 -2.5 0.0 -3333. 0.0 0.5 1.0-12 1.0-8 1.0+19
Unused (33-40) Former TIMULT became unused beginning 25 March 1994. For older
programs, it is a scaling factor that corresponds to time units index IHS
for Spy plot usage. One multiplies time in seconds by TIMULT to produce
time in user units. The non-unity pairings are for IHS = 1 (use 360 times
the power frequency in Hz), IHS = 2 (use the power frequency in Hz), IHS
= 4 (use 1000), and IHS = 5 (use 10**6).
TIMTAC (41-48) is an initial value for the time in seconds before which all TACS
warning messages will be suppressed. A value zero means no such
suppression will occur, of course. TIMTAC later might be redefined as
part of EMTP data by "TACS WARN LIMIT" (see this for rationale of use) .
OVRLAP (49-56) is the fractional overlap of the time axis, between the old plot
that is ending and the next plot that is just beginning, for "ROLLV" usage
(rolling vector plot) within the "PLOT" command of Spy. A value of zero
means that there will be no overlap, whereas unity would mean complete
overlap (the absurd case where no progress at all is made). A value of one
half would mean that the right half of the old plot would be reproduced in
the left half of the new plot before rolling continued, when a new page was
called for.
FLZERO (57-64) is a near-zero tolerance that allows room for lots of roundoff
during counting and arithmetic. For 64-bit computation, the value 1.D-12
has been used successfully for years, even though the choice is highly
conservative (there really is more precision) .
EPSILN (65-72) is the default value for the matrix singularity tolerance. This
value can later be modified by a nonblank field of the same name on the
floating-point miscellaneous data card, or by a "$NEW EPSILN" card.
FLTINF (73-80) is a very large floating point number. Since certain calculations
may internally use this value, which might be squared, this commonly is set
I.E Computer-Dependent Aspects and Alternatives - 9
close to the square root of the largest floating point number that can be
represented. Because it is useful for all computers to employ the same
value, the minimum floating-point limit of a little over l.E+38, which
applies to DEC VAX-II computers, is commonly used. The square root of
this, 1.E+19, is still so big as to appear infinite for just about any
computation of engineering significance.
6 XHEADM YHEADM HGTHDM XCASTI YCASTI HGTCST XLEGND YLEGND HGTLGN PIXPUN
2.5 7.95 .55 0.5 7.3 .35 0.5 1.30 .25 40
XHEADM (1-8) is the "X" coordinate where the 16-character graph heading label of
a batch-mode, vector-graphic plot is to begin. This is the left edge.
XCASTI (25-32) is the "X" coordinate where the 78-character case-title line of
a CALCOMP PLOT is to begin. This defines the left edge of the line.
XLEGND (49-56) is the "X" coordinate where the CALCOMP PLOT legend (6-
character user identification, date, time, plot variables, etc.) is to
begin. This defines the left edge. Usually the plot legend is placed at
the bottom of the plot, toward the left.
YLEGND (57-64) is the corresponding "Y" coordinate where the CALCOMP PLOT legend
is to begin. This fixes the bottom of the first of several lines.
HGTLGN (65-72) is the height of lettering to be used for the plot legend.
PIXPUN (73-80) is the number of screen pixels per unit length for a CALCOMP PLOT
that is sent to the screen. Although not exact for most screens, the same
figure is used for both horizontal and vertical dimensions.
XALPHA (1-8) is the "X" coordinate where the multi-line subheading text of
CALCOMP PLOT is to begin. This defines the left edge of the 78-character
lines.
o 4 FACT (25-32) is a delay time in seconds that each batch-mode (CaIComp) plot
will be held on the screen after it is completed. If negative, the program
will wait for a <CR> before erasing the screen and switching to text mode
for the reading of more plot cards. That is for Salford EMTP. The
original meaning for other computers had to do with magnification of a
I.E Computer-Dependent Aspects and Alternatives - 10
CALCOMP PLOT. A value of unity meant full size. Later, this value could
be altered by a "SCALE" request (key word of columns 3-7) during batch-
mode plotting. Variable D4FACT originally was the argument of the
CalComp routine "FACTOR", so it is the reciprocal of variable SS of the
"SCALE" request.
PEKEXP (33-40) is the largest argument used with the library function "CEXPZ"
(complex exponential). This is not a limitation of the library function,
but rather of the usage within the "CABLE CONSTANTS" code. First, take the
largest number that the computer can represent (about 10**38 for Apollo)
using COMPLEX. Next, if division by a complex number requires the squaring
of it (as seems to be the case for Apollo), take the square root of this:
about 10**19 for Apollo. Finally, PEKEXP is the natural logarithm of the
result.
EPSPIV (49-56) is the minimum pivoting tolerance for use with the "LINE
CONSTANTS" code. This is used only for for the eigenvector calculation,
which results in the modal transformation matrix [Ti]
PLMARK (57-64) is the mUltiple of a default value for the number of symbols that
will be used to mark each batch-mode, vector-graphic curve.
The value unity is a request for the default number of markings, which
corresponds to one symbol per unit (inch) before the discarding of data
pOints that are not significant. Two would give twice the default number,
and half would give about half or none if the number would be less
than unity (because of INTEGER truncation) . Hence any very small value
(e.g., 1.E-8) is guaranteed to suppress all curve marking.
FACOSC (65-72) is the scaling factor for corrections of the Newton iteration of
coupled nonlinear elements if there is oscillation. To disable all such
scaling, make this non-positive.
8 NMAUTO INTINF KOL132 MUNIT5 MAXZNO IPRSPY IPRSUP LNPIN MINHAR MAXHAR
1 9999999 132 1 50 o o 6 o 20
NMAUTO (1-8) is the binary flag that controls automatic branch/switch naming
(default names such as "LIN001", etc.). It is initialized from STARTUP,
but later might be toggled by an AUTO NAME request among input data.
Unity means there will be such naming, whereas zero [Link] this nicity.
Root names for any such naming come from the language file [Link],
so they could be language-dependent. Remember that each component
automatically named will expand the header of a .PL4 file by one name,
which could overflow PCPLOT. Why should branches be named? Sometimes
to allow a unique reference in case of parallel components. Normally this
would involve manual rather than automatic naming., however, in order that
the user give meaningful names. Automatic naming is more appropriate for
Spy use, where names can be seen.
I.E Computer-Dependent Aspects and Alternatives - 11
INTINF (9-16) is the largest integer that can ever be used by the program for
indexing. For machines using INTEGER*4, the artificially reduced limit
that is one short of 10**7 is used for convenience. Since this value is
sometimes assigned internally as a flag, and can then be sent to LUNIT6
(particularly as part of DIAGNOSTIC printout), excessive values that might
overflow out~ut formats should be avoided. On the other hand, one can go
higher usin; the special requests that follow: 107 gives 1. E7, 108
gives 1.E8, 109 gives 1.E9, and 209 gives 2.E9 (this last number
is close to ~he Intel/Salford limit for 4-byte integers) .
KOL132 (17-24) is the column width for LUNIT6 output. Popular choices are 80 and
132. Although the time-step loop output can be any width, many other
structures only have these two standard choices. Hence it is recommended
that the user stick to these.
MUNITS (25-32) is the I/O channel number for "EMTSPY" input. Using the same
value as Lu}T!T5 means that SPY dialogue begins with the keyboard for input.
MAXZNO (33-40) is the initial value for the maximum number of Newton iterations
that are used to solve nonlinear elements such as ZnO. This might later
be redefined by means of a ZINC OXIDE request within any data subcase.
IPRSPY (41-48) is ~he initial value for diagnostic output associated with SPY.
It is advised that IPRSPY be made positive only if there is trouble very
early in exe=ution before the first data card is read.
IPRSUP (49-56) is the initial value for conventional (non-SPY) diagnostic output.
Normally 0, value -1 suppresses stray output (see April 96 newsletter) .
LNPIN (57-64) is the number of lines per inch of printed output of LUNIT6. This
is used to scale character ("PRINTER PLOT") plots.
MINHAR (65-72) is the beginning harmonic number of a bar chart that displays the
results of Fourier analysis. This is for the FOURIER subcommand of the
PLOT command of SPY. To ignore nothing, a value zero (for dc) is used.
The keyed value is just an initial value that can be changed interactively
at the time of FOURIER usage.
MAXHAR (73-80) is ~he ending harmonic of a bar chart that displays the results
of Fourier analysis. Etc. (see preceding MINHAR).
9 NFORS2 NIOMAX MRGN LINLIM MPAGE MODE28 KPGRID KPEN(l) KPEN(2) KPEN(3)
30 10 2 100 o 1 3 12 10 11
NFORS2 (1-8) is the number of rows of the Fourier series table that will be
printed. Each harmonic occupies one row. Etc. (see preceding MINHAR) .
NIOMAX (9-16) is the initial limit for rotor speed iterations of the Type-59 S.M.
This default value later might be redefined by a "TOLERANCES" request as
part of Type-59 S.M. data.
MRGN (17-24) is the margin of blank space in inches that will separate adjacent
batch-mode vector-graphic plots that are produced on a roll of paper.
LINLIM (25-32) is the line limit for each batch-mode "PRINTER PLOT" graph. In
the absence of such protection, users have been known to waste incredible
quantities of paper due to errors of scaling.
MPAGE (33-40) is a binary flag that indicates whether the user wants each batch-
mode character plot ("PRINTER PLOT") to begin on a new page (following
I.E Computer-Dependent Aspects and Alternatives - 12
usage of the "IHl" carriage control). A value of unity will begin each
such plot on a new page, whereas zero will bypass such special treatment.
MODE28 (41-48) is an integer index that chooses the starting mode of batch-mode
plotting. The choices are: 1) CALCOMP PLOT; 2) PRINTER PLOT; and
finally, 3) CALCOMP PRINTER.
KPGRID (49-56) is the Salford color number for the grid or grids of screen
plotting. For a batch-mode "CALCOMP PLOT", there is just one whereas SPY
"PLOT" uses two nested grids (both have this one color). Zero will
suppress grids.
KPEN(l) (57-64) is the Salford color number for the first curve of all vector
screen (either batch-mode or Spy) plotting. The four numbers associated
with vector KPEN are those parameters numbered 2 through 5 of the "PEN
CHOICE" request of batch-mode vector-graphic plotting.
10 .. (4) KOMLEV NSMTH MODSCR KOLALP MAXFLG LIMCRD NOBLAN MOUSET NOTPPL
14 -1 50 2 5 1 3000 1 o 1
KPEN(4) (1-8) is like the preceding KPEN(I), but is for curve 4. Also, for
batch-mode (CALCOMP PLOT) plotting, this 4th of 4 color numbers also is
used for all labeling.
KOMLEV (9-16) is the level for echoing comment cards during the input of data
base modules of $INCLUDE usage. Value "-1" suppresses all such display.
NSMTH (17-24) is the default value for the limit on the number of consecutive
ups and downs before averaging of successive ordinates will occur as part
of batch-mode, vector-graphic plotting. Later, this initial value could
be changed as part of batch-mode plot data (see the "SMOOTH" request).
MODSCR (25-32) is the default value for a flag that indicates the destination of
batch-mode, vector plotting. For any computer, the 3 choices are:
o for graphics on a separate plotter (no screen plot) ;
1 for both screen and plotter graphics; and finally,
2 for screen plotting only. Salford EMTP only has screen graphics, which
might be redirected to disk by PEN PLOT (see DC-35) .
KOLALP (33-40) is one less than the number of bytes in each ALPHANUMERIC
variable name (e.g., a node name). Mnemonically, this is
"column ALPHANUMERIC."
Node names are six characters long.
MAXFLG (41-48) is the multiplicity with which Spy will check for user-keyed
interrupts. A value of unity means that such checking will be performed
at every opportunity. Yet if such checking might be time consuming (this
will be dependent upon computer, of course), this continual checking could
involve a significant waste of time. Remember, there are four
opportunities for a Spy break each time-step. If the user set MAXFLG = 4,
he still would have the chance to interrupt execution every time step.
LIMCRD (49-56) is the upper limit on the number of 80-column card images that can
be stored in the cache of LUNTI0. Hence, input data is read into
unoccupied LUNTI0 storage, and the remainder, through position LIMCRD, is
never used unless there is data modularization ($INCLUDE usage of Section
I.E Computer-Dependent Aspects and Alternatives - 13
I-K) or data sorting by class (Sections I-J), in which case the blank space
is used to insert or reorder the input records. A few other features of
the program use the bottom of LUNT10 storage to accumulate records, too,
but this burden is generally negligible compared with that of the sorting
of input data. As a general rule, there must be as much free space as
actually required to store user data cards. So, for example,
LIMCRD = 4000 allows about 2000 free spaces after storage of 2000 data
cards (including any expansion due to the use of $INCLUDE, of course). So
why not make LIMCRD equal to infinity, thereby allowing arbitrarily large
data cases? Some computers might have a limit on such usage, whereas
others may execute slower with astronomical indexing. Most computers will
tie up that much more disk space, it is believed (how many operating
systems would be smart enough not to store the unused gap in the middle?) .
It is to be emphasized that card images are actually stored at the bottom
of LUNT10 with inverse indexing, sometimes, and this bottom is defined by
LIMCRD.
NOBLAN (57-64) is a ternary flag concerning the treatment of truly blank input
cards as described in the October, 1993, newsletter. Zero means nothing
will be done (implied $BLANK DATA use). Unity means the program should
halt if a true blank is encountered (implied $BLANK HALT use). 'Finally,
value 2 means true blank lines will be converted to comment lines (implied
$BLANK COMMENT use).
MOUSET (65-72) is a binary flag that indicates possible use (value unity) or non-
use (value zero) of the mouse as described in the October, 1994,
newsletter. No use (e.g., Spy) other than the beginning of interactive
execution is yet supported.
NOTPPL (73-80) is a binary flag that either prohibits (value unity) or allows
(value zero) the use of TPPLOT for concurrent plotting as described in
the October, 1994, newsletter. This is illustrated by DC-1 (see data
between USE TPPLOT BEGIN and END declarations). Such data is ignored
when NOTPPL = 1.
1 NOCOMM NOHELP NEWPL4 JDELAY Unused NSMPLT KOLWID KOLSEP JCOLU1 KSLOWR
o o o o -777 50 11 1 o 5
NOCOMM (1-8) is a binary flag that will either destroy (value unity) or allow to
be passed through (value zero) all comment cards as data first is loaded
from the user's disk file. This is as described in the January, 1995"
newsletter.
NOHELP (9-16) is a binary flag that will either prevent (value unity) or have
automatically displayed (value zero) at the start of execution the
information in disk file [Link] This is as described in the April,
1995, newsletter.
NEWPL4 (17-24) is a binary flag that will either request (value unity) or prevent
(value zero) the elimination of unused names in the .PL4 file header.
This is as described in the April, 1995, newsletter.
NSMPLT (41-48) is the number of successive ups and downs (cycles of a saw-toothed
oscillation) before averaging will be instituted for SPY "PLOT" usage.
I.E Computer-Dependent Aspects and Alternatives - 14
KOLWID (49-56) is the default width for each column of output of the time-step
loop. The value of "11" is minimal, corresponding to early years when only
six significant digits were printed. Later, this could be changed at the
start of any data subcase using "PRINTED NUMBER WIDTH" (see illustration
of DC-4).
JCOLU1 (65-72) is a binary flag that controls whether or not LUNIT6 output is
to begin each line with an extra blank as a carriage-control character.
Few computers want or need this, so leave JCOLU1 = O. Value unity will
provide the extra blank column 1.
KSLOWR (73-80) is the frequency with which a rolling vector plot (use of "ROLLV")
is updated, for SPY "PLOT" usage. If unity, every time a new solution
point is known, it will be displayed. But such instantaneous display slows
the simulation. It is more efficient to allow several solution points to
accumulate before they are displayed. Who needs to see each time step
instantly, anyway?
2 KSYMBL NOBACK KOLEXM LTEK NCUT1 NCUT2 INCHPX INCHPY NODPCX LCHLIM
200 1 60 1 13 11 2 2 o o
KSYMBL (1-8) is the initial frequency of marking symbols on a vector plot (use
of "ROLLV"), for SPY "PLOT" usage. If no marking is wanted, set KSYMBL
to a very large positive integer. Later, the "MARK" sub-subcommand of
the "TEK" subcommand of the "PLOT" command of Spy might redefine this
initial value.
NOBACK (9-16) is a binary flag that indicates whether BACKSPACE of the LUNIT4
plot file is permissible within the "LUNIT4" command of Spy. Zero means
that BACKSPACE is reliable for the computer of interest, whereas 1 means
that it is not (and is to be avoided by alternate reliance upon REWIND
and then forward READs).
KOLEXM (17-24) is the maximum width of each line of SPY "EXAMINE" output. This
should normally be set so as to fit within the Spy window. For Apollo,
this avoids scrolling left or right to see parts of the output output.
LTEK (25-32) is the initial value of a binary flag that indicates which mode
of plotting (character vs. vector) is to be used by the "PLOT" command
of SPY. Zero means character plotting, whereas unity is for vector
plotting. This initial choice might later be toggled at any time by the
"MODE" subcommand of the "PLOT" command of Spy.
NCUT1 (33-40) is the Salford color number for the single super-title line of
each vector plot of Spy "PLOT".
NCUT2 (41-48) is the Salford color number for the multi-line case title of each
vector plot of SPY "PLOT".
INCHPX (49-56) is the number of inches between tic marks and corresponding
numbers of the X-axis for vector Spy plotting. A value of two is common,
meaning that every other inch of the horizontal axis will be given a
numbered tic mark.
I.E Computer-Dependent Aspects and Alternatives - 15
INCRPY (57-64) is like the preceding INCHPX, but is for the Y-axis.
NODPCX (65-72) is a binary switch that either accepts (value zero) or rejects
(value unity the automatic creation of a .PCX disk file for each vector
plot of batch-mode plotting. Output files will be named [Link],
etc. That is for Salford EMTP.
3 NORON JTURBO MAXSYM IRS LIMeOL KLEVL KEXTR NOHPGL NOPOST IZGR1
o 1 3 3 79 o o o o 2
NORON (1-8) is a binary flag that will either prevent simulation (value unity)
or allow it (value zero). If unity, ATP will halt following the
assembly and sorting by class of all data, and a special copying of the
resul ting data file to LUNIT6 output. This is as described in the
January, 1995, newsletter.
JTURBO (9-16) is a binary flag that either accepts (value unity) or rejects
(value zero) turbo table dumping and restoring by NYPA's Robert Schultz.
See story in the October, 1993, newsletter.
MAXSYM (17-24) is the maximum number of symbols that will be placed on each curve
of a vector plot of SPY "PLOT" as identification. This feature is not
applicable 2.:1 "ROLLV" mode, and the discarding of visually-redundant
points may effectively reduce the number.
IRS (25-32) the initial value for the time-units of SPY "PLOT". Later, this
could be cha:1ged by the "TIME UNITS" subcommand of the "PLOT" command
of Spy. Possible values are the same as for batch-mode plotting: 1 for
degrees based on the power frequency, 2 for cycles based on power
frequency, 3 for seconds, 4 for milliseconds, 5 for microseconds,
6 for Hertz, 7 for log-10 of Hertz, and finally (only for LEC SPY) 8
for double-logarithmic scale.
LIMCOL (33-40) is the initial column width for a character plot of Spy "PLOT".
Later, this might be changed by the "SET COLUMN" subcommand of the
"PLOT" command of SPY.
KLEVL (41-48) is the initial value for the binary flag that indicates whether
or not level crossings are to be displayed for SPY "PLOT" variables. A
zero will result in no level-crossing output, whereas unity will produce
a table showing when variables of the plot cross the specified levels. The
current status of KLEVL can be toggled at any later time by the LEVEL
subcommand of the PLOT command of SPY.
KEXTR (49-56) is the initial value for the binary flag that indicates whether
or not extrema are to be calculated for the SPY "PLOT" variables. A zero
will result in no extrema output, whereas unity will produce a table of
extrema for the variables of the plot prior to creating the plot. The
current status of this variable can be toggled at any later time by the
"EXTREMA" subcommand of the "PLOT" command of Spy.
NOHPGL (57-64) is a binary switch that either accepts (value zero) or rejects
(value unity) the automatic creation of HP-GL disk files for each vector
plot of batch-mode plotting. Output files will be named [Link],
etc.
I.E Computer-Dependent Aspects and Alternatives - 16
NOPOST (65-72) is like NOHPGL, only it is for PostScript. Output files will
be named ATPPOST.001, etc.
IZGR1 (73-80) provides control over the first (the outer) of two staggered grids
of the vector plot of SPY "PLOT" usage. For all computers allowing Spy
vector graphics, a negative value (use "-1" for uniformity) will suppress
this outer grid. ?or Salford EMTP, this is the color number.
14 IZGR2 LENREC LU6VRT LRLIM KASEND LUNDAT KTRPL4 JORIEN LIMPNL LUNTEX
o o 32768 75 5 3 -4 o 200 -11
IZGR2 (1-8) provides control over the second (the inner) of two staggered grids
of the vector plot of SPY "PLOT" usage. Values are as for preceding IZGR1.
LENREC (9-16) is a binary flag to control only Crlike .PL4 files. For Salford
EMTP, value zero means no change from the past whereas value one is taken
as a request for extra empty space between the header and the initial time
step as described in the January, 1994, newsletter. This is "to start the
timestep data at an offset which is an integer multiple of the length of
the data for one timestep." This was requested by Prof. Bruce Mark for use
with other compilers.
LU6VRT (17-24) is the size of the LUNIT6 output buffer in bytes. This is only
for output that goes to disk (output to the screen is not buffered). A
limit of 65536 exists. Value zero means no such buffering. See the
January, 1994, newsletter for details.
LRLIM (25-32) is the iteration limit ("LIM") of the LR-transform ("LR") that is
used to calculate eigenvalues by the "LINE CONSTANTS" code.
KASEND (33-40) is the minimum number of input cards that must remain at the
completion of one data subcase in order for the program to consider a
possible following one. At issue is whether or not the program will read
a blank bounding data case after case-summary statistics. With value 5,
note that it will not, thereby saving a little output, and speeding
execution a little. If the user wants to have the program read into the
blank data subcase, set KASEND = O.
LUNDAT (41-48) is the I/O unit number to which the input data file can be
connected as program execution begins. This serves as a channel for
reading all data cards as a block, in order to transfer them to the
ACCESS=' DIRECT' storage of unit LUNT10. For nearly all computers,
LUNDAT can and should be set equal to LUNIT3.
KTRPL4 (49-56) indicates the disk being used for the main ATP directory. Values
3 (meaning C:) and 4 (meaning D:) are most common. An extra minus sign
indicates that all output files (.LIS, .PL4, and .PCH) will be named in
parallel with the input data file. This is the modern, preferred scheme,
generally. Note the Can/Am user group distributes with value -4, so if
the user's data is on C: rather than D:, he should change this to -3.
LIMPNL (65-72) is the limit on the number of switching messages for Type-99
pseudo-nonlinear resistance flashover and clearing (opening). See Section
V-A for an illustration. Every time there is a Type-99 flashover or
I.E Computer-Dependent Aspects and Alternatives - 16
NOPOST (65-72) is like NOHPGL, only it is for PostScript. Output files will
be named ATPPOST.001, etc.
IZGR1 (73-80) provides control over the first (the outer) of two staggered grids
of the vector plot of SPY "PLOT" usage. For all computers allowing Spy
vector graphics, a negative value (use "-1" for uniformity) will suppress
this outer grid. ?or Salford EMTP, this is the color number.
14 IZGR2 LENREC LU6VRT LRLIM KASEND LUNDAT KTRPL4 JORIEN LIMPNL LUNTEX
o o 32768 75 5 3 -4 o 200 -11
IZGR2 (1-8) provides control over the second (the inner) of two staggered grids
of the vector plot of SPY "PLOT" usage. Values are as for preceding IZGR1.
LENREC (9-16) is a binary flag to control only Crlike .PL4 files. For Salford
EMTP, value zero means no change from the past whereas value one is taken
as a request for extra empty space between the header and the initial time
step as described in the January, 1994, newsletter. This is "to start the
timestep data at an offset which is an integer multiple of the length of
the data for one timestep." This was requested by Prof. Bruce Mark for use
with other compilers.
LU6VRT (17-24) is the size of the LUNIT6 output buffer in bytes. This is only
for output that goes to disk (output to the screen is not buffered). A
limit of 65536 exists. Value zero means no such buffering. See the
January, 1994, newsletter for details.
LRLIM (25-32) is the iteration limit ("LIM") of the LR-transform ("LR") that is
used to calculate eigenvalues by the "LINE CONSTANTS" code.
KASEND (33-40) is the minimum number of input cards that must remain at the
completion of one data subcase in order for the program to consider a
possible following one. At issue is whether or not the program will read
a blank bounding data case after case-summary statistics. With value 5,
note that it will not, thereby saving a little output, and speeding
execution a little. If the user wants to have the program read into the
blank data subcase, set KASEND = O.
LUNDAT (41-48) is the I/O unit number to which the input data file can be
connected as program execution begins. This serves as a channel for
reading all data cards as a block, in order to transfer them to the
ACCESS=' DIRECT' storage of unit LUNT10. For nearly all computers,
LUNDAT can and should be set equal to LUNIT3.
KTRPL4 (49-56) indicates the disk being used for the main ATP directory. Values
3 (meaning C:) and 4 (meaning D:) are most common. An extra minus sign
indicates that all output files (.LIS, .PL4, and .PCH) will be named in
parallel with the input data file. This is the modern, preferred scheme,
generally. Note the Can/Am user group distributes with value -4, so if
the user's data is on C: rather than D:, he should change this to -3.
LIMPNL (65-72) is the limit on the number of switching messages for Type-99
pseudo-nonlinear resistance flashover and clearing (opening). See Section
V-A for an illustration. Every time there is a Type-99 flashover or
I.E Computer-Dependent Aspects and Alternatives - 17
LUNTEX (73-80) is the I/O unit number for an external language text file. If
positive (typically 11), this will be used. But if negative, internal
English-language text will be used instead of [Link] (the external
disk file). This is faster another reform by Robert Schultz of NYPA
as explained in the January, 1994, newsletter.
LISTON (9-16) is a binary flag that possibly will disable any $LISTOFF request
of EMTP data. Unity will ignore any $LISTOFF request. Leave blank or
zero for no such override of the normal meaning of $LISTOFF. Final
production usage with proven data will almost always be with value zero.
But during debugging of large data cases, it sometimes is convenient to see
all input data cards in spite of numerous $LISTOFF declarations. Setting
LISTON 1 may be much simpler than removing numerous $LISTOFF
declarations.
LIMTAC (17-24) is a limit on the number of TACS warning messages that will be
displayed. Remember that before TIMTAC seconds, TACS warning messages
are ignored. Well, such ignored messages do not count for LIMTAC
consideration.
MFLUSH (33-40) is a counter of the number of times the RAM buffer for plot data
points has been written (flushed) to disk via I/O channel LUNIT4. The
actual value is immaterial to transients, since the counting is just for
cosmetic appeal (human intelligence), anyway. The command that performs the
plot-data transfer to disk is the "SPACE" command of SPY. Normally, MFLUSH
should be zero. But value 1000 is a special request for the automatic
(without any user intervention via the keyboard) flushing to disk when the
RAM buffer becomes full. Counting still occurs, so the first flushing
would appear with visual marking MFLUSH = 1001, the second would have index
I.E Computer-Dependent Aspects and Alternatives - 18
1002, etc. The batch-mode user of SPY "PLOT" (with $SPY) needs value -
1000 in order to create a .PL4 file of plot data points for later usage.
L4BYTE (41-48) is a binary flag that determines whether or not the .PL4 file
is to be C-like. Unity will produce a C-like file; zero is for others.
KOMPAR (49-56) is a switch that allows the user better to compare old and new
LUNIT6 solutions on a line by line basis using an operating system utility
such as Mike Albert's shareware utility FC for MS-DOS. The production
user will normally use value zero, which means no such help. A value of
unity will result in no numerical serialization of comment cards. Also,
case summary statistics will be abbreviated as though the user had
requested 80-column output using KOL132 = 80. If KOMPAR is set to 2, the
date and time are fixed to correspond to the armistice that ended World War
I. Also, component solution times are zeroed, so only one line that
for the total solution time will differ. Finally, value 3 sets
this, too, to zero, so there will be no difference if a deterministic case
is solved twice. This was explained in the January, 1994, newsletter.
LIST01 (57-64) is a binary flag that allows Type-l source points to be stored in
a separate disk file. Value zero corresponds to the original way (no such
usage, data points must be within the input data file). Value unity means
data points are in a separate file that the user is responsible for
connecting to 1/0 unit 44 using $OPEN.
NOGNU (65-72) is like NOHPGL, only for GNUPLOT. The output file will be parallel
to the input data file, with file type . GNU, if KTRPL4 < O.
6 LUNIT1 LUNIT2 LUNIT3 LUNIT4 LUNITS LUNIT6 LUNIT7 LUNIT8 LUNIT9 LUNT10
21 22 3 -4 1 6 7 8 9 10
The 10 available fields, read using 1018 format, are used to assign
numerical values to the variable 1/0 channels LUNITl, LUNIT2,
LUNIT9, and LUNT10. Some of these depend on computer or compiler, so
the user is advised not to change any of them unless advised to do so by
some knowledgeable party. Nominally, values 1, 2, ... 9, 10 will be used
unless there is some conflict. LUNIT2 is used for table dumping and
restoring of STATISTICS, SYSTEMATIC, and START AGAIN usage. LUNIT4 is
used to create a .PL4 plot file, with an extra minus sign meaning that
points will be allowed to accumulate in RAM prior to being flushed to disk.
LUNIT5 is the input channel (nominally the keyboard) whereas LUNIT6 is
for display (nominally, a computer monitor) . For debugging in the case.
of trouble, production printout can be unified with DIAGNOSTIC output by
use of LUNIT6 = 46 (which is connected to disk file DEBUG. LIS) . LUNIT7
is the 1/0 channel used for punched cards (response to $PUNCH). LUNIT8
is reserved for batch-mode, CALCOMP PLOT use, should such an 1/0 channel
be required. However, LUNIT8 can also be used for output of SEMLYEN
SETUP. Finally, LUNTI0 is the unit number to which input data is copied
(LUNTI0 is used. as a random access (ACCESS='DIRECT') cache.
17 KS(l) KS(2) KS(3) KS (4) KP (1) KP(2) KP(3) KP(4) KOLROV Unused
o o 12 10 7 14 o o 18
KS (1) (1-8) controls copying of the Spy window to disk file JUNKS. Set to zero
I.E Computer-Dependent Aspects and Alternatives - 19
for this service only upon filling and closure (the Esc key). Set to -1
to prevent all such use. Set to +1 for continuous backup as 1/0 is
generated.
See KP(3) for reuse or destruction of the old JUNKS.
KS(2) (9-16) is like KS (1), but it is for LUNIT6 output to JUNKE rather
than for SPY output to JUNKS. See also K?(4) rather than KP(3) for
possible concatenation.
KS(3) (17-24) is the Salford color number for the window frame (title line at
the top and border at the bottom) of the Spy dialogue window.
KS (4) (25-32) is the Salford color number for the title line at the top of the
simulation (LUNIT6) window.
KP(l) (33-40) is the Salford color number for content of the Spy window.
KP(2) (41-48) is the Salford color number for content of the simulation (LUNIT6)
window. A non-positive integer is taken as a request for cyclic use of the
first 15 colors in order.
KP(3) (49-56) is a binary flag controlling whether Spy window contents will be
concatenated to the end of old disk file JUNKS. This assumes the user has
requested backup by KS(l). Zero means no concatenation (i.e., new backup
will overwrite any old file contents). Unity will preserve the old
contents, adding new ones at the end (bottom) of old ones.
KP(4) (57-64) is like the preceding KP(3) but for LUNIT6 (JUNKE) rather than
for Spy (JUNKS).
KOLROV (65-72) is the Salford color number to be used for overwriting of the
character search that is requested by pressing the F9 key. If the
string is found, it will be highlighted using this color.
18 Name of language font file ] Window] SPY @K file name ] Central Monte file]
\atp\[Link] junk inclspy .dat
Name of language font file (1-32) is the name of the disk file that is to be
connected to 1/0 unit LUNTEX if LUNTEX is positive. Otherwise (for
negative LUNTEX), the name is ignored and program language will corne from
internally-stored (nominally English) information.
Window (33-40) is the root name for the windows of Spy dialogue and Spy vector
"PLOT" usage. An "s" and an "e" will be appended to form two file
names
for storage on disk (file names JUNKS and JUNKE, for this example).
SPY @K file name (41-60) is the skeletal name for files of numbered Spy "@"
usage. The first blank byte is to be replaced by a decimal digit at
execution time, prior to the connection of this file.
Central Monte file (61-80) is the name of the central statistics file, if any --
to be used by the request word "OBSERVE PARALLEL MONTE CARLO". This disk
file frequently will be stored on another disk of another computer in the
network. If this file name is left blank, any Monte Carlo simulation will
not attempt to write status information to this summary file at the end of
each energization (see also Sections XIX-B and II-A-47). Since MS-DOS
is a single-user operating system, parallel Monte Carlo simulation has
never been tried. Salford EMTP users are advised to leave columns 61-80
blank.
I.E Computer-Dependent Aspects and Alternatives - 20
9 SSONLY CHEFLD TEXNAM CHVBAR BRANCH TXCOPY USERID -TRASH -TERRA CHRCOM
PHASOR E DUM I NAME COpy WSMTHL TERRA C 0$,
All data fields of Cards 19 and 20 are for ALPHANUMERIC (the UTPF type
declaration) variables, which presently occupy 6 characters. For ease of
presentation, each is preceded by two blanks. Each card is read using
FORTRAN FORMAT ( 10( 2X, A6 ) ). In general, data is left-adjusted.
This begins with Card 19, which has content:
SSONLY (3-8) is the 6-character request word for columns 21-26 of a series R-L-C
branch that is to be present only during the phasor, steady-state solution
for initial conditions. Such extra, special branches might be used to
account for nonlinear R(i) or R(t) which otherwise would be ignored during
the phasor solution. See Chapter V for use. The second subcase of DC-42
provides an illustration.
TEXNAM (19-24) is the root name for the first 3 bytes of internally-defined node
names of $INCLUDE data modularization (Section XIX-F). Numerical
serialization will be encoded in locations 4-6. TEXNAM is just the
beginning name; it can be changed during execution by a $DUMMY command
(Section XIX-F) .
CHVBAR (27-32) is the single character that will be used to represent the
vertical bar that separates the listing of input data cards on the right
from interpretations on the left. This is for LUNIT6 output of the printer
or screen. For those computers having a vertical bar, use it. For others,
use either "1" or "In.
TXCOPY (43: 48) is the request word to copy a preceding branch by name. In
English, this commonly will be "COpy "
TRASH (59-64) is a 6-character garbage name (nominally" ...... ") for certain
internally-defined nodes (e.g., the type-16 source of Section VII-C-6).
TERRA (67-72) is a 6-character name for local earth (or ground) to be used in
some character output (not input data). Use of "TERRA" is common in
English.
and closing symbols for in-line comments (e. g., "{}"). Finally,
bytes 5 & 6 store the continuation character and the separator character
of free-format input (e.g., "$,").
DATTYP (3-8) is the default file type for input data files, including a separator
character (if appropriate) at the start. For most operating systems and
user organizations, the separator character will be a period as shown
(" . dat" begins with period in column 1). A file name ending in this
character will be extended to include the information of columns 2-6 (the
file type following the separator character). This is used at the
beginning of execution either in response to the opening program
prompt for input, or to the "DATA" command of SPY. Beware: ".DAT" and
".dat" may differ, and represent different files, for case-sensitive
operating systems (e.g. Unix and Apollo Aegis SRI0.x).
LISTYP (11-16) is the default file type for output (printer) files, including a
separator character at the start. This is used after the "DISK" or
"BOTH" selection at the beginning of execution, in response to the prompt
for a disk file name for LUNIT6 output (see section I-C) .
PCHTYP (19-24) is the default file type for punched card output, including a
separator character at the start. This is used for computers that do not
have scrollable windows, for which $PUNCH requests (see section I-D-16)
result in the punched cards being sent to a disk file. Variable PCHTYP
is used to complete the name of that file.
PL4TYP (27-32) is the default file type for LUNIT4 plot data storage, including
a separator character at the start. This is used to complete the name of
the disk file for cases where this is determined automatically by the
program. PL4TYP is ignored if $OPEN is used on LUNIT4.
EFIELD (35-40) is normally left blank, which means that optimal encoding will
be used for printed variable output of the time-step loop (the columns of
numbers under the heading of variable names). This is the normal case, and
it should be used unless uniform output structure (typically with an
exponential) is required for some reason. If non-blank, field EFIELD
is interpreted to be the desired fixed format that is to replace optimal
encoding. An extra "lP" is automatically supplied. For example, if the
user supplies the character string "E13.5 ", the program will encode a
number such as: "-8.77139E-Ol". See also related parameter CHEFLD on
the preceding Card 19.
FMTPL4 (43-48) is the format to read floating-point numbers in the .PL4 plot
file of 1/0 unit number LUNIT4 if a FORMATTED (universal) .PL4 plot file
is involved (if L4BYTE = 0 and if FMTPL4 is not blank). If FMTPL4
is blank while L4BYTE = 0, the .PL4 file is UNFORMATTED. If seven
columns are needed, omit the trailing zero (e.g., "10EI0."). [Link] is for
field width less than 12, for which optimal encoding will be used. But for
12 or more columns of width, the 6-byte specification (e.g., 6E13.6) is
taken literally, output is performed using it with a conventional,
FORMATTED WRITE to LUNIT4.
PSCTYP (51-56) is the file type for PostScript output of batch-mode plotting (if
NOPOST = 0). A blank will result in use of the NYPA default .ps
So much for STARTUP variable definitions. When two or more data cases
are stacked within a single disk file, STARTUP will be read only once at
the beginning of the first of the data subcases. Yet, $ STARTUP of "CIMAGE"
(see section I-D-18) allows redefinition at any point of data input. However, the
user should be warned that such usage is still being refined, and it involves some
restrictions. For example, as presently coded, only the first 15 cards are read
and used.
IEEE:==D:\SURGES\SIMULATE\BERLIN\
GRAPHICS is the name of a disk file that will be used by all computers to
define vector-graphic plot parameters. Possibly the name will be different for
some computers or installations, however, because it is installation-dependent
BEGPLT that connects GRAPHICS. In any case, a representative sample of the disk
file for Salford EMTP, as distributed by the Can/Am user group during January of
1997, is shown immediately below.
C NYMAX NUMFNT INDLPT LAB LAX JCHYAX KCHYAX LTIC LASERJ Unused KOLBAK
104 0 25 11 10 7 1 0 0
C LCHFIL LCHSUP LCHTIT LCHXAX LCHYAX KPYPCT LJ2DPI LJ2MOD LJ2PAP KVIRTU
30 73 35 28 28 87 100 a 1 a
C FNTHED FNTSUP FNTTIT WHTBAK XVLABL YVLABL HVLABL XHLABL YHLOFF HHLABL
0.4 .17 .17 0.3 -0.7 4.0 0.3 5.0 -0.5 0.3
C JXMAX JYMAX JXINCH JYINCH JXOFF JYOFF JTIC NPGRID Unused Unused
2560 2048 210 210 240 180 15 4
C HPXOFF HPYOFF YAXHPX YAXHPY
1.10 1.0 1.0 0.1
C KSUPSC KHEDSC KCASSC KLGDSC KAXESC KLABSC KGRDSC
14 14 14 14 14 14 3
C LCOLSC is a vector of 20 cells (one for each curve) that is read as 2014:
12 10 11 14 13 15 9 2 4 5 6 7 1 8 3 12 10 11 14 13
C KSUPHP KHEDHP KCASHP KLGDHP KAXEHP KLABHP KGRDHP
8 2 3 9 5 6 7
C LNTYHP is a vector of 20 cells (one for each curve) that is read as 2014:
0 6 5 4 3 2 1 0 6 5 4 3 2 1 0 6 5 4 2 1
C LCOLHP is a vector of 20 cells (one for each curve) that is read as 2014:
1 2 3 5 6 7 9 1 2 3 5 6 7 9 1 2 3 5 6 7
C LENGHP is a vector of 20 cells (one for each curve) that is read as 2014:
4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 2 2
As with STARTUP, precisely one comment card precedes each data card. Extra
comments can only be placed at the end. Meanings for Salford EMTP follows:
C NYMAX NUMFNT INDLPT LABLAX JCHYAX KCHYAX LTIC LASERJ Unused KOLBAK
104 o 25 11 10 7 1 .0 o
NYMAX (1-8) gives the total vertical pixels of the screen. Recognized special
values are: 1) 350 for EGA; 2) 480 for standard VGA; 3) 600 for the
original Super VGA (600 by 800); 4) 768 for 768 by 1024; and 5) 1024
for 1024 by 1280. Value -7777 is a special flag that requests the
loading of a dozen dependent parameters, in addition to NYMAX, from the
extra disk file [Link]. Finally, a blank or zero will result in
DBOS selecting the highest supported mode that is common to both the
screen and the output card.
NUMFNT (9-16) gives the Salford font number for graph lettering. The default 104
gives a duplex, stroke (drawn as opposed to bit-mapped) font. Alternatives
include: 1 (an 8x14 bit-mapped font), 101 for Simplex Roman sans serif,
102 for Duplex Roman sans serif bold, 103 for Simplex Greek sans serif,
104 for Complex Roman seriffed, 105 for Complex Italic seriffed, 106
for Triplex Roman seriffed bold, 107 for Triplex Italic seriffed bold,
108 for Simplex Script, 109 for Complex Script bold, 110 for Complex
Greek seriffed, 111 for Complex Cyrillic seriffed, 112 for Gothic
English, 113 for Gothic German, and finally, 114 for Gothic Italian.
These can be inspected using the FONT subcommand of the LABEL command
I.E Computer-Dependent Aspects and Alternatives - 24
of Salford TPPLOT.
LABLAX (25-32) controls the size of labeling for the axes. The font for such
labeling is to be scaled (a multiple of the base font) by this value
divided by 10. For example, a value of 25 implies 2.5 times the base font.
KCHYAX (41-48) is the vertical offset in bytes (characters) for the vertical-axis
label. The Y-axis label begins this many bytes from the bottom. The
width of each character is controlled by LABLAX, note.
LTIC (49-56) is the length of both X- and Y-axis tic marks in integer
hundredths of an inch.
LASERJ (57-64) is a binary flag that chooses between Epson and LJ2 for output
that is produced by PEN PLOT within CALCOMP PLOT. Zero means Epson (a
dot-matrix printer) whereas unity means H-P Laserjet series II.
Unused (65-72) is unused. This space is available for future expansion (the next
new integer graphics parameter) .
KOLBAK (73-80) is the number of the background color for screen plotting. A
non-positive value will suppress such usage (no background painting as a
new plot begins). If black initialization is needed, use 16. Gray (weak
white) is 8. To see other colors, click on WHEEL within CURVE of
TPPLOT.
C LCHFIL LCHSUP LCHTIT LCHXAX LCHYAX KPYPCT LJ2DPI LJ2MOD LJ2PAl? KVIRTU
30 73 3S 28 28 87 100 o 1 o
LCHFIL (1-8) is the height in hundredths of an inch (approximately) for the font
that will be used to document the .PL4 file (the date, time, etc.)
LCHSUP (9-16) is the height in hundredths of an inch (approximately) for the font
that will be used for the super title.
KPYPCT (41-48) is the "percent copy" (magnification factor in %) for any H-P
Laserjet series II output (if LASERJ=l). The 87% shown above provides
I.E Computer-Dependent Aspects and Alternatives - 25
reasonable margins for 8.5 by 11-inch paper. Who knows what might be
appropriate for other paper sizes (see LJ2PAP below) .
LJ2DPI (49-56) gives the dots/inch for any H-P Laserjet series II output (if
LASERJ = 1). Choices are 75, 100, 150, and 300 (the latter
requiring mc~e than the minimum 512 Kbytes of RAM to print) .
LJ2MOD (57-64) is an integer index indicating the mode of H-P Laserjet series II
output (if LASERJ = 1). Nothing other than 0 has ever been used,
although Salford documentation indicates value 2 is a possible alternative.
KVIRTU (73-80) is a binary switch that chooses either real screen plotting (if
0) or virtual (RAM) plotting (if unity). For 768x1024-pixel graphics,
the latter may be required. Otherwise, the former generally is preferable
since the user of real screen plotting sees graphics as they are being
painted. For more information, see the April, 1993, newsletter.
C FNTHED FNTSUP FNTTIT WHTBAK XVLABL YVLABL HVLABL XHLABL YHLOFF HHLABL
0.4 .17 .17 0.3 -0.7 4.0 0.3 5.0 -0.5 0.3
FNTHED (1-8) is the height in inches of the 16-byte main heading line.
FNTSUP (9-16) is the height in inches of the 78-character super title line.
FNTTIT (17-24) is the height in inches for all 78-character, multiline subheading
lines.
XVLABL (33-40) locates the start of the Y-axis label horizontally, in screen
inches, for PostScript plots.
YVLABL (41-48) locates the start of the Y-axis label vertically, in screen
inches, for PostScript plots.
HVLABL (49-56) is reserved for the height in inches of the font used for the
vertical axis (Y-axis) label of a PostScript plot. This is not yet used,
however.
XHLABL (57-64) locates the start of the X-axis label horizontally, in screen
inches, for PostScript plots.
YHLOFF (65-72) is the vertical offset in inches between the X-axis and its label,
for a PostScript plot.
HHLABL (73-80) is reserved for the height in inches of the font used for the
horizontal axis (X-axis) label of a PostScript plot. This is not yet
I.E Computer-Dependent Aspects and Alternatives - 26
used, however.
JXMAX (1-8) is the maximum horizontal pixels of PostScript output (assuming. this
is allowed by NOPOST of STARTUP). There are no natural values or right
answers here. The value shown is twice that of monitors being used at NYPA
during 1995, when PostScript was freed from screen resolution. One must
look closely to detect the difference between 1024 and 2048. See the
January, 1996, newsletter.
JXOFF (33-40) is the number of horizontal pixels offset for PostScript. This
is the horizontal indentation where plotting begins (location of y-axis).
JYOFF (41-48) is the number of vertical pixels offset for PostScript. This is
the vertical indentation to where any background grid would begin.
JTIC (49-56) is the number of pixels for tic marks on PostScript axes.
NPGRID (57-64) controls the grid of Postscript plots. Robert [Link] of NYPA
explains: Calcomp plots displayed by [Link] have additional screen
grid flexibility through selection of NPGRID = 1, 2, 3 or 4. (zero or
negative = no grid; 1= 2" solid grid; 2= 2" solid and 1" dashed grids;
3= 1" solid grid; 4= 1" solid and 0.5" dashed grids). Postscript plots
have only the number of grids determined by NPGRID. Their solid or dashed
patterns are described by the Postscript header, not by display2's screen
appearance.
HPXOFF (1-8) is the horizontal offset in inches for the HP-GL disk files
ATPHPGL.001, etc., The default value is 1.10, and the name reflects
the fact that a positive value offsets the plot to the right by about
this amount in inches. This default value is a compromise that
accommodates reasonably well both the HP-GL-compatible QMS 1725 used at
BPA, and also MS Word for Windows.
HPYOFF (9-16) is the vertical offset in inches the HP-GL disk files
ATPHPGL.001, etc. The default value is 1.0. BPA's QMS 1725 had no
such need, but MS Word certainly did to raise the plot that
otherwise had no bottom margin at all. Value 1.0 is being used to
produce a nice, centered appearance in MS Word 6.0a
YAXHPX (17-24) is the horizontal offset in inches for Y-axis numbers of the HP-
GL disk files. A positive value indicates movement to the right.
Differences of fonts (e.g., most noticeably between fixed and
I.E computer-Dependent Aspects and Alternatives - 27
YAXHPY (25-32) is the vertical offset in inches for Y-axis numbers of the HP-GL
disk files. A positive value indicates movement upward.
--------------------------------------------------------------------------------
C KSUPSC KHEDSC KCASSC KLGDSC KAXESC KLABSC KGRDSC
14 14 14 14 14 14 3
--------------------------------------------------------------------------------
KSUPSC (1-8) controls the color of the super title of the screen plot. The
default value of 14 displays the super title in yellow.
KHEDSC (9-16) controls the color of the single heading line of the screen plot.
The default value of 14 displays this line in yellow.
KCASSC (17-24) controls the color of the multi-line case title of the screen
plot. The default value of 14 displays these lines in yellow.
KLGDSC (25-32) controls the color of the legend of the screen plot. The
default value of 14 displays all legend lines in yellow.
KAXESC (33-40) controls the color of the axes of the screen plot. The default
value of 14 displays axes in yellow.
KLABSC (41-48) controls the color of the labeling of the axes of the screen
plot. The default value of 14 displays axis labeling in yellow.
KGRDSC (49-56) controls the color of the grid lines of the screen plot. The
default value of gives a weak aqua-colored grid.
C LCOLSC is a vector of 20 cells (one for each curve) that is read as 2014:
12 10 11 14 13 15 9 2 4 5 6 7 1 8 3 12 10 11 14 13
LCOLSC (20I4) controls the colors of the curves of the screen plot. This
vector LCOLSC occupies one row, with the first column corresponding to
the color of the first curve, etc. One can find the numbers
corresponding to available colors by running TPPLOT, and choosing either
"wheel" or "colorize" within the "CURVE" window. 12 = red, 10 = green,
11 = aqua, 14 = yellow, 13 = purple, 15 = white ---- all bright colors.
KSUPHP (1-8) controls the color/pen number of the super title of HP-GL disk
I.E Computer-Dependent Aspects and Alternatives - 28
file.
KHEDHP (9-16) controls the color/pen number of the heading line of HP-GL disk
file.
KCASHP (17-24) controls the color/pen number of the case title of HP-GL disk
file.
KLGDHP (25-32) controls the color/pen number of the legend of HP-GL disk file.
KAXEHP (33-40) controls the color/pen number of the axes of HP-GL disk file.
KLABHP (41-48) controls the color/pen number of the labeling of the axes of HP-
GL disk file.
KGRDHP (49-56) controls the color/pen number of the grid lines of HP-GL disk
file.
C LNTYHP is a vector of 20 cells (one for each curve) that is read as 20I4:
065 432 1 0 6 5 432 1 0 6 5 421
LNTYHP (20I4) controls the line type of curve drawing of HP-GL disk files.
Vector LNTYHP occupies one row, with the first column corresponding to
the line type of the first curve, etc.
C LCOLHP is a vector of 20 cells (one for each curve) that is read as 20I4:
1 2 3 5 6 7 9 1 2 3 5 6 7 912 3 5 6 7
LCOLHP (20I4) controls the color of curve drawing of HP-GL disk files. For
use with MS Word, this became critical: the good color yellow, which
is so effective on a black background, was found to be practically
unreadable on the default white background used by MS Word for its
graphics. This vector LCOLHP occupies one row, with the first column
corresponding to the color of the first curve, etc.
C LENGHP is a vector of 20 cells (one for each curve) that is read as 20I4:
444 444 4 4 4 444 4 4 4 4 442 2
LENGHP (20I4) controls the pattern length of curve drawing of HP-GL disk
files. Vector LENGHP occupies one row, with the first column corresponding to
the pattern length of the first curve, etc.
I.E Computer-Dependent Aspects and Alternatives - 29
Yet, the user of Spy will see such execution in the SPY window, so he
should be aware of what is happening. Such automatic, internal execution at the
time Spy is requested appears as follows:
A general recommendatic~ about computer systems for support of the EMTP can
be made. If the user has a choice, generally the system that is the most
interactive, and the most nearly under user control, is to be preferred. Carefully
selected minicomputers have Froven to be ideal for support of the EMTP. Indeed,
BPA itself gave up the use cf its CDC mainframes and switched to a transients-
dedicated DEC VAX-ll/780 in February, 1979. Minnesota Power earlier had pioneered
the way with PRIME minicomputers. But even better than minicomputers for most
users were scientific workstations, of which Apollo was by far the most widely used
for the EMTP by the mid-80s. Both BPA and LEC used Apollo to develop ATP. By the
early '90s, some 25 or 30 dis~inct computers had been proven to be ATP-compatible.
Only the older machines, li=ited by 16-bit addressing, have been found to be
incompatible, and should not be considered. Interactivity between the user and
the program is very important, so choose among available computers carefully.
If in doubt about ATP compatibility with some system, computer-search disk-stored
newsletter files. If that fails, check with the Can/Am user group in Portland.
Around 1990, there was a following subsection for each computer that had
proven to be ATP-compatible. But then in 1989, the Salford compiler and DOS
extender were proven to be compatible with MS-DOS, 386-based PCs, and most
alternatives have been abandoned. For the historic record, the original list was
as follows: 1) Apollo, 2) MS-DOS (IBM PC), 3) AT&T Unix pc, 4) DEC VAX/VMS,
5) Mainframe IBM, 6) PRIME, 7) HP 9000, 8) Virtual CDC, 9) Sun Microsystems,
10) Data General, 11) Charles River, 12) Apple Macintosh, 13) Univac, 14) Cray,
15) cydrome. 16) Floating Point systems, 17) Intel 80286, 18) Intel 80386 unix,
19.) DEC Unix; 20) IBM RT PC, 21) Siemens, and 22) Intel 80386 Salford. As this
section is being overhauled in April of 1995, most of this material is being
removed, although section headings and summary explanations remain. Details of
older systems can be found by consulting either older paper copies or the
installation-dependent "read me" files that should accompany the different
versions. Finally, some newer systems could be added, but time is short. So,
only the most important will be documented: 23) Watcom ATP for OS/2, DOS, and
Windows NT.
declined drastically.
New York Power Authority (NYPA) in White Plains took over the distribution
of ATP materials for Apollo Aegis after the service was dropped in Portland. NYPA
experts do a good job,and have a nice package. But such Apollo usage and service
is not expected to last much longer as this paragraph is being written in April of
1995. IBM's OS/2 for Intel PCs has been found to be a worthy replacement for
NYPA use by Robert Meredith and Robert Schultz. Details of this breakthrough using
OS/2 Warp can be found in newsletters beginning with the January, 1995, issue.
For details of what is still available, consult the "read me" file of
Apollo ATP distribution. Some 30 pages of details peculiar to the Apollo ATP
version existed in older Rule Books, and should still be distributed with the
computer code itself.
Unix PC was last used by the father of the U.M., Hian K. Lauw, Professor
of Electrical & Computer Engineering at Oregon state University in Corvallis (USA).
But Prof. Lauw moved to other interests (the manufacture of power electronics),
and those in Corvallis who continued to use ATP moved to other computers (e.g.,
Salford EMTP for MS-DOS PCs). As this section is overhauled in April of 1995, no
one still is known to be using Unix PC to support ATP.
DEC Alpha running Open VMS is fully compatible with VAX/VMS. The same code
is compiled on either platform. As time passes, old VAX hardware is
disappearing; it is being replaced by Alpha RISC workstations, and these can run
VMS (as well as OSF Unix and Windows NT).
For details, consult the "read me" file of the DEC VMS ATP distribution,
which contains further details that once were printed on paper in the Rule Book.
That was the situation around 1990. But it deteriorated rapidly. Around
1992, LEC's own Steering Committee recommended discontinuance of support for IBM
mainframes. Of course, LEC itself ended the following year, and nothing further
is known to have been done with the materials. To a large extent, it was the IBM-
standard PC and Salford EMTP that ended the use of IBM mainframes for the support
of ATP.
But by the late '80s, PRIME Computer was sinking. As this text is being
overhauled in April of 1995, the company exists no longer. Does the product
exist? Probably not. The problem was, when PRIME began, it had a technical
edge. PRIME was the first to offer virtual memory at an affordable price. But
soon others (e.g., DEC VAX-ll/780) closed the gap, sold products cheaper, had
newer systems (e.g., with no traces of 16-bit indexing), etc. Then Apollo, Sun,
and other workstations appeared, and began attacking the minicomputer market from
below. PRIME never adapted, and did not survive. But PRIME has its place in
EMTP history. One detail that many readers may not be aware of: PRIME's decline
seemed to prompt Salford success using MS-DOS. Yes, Salford Software wrote the
FORTRAN compiler recommended by PTI for PRIME computers. As PTI moved to
alternatives, so did Salford. By 1989, Salford was working hard to complete the
movement of its compiler to the Intel 386 (including virtual memory). The rest is
history (PRIME could not compete with 386-based PCs) .
Unlike PRIME computer, H-P remains a very successful company. But many
things have changed. ASEA joined Brown Boveri to create ABB, and Dr. Olov
Einarsson, who managed the ATP work in Vasteras, Sweden, was moved to other work.
Then there was the·growth of workstation and pc markets, which eroded the more
expensive minicomputer market. H-P computers made the transition, but H-P
minicomputers may have been left behind.
Like the Ia~ mainframe version, the CDC version of ATP has lost to smaller,
cheaper, more convenient alternatives. Even though fully compatible, there is no
incentive to continue. In April of 1995 as this text is being overhauled, CDC
seems to be a dead-end road for ATP.
SPARC is the Sun name for RISC workstations that superseded the Motorola CISC
machines around 1989. BPA never used such hardware for ATF, although it did
cooperate with an ABB user in Switzerland during 1990 to establish an ATP version
for SPARC. Then LEC of Leuven, Belgium, took over such work, added support for
multi-window SPY, and distributed copies widely to members until its demise in
1993. Robert Sarf±, of the University of Waterloo in Ontario, Canada, used the
product at his school, where he supported Profs. M.M.A. Salama and Raymond
Ramshaw, who specialize in power electronics. Mr. Sarfi is believed to be among
I-F. Many Different Computers Support ATP - 5
As this text is being overhauled in April of 1995, Mr. Sarfi has just
succeeded in setting a new Sun ATP translation. There are no windows, SPY, or
graphics, but the code should correctly create .PL4 files that then could be
plotted using LEC' sold LECPLOT (said to be [Link]). Look for details in
the July, 1995, newsletter. E-mail addressrjsarfi@hivo~[Link]~[Link] used
by Mr. Sarfi.
But as this text is being overhauled in April of 1995, such Data General
minicomputers have long been forgotten. Adaptation to the ongoing microprocessor
revolution was named Aviion during the late '80s a Unix-based workstations
that are built around the Motorola 88000 RISC rr~croprocessor. This was a good
platform for ATP support, and computer expert Szymanski (see 386 Unix of Section
I-F-18) even supported his own special ATP software using. it for a while. But
Motorola 88000 did not compete well against Intel. Today, no one is known to be
using DG Aviion to support ATP. Is Aviion still on the market? Who has heard
of Data General in recent years?
As this text is being overhauled in April of 1995, it seems likely that eRDS
did not survive. It was too late supplying virtual memory management. Nothing
about eRDS has been heard for years.
Around 1993, Prof. Jim Smith of Montana State University in Bozeman (USA)
reconsidered ATP using his 68040-based Mac Quadra. Several parties around the
world have been using this even though it, too, simulates slowly and is not
otherwise (graphics, windows, SPY) developed.
I-F. Many Different Computers Support ATP - 6
As this text is being overhauled in April of .1995, such old Univac usage must
be long gone. First, Mr. Lima' s creative work with ATP was interrupted by a
promotion. Then Univac disappeared (Unisys was the result of a merger with
Burroughs). Like IBM and CDC mainframes, it seems unlikely that any Univac or
Unisys mainframe ever again will be used for the support of ATP.
For test purposes, the SCS/Cray translator of Section I-F-14 was used. This
was because translation rules were compatible. Yet, the first serious user really
deserves better. FPS FORTRAN does have INCLUDE, which was ignored by SCS/Cray.
I-F. Many Different Computers Support ATP - 7
As this text is being overhauled in April of 1995, FPS use for ATP is dead.
On the verge of bankruptcy, Cray acquired part of the FPS operation. But now
(1995) Cray itself is in trouble. Like Cydrome, FPS could not withstand the
challenge of the ongoing microprocessor revolution. FPS was compatible, but
seemed to be impractical for ATP use.
As this text is being overhauled in April of 1995, OS/286 is long. gone for
the support of ATP. The Salford compiler for 386s rapidly proved superior, and
serious users abandoned 286-based computers in favor of 386s as prices dropped. The
niche for 286-based solutions did not last long.
The old (original ) OS/2 for 286s never was tried. During September of 1989,
Dr. Mustafa Kizilcay had demonstrated feasibility of Salford EMTP for 386s. The
window of opportunity for l6-bit OS/2 had closed. Further explanation can be found
in the December, 1989, issue of EMTP News (the 11-page paper by Messrs. Kizilcay
and Riedel) .
The RISC DECstation 3100, a workstation .manufactured by MIPS, was said to run
ULTRIX-32 as it is introduced in the spring of 1989. This was benchrnarked at BPA
as reported in the June, 1989, issue of EMTP news. Then, early in 1990, a second
round of testing of DECStation 3100 was completed by Prof. Jim Smith and students
at Montana State University in Bozeman. ATP certainly was compatible. But
DECstation 3100 was short-lived, as DEC turned its Unix attention from MIPS
to its own Alpha microprocessor.
FORTRAN for RT PC was first produced during July of 1989, but never was
tested due to lack of Can/Am time (the Portland office of IBM had volunteered a
machine) . Then, on 30 March 1989, an RT PC owner of the power industry
telephoned to express interest. A new translation was rapidly produced and mailed
on 1 April 1989. But the Can/Am user group never learned what happened.
As this text is being overhauled in April of 1995, more than just ATP for
RT PC is believed to be dead. RT PC itself seems to have passed away (nothing
has been read about it in years). Of course, as well know, IBM has moved along
with Apple to the newer, more-open Motorola Power PC.
As this text is being overhauled in April of 1995, the many pages of details
are being removed. See the READ [Link] file on the GIVE 2 disk of Salford EMTP
distribution for this material. Also, consult recent issues of the newsletter.
Any potential user should have more than 2 Mbyte of RAM, however, along with 10
free Mbytes on the hard disk, a color monitor (most use standard VGA), and a
mouse. That is all it takes for the most high-developed and sophisticated ATP
version in the universe.
Some Japanese PCs sold within Japan are incompatible with Salford DBOS,
I-F. Many Different Computers Support ATP - 9
however, it should be noted. NEC and Fujitsu had known problems during. the
early' 90s. Prof. Naoto Nagaoka at Doshisha University in Kyoto understands. such
details.
VARDIM input generally consists of 4 data cards that embody the user I s
desired table sizes. Such numeric data cards are read using 1018 format. With
only a few relatively-minor exceptions, the user can size all EMTP tables at
will. The first 3 data cards apply to tables used by EMTP simulation, and these
are treated in Section I-G-l immediately below. The 4th card, which applies to
non-solution overlays, is treated in the following Section I-G-2. Proportional
scaling and other special requests involving text are covered in section I-G-3
along with illustrations for Salford EMTP.
C 345678901234567890123456789012345678901234567890123456789012345678901234567890
LEUS LERNCH LDATA LEXCT LYMAT LSWTCH LSIZE7 LPAST LNONL LCBAR
(1) ---------------------------------------------------------------------------
250 300 500 50 2500 40 700 1750 75 160
LSMOUT LSIZ12 LSIZ13 LBSTAC LCTACS LIMASS LSYN MAXPE LTACST LFSEM
(2) ---------------------------------------------------------------------------
50 50 5000 20 3600 40 4 5 1600 860
IB IB IB IS IS IB Ie Ie Ie Ie
LBUS LBRNCH LDATA LEXCT LYMAT LSWTCH LSIZE7 LPAST LNONL LCHAR
10. LCBAR (73-80) is the maximum number of points that define the
characteristics of nonlinear or pseudo-nonlinear elements of List 9. Type-96
hysteretic inductors are an exception, however. For the first such element, 2*N
+ 8 cells are allocated, where N is the number of data cards that define the
characteristic. Second and later elements might use the reference-branch feature,
in which case requirements drop to only six cells per element. See Section V-D
for further details of this exceptional case of Type-96 branches. A second
exception is provided by Zno surge arresters, which require extra storage. The
burden of each arrester is equal to the number of. segments (exponentials) that
require representation.
I-G. Variable Dimensioning and Dynamic Di::.Ensioning - 3
18 18 18 18 18 18 18 18 18 ~8
LSMOUT LSIZ12 LSIZl3 LBSTAC LCTACS LIMASS LSYN MAXPE LTACST LfSEM
12. LSXZ12 (9-16) is the maximum number of outputs of the time-step loop.
13. LSXZ13 (17-24) is working space (in £loating-point wores) for both
batch-mode and interactive (SPY) plotting.
16. LIMASS (41-48) is the maximum total number of masses of all Type-59
synchronous machines (List 17). This is the total for all shafts of all machines
of the network.
IS IS IS IS IS IS IS IS IS
21. LFD (1-8) is the max~um number of cells used to store transformation
matrices for both constant-parameter and frequency-dependent distributed
transmission line models. For each non-copied transmission circuit of N phases,
2 x N x N cells are required.
23. LS~Z23 (17-24) is a value that must be supplied for computers that do
not overlay EMTP tables. For fully-virtual systems that are not short of address
space, LSIZ23 gives the length in floating-point words of three giant vectors
that are used for node renumbering and the phasor steady-state solution. That is
the conventional use of List 23, which applies to all computers. A possible
exceptional use of List 23 for computers with virtual. memory (more precisely,
those computers with KBURRO = 1) is for the storage of intexmediate results of
STATISTICS or SYSTEMATIC solutions. For each energization, the vectors of
switch closing times and opening times, and the output vector (extrema) all are
saved in one floating-point vector that is dimensioned by List Size 23. Note that
such storage requirements vary linearly with the number of energizations, so any
allocation will be overflowed as the number of shots approaches infinity (beware,
user!). Also for virtual computers, statistical tabulations impose even further
on List 23, which is used for working space to produce the tabulation.
26. LSIZ26 (41-48) is the length of several small working vectors that
are used for various functions in ATP. The square of the number of coupled
phases of various components (e.g., lines or Pi-circuits) must not exceed List 26.
Note that the common value of 3 times default gives 150, which allows a 12-phase
line.
27. LSIZ27 (49-56) is no longer being used. It once was reserved for use
with frequency-dependent sources of Ref. 35. BPA's EMTP has such solution code,
but not the associated data generator (never contributed to the public domain by
Ontario Hydro). After years of disuse, the code was removed.
29. LS~Z29 (65-72) is the size of extra, auxiliary storage. for LABCOM
tables of STATISTICS/SYSTEMATIC energizations. The average user is advised to
leave this field blank. Those wanting such storage for byte-organized computers
I-G. Variable D~ensioning and Dynamic D~ensioning - 5
can obtain it automatically using the RAM TABLES declaration (see below). Only
for word machines should an actual large value be keyed, and then only after
careful study. 132-column case summary statistics at the end of EMTP execution
will display a row for this entry only if meaningful storage has been requested.
1 2 3 4 5 6 7 8
2345678 90123456 ?890123456789012345678901234567890123456789012345678901234567890
18 18
LWORK [Link]
LWORK (1-8) is the total working space in 4-byte words. Value 240K has
been used for years without difficulty. It will allow the representation of about
100 conductors within LINE CONSTANTS.
LMARTI (9-16) is dimensioning for JMARTI SETUP. The fixed value 742
has been used without difficulty for years.
There should never be any need to size tables at less than default
dimensioning, so former cautions about the dangers of this have been removed. For
Salford EMTP or other virtual comp~ters, this has no meaning.
o 1 2 3 4
o o o o o
1st card (Lists 1-10) . 1 3000 3000 10000 340 20000
2nd card (Lists 11-20) . 1 360 900 36400 255 64800
3rd card (Lists 21-29). 1 3000 12000 40000 24 30000
Supplemental offsets. 1 240000 742
-----------------------------------------------------------------------
Normal termination of "VARDIM" . LTLABL = 2127549 (the size of OIL
These, then are the limiting dimensions, which result in tables of 2127 Kbytes
total size. Each time Salford EMTP. begins, it reads [Link] to reduce
these for actual use. As distributed by the user group, 3 -times default
dimensioning. will produce the following output to the screen immediately before
the opening prompt:
EMTP table dumping to RAM. I RAM TABLES
Default multiplier = 3.000 I DEFAULT 3.0
1st card (Lists 1-10). IBLANK
2nd card (Lists 11-20). IBLANK
3rd card (Lists 21-29). IBLANK
Supplemental offsets. I 240000 742
The total size of these tables will be 232 Kbytes, as will be seen from the
following heading. of LUNIT6 output. That is, on average, use is being made of
only 11% of the total possible space. Yet, scaling is not uniform. One can not
use nine times this size (27 times default dimensioning). The limit to such
uniform scaling is somewhere between 5 and 6 times default dimensioning. For
example, the user who tries 8 times default will receive the following error
complaining about 5 of the list sizes:
***********************************************
Error. Vardim input file [Link] has
too big dimensions. Bad values are:
List J Limiting value Requested
4 340 400
9 460 600
10 900 1280
11 360 400
13 36400 40000
***********************************************
A-field format is for character strings, which are just about arbitary in
content. Node names, or comp:ment names, are examples of the most comnon such
usage that involves N5 format, with the "6 11 indicating 6 characters. 'lhe
beginning and ending colunn for such data should always be clear from the
context. Examples of legal A6 data follow:
Page 18-2
C 3456
J~'lA Typical node name with 1 blank on left
1.e+<! Meaningless, but legal, character string
GRown A full 6-character name without blanks
For m..rneric data fields, blanks are ignored, no matter where they appear.
For example, ", 10 3," is the sarne as ",103," •
For floating-point [Link], ei ther "D" or "E" can be used to iOO icate
a power of ten. 'thus "l.E+9" and "1.0+9" are identical. Also i the plus
sign preceding an exponent can be dropped, so that "1.E9" is equally valid.
Daniel's warning about possible need for extra coomas at end of card
Restriction 1: 'Itle branch type code ITYPE and four node names
Bts1, Bts2, Bts3, and Bts4, must be contained in
colunns one through 26. Note that this is the
normal fixed-format location. Why the EMTP needs
this is no longer clear to me. I suspect that l'f
the last name and its separator carma ("Bts4,")
must be to the left of colunn 27, then the
numeric data to follow must also be to the right
of colunn 26. 'lhis agrees with the exanple of
Vladimir's "'IREIEG" output. in the tx>ttan half of
page 100e.
1) cards to begin a new data case. Inclooed are a "BEl31N NE.W !li\'tl\ CASE"
card, special request cards of various types (if any), and finally, the EMTP
miscellaneous data cards and any extensions to those cards.
2) Cards that define any 'I1>.CS model ing. 'Ibis is for control systems,
inc100ing transfer function blocks (e.g., integrators) of the type that once
were solved using analog canp..1ters.
9) cards for specifying '1YPe I-Ie EMTP source functions FOint by FOint.
'Ibere is one card for each time-step, terminated by a ·9999" card.
There are valid EMTP data cases that do not have the above structure. The
first class of such exceptions involves usage of the EMTP supporting routines.
Examples are "UNE CCNSTANTS" (used to calculate the constants of overhead
transmission lines) and "REPLOT" (used for the batch-mode plotting of a
previously-solved data case) • The second class of such exceptions involves the
usage of multiple-simulation features such as for statistical overvoltage
studies (the "STATISTICS" request of switch cards). Details of such exceptions
are covered in the body of this manual.
"Nl\ME ", "BRAOCH", "NJNLIN", "~E:", and "COp.{ ". At least these are the
names in English (defined by either the STARTUP file or the file of program
language, such names are in fact computer- and/or user-dependent). [Link] names
automatically follow from the names that accompany electric net~rk branches and
swi tches. 'Ihere is no separate entry of node-related quanti ties.
Branches are identified by their data and the names of the nodes to which
they are connected. SUch infonnation is to be keyed into carefully deltroited
fields of 8e-colunn card troages, as moch of the remainder of this docllnent
describes. SUch card troages are called "branch cards." SWitches really are
just special branches that are segregated fran the non-switch branches for
reasons of history and program efficiency only. 'Ihe name ·[Link] cards· applies
to these special branch cards. In addition to node names, branch or switch
cards can carry optional branch names, 1Itlich have the advantage of uniqueness
and compactness (one name instead of t~) • Because branches can be placed in
parallel, the names of tenninal nodes may not LI'liquely identify a branch of
interest.
A
-- - - -- E eA i8 TOltase between
I -I
terminals A and AI;
~ is vol tase between
termiD&lsB and :B I •
-
-.
. ~,
!l'r&na~a8ion Line
with Ground Resistance
.... -.......
Node voltage is the voltage from a net~rk node to local ground. Since
distributed-parameter lines and cables inclooe the effects of the earth and
geograp"licalseparation, the user should be aware that p:>tential of the earth is
not constant.
page 11-4
'A branch voltage is the voltage difference across a branch. EMTP voltage
outputs can consist of a mixture of node voltages and branch voltages. If one
wants a voltage difference where no branch normally would exist, it is simple to
add a very high resistance (1. E18 oms will work for any known computer) in the
desired place, and then request the voltage of this sampling resistor.
The preceding SUImIary has considered only the description of the electric
network (resistors, capacitors, sources, etc.). The modeling of control system
dynamics is separate and distinct, as provided by the ~CS code of Section III.
Control system blocks can take various forms: Laplace transfer functions,
[Link] junctions, nonlinear algebraic operations (multiply, divide, square
root, etc.), log icaloperations, etc. The output of each control system block
is associated with a distinct, 6-character, alphanlJlleric name that identifies
the signal in question. SUch blocks can be defined and interconnected quite
arbitrarily by the user, fooning a control system circuit. one such sample
illustrative diagram is shown in the following sketch:
..-----....,.
Kz. ti3
_----r
~
- ~.-.~
NOD£ MXTAGES
BRANCH CURRENTS A + B$ + cs2t--....-t~.
{ SWIJS OF swr1O£S "'--_..... - .
I
HACHtH£ AJG.E • . .
SUP
~AG£ SQURCES
OJRRENT SQURCES
SW'IrtH CQNrROl.
_V£ FIllING. ~
N2.. - .,
It might be mentioned that the same 6-character, alphanllneric name can be used
both within ~CS and also for the electric network. There is no confusion by
the EMTP, since the ~CS solution is completely separate from the electric
network solution. SUch double usage is in fact recommended for interface
quantities that are equal, to remind the user of the connection.
Note the one-way flow of the signals (unlike for the electric network,
control system canp:ments are directional, and are not bilateral) • Signal
sources which serve as input to such control circuitry can be either sel£-
contained (e.g., a sinusoidal oscillator, or a step function) , or can be defined
by the electric net'NOrk (e.g., any node voltage or any switch current can be
used as a 'mCS source) • Likewise, any 'mCS variable can be passed back to the
electric network for control purposes (e.g., the status of an electric net'NOrk
switch can be controlled by ~CS, as can a voltage source, or the field voltage
of a dynamic synchronous machine. Variables of this type which are passed back
and forth between the electric net'NOrk and 'mCS are referred to as interface
quantities.
Page 11-5
In the beg inn in; , when caseS\ro1ere snall and methods \ro1ere less mechanized,
the use of the pair of terminal node names was adequate for element
identification. But since this is often not unique (parallel branches are
allo\ro1ed, and switches may parallel branches), there can be confusion and/or
error fran this, so branches have also been given 6-character names just as
nodes are. In the years ahead, it is expected that branch and switch names will
receive increased usage. So, altholJ3h today the feature is not carmon, program
users should at least be aware of the concept, and how it can be employed.
The first point is that each and every branch and switch can be given a
default name, before any data input begins. See variable tlo1AlJI'O of the
STAATUP file. If DIA~OSTIC printout is turned on, or if SP'f is used for
interactive observation (e.g., the -BRAN:H", -S*lI'ICH", or -NJNLIN W corrrnands),
these names will be seen:
UN00l, UN002,etc. for rows of the linear branch table;
NLN001 ,NI..N002, etc. for rows of the nonlinear element table;
SW'm0l, S*l'I'002, etc. for rows of the swi tch table.
Hence, even if the user does not supply names of his own (as explained below) ,
he can use these default names, which really correspond to referring to elements
by row number of the associated storage table.
'Ib copy a previously-named branch using the 6-character branch name of that
original branch (rather than the pair of terminal node names), one again uses
the t\!106-character name fields of co1s. 15-26:
Bl.E3 = -COP'f - - - A request \!lOrd for the copying operation;
Bl.E4 = -br_narn- - Name of the branch being copied.
'Ib name a branch that is a copy of sane preceding branch (so that co1l1!1ns
15-26 are already being used), precede the branch to be named by a special,
extra card that performs this function. The just-listed BUS3 and BUS4 awear in
columns 15-26 of this extra card; in columns 3-14, add the special-request text:
BRAN:H NAME: if following branch to be named is linear;
NONLIN NAME: ---- if fo1lowin; branch to be named is nonlinear.
'Ib name a switch, such a separate declaration card preceding the switch of
interest is required. The request text wNNt\E W is required in [Link] 3-8,
follo\ro1ed by the chosen switch name in colll!1ns 9-16.
Page lJ-l
For small problems, the user is advised to have all data contained in a
single disk file where it easily can be inspected and modified as a single,
self-contained piece. Such data should be ordered to conform to the rules of
the preceding Section 1-1-1. '!his is easy, for small problems.
But big problems are another matter. If data cards are so nunerous that a
user can not remember or think about all at the same time, any..way, then the time
probably has come to work in smaller pieces, perhaps using SINCUJDE (Section
I-K below), to spread the data out over more than one disk file. If data has
already been modularized, tested, and stored in a data base, this will almost
certainly require data sorting by class, USing "I" cards. Or, even within a
single file, the user may want to use such sorting to remove restrictions on
input ordering. It may be clearer to the user to group comFOnent data
"geogratx'lically" rather than by data class, for example. For whatever reason it
may be used, data sorting by class is a FOwerful and imFOrtant technique of the
large-scale production user. usage of the "1ft cards that control it are
explained in the remainder of this section.
'!he sorting of EMTP input data by class is built around the special
character "I" in colunn one. Not unlike the ·S" of S-cards (see Section 1-
D), this is a special, reserved symbol that then must be followed by the desired
key word that names the variable class. '!he following FOssibilities are
recogni zed :
lREcm:ST I'lJ>.CS IBRAN:H 1&I:rn:H lSOURCE
IID.D FI..CW IIN1TIAL IOl1I'PUT /PLCYr I srATIST1CS
This should be almost self-explanatory for the user who has read Section 1-1-1
above, where the different FOssible data classes of a. deterministic simulation
are defined. O1ly the very last key word ("ISI'ATISTICS") has no corresFOndence,
since the information of Section 1-1-1 is restricted to single, deterministic
simulations. But for srATISTICS/SYSTEMATIC usage, there will be requests for
statistical tabulation (see Section XV), and the final key word is associated
with these. As for the preceding nine key words, these correStx>nd to the
numbered classes of Section 1-1-1 as follows: 1, 3, 4, 5, 6, 7, 8, 9, and 11,
respectively.
To bypass data sorting by class for a data case that has "/" cards, the
user merely places "N)SCRT" on the "BEx;IN NEW D\'l1\ CASE" card that begins
the file. Key "N)SCRI'" anywhere to the right on the normal request word. For
an illustration of such usage, see BEN:tfo1ARI< 0:-36. Although later there may
be other uses, for now usage is confined to "M'l1\ BASE MODULE" cases. In
fact, not just sortill3 but also the $INCUJDE processing of the following
section are bypassed by the use of "N)SCRI''' •
Page lK-l
Warning! Unless the FCRTRAN compiler of the cOOlputer being used lX'ssesses
dynamic OPEN/ClOSE capability, the use of SINCWDE is not generally
possible. IBM mainframe usage of VS FffiTRAN has this problem as last checked
during the fa11 of 1986.
The present section will only treat the usage of $INCWDE files that have
(,
already been established. That is, there shall be no details about how such
files are constructed. Without arguments, the construction is trivial, since
any interactive text editor is all that is required. But for argunents, special
integer lX'inters are requi red, and the creation of these is the \I\Ork of a
separate suPlX'rting program (see the servicing of "D.l>.TA BASE MODULE" in
Section XIX-F) •
One advantage of using file name prefixes and suffixes is that nfile name n
can then be made independent of computer (at least for most computers of (
interest) • Consider an example, beginning with VAX-II, which might use the
following declarations:
$PREFIX, rnB2: [EOGBWS>1]
$SUFFIX, .LEC;88
Such declarations \<wOuld precede the $INCWDE usage, of course. '!hen the
effect \<wOuld be that the VAX disk file being referenced by the original
$INCLUDE definition actually be:
DRB2:[£OGBWS>1]file [Link];88
The idea is to make nfile_name" a character string that will be accepted by
all computers of interest (see the " BRIIX;E32 " exanple below). '!he prefix and
suffix as illustrated above for VAX-ll are highly dependent on computer, note.
Apollo Aegis certainly would not accept such declarations, since square brackets
are not used for directories, colons are not used for disks, and version nunbers
are not preceded by simicolons. But the following \<wOuld be believable for
Apollo Aegis: .
$PREFIX, / /B/WSV
$SUFFIX, .LEC.88
aOO \<wOuld result in the total file name:
/ / B/WS>1/ file name. LEe. 88
Note that $PREFIX and SSUFFIX will generally appear only once, to define the
location of the data base on the computer of interest. '!hen SINCLUDE
statements will appear over and over, as different components of the data base
are requested.
(
But such simple initial usage was replaced by much more involved usage with
argunents, in order to connect to standard, modularized data. Another reason to
change was the need to extend from single-tilase to multi-tilase data input. A
paper docunenting the change is Ref. 22, volune 4, lib. 2, Novanber, 1983. It is
such usage of $INCWDE with argllDents that dominates the present section.
However, whether argunents are used or not, SINCWDE has become an exceptional
$-card that no longer is associated with the other $-cards of Section I-D.
'1bday, $ INC WDE is serviced by canpletely different, universal code; it is no
longer processed wi thin installation-dependent SUBROl1I'INE CIMAGE.
It was said before that argllDents narg 1", etc. are just character strings
wi thout imbedded blanks. '!here can be blanks on ei ther side of the comma that
separates argllDents, but not within the argllDent itself. If the nunber of
characters in sane argllDent exactly equals the nllDber expected, there will be
simple one-for-one substitution in the data field or fields of interest. But
suppose the nunber of input characters does not equal the [Link] expected by the
lIodule? Special rules apply to these more complex cases about argunent length:
page lK-3
SRI. If the length of any user-specified argunent exceeds ~at the module
( expects, this is an error, and there will be an error message of ~ich the
following is typical (split in 3 pieces for ease of presentation) :
+++ Argunent 2 length-mismatch error. USed on card 5.
N24, Nl (KBEX:i), N2 (KENO) ,N3 (length from $INCWDE) =
~ 27 32 7
SR2. If the length of any user-specified argll\'lent is less than ~at the
module expects, then the argll\'lent type must be checked. For a nll\'leric argLlTlent,
this is acceptable, and the nlEber (the character string ~ich is a mmber if it
is interpreted nunerically) is right-adjusted in the data field of usage, with
blank fill on the left. en the other hand, if the argunent is non-mmeric, this
is an error, and the result is the same as for the preceding case SRI.
"
Page lK-4
MINUS
fIRE.2 FIRE'"
(
Cs C.s
La
ACNOOAe---~----~
ACN008 __--------~~--------~
ACNOOC __----------~----------~----------..
FIRE' FIRE3
La. (
PLUS
0) Here SRIDGE32 is the disk file name. If there were previous $PREFIX
or $SUFFIX declarations, then the actual disk file name will be an augmented
version of this central root, as explained previously.
1) "}Cl{)D" is the first [Link]: a 5-character root name for the 3-P"lase
bus connecting to the br~dge. Why only five characters, rather than the more
corrmon six? Because SRIDGE32 has been set up so that it will append an "A",
"S", or "C' automatically. '!his illustrates the multi-J:tlase aspect mentioned
previously. '!he user just names the three-phase bus ("AIl-IOD") , and
modularization extends this to the three phases automatically.
3) " PLUS" is the third argLlIlent. It is like the second argLlIlent, only
wi th one fewer character. Another single-Fi'lase name.
5) " MID" is the fifth argLlIlent. It is like the fourth argLlIlent, only
here there is no ~CS connection, and there is one fewer character to the
nonblank portion of the name.
Along with the sorting of data by class (Section I-I-J), the processing of
$INCWDE is a11 done at the very start of execution, before the EMTP heading is
issued. All traces of the origin of the records is lost by the time the EMTP
actually reads the records, except for a ccmnent card at the start and a cOOITIent
card at the end (before FOssible sorting may reorder records). From BENCJ:f'1ARK
DC-58:
C $INCWDE, OCSSINCLl.D\T, - carment card at the start
< < •••• Etc. (omitted cards in middle) > >
C End of $INCWDE. File name = OCSSINCLl.D\T - end
Interactive plotting means that the user makes his requests for plot
variables, scaling, sizes, etc. in real time, while sitting in front of a
computer monitor. The computer will rapidly resp:>oo with a plot on the CRT
screen. If only a character (alphanllTleric) monitor is available, the result
will be a printer plot. But if a vector-graphic monitor is being used, and if
the plotting program supp:>rts this, then the result will be a more accurate (and
desirable) vector-graphic plot. Since such details are installation-dependent,
it is difficult to be more specific in this universal section. See the
appropriate installation-dependent subsection of Section I-F for details.
" The selection among branch variables that are not unique is possible with
both interactive plotting programs, whereas no such flexibility is provided by
batch-mode plotting. TWo or more identical output variable names result from
parallel branches of, the electric network, of course. If parallel branches have
outputs of the same class (branch voltages or branch currents, for plotting
p.1rposes), there will be no l..I1iqueness. '!he plotting program will respond with
a warning message that shows al1 output positions satisfying the pair of user
names, followed by an extraordinary prompt for a selection among these. M
illustration for the case of 4 candidates follows:
Clltput posi tions5 through 8 al1 have the same names (NODE2, OODE3) as
artificially constructed by the ".PL4ft plot file data generator named
"PLO'I'Ilh.T" • Excrnples of the need to select among parallel entries can be found
in the test files [Link]\T and WlNl:X:[Link]\T that illustrate usage of the
tVJO interactive plotting programs.
I
Page lLl-l
dig its of the time at the beg inning of execution (HH.f.'M.55) will usually be
involved. So should the six digits of the date, if the computer permits such
longer names. As to whether a missing root nane (e.g., "PLaI'" of Apollo), date
(DD-Mth-YY), or file [Link] (" • PIA" for most systems) is supplied automatically,
see computer-specific details in Section I-F. In all cases, a response
beginning with a percent sign ("%") is taken as the indication that a complete,
legal, file name follows. Any exanple that requests the standard test file
produced by "PL~T" follows:
»> PLOT :FlLE
SUPPLY DISK FILE NAME (HHMMSS}: %HHMM55. PL4
Should another file be connected when this request is received, that other plot
file will be released automatically before the new file is connected, of course.
Hence the "FILE" request can be used as often as is desi red •
"MODE" toggles the switch that chooses between character plotting and
vector-graphic plotting. The default setting will depend on computer (consult
Section I-F).
"TIME WITS" is used to specify the desired units of time for all such
quanti ties. Just as with batch-mode plotting of Section XIV, integer codes are
used to respond to a following. prompt :
1 ==> Degrees based on the power frequency;
2 ==> Cycles based on the power frequency;
3 ==> Seconds;
4 ==> Milliseconds
5 ==> Microseconds
6 ==> Hertz (for usage with "rm:QJEN:Y SCAN");
7 => Log to the base 10 of Hertz.
"TIME" is the request to input time-axis limits T-min and T-max of the
plot in resp:mse to a subsequent prompt. This serves as the ccmnand to perform
the plot, too. 1m al te rna te co.-rrnand to per form the plot is "GO",· which will
reuse the preceding T-min and 'I:..max.
Index Name Default F\Jnction of the REAL variable; rules of its use
6. ~SL 10.0 Time axis length in inches for both screen and
cal canp plots.
7. TOLRCE 8.E-5 The square of the maximun error in inches, for the
discarding of data points to speed plotting.
8. HI'AX 4.0 Height of the horizontal (time) axis in inches for
• COpy· (calcanp) usage.
9. XTIT 0.5 The 80-colunn, multi-line case title is indented
this many inches from the left edge of a "COP'Y"
(calcanp) plot.
10. YTIT 8.5 Like XTIT, only for height above the bottom of
plot, in inches.
11. SIZTIT 0.12 Height of lettering, in inches, for the multi-line
case title of a "COPY" (calOomp) plot.
Page 1Ll-4
12. XSUPER 1.00 The single-line super title is indented this many
inches from the left edge of a "CO?t" (ca1Comp)
plot.
13. ySUPER 0.60 Like XSUPER, only for height above the bottom of
plot, in inches.
14. SIZSUP 0.30 Height of lettering, in inches, for the super
ti tIe of a "CO?t" (calComp) plot.
16. SIZID 0.17 Height in inches of the lettering that is used for
the case title, etc. of a "CO?t" (calComp) plot.
17. XID 0.5 The plot file identification line (date/time) is
indented this many inches from the left edge of
a "CO?t" (ca1Cootp) plot.
18. YID 0.75 Like YID, only for height above the bottom of
plot, in inches.
19. FACT 1.0 Magnification factor for plot. 'Ibe use of unity
is for measurements in inches. 'Ib use metr ic
(see "METRIC" request), change to 0.7874 so
half-inch marks are changed to centimeter marks.
20 • D>lGRDl 1.0 X-direction inches spacing of 1st "CO?t" grid.
21. t1iGRDl 1. 0 Y-direction inches spacing of 1st "CO?t" grid.
22. D>lGRD2 0. 2 X-direction inches spacing of 2nd "CO?t" grid.
23 • OiGRD2 0•2 Y-direction inches spacing of 2nd "COP'f" grid.
32. FHTAX 0.5 Height of time axis of screen plot: the fraction
along the Y-axis if there is no zero level for it.
33. FXSUP 0.3 Fractional displacement along the x-axis, to the
right of the Y-a>:is, for the start of the super
t·~tle line. 'Ibis is for screen plots only.
34. FYSUP -.03 Fractional displacement along the Y-axis, for the
super title. 'Ibis is for screen plots only. 'Ibe
(
sign depends on the comp,lter and/or plot software,
as does the direction of the measurement (from
bottom to top, or vice versa) •
35. FXTIT Pl. HI Fractional displacement along the x-axis, to the
right of the Y-axis, for the start of the mul ti-
line case title. 'Ibis is for screen plots only.
36. FYTIT· 0.15 Fractional displacement along the Y-axis, for the
case title. 'Ibis is for screen plots only. 'Ibe
sign depends on the comp,lter and/or plot software,
as does the direction of the measurement (from
bottom to top, or vice versa) •
39. FTCARR 1.0 Multiplying factor for interline spacing of lines
of text on a screen plot. Unity means single
spacin;, since the actual pixels equal this factor
times the character height in pixels.
40. VAXISL e.0 Length of the y-axis in inches, for a screen plot.
41. FXNlfwtV 1.5 The mmber of lines below X-axis for placement of
x-axis mmbers of a screen plot.
42. FXNUMH 5.0 The X-axis nunbers of a screen plot begin this
many bytes to left of the x-axis tic marks.
43. FVAXTT -7.5 The Y-axis label of a screen plot is to be located
this many bytes to the right of the y-axis itself.
44. FXVERT The fraction along the X-axis for placement of the
y-axis of an X-Y screen plot. Zero is taken to
mean a request for placement of the y-axis at the
( value X=0, if such a zero crossing occurs.
45. FSYMB 0.83 The power frequency in Hertz for cycles, degrees.
46. FFO-iER 60.0 The power frequency in Hertz for cycles, degrees.
Page lLl-5
- ==--=--=--==
Index Name Default Function of the lNTEGER variabL:. _ules of its use
39 1ZGRt '*
OAL
the axes of a screen plot.
To suppress the .f-iJ:.st-fettt:ett background grid of
a vector screen plot, key this value as "(1".
Whether any positive value other than "1" has
special meaning in terms of boldness of the grid
will depend on the program version be:ing used.
like ...ar-iable 12aiU, on1¥- for 2nd {[Link]...---
X-pixels for the beginning of the date/time line
below the vector screen plot. 'Ibis figure is to
the right of the left edge of plot.
46. NYID6 620 y-pixels for the beg inning of th,= date/time 1 ine
below the vector screen plot.
50 • NX'JERN 70 The nunber of pixels to the right of the left
( edge of a vector screen plot, for the beginning
(left edge) of Y-axis [Link].
"CCLUMN" and "SET CCLUMN" are used only for character plots, to control
the width (mmber of characters) being used. '!he first corrrnand toggles the
( switch that chooses between 80 and l32-colunn character plots. 'Ibe second
'\ allows for other widths (there will be a subsequent prompt for the desired
value) •
Page lLl-7
"STOP" will tenninate execution cleanly with a closure of all files. For
most [Link], this is not necessary, and it probably is easier for the user (
simply to abort execution by whatever means the operating system provides. But
this caused trouble (e.g., a failure to close I/O channels) for some [Link],
so a clean tennination is also provided.
"x-y PLOT" will toggle the binary switch that chooses between regular (
plotting of variables as functions of time and the less ccmnon plotting. of one
variable against another wi th time as a parameter of the resulting locus. 'Ihe
program will begin in conventional (non-XY) mode, of course.
"SMOOTH" allows the user to redefine the tolerance for discarding plot
data points. Why are any data points discarded? 'l11e issue is plotting speed
and storage: less [Link] is used, and it is faster, if the graphical output is
minimized. Many curves are sufficiently smooth so that most data points can be
anitted without the user being able to observe the difference. 'Ihe default
tolerance should be set to correspond to the visual limit of the plotting
device, or the eng ineering application. See var iable 'IDLRCE (REAL index 7 of
"SET ~TA"). 'Ihe lower right hand corner of a vector screen plot should (for
most computers) display statistics about the effectiveness of p:>int discarding.
Beside the syml:x>ls for each curve will be first the total number of p:>ints
actually plotted, and second, the percentage that this is of the total available
points. For excrnple: "a - 356 23%". If the tolerance 'IDLRCE is set to \.
zero, this percentage should approach 100, of course.
Page lLl-8
"BOLD" allows the user to change the boldness of curves of a vector screen
r'\ plot. A value of zero means that plotting will be done with minimum pixel
width. A positive value is interpreted as the excess width in pixels on each
side of the normal line segments that define the curve. 'Ihat is, a rectangle is
actually drawn, and the width of this will be twice the pixel width requested by
the user in response to a subsequent prompt:
SEND PIXEL WIDI'H OF FACH SIDE
TO suppress such [Link], key zero.
"COLOO" is the request to change the colors used for the curves of each
wiooow of a vector screen plot. 'Ihere will be a subsequent prompt for t\t,O
integers:
Old color codes for screen plot = 1 2 3 4 5
SEND BEGINNING INDEX AN) VEC'IOR IENGTH :
The user is allo\¥ed to redefine a contiguous range of curve colors, with the
first index of the range, aoo the length of the range, being defined here. 'Ihen
a subsequent prompt will allow the user to redefine the requested colors:
SEND VEC'IOR CE ALTERED CCLCRS :
"DOT" is the request to turn on or off dots (more precisely, disks) that
mark each plot data point after the discarding of points by "EMOOTH". A
prompt will then request the size of the disks:
SEND RADIUS OF CIRCLE IN PIXElS [ " ] :
USe zero to suppress such marking, whereas a positive value is interpreted as
the radius of the disk (to be filled with the color of the curve) in pixels.
(
Page lL2-1
Program "WINDCWPLT" is designed to display many curves on the sarne screen '(
or piece of paper. '!'he name comes from "window plotting," 'Nhich emphasizes the
dominant attraction. '!'he user is allowed up to 9 independent plot windows that
are stacked vertically one on top of the other. Each of these windows has an
independent display, al tholl3h the time scales (horizontal axes) of all must be
the sarne. Needless to say, only vector-graphic plotting is allowed (the
character mode is hopelessly short of resolution for typical usage). Both
vector-graphic monitor plots and calComp hard-COpy plots are available.
Note that the first five prompts involve two lines each, with the first of the
two lines describing what is required of the user, and showing the existing
\. (old) content that can be reused if just a carriage return «CR» is keyed by
the user. Following a display of all old curve nunbers of the window, prompt 6
demands the new mmber of curves NUMC to be plotted in the window. Finally,
prompt 7 asks for a string of NUMC new curve mrnbers (from the [Link] order of
the preceding variable selection by "~E") • Just as with [Link] of the
conventional "TPPLOT", a single usage of "~E" requests all plot variables.
The difference is that now these variables can be allocated arbitrarily among
mul tiple windows. Also, any variable can be plotted in two or more different
windows, if desi red.
"SET r:[Link]." functions the same. way as already described for "TPPLCYI'".
H:>wever, a different plotting program is involved, and the INCWDE file defining
the control variables and their associated indices, WIN'IX1IJKOM. INS.F'lN (for
Apollo), differs somewhat. '!he following table applies:
Index Name Default FUnction of the REAL variable; rules of its use
6. 'mXISL 10.0 Time axis length in inches for both screen and
calComp plots.
7. 'fOLRCE 8. £-5 The square of the maximun error in inches, for the
discardin; of data points to speed plotting.
9. X'I'IT 2.5 The window title line is to begin this many inches
to the right of the left edge of a calComp plot.
11. SIZTIT 0.12 Height of mul ti-line case ti tie for calComp plot. (
13 • XOFFAX 0. 60 The Y-axis of a calComp plot is located this many
inches to the right of the left edge of the page.
16. SIZID 0.17 Height in inches of the lettering that is used
for the case title, etc. of a calComp plot.
17. XID 1.8 The plot file identification line (date/time) is
indented this many inches fran the left edge of a
calComp plot.
20. OXGRDI 1.0 X-direction inches spacin; of 1st calComp grid
21. D'fGRDl 1.0 Y-direction inches spacin; of 1st calComp grid
22. O)[;RD2 0 2 X-direction inches spacing of 2nd calComp grid
23. D'fGRD2 0~2 Y-direction inches spacing of 2nd calComp grid
32. FHTAX 0.5 He:ght of time axis of screen plot: fraction alon;
the Y-axis if there is no zero level for it.
33. FXSlP 0.3 Fractional displacement along the x-axis, to the
right of the Y-axis, for the start of window ti tIe
line. This is for screen plots only, not calCornp.
39. FTCARR 1.3 The number of lines that the time-axis label is
below the time axis itself, for a screen plot.
41. FXNUMV 1.5 The number of lines below X-axis for placement of
x-axis numbers of a screen plot.
43. FVAX'M' -9 .5 The Y-axis label of a screen plot is to be located
this many bytes to the right of the Y-axis itself.
42. FXNtMH 5.0 The nunber of characters to the left of the time-
axis tic mark for the beginning of an associated
nunerical time value of a screen plot. \
46 • FFCWER 60 • 0 The power frequency in Hertz for cycles, degrees.
Page lL2-4
Index Name Default FUnction of the INTEGER variable; rules of its use
40. IZGR2 -1 Like IZGR1 (39), only for the 2nd (inner) grid.
45. NXID6 130 X-pixels for the beginning of the date/time line
below the bottan window of a screen plot. This
figure is to the right of the left edge of plot.
50. NXVERN 70 The number of pixels to the right of the left
edge of a screen plot, for the beginning (left
edge) of y-axis numbers.
53. INCHPX 2 The placement frequency for X-axis [Link] that
accanpany axis tic marks of a screen plot. The
value "2" means numbers will appear for every 2nd
inch mark.
54. INCHP'i 2 Like variable INCHPX (53), only for the Y-axis.
57. lCHFIL 2 Tektronix PLO'I'10-like size code for the "PL4."
plot file identification (date/time). This is
used as an [Link] of "ORSIZ". To suppress such
labeling, use the value "-I" •
58. lCHLIM 1 Code controlling appearance of the line of time-
axis limits and scaling of a calcanp plot. USe
"+1" to see such a line, and "-I" to suppress
such output.
59. lCfW..M 2 Tektronix PLO'I'l0-like size code for the line of
plot variable names. This is an [Link] of
"CHRSIZ". To suppress such labeling, use the
value "-1".
Each new data case that is to be solved must begin with one or more of the
data types described in the following subsections. Structurally. there is an
indeterminate number (possibly zero) of special-request inputs (Section II-A) that
come first. in any order (unless usage dictates an order for the problem of
interest). The miscellaneous data cards of Section II-B. followed by possible
extensions to these cards in Section II-C, only come after the last of any such
special-request cards of Section II-A.
1JJJJJ1~JJ1JJJJll~J~IJJIJJ1JJ~lJJJJ~)~J~lJ1JJJ1JJ~IJJJJllJJ~IJIJJ~IJJ~IJIJIJIJJ~
ABSOlUTE TACS DIMENSION
I
~~
I, ~ I~ If
~I ~ f~i ~ E ~s Ie 1~
I' ~ ~f f rfl ( . :~, f ~C ~i- I"! :ff tfl f >( ,E 'Ei SI( ;. ,~I~ If 'E I c~ C f·1 ~ :~i€ ' E~ CI ( 'E
18 18 18 18 18 18 18 18
The format for the sizes is 818. with the 8 required TACS table sizes having
the following meaning:
LTl : Maximum number of TACS dynamic function blocks. having Laplace transfer
functions H(s) •
LT2 : Maximum number of nonzero factors of the triangularized TACS network matrix.
This limit applies to both the steady-state solution and the transient solution.
LT3 : Maximum total number of input variables to TACS dynamic function and
supplemental devices.
LT4 : Maximum number of TACS sources. This includes built-in sources (e.g .• "TIMEX"
or "UNITY") and variables passed from the electric network to be TACS driving
functions.
LTS : Maximum number of supplemental variables and devices (type codes 99. 98,
or 88 keyed in columns 1-2).
II-A. Special-Reque.t Card. That Precede "[Link]. Data - 4
LT6 : Maximum total number of extra INTEGER pointers which are associated with
supplemental variables and devices. There is no easy, exact formula, although
sample figures can be given. Each parenthesis requires 3 cells, as does each
arithmetic operation ("+". "*", "=").
LT7 : Maximum total number of extra REAL cells which are associated with TACS
variables. Each TACS variable requires one or more such cells. Again, a
simple rule is impossible to state. Each first-order function block requires
10 cells, intermediate variables of supplemental-variable expression evaluation
each requires one, the average device might require between 3 and 5, and the
most complex device (the RMS sensor, Type 66 (requires 1 / { f * DELTAT }
where "f" is the fundamental frequency.
LT8 : Maximum number of distinct TACS variables used in the TACS data specification.
Provided the total storage represented by this request is less than or equal
to the List-19 space available, execution will proceed normally. If not, the
overflow will be noted before any TACS data will actually be read. The result
would be a KILL = 1 message pOinting to List 19.
A second way to allocate total TACS storage is via a request for relative
sizing. That is, rather than request a specific number of function blocks,
supplemental variables, etc •• the user can simply request a proportional allocation
(e.g., 5% of the total storage for function blocks, etc.). See Section A-29 for
details.
The interpretation of the two input data cards confirms only the first 5 of
the 8 integers being specified. The following illustration has been taken from
the 2nd half of BENCHMARK DC-18:
C 1 234 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
Request to define new TACS allocation absolutely. IABSOLUTE TACS DIMENSIONS
TACS table sizes. 10 90 100 20 30 10 90 100
The universal machine (U.M.) component of Section IX has total working space
for all tables assigned in List 25 of the overall program variable dimensioning
{see Section I-G}. But there still remains the flexibility of dividing this total
working space among among the four U.M. tables by means of the following request
for absolute sizes:
II-A. Special-Request Cards That Precede Miscellaneous nata - S
I· I- ,'I € IE
I~I' ~~i ~ ~ E E Ie f! I ~f( I~:~ fE IEI~IC I~I~ ~ E 1~~9C ~~ IE :f'E ,.I~ IefE rfl~lc I~ ~.M ~ E tm I( I: bE tElsIC
A8SOL UTE U. M. 01 MENSI ON<: 18 18 18 18
Parameters:
NCLFIX (33-40): Maximum total number of U.M. coils in the data case. This is the
total for all U.M. components involved.
NUMFIX (41-48): Maximum number of U.M. components for the data case.
IOTFIX (49-56): Maximum number of U.M. output quanti ties (total for all machines) .
IBSFIX (57-64): Maximum number of U.M. 6-character alphanumeric names (total for
all machines).
Provided the total storage represented by this user request is less than or
equal to the List-25 space available, execution will proceed in a nominal
fashion. If not, this fact will be noted in UTPF overlay 5 as the first U.M.
data component itself is ready for input, and an EMTP error message will result.
In any case, the corresponding minimum size for List 25 will be shown as part
of the column 1-50 interpretation of the Type-19 request card for U.M. modeling.
This way, the user knows what fraction of the available space he is utilizing.
If the user fails to input such a request for U.M. table sizing, then the EMTP
allocates default dimensions equal to (20, 3. 50. 60) within UTPF overlay 5. For
computers with 32-bit integers and 64-bit floating-point values (e.g .• Apollo.
VAX. PRIME, and IBM), a List-25 size of 300 is sufficient for this usage (and it
corresponds to the default allocation of "VARDIM" for List 25). Word machines
will need more (it appears that value 410 should be adequate).
Interpretation of the input data confirms the four U.M. table sizes that have
been requested. of course. As an illustration, consider the associated output
line of BENCHMARK DCNEW-1:
C 1 234 567
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
U.M. table sizes. 20 2 50 60 IABSOLUTE U.M. DIMENSIONS
If minus Signs are applied to MULT(K) as part of the printout frequency changes
of Section II-C (or the equivalent "CHANGE PRINTOUT FREQUENCY" declaration of
Section A-10). then diagnostic printout controls of the time-step loop are to be
switched. Those of the "DIAGNOSTIC" request (Section A-12) are in effect initially.
II-A. Special-Requeat Carda That Precede H1acellaneoua nata - 6
Then, at the time of the first change, an a1ternate set of printout control
parameters IPR(1:4) is used instead. These four new variables replace IPRSOV(16:19) ,
to control the diagnostic output of the four pieces of the time-step loop. Upon
the second such change (the second negative MULT), there is a switch back to the
original DIAGNOSTIC printout control codes. Etc. (for each minus sign, the two
sets of control variables are switched).
On the other hand, if the time-step loop is to begin without any diagnostic
tlrintout, then nonzero IPR(K) must be defined by the user. This is done using the
following special-request card:
l~ tilJ~
I! IE
I: 1,1' if Wlc I'H tH( I,t· t ~ t11 ~~ c I' ~ E ti I~l ( H til!l( I!I! tl~* 1~ ~! ~q(
"
ALTERNATE DIAGNOSTIC PR I NTOU 18 18 18 18
Interpretation of the input data confirms the four printout controls that have
been requested, of course. As an illustration, consider the associated output
line of BENCHMARK DC-53:
C 1 234 5 6 7
c 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
DELTAT-loop printout. 9 9 9 9 IALTERNATE DIAGNOSTIC PRIN
As explained in Section VII, source types 1 through 10 are reserved for functions
that are directly defined by the user. If one or more such source functions is
to be defined in FORTRAN within a special user-supplied version of SUBROUTINE
ANALYT, then the following special request record must precede input of the
miscellaneous data cards for the data case in question:
II-A. Special-Reque.t Card. That Precede "[Link]. Data - 7
,~ € E
~
1* IEi~!e I ~I c ~I~ I:if If~ ~I ( ~ i ~I~, f If I( I~r= ~ f rf~ ~ :~!~ 1=lf : f~ ~ C '~ I~l' I (:~ Ie I' H rfi f
C 1 234 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------:-------------------------
User-supplied SUBROUTINE ANALYT is declared. :ANALYTIC SOURCES USAGE
!JJ1JJ1JJJ1J!lJJ1JJ~lJJJJJ1JJ~lJJJJJlJJ~iJJJJJi~J~lJJJJJ1JJ~lJJJJJ1J~11JJJJif~J~
VERAGE OUTP
The mathematics of theEMTP solution are not affected; this is just a massaging
of the answers at the time answers are printed and/or written to the plot file of
LUNIT4. By averaging is meant the arithmetic mean of the current and the preceding
variable value: (V-new + V-old) / 2 •
For studies where EMTP output variables are smooth functions of time. the
"AVERAGE OUTPUT" request would have negligible effect. and should not be used (it
just adds a small error to the answer). But there are problem cases such as the
hanging inductor (see the two pages of discussion in Section VI about'"REMARKS ON
OPENING ACTION"). There are pathological cases where the trapezoidal rule gives
answers that oscillate around the true value. so this remedy might sometimes be
useful. As an example of such usage. see BENCHMARK DC-55.
C 1 2 3 4 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------l-------------------------
Request to average (smooth) output variables. lAVERAGE OUTPUT
While not mandatory, it is good practice for the EM!? user to make the very
first card of each data case a special case-separation marker:
!JJ1JJ1J~~I~J1JJJJI~IJJ1J~lJJ~IJJJJJJ~J~IJJ~JJJ~JI1JJJJ~lJ~~IJJ1JJIlJ~lJJJ~JIJJ~
BEGI N NEW DATA CAS
See any standard test case (e.g., BENCHMARK DC-18) for an example.
Yet suppose that it was during the solution of the final data case of program
execution that a fatal EM!? error termination occurs. In this case, there would
be no following data case, so further solutions would not be possible. To distinguish
this situation, the final data case should always be followed by a "BEGIN NEW DATA
CASE" card and a blank card, in order to terminate execution cleanly. The blank
card in this situation is read as the start of a new data case, and the lack of
any keying on it is recoiIlized by the EMTP as the end of all data cases. In the
absence of such usage, recovery following an EMTP error will result in the encounter
of an end to input data, which will be accompanied by a second EM!? error message
(messy) •
It should be emphasized that "BEGIN NEW DATA CASE" cards must be properly
positioned in the data deck; they do not in any way alter the need for blank
termination cards (the function of which is explained in section II-A-8). The
identity and function of these special cards is recognized by the EMTP in only two
places:
1. Following an EMTP fatal error, such cards are watched for as other records of
the input data are discarded.
II-A. Special-Requeat Card. That Precede Miacellaneoua Data - 9
2. Following normal completion of the solution for any particular data case, the
very first non-comment record of the following data case will be checked for
"BEGIN NEW DATA CASE".
Any other placement of these key cards will generally lead to error termination
by the operating system, since the alphanumeric text will be decoded numerically
(which is impossible).
C 1 234 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------:-------------------------
Marker card preceding new EMTP data case. IBEGIN NEW DATA CASE
The integer miscellaneous data parameter MAXOUT (see Section II-B) provides
for the calculation and output of variable extrema. The
same vector of extrema is used for "STATISTICS" and "SYSTEMATIC" output as well.
Normally, extrema are wanted over the full time span of the simulation. But not
always. There are cases where one wants to ignore a certain initial interval of
the simulation, only considering transients after a certain minimum time. For
example, in a "STATISTICS" simulation, it is possible that random closing will
follow the opening of breakers (the clearing of a fault), but that the peak
simulation voltage will be produced during the deterministic opening portion of
the simulation. If extrema were calculated over the entire time span of the
simulation, each energization would generate identical peaks, which is useless to
the designer. So, in this case, the solution is to inhibit the calculation of
extrema until transients of the opening .phase of execution have passed. This is
possible, using the following speCial-request card upon which the beginning time
BEGMAX in seconds is to be keyed in columns 33-40:
,. IE
i~€ 'EI~ ie I~ ~.j I ~!( I·I..;I~ !f~~1 ( I~,..;'~ ,€ :E~~IC
I'
'mic 1- ,~:~
It
,ElSie ,.. it
~ • ~~ ~ i( ,< .• rm[c
BEGIN PEAK VALUE SEARCt- EB.O
BEGMAX
So much for the simplest possible case, where an initial time span is simply
ignored in the extrema calculation. But more complex time ranges are possible,
if the above BEGMAX is given a value of "-1.0". In this case, an extra card is
to follow, upon which monotone increasing times Tl, T2, etc. are to be keyed:
I!
I~I- "ll tE IEI~ ~( I~ l!H rAe ~~ tH~I(
I~
E8.0 E8.0 E8.0 E8.0 E8.0 E8.0 E8.0 E8.0 E8.0 E8.0
T1 T2 T3 T4 T5 T6 T7 T8 T9 T10
In this case, extrema are to be calculated only for those portions of the
simulation that intersect the sub-intervals of time (Tl, T2), (T3, T4), etc.
Present dimensioning of this feature has been limited to the single card of five
subintervals, as shown. In case fewer than this maximum are actually desired, the
4 or fewer pairs should be followed by a very large time that will never be reached:
the beginning time of a bounding subinterval.
Interpretation of the input data confirms the starting time BEGMAX of the
search for extrema, if this is positive (the simple case). Using BENCHMARK DC-53
as an illustration:
C 1 2 345 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------:-------------------------
Extrema lookout begins at t = 5.25OOE-Ol sec. :BEGIN PEAK VALUE SEARCH
On the other hand, if BEGMAX = -1.0, then the more complicated, 2-card input
is involved. BENCHMARK DC-53 provides an illustration of such usage:
C 1 234 567
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ~-----------------------------------------------:-------------------------
Extrema lookout begins at t = -[Link]+OO sec. :BEGIN PEAK VALUE SEARCH
(Tl,T2): 5.00E-Ol 1.50E+00 2.50E+00 3.50E+00: 0.5 1.5 2.5
The traditional termination procedure for the solution of a disk file that
contains one or more stacked data cases is to have the first card of the following
(non-existent) data case completely blank. The use of "BLANK" in columns 1-7,
followed by anything for the rest of the card image, is also acceptable. By
II-A. Special-Requeat Carda That Precede Hiacellaneoua Data - 11
agreement, either of these tell the program that there remain no more data cases
to be solved, so that EMTP execution can return to the original opening prompt
( "EMTP begins. Send ••• " ) •
I- ~ I~ If IE
~ ~iE IE Ie i ~~: fE rEI C I~I~ rE Ifl~1 ( " I~: ~ , E 'EI~ C 'f 'E I( ,~I!' IE :EI* ,~, :IE 'El~c ., 'f, s: c
CABL E CONSTANT C \8
KTRL9II(3)
Normally only the request word is required (leave columns 16 onward blank).
For an example of such usage. see BENCHMARK DC-27 or DC-28.
Interpretation of the input data confirms the usually blank (zero) value of
KTRLSW. Using BENCHMARK DC-27 as an illustration:
C 1 234 5 6 7
c 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
Find parameters of cables. Type = O. ICABLE CONSTANTS
11JJIJJJJJ~IJJJJJJ~J~IJJ~JJJ~~IJJJJJIJJ~IJJIJJJJJ~IJJJJJIJJ~IJIJJJIJJ1IJIJI'IJ~~
CHANGE PRINTOUT FREQUENC
I~ I~ Ie IE
~ ~ ~IE If e ~ IE 'E I cle I~I~ fE 11 Ie' ~ ~~ E :sle I' I~H t ~I~I( ,~I'iE '~~~Ic ,oil' IE 11:~!( I.l'~ E rE:~!C
18 18 18 18 18 18 18 18 18 18
KCHG MULT KCHG MULT KCHG MULT KCHG MULT KCHG MULT
II-A. Special-Requeat Carda That Precede Miacellaneoua Data - 13
The numeric card specifies at which time steps the printout frequency is to
be changed, and to what values the frequency is to be changed. Up to five pairs
of these {KCHG, MOLT} controls are permitted, as per the following definitions:
KCHG(K}: The time step number at which the K-th variation of printout frequency
is to begin. Printout for this particular step number is always provided, as
a beginning to the new frequency of output.
MULT(K): The modified value of lOUT (see 2nd miscellaneous data card) that takes
effect at time step KCHG(K).
If a minus sign is appended to MULT(K) , then at the corresponding step number
KCHG(J}, the diagnostiC printout .status will be changed. That is, there will be
a switching of the two sets of diagnostic printout controls:
C 1 234 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
Request preceding 5 printout number pairs. ICHANGE PRINTOUT FREQUENCY
Printout : 5 5 10 10 0 0 I 5 5 10
The user will normally employ whatever prec~s~on of plot file data has been
decided upon by Program Maintenance for his computer system, and not think further
about the question. For plotting only, which requires low-accuracy, any computer
precision should be adequate, so the user need never worry. But there may be more
concern for other uses of the plot file data, such as "POSTPROCESS PLOT FILE"
(where plot file variables become TACS sources of a subsequent simulation), or
"FOURIER ON" (to request Fourier series decomposition of a plot file variable).
In such cases, full EMTP solution precision may be desired. For those computers
II-A. Special-Reque.t Car4. That Precede [Link]. Data - 14 .
that store output variables with reduced (typically half) prec~s~on, a special
request (the "CUSTOM PLOT FILE" request illustrated below) is required to override
the default decision favoring reduced precision. It also is conceivable that some
user might sometime want to decrease the precision of his plot data point storage.
although such usage is probably much less common. Actually, the declaration toggles
the choice of plot file precision, so can be used for either operation:
IllJJJiiJJJ1JJJJjjJJilJJJJJiJJ~1~JJJJjJ~~lJ1JJJjJ~~l~JJJJiJ~~111JJJ1JJJ1JJJJJtJJ~
CUSTOM PLOT FI L
C 1 2 345 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
Toggle choice of disk plot file. M4PLOT = O. ICUSTOM PLOT FILE
Integer miscellaneous data parameter IPRSUP (see Section II-B) will turn
diagnostic printout on or off irrespective of the location of that printout within
the program. That is. either all diagnostic output is turned on, or all is turned
off, at a certain threshold level. If positive, IPRSUP will override the selective
printout request of this present section.
But if IPRSUP is to be keyed zero or blank, then the EMTP diagnostic printout
can be controlled overlay by overlay of the UTPF. A special-request card bearing
the key word "DIAGNOSTIC" in columns 1-10 is used in this case, followed by 10
blanks, followed by values for each of the 29 overlays as 2912 information:
. 14 I€ E
·~I € E Ie ~ l~ r~t (~( 'E ! e IE iElcle I~ !
iE ~I~ ~,.f~ rci~lc ~~.~ IE r f~~ ie .. 'EI ~ C
01 AGNOST I ( I~ I ~ I ~I ~ 12 1 ~ 1 1~ 1 • 1 ~ 1 I~ I~ 1 ~ 1 ~ 1 ~ I ~ 1 ~ I : 1 ~ 1 : 1 2 1 ~ 1 ~ 12 121 I I~
In the selection of these diagnostic output codes, special care should always
be taken with regard to the time-step loop of overlays 16-19. Remember that
diagnostic output can be generated for each time step, so beware of the termination
time TMAX in relation to the step-size DELTAT, should such output be requested.
Another consideration is for large networks. which will generate voluminous output
II-A. Special-Requeat Carda That Precede Miacellaneoua Data - 15
in overlay number 7 (network node-renumbering) and the [Y] formation of overlay 14.
In these cases, output can be produced for each row of the matrix. It is recommended
that diagnostic for overlay 7 almost never be used, and that the value for overlay 14
be limited to level 3. If in doubt about such control, consult Program Maintenance,
or try the usage in real time, looking at the output on a computer monitor as it
is being generated. In case the output is excessive, execution then could be
aborted, and the controls modified appropriately. A summary of the function of
key overlays at the start of the program follows:
Overlay 1: Special-request cards, miscellaneous data
Overlay 2: Only TACS data input
Overlay 3: Branch input
Overlay 4: Switch (including diodes/valves) input
Overlay 5: Source (including S.M. and U .M.) input
Overlay 6: Network connectivity
Overlay 7: Node renumbering
Case 2. If the user wants to start with diagnostic (Step zero), then IPRSOV(16:19
should not all be zero. In this case, no "ALTERNATE DIAGNOSTIC PRINTOUT"
request is needed, since zero values are the default.
Interpretation of the input data confirms only the first 12 of the 29 integers
that are defined. An illustration is provided by BENCHMARK DCPRINT-5:
C 1 234 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------:-------------------------
Debug print. 0 9 9 9 9 9 0 9 9 9 9 9 :DIAGNOSTIC 0 9
-
:~ IE IE
~ I~'c IE Ei~ !e i ~,- .~i E rE .!: lEI c'c 1'1' IE If { I~ I ~lc
,E I' ~ 1~le ~~.~ If I (~~ Ie I~ " ., iSiC
IOFBND
C 1 2 3 4 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
Constant-R,L generator equivalent. IOFBND = 11. INETWORK EQUIVALENT, 11,
IE
Ie-
€
~ l~!f IE { 'EtC ~E If 'El~ iE lEI ~ I~i-'~ I' i~!( f- '!:if 'H~IC 'EI'iC
FILE REQUES
C 1 2 345 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
Request for "CALL MIDOV1" execution. IFILE REQUEST
EMTP load flow capability is associated with special data cards that are to
follow the blank card ending sources, as explained in Section X. But such observation
of power constraints is optional. If such data is to be read at the appropriate
time and place, the EMTPmust know of its existence. The user declares such
existence by means of the following request card:
11JJJJJ1JJllJJJJIJJ~~IJJJJllJ~~IJJJJJIJ~~lJJJJJIJJ~IJJJJ~J~~~IJIJJJJJJ~IJJJJIIJJ~
FIX SOURC
For examples of such usage, see the standard test cases BENCHMARK DC-25 and
DC-26. Interpretation of the input declaration then appears as follows:
C 1 234 567
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
Declaration of desired EMTP load flow usage. !FIX SOURCE { Declare
The "FREQUENCY SCAN" feature (cfr. DC-51) of the EMTP allows for the .repeti tion
of steady-state phasor solutions (so be sure to put '!'MAX = 0, DELTAT has no meaning) ,
as the frequency of sinusoidal sources is automatically incremented between a
beginning and an ending frequency. Rather than conventional EMTP time-response
output, the user then has available a frequency-response output. When plotted,
the time axis of conventional EMTP simulations becomes the frequency axis, with
the result being a Bode plot. Either polar coordinates (magnitude and angle) or
rectangular coordinates (real and imaginary parts) of the phasor solution variables
are used for output purposes. For example, the following could apply to the node
voltage of phase "at! somewhere in the network:
II-A. Special-Reque.t Card. That Precede [Link]. Data - 18
Magnitude Angle
***
* * 1
I
* *
* * II *
* * 11 *
*** * 11 *
* 1I *
* 1I * *
* 1*
1 *
* I
1
+----------------------------->
Frequency
+---------------------------->
Frequency
Should the user desire such multiple steady-state phasor solutions, then the
following special-request card must precede the miscellaneous data cards:
I~
!~i~JJl ,e t!
€ iE
; ~~i f I! Ie I" ~.1 tE tII ~ Ie i 'f~ 1<" 'f I!I~ f( :;!~ [Link]~ ff II,s :; ~< t!' t! ISle I' f:lf 'a~le ,! rEI~1 c
Parameters :
FM1NFS of cols. 25-32: the beginning (minimum) frequency of the scan, in [Hertz].
This must be a positive number.
DELFFS of cols. 33-40: the frequency increment between successive solutions of the
scan, if the user wants uniform (as opposed to logarithmic) spacing. For
logarithmic spacing, this field should be left blank.
FMAXFS of cols. 41-48: the ending (maximum) frequency of the scan, in [Hertz].
This must be greater than or equal to FM1NFS, of course. The solution loop
will end with the last frequency that does not exceed this upper limit.
NPD of cols. 49-56 is used only for geometric or logarithmic spacing as opposed
to uniform or arithmetic spacing of the frequency points. For geometric or
logarithmic spacing. provide an integer value for the number of points per
frequency decade. Successive frequency points then will be related by: (f(k+l)
/ f{k» ** NPD = 10.
Special attention should be paid to integer miscellaneous data parameter KSSOUT
when using the "FREQUENCY SCAN" option. See the Section 11-B definition. If
punched with unity. the full phasor branch flow and injection output will result
for each solution frequency of the scan. This could produce large quantities of
printed output, if the number of frequency points is large. Other positive values
of KSSOUT will produce additional phasor output, only in smaller quantity. Hence.
be careful of positive KSSOUT.
II-A. Special-Requeat Carda That Precede Miacellaneoua Data - 19
Except for the just-mentioned full branch-flow and injection printout. only
node-vol tage output is presently available for "FREQUENCY SCAN" solutions. The
node voltage output request format is explained in chapter XII. Any request to
output branch or switch variables (voltage differences. branch currents. powers
and energies) or TACS variables will be disregarded in FREQUENCY SCAN mode. Node
voltages are outputted in both polar (magnitude, angle in degrees) and rectangular
( real. imaginary) forms.
The induction (asynchronous) alternative of the U.M. should not be used with
"FREQUENCY SCAN" unless it is known that installation-dependent SUBROUTINE
PLTFIL does not rely upon storage of the COMMON block for vector 14BYTE. The
UTPF contains an Apollo module. and this uses the storage of 14BYTE for conversion
of the "FREQUENCY SCAN" output vector to single precision prior to storage. The
replacement of 14BYTE by a local vector of sufficient length (equal to the maximum
number of output variables) will remove the restriction. of course.
For the LUNIT6 line printer output. there really are two component output
vectors, beginning with the polar form, and ending (after starting on the left on
a new line) with the rectangular form. For the plot file of I/O unit number LUNIT4,
the two parts are concatenated into a single, double-length. output vector. An
extract of the LUNIT6 output is displayed hereafter.
_g:LOlU)
...g:CUR
......1: LOlU)
....1 : CUR
angle:LOlU)
angle: CUR
l_g:LOlU)
t...g:CUR
_g:'UD
-g:
real:IIID
....1:
_l.:IIID
t...9:IIID
_:-
real:_ t...9:-
_:TIIM
....l:TIIM
This output is extracted from a modified version of BENCHMARK DC-51. One extra
node "DUMMY" was added, to produce more output, thereby clearly showing the
boundary between the polar and the rectangular outputS. The final line of heading
(before the step-1 output) shows that there are five complex output quantities,
or 10 numbers total in both the polar output and the rectangular output.
Also for plotting. only node voltage output can be requested although all
output variables are considered to be of type "9" (branch currents). ·One pair of
names is associated with each node name. Suppose that NODNAM is the name of the
node voltage which .is of immediate interest. The corresponding pair of names then
should be one of the following:
C 1 . 2 3 4 5
C 345678901234567890123456789012345678901234567890
C ------------------------------------------------
PRINTER PLOT
19630. 60.150. CUR mag CUR angle
19630. 60.150. CUR real CUR imag
BLANK card ending plot cards
For details regarding the card format of this plot card, please consult section
XIV-A-3.
Plot type 9
Noele na88. CUI! .....0 CUI! MOI..E
Ti_-ad. legend : Frequency f in Jlertz
( ,,10··1 I) )
-4.134 -3.096 -2.058 -1.020 0.011 1.055 2.093 3.131 4.168 5.206 6.24. 1.282 '.319 9.351
.---_..----.---------+---------.... _-------.---------.---------.---------.---------.---------.---------.---------.---------.---------.
•
•
90.
•
• A
B A
Ene! of graph.
However, if the user needs branch currents or voltage differences, rather than
node voltages, he is adviced to add one or more measuring transformers for this
purpose (see Section IV-E). A 2-winding transformer that draws no magnetizing
current, and that has small leakage impedance, would be appropriate, to insure
accurate measurement (ju~t as in the real world of instrumentation).
- For a voltage differente between BUSK and BUSM, following scheme could be used:
network
II-A. Special-Requeat Carda That Precede Kiacellaneoua Data - 21
The primary of the transformer should be connected across the two desired nodes.
The turn ratio should be unity. The secondary should have one grounded terminal.
The open circuit terminal vol tage VKM then is a measure for the vol tage difference.
- For a branch current in a resistor R between nodes BUSK and BUSM, following
scheme could be used:
BUSK
BUSM
The primary of the transformer should be connected across the resistor with value
R. The turn ratio should be R: 1. The secondary should have one grounded terminal.
The open circuit terminal voltage IKM then is a measure for the current flowing
in the resistor R.
If phasor branch-[YJ data is being used with "FREQUENCY SCAN" (see Section
IV-C), then the user must connect the file of such data to I/O channel LUNIT8
using SOPEN. The format of data is simple enough. Data is ordered with increasing
frequency. There must be one set of phasor branch-[YJ data for each frequency
of the "FREQUENCY SCAN". Each such data set consists of a single, arbitrary
comment line followed by [Y] --- for each branch so represented, in order of
branch input. Since [V] is symmetric, only the lower-triangle is inputted.
Numerical data is ordered as for the [V] input of Section IV-C, although more
preciSion is allowed: use FORMAT ( 4E20. 0 ). No node names are used, note, since
these are already known, Just supply the (a,B) pairs, up to two per card. Data
is inputted by rows of the lower triangle (up to and including the diagonal),
with data for each row beginning on a new card. Readers having access to FORTRAN
can search for LUNIT8 usage wi thin SUBROUTINE SUBR10.
Interpretation of the input data confirms the four input numbers on the
declaration. As an illustration, consider the associated output line of BENCHMARK
DC-51:
C 1 234 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
F-scan. 6.000E+01 2.000E+01 1.300E+02 0 !FREQUENCY SCAN, 60., 20.,
1
I~ I~ I! IF
. ~ t:~ E 11 jC le ~.l •H ! q~l( 11~ ~ ~ ( ,< 1_ll r :fE rH~lc ~, 11~ ~I ( Ill: IE' (I~I( ,:fE rH~'e .,~' rll~lr
PDTO
Variable PDTO of columns 33-40 has the same meaning as the parameter of columns
33-38 of frequency-dependent branch cards of Section IV-D-3. In fact, the parameter
is not actually used by the fitter, but is merely passed along from the declaration
card just shown to any branch cards that later are to be punched. This is no
different than for node names of a "BRANCH" request, only here the request comes
earlier, outside the supporting program.
C 1 234 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------:-------------------------
Jose Marti's line fitter. PDTO = 1.0 :JMARTI SETUP, 1.0,
.~ i€ IE
['I E II Ie L' I~f( ,~I~ 111q( ~<I ~ fE [11 ~ Ie I~ ,<I: fE rm ~ ~. f! rlt~ Ie I ~t' ~'I !I! t~f ( ~, p~ rmle
KILL CODE~ 18 18
KILL 1 KILL2
Here KILL1 (columns 33-40) and KILL2 (columns 41-48) are the beginning and
ending numbers of the consecutive error messages that are to be printed. Of
necessity, KILL2 must not be less than KILL1.
II-A. Special-Requeat Carda That Precede Hiacellaneoua nata - 23
The most common usage of this feature will be on an impromptu basis, which
suggests interactive input following the "KEY" response to the opening prompt of
the program.
Interpretation of the input data confirms the beginning and ending indices of
the error messages. An illustration has been placed at the end of BENCHMARK DC-13,
resulting in the output:
C 1 2 345 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------l-------------------------
Test output of error messages 13 through 14 IKILL CODES, 13, 14,
11JJJJJiJ~~1~Jl~JjJ~~lJJJJJiJJ~1~J~~JiJJ~lJJJiJiJ~~lJJJi~j~J~lJ1JJJt~~~lJ1JJ~f~~~
LINE CONST ANT
For examples of such usage, see BENCHMARK DC-29 or DC-59. The latter of these
provides an illustration of interpretation, which is as follows:
C 1 234 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
Compute overhead line constants. Limit = 54 ILINE CONSTANTS
i~ ~ iE IE
i" l', E IE Ie I ~I- '''f~ ~ € rEI~iC i~'o IE~ ~I C fl' ,€ :EI ~ e '~ I" 1 € :H~ I~- I" f€ I f~ SiC " f~ i~1 ( H rEi~lc
L I NEAR 81 AS USAGE
No further information is required, since limits on the bias have already been
provided by the "STATISTICS" miscellaneous data parameters DEGMIN and DEGMAX (see
Section II-C. columns 41-56). For a case with "LINEAR BIAS USAGE", there is
replacement of the random number that normally is used by a variable that varies
linearly between 1.0 / NENERG and unity as theNENERG energizations are performed.
C 1 234 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
Ramped linear variation of random bias. ILINEAR BIAS USAGE
But for special circumstances. the user may want to define one or more of the
miscellaneous data parameters "ahead of time." along with other special request
cards. This is required for "START AGAIN" usage. for example (see BENCHMARK Dc-40
as an illustration). If such usage is wanted, Simply precede the usual miscellaneous
data cards of Sections II-B and II-C by the special-request word "MISCELLANEOUS
DATA CARDS" as follows:
11JJJJ~]JJJ1JJIJ~]~~~IJJIJ~]JJ~lJJIJJ1JJ~lJ11J~1~~~lJJ~J~1~J~lJJJJJ1JJ~lJl1J~IJ~~
MISCELLANEOUS DATA CARD .
The user is advised not to do this casually. however. There should be a clear,
real, known need as approved by standard instructions, or as recommended by local
Program Maintenance.
The interpretation of these data only requires documentation of the request
card, since the miscellaneous data cards (and possible extensions) are interpreted
exactly as explained in Sections II.-B and II -C. As for the leading card, it is
interpeted as follows:
II-A. Special-Requeat Carda That Precede Kiacellaneoua Data - 25
C 1 234 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
Request preceding 2 miscellaneous data cards. IMISCELLANEOUS DATA CARDS
There are cases where mode voltage rather than phase vol tage is desired as the
output of a distributed transmission line. This will generally be for educational
usage of one form or another, since the quantities in question can not be physically
measured. Since all distributed-parameter transmission-line models use a modal
transformation matrix to decouple the multi-conductor equations, the modal quan-
tities area part of the solution process, and it is just a matter of directing
such variables to the output vector. With care, the user can request the modal
voltage to ground at both ends of one distributed-parameter transmission line.
The request has the following form:
I~ 1.1 I~ I€ IE
~I~ foil- fE 'EI~IC rel ~iC . ~ 4~ 'Ei9C l ~~! tEi~lc l~fE [t 1~lc I·J~ r t I~!C f· 'EI~I C 'ESiC
MODOUT
Such modal output is possible for only one transmission line, and that line
must be placed at the very end of branches, immediately before the blank card that
terminates all branch cards. In addition, the very first branch data must consist
of extra, high-reSistance branches that are connected from each node to ground at
both ends of the line in question. Equal in number to 2" MODOUT, column 80 of
these uncoupled (type-O) series R-L-C branches must be keyed with a "1" so as to
request branch current output. Use a resistance value so large that the answer
is unaffected.
So much for data input. After the case has been run. the user will find his
modal voltages in the output locations that would otherwise have been reserved for
the branch currents just mentioned. This is why the present feature is a little
tricky. The first "MODOUT" ouput currents are in reality modal voltages to local
ground at the "BUS1" end of the line, in natural order; the next "MODOUT" output
currents are mode voltages to ground at the other end ("BUS2" end) of the line,
also in natural order. A reminder message to this effect is printed immediately
below the column headings for the output variables, so the user will not forget.
Note that if one is plotting, type-9 plot requests (see Section 1.10) must be used.
Since the EMTP thinks that the modal voltages are currents in the 2 .. MODOUT
high-reSistance branches which were supplied by the user.
II-A. Special-Requeat Caraa That Precede "iacallaneoua Data - 26
C 1 234 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
Request for tricky modal output. MODOUT = 3. IMODE VOLTAGE OUTPUT
II-A-23. Request to Convert ZnO Branch Cards fram Ola to New formgts
The following request will provide conversion from old ("M36." or earlier
vintage) zinc oxide arrester branch data into the current formats (as required for
"M38." and later versions of the program):
11JJJJJJJJJ1JJIJJiJ~~lJJJJJJJJ~lJJJJJiJJ~lJJJJJiJ~~lJJJJJJJ~~lJJJJJiJ~~lJJJlJtJ~~
OLD TO NEW ZN
C 1 234 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
Request to convert old Zno data to new formats. 10LD TO NEW ZNO
IlJJJJJ1JJJ1JJlJJ1JJ~lJJJJJ1JJ~lJJJJJ1JJ~lJJJJJ1JJ~lJJJJJIJJ~lJJJJJIJJ~lJJIJJIJ~~
OMI T BASE CAS
Resulting statistical tabulations are unaffected. since the base case solution
was not part of the statistical processing, anyway. So. if the user already knows
how the base case solution looks, he can save one shot, as well as some paper.
C 1 2 345 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------:-------------------------
Omit base case if STATISTICS/SYSTEMATIC usage. :OMIT BASE CASE
The user may be interested in peak node voltage, or in peak linear brancn
voltage, or both, without being concerned about the location in the network that
this will occur. If so. there exists the paper-saving alternative that avoids
voltage output for all nodes or branches:
:; !~
,~
€ E
.*
i
:;i~ IE 'c ,~~ t rt, SI C :; I' 'eISiC I~ l'H t ciS ~,l ' ff I C,SiC :; ~ t rt i~ 'EI~I ( 'EI ~ic
ie '" " IC '"
PEAK VOLTAGE MONI TOF 18
MAX\Ii...T
Zero or blank will be interpreted as unity (a request for the peak of node voltages
only). This is the request. Later. at the end of the simulation. before the usual
peak-value printout for the output vector. will be generated the requested output
or outputs.
II-A. Special-Reque.t Card. That Precede [Link]. Oata - 28
For the monitoring of node voltages (MAXVLT 0 or 1). one line will give the =
node name. the time of the peak. and the value of the overall peak. The following
is an illustration taken from the first subcase of BENCHMARK DC-7:
For 132-column output. this will be a single line. of course (it has here been
split in two for ease of presentation only). The printed value at the end is the
peak of all node voltages. in volts. not the peak of all node voltages in per unit.
If the problem has transformers that change the nominal voltage level. there is
no easy way of spotting peaks of per unit voltage that might occur on the low
voltage side. So. usage is somewhat specialized. and it requires caution.
For the case of MAXVLT = 2 or 3. there will be output for the peak branch
voltage as follows (from the second subcase of BENCHMARK DC-7):
C 1 234 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------:-------------------------
Output global peak voltage of network. 3 IPEAK VOLTAGE MONITOR. 3.
TACS can be used for the postprocessing of plot files. The user first connects
the old plot file (input to the post processor) to I/O unit number LUNIT2 using
SOPEN. For an example (which may be installation-dependent). see BENCHMARK DC-46.
Variables of the plot file will be assigned to user-defined TAC5 sources in natural
order by the EMTP. thereby providing the connection for postprocessing by the user.
This is the response to the request:
I- I~ I~ IE F
I~ I~i' ft :E15 I( ~ rEt (I< I ~ I 'f ~~! IE Ie I~ l~H f- L'~! IEI~I( rE~* tH~IC
i l' tEI* ,~
'* 'EIS{
IPLOT
II-A. Special-Request Cards That Precede Miscellaneous Data - 29
The data case is completed by cards for a TACS-only (TACS STAND ALONE) EM!?
data case. There are generally to be as many TACS sources as there are variables
in the old data file. with 6-character names being arbitrary. In the order defined,
these are automatically (internally) connected to variables of the old plot file.
Most post-processing will involve supplemental variables, although function blocks
are also useful (e.g.. l/S for integration of some voltage to give flux).
The interpretation of the request card confirms the user-keyed frequency IPLOT,
of course. This is illustrated by the following line from the solution to BENCHMARK
Dc-46:
C 1 2 345 6 7
c 34567890123456789012345678901234567890123456789012345678901234567890123456
c ------------------------------------------------1-------------------------
Postprocess with frequency IPLOT = 1. IPOSTPROCESS PLOT FILE
.... ! iE IE
~~ ·E !EI~ Ie .~
I"
'mfc .~I~ lei E t~
I";
Ie ~i - I~I'IE t~ IS! C I~" "f~IE tf'~{ ~i': I' ~E I (:~iC I: ,.l' 'EI~I ( i'" 'f, s! C
STATFR
C 1 234 5 6 7
C 345678901 2 3456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
New power frequency STATFR = 5.00000000E+01 Hz. IPOWER FREQUENCY. 50.0.
The dominant printout of the time-step loop is the step number, time. and
variable values which occurs at frequency lOUT (miscellaneous data parameter of
Section II-B). Although spacing of the step number and the time are fixed, all
following numbers will be of uniform width and intercolumn spacing as determined
by variables KOLWID and KOLSEP of the STARTUP file. Yet such formatting is important
enough that it has been placed under user control at the beginning of each data
case, too. by means of the following request:
!~ E E
I~,E !EI~ iC " I(
'~I ( I ~ I~I ~ ~ € I~I~,€ r~I~:( i.I~,€ I·I~ ~ € r~I( !( ~ ~ ~l ' ,E I (i~ IC
I ~
·'iE IE I( rE . 1<·' 'EI ~ C
KOLWID KOLSEP
Parameters:
KOLWID of columns 33-40 is the total column width in characters. including blanks
that separate columns.
The interpr€tation of the request card confirms the two user-keyed integers
KOLWID and KOLS , of course. This is illustrated by the following line from the
solution to Bc,'L-\RK DC-26:
C 1 234 5 6 7
c 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
Width of time-step loop numbers. W=13 S=2 IPRINTED NUMBER WIDTH. 13,
Refer to Section A-1. which provided the first and most common way to allocate
total TACS storage, namely "ABSOLUTE TACS DIMENSIONS". The second way to allocate
total TACS storage is with a request for relative sizing. That is. rather than
request a specific number of function blocks. supplemental variables, etc., the
[Link]-Reque.t Card. That Precede Miseellaneou. Data - 31
user can simply request a proportional allocation (e.g., 5% of the total storage
for function blocks, etc.). There first is the special-request card, then the
data card bearing the 8 proportions, read as 8I8:
11JJJJ~j~~~lJJJJJ1~J~lJJl~Ji~~~lJJJJ~1~J~lJJJJ~1~J~lJJJJJ1~~~lJ1JJJiJJ~lJ1JJJiJJ~
RELATIVE TACS DIMENSION
. 1~ I! € IE
4': f:iE IEl* I" i",~ ~ E r1~ C ~i": ~, 'Ei9C ..: Ie I~f'
f€ 'EI S fE ISle I" ,"I: iE '1 tC{ ;.; l ~~ f i~! C I" ,
~.~ ~ E rmle
IS' IS IS IS IS IS 18 18
K1 K2 K3 K4 K5 K6 K7 K8
In theory, this is simple enough. But one practical problem with this second
alternative for sizingTACS tables is that the user has no intuitive feel for the
relative space taken by different tables. To aid the user, the following is an
approximate correspondence between nominal (default) absolute dimensions and the
proportions that produced them:
Interpretation of the two input data cards includes confirmation of just the
first 3 of the 8 input numbers. An illustration follows:
C 1 234 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
Request to define TACS allocation proportions. IRELATIVE TACS DIMENSIONS
TACS proportions. 1.60E+01 4.00E+00 2.00E+00 16 4 2
II-A. Special-Reque.t Card. That Precede Miacellaneou. Data - 32
11JJJ~llJJ~IJJJJJJ~JI1JJJJ~1~~~lJJJJJ1JJ~lJJJJJ1JJ~llJJJJJ~J~IJJJJJIJJ~lJJJJIIJl~
REPLO
As an example of such usage, see the standard test case BENCHMARK DC-54 for
the computer of interest. Remember that the SOPEN card is installation-dependent,
in general (which is why the recommendation is "for the computer of interest"),
As for interpretation, this is as follows:
C 1 234 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------:-------------------------
Request to attach and plot disk file of old data. tREPLOT
11JJJJJIJJll~JJJJIJJIIJJJJJIJJ~IJJJJJIJJ~lJJJJJ1JJ~IJJJJJ1JJ~IJIJJJIJJ~IJJJIJI~J~
SATURATIO
C 1 234 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
Request for magnetic saturation computation. ISATURATION
11JJJJJ1~~~lJIJJJJJJI1JJJJJJ~~~lJJJJJ1JJ~lJJ1JJ1~J~lJJJJJ1JJ~lJJJJJJJJ~lJJJJJ1~J~
SEM...YEN SETU
For an example of such usage, see BENCHMARK DC-29. It is from the solution
to this case that the following interpretation was drawn:
C 1 2 345 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
2nd-order frequency-dependent line modeling. :SEMLYEN SETUP
11JJJJJ1JJ~lJJJJJ1~~~lJJJJ~iJJ~lJJJJJJJJ~lJJJJJiJJ~lJJJJJJJJ~lJJJJJ1J~~lJJJJJ{JJ~
START AGAI
II-A. Spec1al-aequeat Carda That Precede K1aeellaneoua Data - 34
Actually, this is only the request to load tables from the disk file that has
already been connected to I/O unit number LUNIT2 by means of a SOPEN request (see
Section I-D). For an example of such usage, see BENCHMARK Dc-40 for the computer
of interest (due to installation-dependence of the SOPEN card). If integrity of
the disk file that stores EMTP tables is important, a copy of the original file
should be used, in order to prevent accidental destruction. At the present time,
there is no READ-only insurance for any connected file.
1) Cols. 55-60 left blank means that a special, dedicated input structure for a
switch is assumed. In the format below. "J" is the switch number, in order of
data input. The switch opening time T-open will be redefined only if columns
25-40 are keyed with a positive number. More commonly. it is the closing time
T-close that will be altered, for switches that are open at the end of the
preceding, discontinued simulation. Columns 9-24 are always read. and T-close
is always redefined (blank is interpreted as a request for zero closing time).
The format is:
I~ IE
! ~ l'~E rE Ie rEI~I( I~ H rE Ie I~I~ ~ E rf~~lc iE is I" I ~I~ iE r! I~IE r!~ ( f~
,E ' E~~lc
18 [16.0 E16.0
J T-close T-open
2) Cols. 55-60 keyed with "1111~" means that the data card is a TACS source card,
wi th its usual format (except for cols. 55-60). Any blank field of such a TACS
source card will result in no change to the associated source parameter. 1. e. ,
the user only need key those parameters that he actually wants to alter.
3) Cols. 55-60 keyed with "2222Y" means that the data card is a switch card, with
its usual format (except for\cols. 55-60). Any blank field of such a switch
card will result in no change to the associated source parameter. I.e., the
user need only key those parameters that he actually wants to alter.
4} Cols. 55-60 keyed with "-1111\" ---- like 2}. except that all data fields are
read. Here. blanks mean zeroes.
5} Cols. 55-60 keyed with "-2222\" ---- like 3), except that all data fields are
read. Here. blanks mean zeroes.
Following the "9999" terminator {keyed in columns 5-8} for all such change
cards, the end-time TMAX can be altered by means of a "MISCELLANEOUS DATA CARDS"
request (Section A-21). Then a "TIME STEP LOOP" request (Section A-36) actually
transfers control to the time-step loop, to continue the suspended simulation.
A few additional points might be passed along as well. Between the "MISCELLANEOUS
DATA CARDS" and the "TIME STEP LOOP" requests, the user is able to place any other
special requests which seem appropriate. The most commonly used is "CHANGE PRINTOUT
FREQUENCY", to alter the frequency of the time-step loop printout. If this is
done, remember that step numbers begin where the previous halted run left off
(e.g., for TMAX = 50 msec and DELTAT = 100 microsec, the first printed step would
be for number 500). The user should be aware that, although all requests might
be accepted by the EMTP, some of the more complex ones can not possibly be honored
in practice. Perhaps the best example is "FREQUENCY SCAN" of Section A-16. There
is no way a hibernating simulation of the time-step loop can be awakened and
directed to perform a series of phasor solutions (which is what the usage of such
a request implies)! Yet this is simple and obvious. More insidious are requests
that would simply make erroneous or inconsistent certain parameters of the memory
contents that to be restarted. An example of such a potential disaster is provided
by use of the "ABSOLUTE TACS DIMENSIONS" request of Section A-1. Use of this
feature would alter the pointers to the TACS tables, without changing the tables
themselves (which are already built), leading to "garbage out," and most likely
to an operating system interrupt of some sort. Hence the user is warned to be
both intelligent and skeptical about any such usage; if there are some added
hiddenbenefi ts, there also are .some very real limits. and some hidden traps. Be
cautious!
Several different input data card interpretations can be involved with the
just described data. The beginning and the ending of these are fixed, and are
illustrated by the following two lines from BENCHMARK DC-40:
C 1 2 345 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------l-------------------------
Continuation of partial previous simulation. \START AGAIN
Terminator for modified switching times. \ 9999
C 1 234 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------\-------------------------
Altered switch. 1 1. 1990E-02 [Link]+OO \ 1 .011990
II-A. Special-Requeat Carda That Precede "iacellaneoua Data - 36
So much for single simulations. Monte Carlo studies. too. can involve "START
AGAIN". In this case. there are additional alternatives. To the right of the
basic declaration, there can be as many as 15 integer numbers (Kl. K2. etc.) :
~~ I~ If IE
~ l c! f t ~l~ I( ~ l'~ E IdS IC ~ :~ I( I~ I~ If '~is 1~ f~ ~€ '~ Ie i~ ,~i:l€ ~slc I' f~ if '/: Ie ~ i~ >E '1 ~H
ST ART AGAI" 14 14 14 14 14 14 14 14 14 14
. 14 14 14 14 14
If K15 (columns 77-80) of the preceding paragraph is keyed with the special
value -888. then the seed of the random number generator "RANDNZ" will be
reinitialized to the value that existed at the start (not at the end!) of the last
preceding energization. This allows a repeat of the last (generally incomplete.
for such usage) energization of the preceding execution. It is useful when something
went wrong and execution was terminated abnormally by the EMTP with an error stop
(a "KILL" message). The most common usage is for cases of non-convergence of
the Newton iteration for Zno surge arresters (see Section V-E). Convergence is
unpredictable, and the difficulty is different for each energization due to the
different switching times. which give rise to different transients. Eventually
there may be an energization that is aborted with an error termination KILL =
212. Whereas the abortive energization could be ignored completely (it will not
be a part of the history that is saved in MEMSAV tables), the intelligent. or
sophisticated user probably will want to go back with a subsequent execution and
exactly repeat the switching times that caused the trouble. The problem energization
might be made to converge by better control of the Newton iteration (see "ZINC
OXIDE" of Section II-A-39). in which case the continuation will be continuous,
without any reinitialization of the random number generator. This may be desired
or required for some reason. Another reason to repeat an abortive energization
is to study it further via additional printout and/or plotting. Such post-mortim
examination is possible only if switching times can be duplicated exactly. and the
flag K15 = -888 allows this. Note that value "-888" is not a legal energization
number, so there is no confusion with the regular meaning of Kl5.
II-A. Special-Request Cards Tbat Precede Miscellaneous Data - 37
Monte Carlo studies can conbine the history of more than one preceding simulation,
too. The first uses "START AGAIN" as just described. Immediately after this
single card can come an arbitrary number of declarations for additional parts of
the history. The integers have exactly the same format and meaning, although the
declaration word is changed to avoid ambiguity:
12 I' IE Ie
I
; ~I- !~.: € tf i( ~I- f~i~ f€ r (i~ IC ~ f!~E 'EI~ IC : 2 f€ l(iS Ic ! '1- i~ f€ tEI~ ~ ~~ ,€ rf iSIC ~~ '~ I( 1.< )E 'f ~cl 0
The energization numbers are always local to the portion being loaded, so no mental
arithmetic is required. Each such declaration will be preceded by a $OPEN card
to connect the new associated file to unit LUNIT2, and each of these will be
preceded by a $CLOSE card to disconnect the file of the preceding portion. It
is critical to note that the disk file of "START AGAIN" is completely different
in structure and size than the disk file or files of "LOAD MORE SHOTS". For
"START AGAIN", a complete set of tables (including "LABCOM" of size LTLABL words)
is required, as produced on unit LUNIT2 of a preceding simulation with MEMSAV
= 1 (integer miscellaneous data parameter). On the other hand, the file of
"LOAD MORE SHOTS" consists of only switching times and extrema of each energization,
as produced on unit LUNIT2 of a preceding simulation with MEMSAV = 2. The
user must remember which is which, since otherwise execution will be impossible.
For an example of such usage ,see the 2nd and 3rd subcases of BENCHMARK Dc40.
Illustrative interpretation shall be taken from the 3rd data subcase:
C 1 234 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------:-------------------------
Connect disk file to I/O unit. : $OPEN, UNIT=2 FILE=DC24A
Continuation of partial previous simulation. :START AGAIN 3
Completed table restoration. Reset simulation time T =
Load more Monte Carlo extrema. 3 0 0 :START AGAIN 3
Disconnect disk file from I/O unit. 'SCLOSE, UNIT=2 STATUS=K
Connect disk file to I/O unit. SOPEN, UNIT=2 FILE=DC24c
Load more Monte Carlo extrema. 1 2 0 LOAD MORE SHOTS 1
Terminator for modified switching times. 9999 {
Disconnect disk file from I/O unit. $CLOSE , UNIT=2 STATUS=K
Connect disk file to I/O unit. $OPEN, UNIT=2 FILE=DDM.B
Request preceding 2 miscellaneous data cards. MISCELLANEOUS DATA CARDS
Of the 15 possible energization numbers, only the first 3 are confirmed by the
interpretation, note. The same single "START AGAIN" card is interpreted twice
only because the first integer K1 is nonzero. Note that the second interpretation
has the same structure as that for "LOAD MORE SHOTS". If Kl were left zero
or blank, no such 2nd interpretation showing K1 K2, and K3 would be seen. t
II-A. Special-Request Carda That Precede Kiacellaneous Date - 38
With this special request card. the program will perform. automatic subnetwork
identification with all the non-grounding switches closed at time zero. There
will be no further subnetwork identification (normally it is a dynamic process
within the time-step loop). Without this special request. the program would
determine the subnetwork identification dynamically at each time step that a
switching operation will occurred. More information on subnetwork identification
can be found in Ref. 8. Vol. XIV, pages CUMA-30 to 33.
11JJJJJJJJ~IJJIJII~JI1JJJJJjJJ~IJJJJJ1JJ~IJJJJJIJ~~IJJJJJjJJ~IJIJJ~j~~~IJJJJIIJJ~
STEP ZERO COUPL
For an example of such usage. see the second subcase of BENCHMARK DC-38. It
is from the solution to this subcase that the following interpretation. was drawn:
C 1 234 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
No nonlinear subnetwork check in DELTAT-loop. ISTEP ZERO COUPLE
There are special cases for which certain TACS warning messages are a nuisance.
An example is the frequency sensor. which might produce many warning messages
before steady-state operation is reached during hvdc initialization. Such warning
messages can be limited in total number. and also suppressed completely before a
certain starting time. by means of the following request:
t I~
1<1 ~ f~!E tE Ie I' f: 6 •Et~ f~I' r~~ f I( ,.1' f~fe tE~ ~ i E •fl~ i~!! ~ E rEt (IC ~~ f~l( I' ~ f 151 (
LIM T-beg
Here LIM is the limit on the number of TACS warning messages that will be
displayed. and T-beg is the time before which all TACS warnings are ignored
(and not counted toward the limit LIM). The interpretation of this request card
confirms the two user-keyed integers. of course. This is illustrated by the
following line from the solution to the second subcase of BENCHMARK DC-18:
II-A. Special-Request Cards That Precede Miscellaneous Data - 39
C 1 234 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
Warning controls. LIM.T-beg= 5 1.00E+OQ ITACS WARN LIMIT, 5. 1.0.
Used in conjunction with the "START AGAIN" request of Section A-33. the effect
of a tlTlME STEP LOOP" request is to awaken the hibernating simulation by a transfer
of control to the time-step loop of lJI'PF overlay 16. The format is:
I": ~ I! E Ie
.~ '~fE tEI~ Ie ! ~ I~ I 11 ~ f~l~ f€ IE Ie ~ I~i~ IE rf '\, iE rfi ~t{ I~I~ fE if~N ! ~
f! 'm~( ~~ r! :~lc
C 1 2 3 4 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------:-------------------------
Transfer control to the time-step loop. ITIME STEP LOOP
This special reques tallows the user to .specify the random switch closing/opening
times of a Monte Carlo simulation himself. rather than have the random number
..... generator of the program determine such times. To use this feature, one prepares
*'" the data the same way as for the regular statistics case. except for the following
two items:
1) Input a special request card to notify the program of such desired usage. The
format is:
11JJJJJ1J~~1~11JJ1JJ~lJJ~JlJJJ~lJJJJJJJJ~IJJJiJIJ~~lJJJJJIJJ~IJllJJIJJ~llJJ'JIJJ~
USER SUPPLIED SWITCH TIME
This serves to forewarn the program that switching times are to be read from
a disk file that is connected to I/O unit number LUNIT8 (set in the STARTUP
file). It is the user's responsibility to connect such a disk file to LUNIT8
II-A. Special-Requeat Carda That Precede Hiacellaneoua Data. - 40
using SOPEN before such switching times are needed. Any place before the blank
card ending source cards should always be acceptable. But for clarity. it is
recommended that the $OPEN precede the "USER SUPPLIED SWITCH TIMES" request.
2) Specify the switch closing times (T-close) and opening times (T-open) for all
the switches. This is done in a data file that is to be connected to I/O unit
number LUNIT8. Values are to be keyed using 5E15.0 formats, for as many cards
as may be required (more than one if there are more than 5 switches in the
network) :
C 1 234 5
C 34567890123456789012345678901234567890123456789012345678
Arbitrary 80-column comment line to separate energizations
I- I~ IE
H~ i€ IEI~ !C 1~ f!~ E '~i~ tE .E~c I~ I~ rfl~ic f~l~ r~~~ i·l·i~ r! Id~ I"f- ~I I(:S!1..
1st switch 2nd switch 3rd switch 4th switch 5th switch
T-close T-close T-close T-close T-close
1st switch 2nd switch 3rd switch 4th switch 5th switch
T-open T-open T-open T-open T-open
Note that each switch contributes such entries. whether the switch is random
or deterministic. Yes, this involves redundancy. but it was simplest to program.
Construct such a set of switching times (closing and opening) for each energization
of the Monte Carlo study. and precede each by an arbitrary SO-column comment
line (upon which the energization should be keyed for clarity). Then stack
such cards in order. I.e.. the first-keyed set will be used for the 1st
energization. the 2nd set for the 2nd energization. etc.
For an example of such usage. consider the second subcase of BENCHMARK DC-24.
which connects the disk file [Link] (for systems permitting such a long
name) to I/O unit number LUNIT8. The first of the two subcases of DC-24 involved
the rolling of dice to determine the random switch closing times for each of the
three energizations. Of course. the dice are "loaded" or "fixed" so that results
are repeatable (important for test cases). The second subcase of DC-24 bypasses
the dice. and instead reads desired closing times from LUNIT8. Since the file
[Link] was constructed using the same clOSing times as result from solution
II-A. Special-Requeat Carda That Precede Kiacallaneoua Data - 41
of the first subcase, the two solutions should agree exactly. The second subcase
does have a base case solution for variety, but that difference is unimportant for
the subject of current interest.
There is no interpretation of the card images of switching times that are read
from I/O unit number LUNIT8. However, the special-request card will be interpreted
as follows:
C 1 234 567
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------:-------------------------
Random swi tching times read from LUNIT8 channel. : USER SUPPLIED SWITCH TIME
Since there is no output of the LUNIT8 records themselves, the alrert user
will randomly verify several .switching times from the values that precede each
energization ("Random .switchingtimes for energization number XX :"). He also
should confirm the just-shown request card, since without this, dice will be rolled
and the user's data file would be totally ignored. Also, he should not be fooled
by the standard 1/3 of a page of Monte Carlo text that precedes the energizations.
There will be the usual talk about uniform for Gaussian distributions, of course,
and none of this applies to the user's case. Only the user knows what, if any,
distribution applies to his own customized switching times of the LUNIT8 file.
For an example of such usage, see BENCHMARK DC-15. The interpretation extracted
from this solution appears as follows:
C 1 234 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
Request for transformer [R] +jw[L] computation. IXFORMER
II-A. Spec1al-Requeat Carda That Precede M1acellaneoua Pata - 42
IlJl1JJJ~J~lJl1JJ!~JI1Jl1~JJ~J~lJJJJll~~~lJ1JJJlJJtIJlJJJJJ~~IJJ1JJIJJ~lJJJJJJJJ~
ACCESS MODUlE BCTRA
1~ I~ IE IE
~.; :'1 E :~IC . ~ iE .~ Iffc l~fE 1~19C 'f 'E i ~Ic I~ ... I~ fE I (~~ ~ ~ .. 1(:9C 1~
~* 'EI ~I C
Parameters:
MAXZNO of cols. 17-24 is the maximum number of Newton iterations that will be
allowed for the solution of the surge arresters in each subnetwork. The Newton
iteration will go this long unless tolerance EPSZNO is attained first.
EPSZNO of cols. 25-32 is the convergence tolerance for the Newton iteration. All
vol tage corrections of the coupled elements must be smaller than this in
absolute value, for the equations to be judged to be solved. A blank (zero)
value is taken as a request for the value EPSILN * Vref, where EPSILN is
the familiar floating-point miscellaneous data parameter of Sect. II-B (1.E-8
for 60- and 64-bit program versions for CDC, IBM, PRIME, VAX, SEL, and
Apollo) •
EPWARN of cols. 33-40 is the voltage convergence tolerance for non-fatal warning
message about a "sloppy solution." A blank (zero) data field is taken as a
request for the value Vref / 1000 -- representing one tenth of one percent of
rated voltage, then, which is about the limit of graphical resolution.
II-A. Speeial-Reque.t Card. That Precede [Link]. nata - 43
EPSTOP of cols. 41-48 is the voltage convergence tolerance for a fatal error stop
complaining about a non-converged iteration. A blank (zero) data field is
taken as a request for the value Vref / 10 -- or 10% of rated voltage. The
current error in such a case could be astronomical, remember, due to the extreme
nonlinearity (e.g., 1.1**26 • 11.9).
ZLIM(l) of cols. 49-56 is the .maximum per unit (based on the reference voltage
VREF of Section V-E usage) voltage correction at each iteration step. A blank
or zero is given the default value of unity.
ZLIM (2) of cols. 57-64 is the maximum per unit (based on the reference voltage
VREF of Section V-E usage) arrester voltage that will be permitted during the
iteration. A blank or zero is changed to the default value of 1.5
Instead of this fixed-column specification, it may be more convenient to employ
free-format input, with commas separating the data fields in question.
The interpretation of this request card confirms only the first four parameters
on the card. This is illustrated by the follow~ line from the solution to
BENCHMARK 00-38:
C 1 234 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
Zno const. 20 1.000E-OB 1.000E-03 1.000E-01 lZO, 20, , , , 0.9"
Il~J1JJJJJllJJJJJ1Jl~lJJ1JJJJl~lJJ1JJtJ~~lJJJJJ1J~~lJJlJJlJl~lJJJJJtJ~~lJJ1JllJl~
ZND FITTE
Foran example of such usage, see BENCHMARK DC-39. The interpretation extracted
from this solution appears as follows:
C 1 234 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
Request to generate TYPe-92 Zno branch cards. IZNO FITTER
II-A. Special-Raquaat Carda That Preceda Hiacallanaoua Data - ••
The startup file initializes variable NMAUTO, which controls whether or not
branches will automatically be serialized by the program. There are only two
possibilities: "0" means no such automatic naming, whereas "1" will result in such
naming. Well, whatever the STARnJP decision might be, the following declaration
will toggle (reverse) it:
The interpretation of this request confirms the status of variable NMAUTO after
the change. As an illustration, consider the following change from naming to no
names:
C 1 234 5 6 7
c 34567890123456789012345678901234567890123456789012345678901234567890123456
c ------------------------------------------------:-------------------------
Toggle auto branch/switch name. NMAUTO = O. IAUTO NAME
Years ago (prior to the "M32." update), the EMTP had switch components that
allowed for both resistive and inductive discontinuities: so-called switched-R and
switched-L elements. Today, such modeling can be accomplished using the more
general pseudo-nonlinear elements of type codes 99 and 98. The user who wants to
antiquated data involving switched-R or switched-L elements into modern, equivalent,
representations can issue the following request:
.oj I! ! € :1:
l~ f"" ,E :cl~ I( ," I~ .~ fE r~~ ~ I"! .; fE 'c Ie ~I~ I"; ~f€ r~l~ c !E :fi~l( ,~I" l!iE ~~~~IC i- '''f! 'f~ ~I ( '~fs{
,
CHANGE SWI T Ct- E8.0
XOPT
program (no need to look for the integer miscellaneous data card, and read it).
The supporting program will then read all input data, and punch (see $PUNCH)
replacement branch cards to represent the antiquated components. It will then be
the user's responsibility to .replace the old card images with the new ones, using
his sys tem editor (assuming card images rather than actual punched cards are
involved) •
C 1 234 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
Convert switched-R,L cards to pseudo-nonlinear. ICHANGE SWITCH
The request for a copy of some data component that is stored in a data base
generally requires $INCLUDE usage with one or more .arguments. But when arguments
are present, data must first be processed by the supporting program of Section XIX-F.
This program searches the user's raw data for the character strings of interest,
and establishes numerical pointers for all arguments in order to speed later usage.
A special-request card, to be placed in front of the user's raw data, transfers
control to this conversion code:
Il~JJJ~iJ~J1JJJJlt~~~lJJJJJ1JJ~lJJJJJ1J~~lJJJiJ1J~~lJJ~JJJJ~~lJiJJJJJJ~lJJJJJtJ~~
DATA BASE MODUL
An example of such usage is provided by BENCHMARK DC-14. It was from the first
subcase of this solution that the following interpetation was drawn:
C 1 234 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------:-------------------------
Request for definition of data base modules. IDATA BASE MODULE
11-A-44. ToggZe Cboice Between Disk and Memory tar Plot Data Storage
The startup file initializes variable LUNIT4, which controls whether plot data
points are to be stored on disk or in memory within SUBROUTINE PLTFIL. The sign
on what otherwise would be an I/O channel number makes this choice: "+" means
II-A. [Link] Carda That Preeed. Miaeellaneoua Oat. - 46
that disk storage connected to I/O unit LUNIT4 will be used, whereas "-" will
result in the storage of plot data in COMMON /C29B01/. Well, whatever the STARTUP
decision might be, the following declaration will toggle (reverse) it:
Il~JJJJ1JJ~IJJIJJJJJ~IJJ1JJJJJ~IJJJJJJJJ~IJJJJJ~J~IJJJJJ)J~~IJJJJJJJJ~IJJJJJIJJ~
01 SK PLOT OAT
For an example of such usage, see BENCHMARK DC-3 for any virtual computer
(e.g., Apollo). It was from this solution that the following interpetation was
drawn:
C 1 234 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
Toggle plot data storage choice. LUNIT4 = 4. IDISK PLOT DATA
The normal user of hysteresis modeling will know his B-H characteristic. and
can Simply input it according to the. rules. of Section V-D. But some users may not
have any idea about magnetic losses (and hence the width of the hysteresis. loop).
Some users may only want a representative loop, for preliminary experimentation.
Or some users may not even care about the loop itself, since possibly residual
magnetism is the only phenomenon of interest (and hysteresis must be requested to
have it). For whatever reason, the user can access a standard hysteresis loop by
means of the following request:
11JJIJJ)JJllJJJJJJJJI1JJJJJ)J~~IJJlJJIJJ~IJJJJJ)JJ~IJJJJJIJl~IJJJJJ)JJ~IJJJI'IJJ~
HYSTERESI
Such a card transfers to the code of Section XIX-H, which will create branch
cards for the Type-96 hysteretic inductor of interest.
For an example of such usage, see the 3rd subcase of BENCHMARK DC-13. The
following illustrative interpretation was taken from that solution:
C 1 234 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
Reques t to make Type-96 hysteresis branch cards. IHYSTERESIS
II-A. [Link].t Card. That Precede [Link]. nata - 47
It is possible to pass any U.M. output variable to TACS. provided two simple
rules are observed. First. the TACS variable that is to be defined by the U.M.
must be a Type-92 TACSsource of the same name (the second of the two 6-character
names that identify the U.M. variable). Second. the program must be alerted to
the user's desire for such control by means of a declaration reading:
11JJJJJJJ~llJJJJJ1JJ~lJJJJJiJJ~lJJJJJ1~J~lJJJJ~iJJ~lJJ~J~i~J~lJ1JJltJJ~lJJJ1J{J~~
UMTOTAC
Note that the U.M. variable being passed must be a U.M. output variable. but
that there is no requirement of this type withinTACS. where output is optional.
Since nothing was done to identify the correct [Link] the case of two or more
machines. the attentive reader may have concluded that there is a temporary
limitation to just a single machine. But limitations are not actually this
restrictive. In fact. the connection logic will merely match a TYPe-92 source
with the first U.M •.output variable having the requested name. The only usage
that is impossible is passing of the same U.M. variable from two different machines
to TACS. then. Later. if there is adequate demand. this limitation obviously could
be provided. But for now (February. 1987) • we are beginning slowly. with the
simplest possible logic. Another temporary limitation has to do with initial
conditions: there will be no transfer on step zero (for time zero). This is because
the transfer is done within theTACS code of the time-step loop. and this code is
not called for step zero. If the resulting discontinuity at time zero bothers the
user. he is always free to manually supply the initial conditions for the TACS
variables. of course.
C 1 234 567
C 3456789012345678901234?678901234567890123456789012345678901234567890123456
C ---------------------~--------------------------:-------------------------
Send U.M. outputs to any TYPe-92 TACS sources. rUM TO TACS {Declaration
Some program versions and some installations have networking of two or more
computers that allow central monitoring and control of the parts of a Monte Carlo
study that is being solved in pieces. generally by parallel processing. Reference
II-A. Special-Requeat Carda That Precede Miacellaneou. Oata - 48
[52] provides a detailed explanation. Well, access to the supporting program that
displays and manipulates the central statistics file PARALLEL. LIS is by the
request:
11J1JJ~i~J~lJ1JJJ1JJ~11JJJJjJJ~lJJJJJ1JJ~lJ1JJJJJJ~lJJJJ~JJJ~lJJJJ~fJJ~lJJJJJHJ~
08 SERVE PARA LL EL MON 1E CARL
Since usage normally is interactive, the "KEY" request would precede this one,
which can be abbreviated "OPMC" for quicker keying. The "CENTRAL STATISTICS FILE"
request to name PARALLEL. LIS should come between these two, as the following
interpretation shows:
C 1 2 345 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------/-------------------------
Name of file for "OBSERVE PARALLEL MONTE CARLO" :CENTRAL STATISTICS FILE
File name:[Link] /[Link]
Moni tor and control parallel "STATISTICS". : OBSERVE PARALLEL MONTE CA
Some computers {e.g., Apollo, Sun. and DEC VAX/VMS} should have the OPMC code
available as a separate. small supporting program. If so. a common name would be
[Link]. Frequent users probably will find such an alternative preferable. since
a small program is less demanding of computer resources than the EMTP. Also, it
allows for computer-dependent extensions to the universal features described in
Section XIX-B.
The user of "OBSERVE PARALLEL MONTE CARLO" ("OPMC" in abbreviated form) must
name [Link]. his central file of summary statistics. This name. up to 40
bytes in length, is to follow the declaration:
11JJJJJi~JJ1JJJJJIJJ~lJ1JJ~lJJ~lJJJJJtJJ~lJJJJJ1JJ~lJJJJ~lJJ~lJJJJJiJJ~lJJJJJfJJ~
CENTRAL STATISTICS FILE
Column one of the file name must not be a slash {"/"}. since this would be
mistaken by the program as a request for data sorting by class (Section I-J).
There usually are computer-dependent ways to avoid the problem (e.g., for Apollo
Aegis, begin with a backslash "\"). But for those who are either unwilling or
unable to use such tricks, precede the leading slash. by an extra, leading percent
Sign ("%") which will be discarded upon input. Finally, for case-sensitive
II-A. Special-aequeat Carda That Precede Miaeellaneoua Data - 49
computers, the file name generally should be in lower case, followed by an exclamation
point ("!") to hold that case even though STARTUP variable KINSEN has value
unity.
C 1 234 5 6 7
C34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
Name of file for "OBSERVE PARALLEL MONTE CARLO" I CENTRAL STATISTICS FILE
File name: parallel. lis Iparallel. lis ! {Actual
I: I- I": IE If
1:1- f~f! ,f I~I~ !e
:~
'fi~l( ~~ 'fl~i( :"i- I ~~ f [!ISle I~ ,f w~ ,.i.o: ff ~ f I ~ ie 1:1- f~if 'f~( I{ ,_I,l~ rmlc
RANDOM NUMBER GENERATOR SEED E24.0
SEEDRN
Normally, the STARTUP file will supply the 6-character user identification
USERID. But the user may want to override this for some reason. The most important
case is for parallel Monte Carlo simulations, where different processes are
identified in the "CENTRAL STATISTICS FILE" by different USERID. Rather than
require different STARTUP files, the following special-request word can be used
to re-define USERID:
I' I! .E F
~! .. '~ff
USER IDENnnCATION
c :1- f! r(iflC i.:l~ rfl9C i-
A6
If ifl* I- f!ff
i* "iJ~ 'fl~ Ie .~
f! 'fl~ >( 'Ei~ (
USERID
Remember that USERID is text, so for the common s1 tuation having STARTUP
variable KINSEN = 1, lower case will be maintained only if an "!" is added.
Interpretation is illustrated by the solution to BENCHMARK DC-66. from which
"Leuven##!" unfortunately has been lost from the right:
II-A. Spec1al-Requeat Carda That Precede H1acellaneoua Data - 50
C 1 234 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
Override USERID of STARTUP with "Leuven". IUSER IDENTIFICATION
Normally, the STARTUP file will supply the line width for LUNIT6 output text
using variable KOL132. But the user might want to truncate the output after it
has been formed to this width in order to make it even narrower. This is possible,
if variable KUTOFF is defined to be less than KOL132. The request has the following
format:
I- ~ ;~ E IE
~I~ .* IE Ie .~ ~~ Islc ~ i~ rE IC I~ ~ ~~! 19C ~~ !€ ifl c i~l~ rfl ~ ~ C i~l' fE 1< ,SIC I~ ~M iE [clslC
TRUNCATE OUTPUT LINES 18
KUTOFF
Sample usage can be found in the 5th subcase of BENCHMARK 00-66, which truncates
the 132-column output of two short error messages to 125 columns. Illustrative
interpretation, taken from the solution to this data set, is as follows:
C 1 234 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
Override KOL132 of STARTUP with KUTOFF=125. ITRUNCATE OUTPUT LINES, 12
II-A-52. Switch Between 'FORMATTED' & 'UNFORMATTED' for "LOAD MORE $HOTS"
The default setting for the disk files of Monte Carlo extrema is. 'UNFORMATTED' ,
so if this is what is wanted when using "LOAD MORE SHOTS", no extra request is
required. But before loading a 'FORMATTED' file of extrema, the following request
mus t be used to inform the program of the mode change:
C 1 234 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
Toggle mode of "LOAD MORE SHOTS". L2FORM = 1. 1TOGGLE EXTREMA MODE
Normally. for the phasor solution. resistance is lumped (1/4 on each end and
half in the middle) for constant-parameter distributed lines. This agrees with
the modeling of the time-step loop. of course. But sometimes the user may want
the correct. (exact) representation for the phasor solution. It can be obtained
by the regues t:
An example of such usage can be found in the second subcase of BENCHMARK DC-11.
Illustrative interpretation comes from the solution of this data set:
C 1 234 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
Do not lump R for constant-parameter distributed. IEXACT PHASOR EQUIVALENT
11-A-54. Position ",1'W" plot tHe on lUNIT4 ready tor 1st time step
IlmJJiJmmiJmmmmmmmmummmmmmnmmmumm~
READ PL4 HEADER
II-A. Special-Reque.t Card. That Precede [Link]. nata - 52
The usual application will involve "START AGAIN" which otherwise would create
a plot file without the header information that is needed for later plotting. By
means of the "READ PL4 HEADER" request, a complete, self-contained plot file can
be produced by the "START AGAIN" simulation. An example can be found in the 4-th
subcase of BENCHMARK DC-40, which uses the header produced by the 2nd subcase of
BENCHMARK DC-24. Note that no plot points from the first simulation will be
preserved, however. Illustrative interpretation comes from the solution to
BENCHMARK DC-40:
C 1 234 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
REWIND LUNIT4 plot file, then read the header. IREAD PL4 HEADER
The calculation of matrices [R] and [L] or [A] and [R] to represent arbitrary
transformers is described in the separate Section XIX-C. Whereas the "XFORMER"
request of Section II-A-38 is for data limited to a single phase and three windings,
the code now being considered (supporting program "BCTRAN") can be used with an
arbitrary number of phases and windings. The transfer to "BCTRAN" is by means
of the special-request card:
IIJJJJJJJJJ1JJJJJ1~~tlJJJJJ1~~~IJJJJJIJ~~IJIJJJIJJ~lJIJJJIJJ~IJl1JJIJJ~IJJ1JJIJ~~
ACCESS MODULE BCTRAN
For an example of such usage, see any of the three subcases of BENCHMARK
DCNEW-8. Interpretation extracted from the solution to this data case appears as
follows:
C 1 2 345 6 7
c 34567890123456789012345678901234567890123456789012345678901234567890123456
c ------------------------------------------------~-------------------------
Generate transformer [R],[L] or [A],[R]. 1ACCFSS MODULE BCTRAN
The calculation of matrices [R] and [L] to provide a linear representation for
a saturable TRANSFORMER is described in the separate Section XIX-J. The spe-
cial-request word "CHANGE TRANSFORMER" provides the transfer, as illustrated by
BENCHMARK DC-67. The output of this solution illustrates interpretation of the
transfer:
II-A. Speeial-Reque.t Card. That Precede [Link] Data - 53
C 1 234 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
Convert saturable TRANSFORMER into [R], [L]. :CHANGE TRANSFORMER
The "LOAD MORE SHOTS" request is used to read from a disk file of extrema that
was produced by a preceding Monte Carlo solution. For details, see "START AGAIN"
in Section II-A-33.
The newTACS (unavailable before 1989) stores integer and floating-point data
ina single vector that is sized by List Size .28 of "VARDIM". The division of the
single storage into integer and floating-point portions can be controlled by the
user by means of the following request:
i~ !€ IE
i' f'l: IE I fl~l( :~ If" '~tcl{ ~ EI ~ ~( i' ff c!s !e
I
I~ i,l' ,I r!:s f~ rmlc ,~I f r tlCle rEi cl c
TACS SPLIT EB.D
RATIO
Variable RATIO is the integer to floating-point ratio for the allocation. In the
absence of such a declaration, the value 2.0 will be used.
11-8. Miscellaneous Data Caras, Ploating-point and Integer - 54
!~ € ,E
~ ~iE I~I~ 'e I~ I~'~I ~ 1,1 ( lCf€ I~I ~~ ( .~ 'fl~l( 1'1- i~lc fE W! '1- "t!tE '~IH i .l< ~ t I( !C I" ~ " E r ESC
Parameters:
DELTAT: the Size-of the time step of the numerical integration, in seconds. A
simulation will be calculated at discrete moments of time that have this time
separation. Take care of the Nyquist criterion: the time step preferably
should be 1/2 •.• 1/10 of the smallest time constant of the system one wants
to simulate. Whenever nonlinear elements are present in the network under
study, an even smaller time step might be advisable.
EPSILN : the near-zero tolerance that is used to test singularity of the real
coefficient matrix within the time-step loop. A blank or zero value means
that the value of the STARTUP file will be used. For 64-bit (REAL*8) computation
which is the most common, a default value of l.E-8 is typical. Historically,
work began using 36-bit computation, for which a default value of 1.E-5 was
used.
TOLMAT : the near-zero tolerance that is used to test singularity of the complex
admittance matrix [Y] of the steady-state, phasor solution. A blank or zero
value means that a value equal to that of EPSILN will be used. Please note
that TOLMAT can NOT be specified in the STARTUP file.
1 I: H I~ If IE
1~I~~4~IE tfl* I~~14~ ~ E tf ~Q(
14- 14~ fEr'ta~ tC I:I~14~ ff tffs10 14'~4~IEr't~ ~* 14-t~l~ fEr ~f ~*I~: f*
1 t~ t~sIe I'f'~' l'p! tf I(
18 18 18 18 18 18 18 18 18 18
lOUT IPLOT IDOUBL KSSOUT MAXOUT IPUN MEMSAV ICAT NERERG IPRSUP
Parameters:
lOUT gives the frequency of LUNIT6 (printed) output within the time-step loop.
E.g., a value of 3 means that every 3rd time step will be printed. A value
of zero or blank is changed to unity. For "FREQUENCY SCAN" usage , it is
output within the loop over frequencies that is controlled, rather than the
loop over time, of course.
IPLOT gives the frequency for saving solution points of the time-step loop for
purposes of later plotting. E.g., a value of 3 means that every 3rd time
step will be saved. A value of zero or blank is changed to unity, and any
even value is increased by one to make it odd. An even plotting frequency
is not allowed because of the likelihood of deception: a saw-toothed oscillation
would go unnoticed.
II-B. Miscellaneous Data Card., Ploatina-point and Integer - 56
KSSOUT controls the printout of the steady-state phasor solution. There are 3
basic types of outputs: branch flows, switch flows, and nodal injections.
These can be controlled by the value of KSSOUT as follows:
o ===> No steady-state solution printout.
1 ===> Print the complete steady-state solution: branch flows,
switch flows, and source injections.
2 ===> Print switch flows and source injections, but not branch flows.
3 ===> Print branch flows requested by column 80 punches, switch
flows, and source injections.
IPUN is used to request the input of an extra, following card to vary the printout
frequency. Use a value of "-1" to request such an extra card. or zero or
blank if no such extra card is wanted. Refer to Section II-C-4 for details
of the following card. Alternatively. use "CHANGE PRINTOUT FREQUENCY" of
Section II-A to accomplish the same thing.
MEMSAV controls the dumping of EMTP memory onto disk at the end of the simulation
for subsequent use with the "START AGAIN" request of Section II-A. Key
"1" if such memory saving is desired, or zero or blank if it is not. For
the single, deterministic simulation. the table saving is done at time TMAX
(floating-point miscellaneous data parameter). For Monte Carlo ("STATISTICS")
studies, this is upon completion of energization number NENERG (integer
miscellaneous data parameter). Memory saving is a powerful and useful tool
of the production user. However, be warned that such table saving and later
use may be computer, dependent, so information about the computer being used
should be consulted. The name of the resultant tables is determined by a
$OPEN declaration on LUNIT2 that must precede such usage. Most commonly
the SOPEN is placed immediately before the blank card ending output requests.
Also, once the tables are complete, it is the user's responsibility to
disconnect them (use SCLOSE at the beginning of following plot cards). Any
user of this feature should be further warned that a later awakening of the
hibernating simulation is guaranteed only if the same program version is saved
and is used for the following "START AGAIN" simulation. For an illustration
involving a single, deterministic Simulation, see BENCHMARK DC-32 and Dc-49.
For such usage with a Monte Carlo study, see BENCHMARK DC-24 and Dc-40.
II-B. Miseellaneous Data Cards. Floating-point and Integer - 57
NENERG is to be left blank {or zero} for single, deterministic simulations. But
for "STATISTICS" or "SYSTEMATIC" data cases, this is to be the total number
of energizations (exclusive of any poSSible, extra. base-case solution).
Append a minus Sign if "SYSTEMATIC" usage is involved --- a flag to distinguish
such a case from Monte Carlo studies. Also, remember that an extra "STATISTICS"
or "SYSTEMATIC" miscellaneous data card (Section II-C-l) must follow.
IPRSUP is normally left blank or zero. If keyed as a .posi ti ve value, this is the
diagnostic printout control that is to be applied to all UTPF overlays. The
same result can be obtained via parameter IPRSUP in the STARTUP file. But
since the user normally will want to selectively control such output overlay
by overlay, he should instead use the "DIAGNOSTIC" special-request card (see
section II-A-12).
C 1 234 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
Misc. data. 1.000E-02 6.000E+OO [Link]+OO I .010 6.0
Misc. data. 1 1 1 1 1 -1 0 0 0 0 I 1 1 1
II-C. Speeially-Requeste4 Extensions to Miscellaneous Data Car4s - 59
If and only if NENERG (cols. 65-72) of the integer miscellaneous data card is
positive (i.e. flag for STATISTICS studies. see section VI.B.l), then the following
additional card. called the "STATISTICS" miscellaneous data card. is required:
I~ If IE
I ~I- I': cfE ,St( ~.~ E r~ I ~:- l', E r~ ,c ...;i~ if rf~ ~ I' ~. 'Ei~'( !~ - ,~l~ 'Et~lc ,.l~ ff r! I~I( f· ide
18 18 18 18 18 , 18 18 Unused 18
Parameters:
ISW determines whether there is to be printed output of all the variable switch
closing/opening times. for each of theNENERG energizations. Zero will suppress
such output. whereas unity will provide it. For the special case where "4444"
is keyed in columns 5-8. please refer to section II-C-3. describing the special
feature of DICE TESTING.
ITEST controls whether an extra random delay, calculated using the parameters
DEGMIN. DEGMAX. and STATFR (see STARTIJP file), is to be added to random-
ly-generated switching times for each energization.
A zero or blank [Link] that there will be such an addition for .all. random
switches;
the value "1" means that there will be no such addition for ~ random swi tch;
the value "2" means that such an addition will be made only to random closing
(not opening) times;
a value "3" means that such an addition will be made only to random opening
(not closing) times.
For details on these different switch types, we refer to section VI.B.
IDIST chooses between the two types of dice (distribution laws) that are aVailable.
A zero or blank value means that all randomly-generated switching times are
to have Gaussian (normal) distribution. whereas a value of unity means that
II-C. Specially-Requested Extensions to Miscellaneous Data Cards - 60
IMAX will normally be left blank or keyed as zero. I t is to be keyed with "1"
if the user wants additional printout of deterministic extrema for each
energization. The extrema in question are those normally seen at the end of
a conventional, single simulation that has integer miscellaneous data parameter
MAXOUT equal to unity. Such output has maxima, times of maxima, minima, and
times of minima --- all extra output (an addition to, rather than a replacement
for, the normal output for each energization).
IDICE controls whether or not standard random numbers (that vary neither with
time nor with manufacturer of the computer) are to be used. The value "1"
will give such standard random numbers, whereas a blank or zero will result
in the use of computer-dependent dice, i f such separate dice have been provided.
Specifics will depend upon the installation-dependent logic of ENTRY RANDNZ
of "RFUNL1". For reasons of repeatability and universality, standard test
cases such as BENCHMARK DC-24 , DC-40, DC-48 , DC-50, and DCPRINT-13 all use
IDICE = 1.
KSTOUT controls whether or not each energization is to have added printout that
normally is associated only with a conventional, single simulation. Included
are output of the time-step loop. and variable extrema (if integer miscellaneous
data parameter MAXOUT is positive). The scalar extrema of "PEAK VOLTAGE
MONITOR" also will be honored. if it has been declared. Such extra output is
in addition to the regular, minimum program output of STATISTICS/SYSTEMATIC
simulations. Since any such special output is repeated for each energization,
the user should be careful in its use. To obtain such extra output for each
energization, key a zero explicitely. A blank or minus one ("-1") will suppress
such extra output.
Monte Carlo studies are important enough. and tricky enough. so that each
should be solved separately using a separate disk file. The stacking of two or
more data cases. of which one is a Monte Carlo study. is not recommended. But for
those who believe in living dangerously by stacking two or more Monte Carlo studies
within a single disk file • remember to use SSTARTUPat the beginning of the second
or later of these. This is needed to reini tialize the critical table-dumping
controlTENERG. Let the 2nd subcase of BENCHMARK 00-24 serve as an example in
this regard.
C 1 234 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
Statistics data. 1 1 0 0 1 0 I 1 1 0
If and only if NENERG (cols. 65-72}of the integer miscellaneous data card is
negative (i.e. flag for SYSTEMATIC studies. see section VI.B.2), then the following
additional card. called the "SYSTEMATIC" miscellaneous data card, is required:
I, I~
I- I~ I~ IE If
~ 14' ~ E tftclc ~ ,~l'H ' fi~I( I· ~!
18* ,·1 !fE tfl* ~f tft ~ Ie I": •I·I~ IE Icl* : ~I' f~E tm Ie i ~I'; I<f!~E tfl~(
18 18 Unused 18 Unused 18
Parameters:
C 1 234 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
Statistics data. 1 1 0 0 0 0 I 1 1 { I
I~ I~ iE :E
~ f~!E Ifl~l( I~i~ :-1 E rEte "~IE :-1 E Ie I' IE :E Isle I 'i~ L-~ I If isle 1'1, IE :f~* 'E,sie
4444 18 Unused 18 Unused 18
ITEST gives the number of points per standard deviation of the tabulations that
are to result. A zero is given the default value of 2.0 (meaning 8 entries
on ei ther side of the mean, if SIGMAX = 4.0 in the STARTUP file).
Concerning the rest of the data case, it should be legal through the blank
card ending switch cards. Only the switch cards are actually used, so branch cards
are arbi tary as long as no error results before the switch cards are read. Finally,
there should be a "BEGIN NEW DATA CASE" card at the bottom, since this will be
searched for just as would be the case following an EMTP error message.
Switching times will be generated for each of the NENERG imaginary energizations
(in fact, program control never leaves overlay 12). There then will be a tabulation
for each pair of Gaussian switches. Recall that if the closing time for each of
two switches has Gaussian (normal) distribution, then so does the difference of
these two. The mean of the difference will be the difference of the means, whereas
the variance of the difference will be the sum of the two variances. For M
Gaussian swi tches, there will be M* (M-1 ) /2 such pairs of swi tches • For each pair
, there will be one tabulated output showing both the experimental and the theoretical
cumulative distribution functions. See BENCHMARK DC-50 for an example.
II-C. [Link] Extension. to Miscellaneous Data Card. - 63
There is no new interpretation for the miscellaneous data card of dice testing.
Refer to the preceding Sections II-C-2 or lI-C-3 for illustrations.
18 18 18 18 18 18 18 18 18 18
KCHG MULT KCHG MULT KCHG MULT KCHG MULT KCHG MULT
This card specifies at which time steps the printout frequency is to be changed,
and to what values the frequency is to be changed. Up to five pairs of these
(KCHG, MOLT) controls are permitted. The meaning is as follows:
KCHG(K): The time step number at which the K-th variation of printout frequency
is to begin. Printout for this particular step number is always provided. as
a beginning to the new frequency of output.
MULT(K): The modified value of lOUT (see 2nd miscellaneous data card) that takes
effect at time step KCHG(K}.
C 1 234 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C ------------------------------------------------1-------------------------
Prin tou t : 5 5 20 20 0 0 I 5 5 20
Page 3-1
III. 'nl>.CS m'nl>. CARI:S FCR CCNTROL SYSTEM MCDEUNG (if any)
'!he beginning of 'U\CS data is declared to the EMTP by one of the following
two possible special-request records:
C 1 2 3 4
C 34567890123456789012345678901234567890
C ---------------------------------
Choice 1: 'nl>.CS STAND ALONE
Choice 2: 'nl>.CS HYBRID
TACS is an acronym derived from the name "Transient Analysis of Control Systems." In very
general terms, it directly provides the user with modeling that normally is associated with an analog
computer. The theory was first described in Ref. 12. TACS data is optional for the EMTP. Ifit appears,
it immediately precedes the first branch card of section IV.
The beginning ofTACS data is declared to the EMTP by one of the following two possible
special-request records:
Choice 1. "TACS STAND ALONE" is to be used if there is no electric network. For such a
degenerate problem, this declaration is to be followed by TACS data, which is to be followed by batch-
mode plot cards, thereby completing the data case.
Choice 2. "TACS HYBRID" is to be used if an electric network does exist. For such a general
case, this declaration is to be followed by TACS data, which is to be followed by the usual non-TACS
data beginning with the first electric-network branch card.
One additional option can be requested in exceptional cases using these same declaration cards.
Normally, the I2 data field of columns 19-20 will be left blank, meaning that default TACS ordering of
Section III-C-2 will be used. But two other alternative requests to be keyed in columns 19-20 are
possible:
1 -t Solve using user-supplied (input) ordering;
-1 -t Solve using the reverse of input ordering.
Interpretation of the two just-described request cards for TACS carry only text. As illustrations,
consider the associated one output line from each of BENCHMARK DC-18 and DC-19:
--------------------------------------------------+-------------------------
Descriptive interpretation of input data cards. I Input data card images
012
0123456789012345678901234
--------------------------------------------------+-------------------------
DC-18 output ...
No electric network. But TACS data follows ITACS STAND ALONE
DC-19 output ...
Electric network, too. But TACS data first ITACS HYBRID
[Link]
As already mentioned, TACS function like an analog computer. But it adds to this algebraic and
logical processing, so it really is more general. It is particularly useful to the EMTP because signals can
be passed between the electric network and TACS, with the result fuIictioning like a hybrid computer.
In this mode, T ACS allows the simulation of hvdc converters and static var controllers, as well as
control circuitry associated with rotating machinery.
The TACS program is used to solve the differential and algebraic equations associated with an
arbitrary interconnection of the following elements:
- order-zero blocks;
- limiters (saturation), static or dynamic (with or without windup), with constant or variable limit
values, superimposed on the transfer functions and order..:zero blocks;
- input signal sources, such as level, pulse and step functions, sinusoidal signals, any node voltage,
switch current or switch status as measured in the electrical network, and others;
- supplemental algebraic and logical variables, using the standard algebraic and logical operators and
all functions of the FORTRAN library;
- special-application devices, such as frequency meter, relay, level-trigger, transport delay, pulse
delay, digitizer, point-by-point user-defined non-linearity, time-sequenced switch, controlled
integrator, simple derivative, input-IF component, signal selector, sample and track, instantaneous
minimax, minimax tracking, accumulator and counter.
In addition, any signal among these elements can be passed to the electrical network as a voltage or
current source, as time-varying resistance, or as a signal controlling the operation of a switch, valve or
diode.
Program output (printed and/or plotted) consists of values of the block-output signals as a function of
time, for those variables requested by the user.
Both global allocation and internal distribution of the number of memory cells required for the storage
ofthe TACS arrays are variable and user-defined. (See Section I-G, List 19)
III. TACS - 3
While designing TACS, all efforts have been made to permit the translation of a case, from its
physical description to a series of data cards, to be as straightforward as possible. (Any deviation from
this principle should be promptly pointed out to Program Maintenance.)
Here are the basic rules which must be followed when the user is preparing the data for
simulation.
Requirement 1
The control circuitry whose behavior is to be simulated must be first described as a block
diagram, showing the interconnections (with sign and direction) between all blocks and signal
sources. Recognizable blocks are, as detailed elsewhere in this Section, transfer functions,
order-zero blocks. limiters, algebraic functions and logical operators, and a series of other
special-purpose devices.
This type of description (blocks and arrows) has been chosen because it is very close to the
form in which control systems are generally represented for purposes of design and analysis.
Requirement 2
Each block and signal source must then be assigned a single output, which must be "named" in
a way that will unequivocally identify it among the other blocks of the setup. The name itself
can be any arbitrary mnemonic code, and it is the user's prerogative to choose an adequate level
of confusion in this naming process. These names will later be used to directly identify the
interconnections between the blocks. A name is any sequence of 1 to 6 alphanumeric characters,
including blanks.
Requirement 3
The user must then assemble the data according to the rules set for the different types of blocks
and devices. It is suggested at this point that the user get acquainted with the technicalities of
the TACS data setup by preparing and running a few simple cases at first. This method of self-
teaching has proven to give positive results in getting the user to gain flexibility in dealing with
constraints of the program, ability to see the file of time-domain simulation in a more realistic
perspective, and familiarization with the typical gumption-traps which could make the
preparation of a case to be more annoying than expected for overconfident users.
In summary:
At execution time, when the TACS program calculates the value of each variable of the system
for a particular instant of time, it does so in specific (and sensible) sequence. This sequence is given
below. In most applications the user does not need to worry about this sequence of solution (the
program does the proper sequencing itself). But knowledge of the sequence may be used to entangle
some tricky situations involving non-linearities such as the limiters and supplemental "inside" variables
and devices.
All linear variables (transfer functions and order-zero blocks) are solved as one group, by
triangularization and backward substitution, thus providing a "simultaneous" solution of all such
variables, even in the so-called "looped" configurations.
Supplemental variables and devices are separated in three supplemental groups (input, output
and inside). The variables of each group are solved sequentially within each group, in the order in which
the data cards were read in.
During the past few years, there have been reports written about the inadequacy ofthe TACS
order rules which were given on this page by the original author Laurent DuM. Since the fall of 1983,
Ma Ren-ming, a visiting scholar from PRC, has done a very thorough study and investigation into
Laurent's coding logic. He summarized his findings in an EMTP Newsletter article to be published in
the spring of 1984 (Vol. 4, No.3). According to Ma, the following revised TACS order rules would
match with "M39." program versions:
2. Supplemental variables and devices whose inputs have already been evaluated.
3. Z-blocks, S-blocks and supplemental variables whose inputs have already been evaluated.
Such variables are selected recursively until no additional ones remain.
4. Supplemental variables/devices and function blocks with limits. This involves selecting one
at a time, recursively, until no additional such blocks remain. It begins with the selection of
a function block with limits, followed by supplemental variables/devices and other function
blocks for which the inputs are now known. Repeat until no further blocks can so be
selected. When complete, no function blocks with limits remain.
5. Remaining blocks. The selection begins with that function block which has the most inputs.
Next, supplemental variables/devices and any other function blocks for which the inputs are
now are all known. This process is repeated until all remaining function blocks of the
network have been selected.
III. TACS - 5
Point 1
a) All history terms must be initialized before the program is ready to calculate the solution of
the system at the first time step. For this purpose, the program will need the values of the
inputs and the output at t = 0 of all s-blocks and devices type 53, 58, 59, 62, 64 and 65.
b) The variables requested for output (printed and/or plotted) should have correct values for
the time t = O.
Point 2
The program will automatically calculate the dc steady-state output values of certain types of
blocks (read on), while the user must provide "user-defined initial conditions" for the others.
However, the program does not need (and will not calculate) any dc steady-state output values,
unless there is one or more type-I, -92 and -93 sources connected at time t = O. and active in
steady-state (as indicated by a value ofT-START < 0.).
Point 3
a) the program will take care of computing output values for all order-zero blocks and all s-
blocks (transfer function blocks); Except: integrators [ G(s) = K / s ]
b) and the user must provide the dc initial conditions for any other blocks if needed
(see Point 1).
Point 4
When T ACS does not calculate its own dc steady-state output values, it will nevertheless
recognize any user-defined initial condition that can be used as of Point 1, in which case the
user assumes all responsibility for the whole dc initialization.
In such a case, the user must also remember to define any nonzero initial values of the
"named entries" (columns 69-80) to the supplemental devices, unless these entries are other
than previously-defined supplemental variables or devices, or than a signal source.
(See Section llI-C-2)
Point 5
Whether TACS does or does not calculate its own dc steady-state solution, the program will
always take care of initializing the dc and ac history terms of the transfer functions and the
transport delays. Remember that, in either case, the output values of all integrators (see Point 3)
must be supplied by the user. There is no alternative.
6 -ill. TACS
Point 6
a) TACS takes care of computing the output values of all order-zero blocks and all s-blocks
without exception;
b) The ac contribution of all supplemental variables and devices are totally ignored (the ac
component of their output is assumed to be zero).
1. Make sure that all nonzero inputs to and output of the s-blocks and devices type 53, 58,
59, 62, 64 and 65 are defined for time t = 0 (either by the user or by the program);
2. For program-calculated steady-state solutions, make sure that integrator outputs, delay
s-block outputs and named limits are all defined for time t = o.
The steady-state initialization of the electrical network in the EMTP is calculated before the
TACS steady-state initialization.
Consequence 1
In the electrical network, the user must himself initialize any TACS variable (which are not yet
calculated for time t = 0) by means of user-defined initial conditions in the EMTP or other sort
of stratagem.
Consequence 2
In the TACS steady-state initialization, the interfaced signals of sources type 90, 91, 92, 93 are
defined and accessible at time t = 0, since they have already been calculated by the EMTP.
Consequence 3
III. TACS-7
The various classes or types ofTACS data are described in subsection below. Such data can be
assembled in arbitrary order, terminated by blank card.
This element i~ used to describe a transfer function of arbitrary order in "s". The operator "s"
can be thought of as either the Laplace transform variable or as the "dldt" operator.
where
N + N s + '" + Nns n
G(s) = G A I N · -1 o - - - - - -
Do + DIS + ... + D nS n
1----..x(t)
~ m ~
1 + 'tIS
1 + 'tzs
~
1 + 'tIS 1 + 'tIS
(1 + 't zs)(1 + 't3 s) A + Bs + Cs 2
8 -III. TACS
Format:
1 ~ 3 4 6 7 8
12 ~45678 90 *345678 012345 8901234 678901 3456789 0~23456f7 890 12 ~45678 901234 ~67890
NPUTPUT FIXED FIXED NAMED NAMED
INl IN z IN3 IN4 INs GAIN
NAME - - - -LO -HI -LO -HI
2
A6 A6 A6 A6 A6 A6 E6.0 E6.0 E6.0 A6 A6
1 1 1 1
1 2 3 4 5 6 7 8
1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890
No Nl Nz N3 N4 N5 N6 N7
Do D1 Dz 03 04 05 06 07
Rules:
1. "N" is the order of highest power of "s" of either numerator or denominator polynomials.
Its value must be punched (right-justified) in columns 1-2.
The special degenerate case where N = 0 is called the "order-zero" block or Z-block.
It is defined as:
2. This block is identified by the alphanumeric name of its output. (Columns 3-8)
3. The total input to the block is the sum of any or all signed input signals. The sign character
( + or - ) must be punched for all such non-blank inputs.
4. The value of a non-unity gain maybe defined in columns 51-56. When this field is left blank
(or zero), GAIN = 1.0 is the default value automatically assigned by the program.
5. This block may also be defined either as a static limiter if it is a Z-block, or as a dynamic
limiter if it is a s-block. See Section ID-E-2 for details.
III. TACS - 9
The following two rules apply only to the s-blocks, and they are not needed for the Z-blocks.
6. The coefficients of the numerator (No, Nl ,etc.) must be supplied on the next card(s). The
order of coefficients is identified by the fields they occupy on the card. For example, N 4 , if
nonzero, must appear in columns 41-50 and nowhere else.
7. The coefficients of the denominator (Do, D J ' etc.) then follow on the next card(s). Here
again, the order of the coefficients is identified by the fields they occupy on the card. For
example, D" ifnonzero, must appear in columns 11-20.
Examples:
1 2 3 4 5 6 7 8
12345678901234567890123456789012345678901234567890123456789012345678901234567890
(a) 10UT1 +IN1 -IN2
1.
1. 0.1
(b) lINTGR +DERIV
1.
1.
(c) 2SECND +ERR -REF +UNITY 0.25
1. 0.14
1. 0.04 0.04
1
(a) OUT 1 = -- - . (INI - IN2)
1 + [Link]
1 2 3 4 5 6 7 8
12345678901234567890123456789012345678901234567890123456789012345678901234567890
(a) SUM2 +A -ERR +REF8
(b) EX3 +IN1 -LIM2 0.072
(c) NEGEX +SUM2 +EX3 -0.82
ill-E-2. Limiters
Low and/or high limits of fixed or calculated value can be superimposed on any transfer
function block or order-zero block.
HI HI
G(s) K
LO LO
Static limiter
The output value of an order-zero block is always calculated without considering any existing
limit, and then, if the output value is seen to have exceeded either the lower or higher limit
values, the output value is readjusted according to the value of this limit or saturation level.
Dynamic limiter
The output value of an s-block is calculated differently depending on whether the element is
operating inside or outside its defined limits. In the latter case, the derivatives of the output are
automatically set to zero. Most limiters must be assumed to be of the static type, unless the user
can positively identify that, for example, the complex impedance feedback loop of an amplifier
is electrically modified or by passed when the limit is reached.
Rules:
1. Limits are defined on the card describing the element on which they apply. See Section
III-E-i.
2. The user may define any combination of two types of limits: fixed and variable (See table
below). The fixed limits are defined as the "FIXED-LO" parameter and the "FIXED-ill"
parameter of columns 57-62 and 63-68 respectively on the block card. The variable limits
are defined by using the alphanumeric A6 names of other blocks or elements of the system,
whose output will be the required calculated limit.
These "NAMED-LO"and "NAMED-ill" identifications are punched respectively in the
fields 69-74 and 75-80 of the block card.
III. TACS - 11
3. The following table can be used to determine how the program interprets the different
user-supplied combinations of fixed and variable limit definitions.
A B --- --- A B
DOUBLE --- --- LLL HHH LLL(t) HHH(t)
LIMIT A --- --- HHH A HHH(t)
--- B LLL --- LLL(t) B
B A A A for B > A
B O. O. for B > 0
DEGENERATE A A A for A < 0
A HHH HHH(t i ) HHH(tJ for HHH (t i ) <A
B LLL B B for LLL(td > B
Notes:
4. The limiters are not active during the TACS-calculated steady-state initialization at time
t= O.
12 - Ill. TACS
Examples:
1 2 3 4 5 6 7 8
12345678901234567890123456789012345678901234567890123456789012345678901234567890
(a) 99STAT-G +G(S) STATIC
1G(S) +IN2
1. 58
1. 0.01
(b) 99NEG2 +DYNA 2.5 -0.85 -0.32
1 DYNA +STATIC 0.1 1.0
1.
1. 0.1
99STATIC +IN1 0.36 -0.2 0.95
STATIC
TACS signal sources are signal generators that can be used. as inputs to other blocks and
elements of the system. Each source is defined on a single card as a separate system component. The
user specifies the type and the name of the source according to the rules that are defined below.
Resident sources
Some source names are permanently available to the user as built-in TACS sources. They have
pre-defined, reserved names, and need not be specified on a source card by user. To use them as input
to any other block or element, simply mention the name of the source as for any other input to a
component. The resident sources are also available as voltage or current sources in the electrical
network through the TACS-EMTP interface.
Format:
1 2 3 4 5 6 7 8
12 345678 90 1234567890 1234567890 1234567890 12345678901234567890 1234567890 1234567890
T
Y PUT PUT
P NAME A B C T-START T-STOP
E
2 A6 E10.0 E10.0 E10.0 E10.0 E10.0
Rules:
4. Types of sources
TYPE A B C
11 AMPL - -
t~-START< 0 OtT_START> 0
O~--~~----------~~~ t Or-----~----------~~~ t
l T-START
(T-START ~ 0 is valid, although this source cannot be included as active during the dc
steady-state initialization unless a nonzero user-defined initial condition is specified.
(T-START < 0 is valid, although this source cannot be included as active during the dc
steady-state initialization unless a nonzero user-defined initial condition is specified.
t T-START
In which case the NAME must be a node name already defined in the electrical network.
The output value is not calculated by TACS itself, but is simply made equal to the value of
the vohage (with respect to TERRA), as measured at the node which bears the same name
in the electrical network
In which case the NAME must be a node name to which a switch (of any type) is
connected in the electrical network. The output value of the source will then be set equal
to the current flowing from the LEFT-node to the RIGHT-node, as defined on the EMTP
switch card. In cases where more than one switch are attached to the said node, reference
is assumed to be to the first of these switches, in the order of the data cards.
16 - 1lI. TACS
This source type is reserved for passing to TACS the values of certain internal variables of
special EMTP components. For example, Rule 3 of class 6 S.M. data cards (see
Section VllI) shows how rotor angles and angular velocities can be passed to TACS. This
is for a dynamic synchronous machine (S.M.) Source component, as used in
subsynchronous resonance (SSR) studies. Such variables are then accessed (picked up and
used) within TACS by means of the Type-92 TACS source component.
= 0 : switch is open
TYPE = 93: Output = EMTP switch status {
= 1 : switch is closed
The name of this T ACS source must be a node name to which a switch (of any type) is
connected in the electrical network. In cases where more than one switch are attached to
the said node, reference is assumed to be to the first of these switches, in the order of the
data cards.
Note: Any of the sources that can be defined in the electrical network (type 1 to 15) can
also be used in TACS as follows:
NAME
Source 1.0
~
TYPE-90
These elements are called "supplemental" because they differ from the linear s-blocks and
z-blocks in the following way:
they are not part of the solution matrix ofthe set of linear equations in TACS;
they are calculated sequentially, instead of simultaneously for the other s- and z-blocks ( so
that the data cards must be ordered accordingly).
Ill. TACS - 17
I
I
I
0- :~
Sources
I
I
Is-block j-... ~ I s-block I..... ~
0- ~~ I
I
I s-block j-...,~~I
I
I
I
I
I
I
I s-block I..... ~~ I
I
To make the solution simultaneous for the largest possible number of s-blocks and zero-order
blocks, the user should keep the number of "inside" supplemental elements as low as possible, and
rather place the supplemental elements into the "input" or the "output" group, if applicable.
( See Section III-C-2)
All the inputs to these "input" supplemental elements must be either T ACS signal
sources or the output of other supplemental "input" elements.
The output of these supplemental "output" elements must not be used as input to any other
block except other supplemental "output" elements. (Although they may be used as interfaced variables
to the EMTP.)
These are the leftover from the two previous groups. They must be used when, for example, the
inputs and output are connected to elements of the system other than those allowed for the two
previous groups. ( See Section III-C-2 details of the calculation.)
Note: The older-type fixed-format variable has now been replaced by the the free format arbitrary
FORTRAN expression described in this section. However, although the older type is not
documented in this User's Manual anymore, it can still be accepted by the program for the
convenience of those users wishing to continue running older versions of their data cases.
Format:
1 2 3 4 5 6 7 8
12 p45678 90 1234567890123456789012345678901234567890123456789012345678901234567890
Rules:
1. This variable is identified by the alphanumeric name of its output (Columns 3-8). This
alphanumeric name may not start with a numeric number in the free format expression.
2. The character '=' must appear in column 11 of the first card ofthe expression.
algebraic operators +, - , * ,/ , **
nesting 20 levels
4. All functions accept only one argument, as in SQRT ( arg). Valid arguments are either a
TACS name, a numerical constant, or another function, as in SQRT(ABS (INVRS (X)))
5. The characters t+t, t_' , '*' , 'I', '(' , ')' and blank are separator characters, and cannot
be part of a TACS alphanumeric that is going to be used in a FORTRAN expression.
Examples:
tl.O~ E6 ' will be interpreted as 1.0 followed by 'E6~ ~ ~ _' ( here meaningless)
6. Any TACS alphanumeric variables can be associated with either algebraic or logical
operators, regardless of whether it is itself of algebraic or logical contents (no such
distinction in TACS). "
Thus, if a logical expression is used in an algebraic context, its value will be considered as
either = 0.0 or 1.0 ( for respectively '0' and '1 ').
Similarly, if an algebraic expression is used in logical context, its value will be considered
as either '0' or '1' ( for respectively s; 0.0 and:?: 0.0 ) .
Examples:
1 2 3 4 5 6 7 8
12345678901234567890123456789012345678901234567890123456789012345678901234567890
99ANGLE =DEG( ATAN(CNTRL - BIA52)) + 36.2
88EXPR =-A * ( B+ C** (-D +3))
+ E / PI
99FIFTY = 50.
98IF3 = . NOT.A+B .LT.3 .AND. (ISTEP .GE . 100 )
AboutSEQ6 :
arg -1 0 1 2 3 4 5 6 7 8
etc ...
SEQ6(arg) 5 6 1 2 3 4 5 6 1 2
Format:
1 2 3 4 6 7 8
12 345678 90 12345678 012345 890123 45678901 456789 0123456 r89012 345678 901234 567890
T C
Y OUTPUT 0
P NAME D
INl -
IN z
- IN3 -
IN,
- IN5 A B C D E
E E
~ ~
12 A6 121 A6 A6 A6 A6 A6 E6.0 E6.0 E6.0 A6 A6
1 1 1 1
Rules:
2. This device is identified by the alphanumeric name of its output. (Columns 3-8).
3. The total input to the device is the sum of any or all signed input signals (except for devices
type 60,61 and 63 where each input signal is interpreted individually). The sign character
( + or -) must be punched for all non-blank inputs.
CODE
50: frequency-sensor
51: relay-operated switch
52: level-triggered switch
53: transport delay
54: pulse transport delay
55: digitizer
56: point-by-point user-defined non-linearity
57: multi-operation time-sequenced switch
58: controlled integrator
59: simple derivative
60: input-IF component
61 : signal selector
62: sample and track
63: instantaneous minimax
64: minimax tracking
65: accumulator and counter
22 - III. TACS
The time between successive zero-crossing of the input signal is measured and converted to a
frequency value in Hertz. The device will automatically reject higher-frequency non-characteristic
oscillations appearing on the main signal. Alternately, the user may choose to process the input signal
through a low-pass filter [I / ( I + T's ) ], in cases where the input noise causes difficulties in
measuring the main signal frequency.
error in estimation
of zero crossing
time Tl
Example:
1 ~ 3 4 5 6 7 8
12 345678 90 1234567 81':J 012345 r890123~ 67890W 45678S 012345€ ~89012 345678 901234 567890
98 FREQ2 50 ~ENA ~ENB 60.
~~
~)I
88
This card would describe a frequency-sensor named 'FREQ2' applied to the sum of the inputs
[ 'GENA' - 'GENB' ]. Initial frequency of 60 Hz.
Note: This value of 60 Hz. will not change until at least two zero-crossing of the signal have been
detected, so that an interval can be measured.
±IN
2
iD-1
±IN 1
: I
•
GAIN H: --("-
I
I
I
~OUTPUT
B
C
Value of FIXED TRESHOLD
oor2
1
normally-open
normally-closed
±INs I
-2 normally-open, but
DRIVING _ _ _--"'
SIGNAL
closed at steady state
-1 normally-closed, closed
at steady state too
+ TRESHOLD D NAMED TRESHOLD (optional)
FIXED
E DRIVING SIGNAL
Note: D and E can be the names of any other TACS variable. (See examples below.)
24-Ill. TACS
This device is defined in exactly the same way as the relay. The only difference in the operation
of the level-trigger, as opposed to the relay, is that the actual value of the driving signal is taken
(instead of the absolute value), and is compared to a treshold which here can be either positive or
negative.
Examples:
1 2 3 4 5 6 7 8
12 345678 90 1P4567 8 01234516 17 890123 45 678901 456785 0123456 1789012 345678 901234 567890
(a) 98 iREL-A 51 AmITY 0.5 SIG2
0'"
(b) 99iREL-B 51 +IN1 ISlAS 2.0 1. tr'RESH IDRIV1
or
(c) 88 IDETECT 52 +~OURCE 1. 3E tr'R-2 ANY
(b) 'REL-B' = 2' ('IN!' - 'BIAS') when I 'DRIVI' 1< 'TRESH '
When the user wants the value of the delay to be variable (as opposed to 'fixed'), he may define
this delay as being the output of some other TACS block at which the delay itself is calculated.
In such a case, the user must also specify the maximum value that will be reached by the total
delay time, and punch this maximum value in field 'C' of the device card. (The program needs
to know ahead of time how many cells of memory are to be allocated to the storage of the
'past history' of the input signal.)
Examples:
1 12 3 4 5 6 7 8
12 345678 90 1~345678 012345 8901234 5678901 456789 01234561789012 345678 901234 567890
Note: When the input signal is known to be a pulse or succession of pulses, the user should consider
using a 'pulse transport delay' instead of this 'storage-hungry' device
. ! \\
I I
! ! : ,,
:
I
:
I
O~----~I--~:----~--~----~~~t I t , . t
o~-~~/~----~,-.----~----~----~
Note: Constraint on the frequency of the input signal. Overall period of input > pulse width + delay.
26-ill. TACS
The user can make the OUTPUT respond to an input signal which partly or totally occurred
before simulation time t > o.
When reading the cards, the computer does not make the difference
between a blank field and the value 0.0.
o If the user does want to specify a value of T -ON or T -OFF that is
exactly 0.0, he must instead specify a value that is negative and very close
to 0.0 ( < Llt), but is not exactly 0.0.
Examples:
1 2 3 4 5 6 7 8
12 345678 90 12345678 01234516 8901234 678901j<: 456789 0123456 789012 ~45678 901234 1567890
(b) 'PDEL2' (t) = 'SIGN-L' (t -'VARDL'), with the input being 'ON' since 0.028 seconds prior
to the beginning of the simulation.
input
Specify the GAIN in field 'A' of the card (defaulted to 1.0)
1 2 3 4 6 7 8
12 345678 90 11234567 81S 012345 118901234 678901 213 456789 012345E 789012 345678 901234 567890
T
yjoUTPUT rt
55 INl ~ etc ...
P NAME
E
level - 1 I
level - 2 I
. in order of increasing value
level - n l
9999./
--
Example:
1 2 3 4 5 6 7 8
12 345678901234567890123456789012345678901234567890123456789012345678901234567890
STAIRS55 +SMOOTH
98
lor -l.
99
O.
or
88 l.
9999.
+I
'SMooTH'
-1
+1
'STAIRS'
0 t
-1
28 - III. TACS
Define the function y = f(x) with as many points as needed to cover the expected range of variation
(linear interpolation is performed by the program for values between the given points).
Specify one such point per card by punching the pair of coordinates (x,y).
Place the cards in order of increasing values of 'x'.
End with a 'terminator' card: punch '9999' in columns 13-16.
1 2 3 4 6 7 8
12 345678 901 234567 89 012345 678901234 678901 23 456789 0123456 789012 345678 901234 !:>67890
T
ypUTPUT ft ft etc ...
56 INl
P NAME
E
,,""~, ,-
Xl I Yl I
Xz I Y2 I
in order of increasing value of 'x'
Xn I Yn I
9999.[
Examples:
1 2 3 4 5 6 7 8
~2 345678901234567890123456789012345678901234567890123456789012345678901234567890
NL 56+x
-1000. -3.
98 -1l. -3.
o~
99 -6. -5.
or 3. 5.
88
6. 3.
1000. 3.
9999.
10
6
1lI. TACS - 29
INPUT -I ~- ~ OUTPUT
This switch is assumed to be initially open. The user specifies the sequence of operation of the switch
as follows:
1 2 3 4 5 6 7 8
12~45678 90 1~345678 012345IE r8901234 678901 456785 012345E 1789012 ~45678 9012341567890
T
ypUTPU'I
P NAME 15 _ _~tc ...
5 INl
E
tCLOSE - 1
t OPEN - 1
tCLoSE - 2
9999·1
Note: Since the devices are ignored during the program-calculated steady-state initialization, this
switch is also open during steady-state. However, since user-defined initial conditions may be
defined for any TACS variable, the user may choose to define a nonzero initial condition for the
output of this device, thus bypassing the effect of this stUbbornly-open switch at t = O.
Example:
1 2 3 4 5 6 7 8
12 345678901234567890123456789012345678901234567890123456789012345678901234567890
SWCTRL57+UNITY
0.0025
98
PL 0.0030
99
0.0105
OL
88 0.0110
0.0205
9999.
30 - III. TACS
if control signal :s; 0.0 ~ OUTPUT = value of named reset (or 0.0 ifno name specified)
Examples:
1 2 3 4 5 6 7 8
12 P45678901234567890123456789012345678901234567890123456789012345678901234567890
98 pUT 58+IN 1.0 0.0 1.oCTRL1 VAR1
OI
99
PUT2 58+IN 3.2 1.8 1. CTRL2
OI
88
pUT 3 58+IN -OTHER +ETC 3.1 1.0 o. CTRL3 VAR3
t
- if CTRL > 0, OUT(t) = OUT(t - ~t) + J IN(T}) dT}
t-~t
OUT
s if CTRL :s; 0, OUT(t) = VARlet)
(which will also be used as initial condition for the next time
step)
CTRL2
Note: In a previous version ofthis program, the type-58 device has also been used as a counter. This
function is now served more flexibly by the device type 65. However, for the convenience of
users wishing to run older versions of their data cases, the "counter" function of this type-58
device is kept operational, and is defined as follows:
A ignored
B ignored
C ignored
D The keyword 'COUNTR'
E ignored
±IN2~
B ignored
- '\' GAIN. Llul - t - --~~ OUTPUT
ignored
-. ~ Llt C
D ignored
E ignored
Note: This device will be properly initialized by the program at t = 0.0, provided that all the initial
conditions for the inputs INI , IN2, etc. are available (either program-calculated or user defined).
See Section III-D.
To assign a nonzero initial value to the OUTPUT, specifY also a user-defined initial condition as
per Section III-G.
32 - III. TACS
B ignored
IF
C ignored
±INI --~-------. D name of SIGNAL!
±IN2 --. = • '------ii--~ OUTPUT
> • E name of SIGNAL2 (optional)
±IN3--~------~
Note: For this device, the inputs are not summed up. Each inputs is interpreted individually.
Examples:
- OTHER!
-OTHER! }
OUT ={ ZERO
+ ZERO ----1-"" OUT PASS!
+PASSI
Note: FLAG! can itself be a more complex logical
/algebraic expression defined in a FORTRAN
expression
-PLUSl
PLUSI }
+ PLUSl '----I!--. . . OUT2 if FLAG2 {: } =4.75, OUT2 ={ PLUS!
+THRU2 -THRU2
III. TACS - 33
_.----.,~O
: I" /
B SELECTOR A ignored
~~:
±IN3 : I '\:!,...,- - - . . . OUTPUT
B output LO when SELECTOR 0.5
C output lIT when SELECTOR 6.5
± IN4 • \
± IN5 • \
D ....lin D name of 6th input (or blank)
c o
0-0_ _----oJ.
E name of SELECTOR variable
Note: For this device, the inputs are not summed. Each input is interpreted individually.
34 - Ill. T ACS
sO sO
Note: - In the absence ofboth TRACK signal and SAMPLE signa~ the OUTPUT is in HOLD mode.
- The TRACK signal supercedes the SAMPLE signal, should both control signals be > 0
simultaneously.
- The SAMPLE mode involves a two-step operation. The order to sample a new value is only
performed on the rising front of the SAMPLE control signal, which must then be reset to ~ 0
before the next SAMPLE order is given.
- The TRACK operation becomes equivalent to a SAMPLE operation if the TRACK control
signal lasts only one time step.
To assign a nonzero initial condition to the OUTPUT (the initial HOLD value), specify a user-defined
initial condition as per Section Ill-G
36 - III. TACS
A ignored
RESET HOLD
±INI 1- B ignored
, t
±IN2~~. ~ I
~J!Yi-----I~-..I ~CC ~ OUTPUT
C
D
numerical reset value
name of RESET signal (or blank)
± IN5 +
reset E name of HOLD signal (or blank)
value
Note: This device will be properly initialized by the program at t = 0.0, provided that the initial
condition for the OUTPUT value is supplied.
To assign a nonzero initial condition to the OUTPUT (which will also be the initial accumulator
contents), specify a user-defmed initial condition.
Special application:
A frequency (Hz)
B ignored
C ignored
I---~~ OUTPUT
D ignored
E ignored
Note: The storage needed for this device is allocated in the 7th of the total of 8 TACS tables.
The number of cells needed is equalto: 1 + 1 / (frequency· DELTAT)
III. TACS - 37
The time-varying values ofthe signals and variables in TACS are calculated by the program at
discrete intervals of time t =0, at, 2at, etc..
Just as for the electrical network, the value of each variable in TACS can be observed in
printed or plotted form. Under user control are:
b) the printing and plotting intervals lOUT and IPLOT (see Section II-B)
c) the printout of the minima and maxima of the output variables (see Section II-B:
MAXOUT)
d) permanent disk storage of the plot data points (see Section II-B: ICAT)
or
1 2 3 4 5 6 7 8
~2 ~45678 901234 567890 12345E 789012 ~45678 901234 567890 12345E 789012 ~45678 901234 567890
name name name name name name name name name name name name name
~3
A6 A6 A6 A6 A6 A6 A6 A6 A6 A6 A6 A6 A6
Note: any of the A6 fields on anyone output card may be blank, provided that at least one field per
card is non-blank.
As for locating the TACS variables which have been so requested in the resultant printout, a pair
of A6 names is used. The first is always "TACS", and the second is the user-supplied name of the
TACS variable. For plotting purposes (either batch-mode or interactive), this same pair of names is
used, and TACS variables are treated as ifbranch currents were involved (Type-9 plot variables). This
presumes a hybrid problem with both TACS and also some electric network representation. For a
TACS-only data case, TACS variables are treated like node voltages (Type-lor 4 for plotting
purposes), and only a single name (that of the TACS variable) is used for identification.
38-ill. TACS
The initial value at t = 0.0 of variables not covered by the program initialization calculations can
be provided by the user, in the format presented below.
Typically, the following elements will require user-defined initial conditions for t = 0.0. The
default value of unspecified initial condition is zero.
. 1
mtegrators -
s
FORTRAN expressions
devices 50,51,52 etc...
sources type 23 and 24 (pulse and ramp)
sources where T-START is not specified or is 0.0.
Format:
1 2 3 4 5 6 7 8
12 ~45678 90 ~234567890 123456789012345678901234567890123456789012345678901234567890
initial
name
value
177
A6 E10.0
Use as many cards as required, and terminate with a blank card, whether any initial conditions are
defined or not. This blank card also marks the end of the TACS data case altogether.
III. TACS - 39
It is allowed to include both a TACS section and a MODELS section in the same data case. Typically.
this will enable users to use existing data cases containing a T ACS section. while still being able to add
one or more MODELS routines to the data case as needed.
A new input type has been added to the MODELS section, to allow input of any variable from TACS
into MODELS. For example, a TACS variable named "SIGNAL" could be used as input to the
MODELS section as follows:
indicating that the TACS variable named "SIGNAL" would be available in the MODELS section under
the name "local name".
The complete list of input types that can be used in the MODELS section is now:
When both T ACS and MODELS are used in a data case, the TACS section precedes the MODELS
section:
TACS HYBRID
ENDMODELS
e1ectric circuit description
During the simulation, the order of execution at each time step is:
MODELS variables requested for printout/plotting using the MODELS directive "RECORD variable
AS name" are identified by ATP with the keyword "MODELS" (instead of "TACS") being used as the
first name of the name pair identifYing each printout or plotted variable (see the printout heading in the
example below).
40 - Ill. TACS
The fonnat rules of ATP branch, switch, source, and machine cards making use of control signals from
TACS or MODELS remain unchanged. In either case, the keyword "TACS" used on these cards
continues to mean "The Alien Control Signal", and is used for identifying control signals coming from
outside the electric circuit from either TACS or MODELS.
The 4th subcase ofDC-30 shows the use ofTACS and MODELS in the same data case:
1. INTRODUCTION ....................................................................... 1
1.1 THE MODELS LANGUAGE ........................................................... 1
1.2 MAIN FEA TljRES ................................................................... 1
L INTRODUCTION
MODELS is a general-purpose description language supported by a set of simulation tools for the representation
and study of time-variant systems.
The MODELS language provides a format which focuses on the description of the structure of a model and on the
function of its elements.
The description of a model is intended to be self-documenting, and can therefore be used both as the description
document used for representing the system and as the data used in the actual simulation.
A system can be described in MODELS as an arrangement of inter-related submodels, independent from one another
in their internal description (for example, in selecting the names of their variables) and in their simulation (for
example, in selecting the size of their individual simulation time step). .
There is also a clear distinction in MODELS between the description of a model, and the use of a model. Individual
models can be developed separately, grouped in one or more libraries of models, and used in other models as
independent building blocks in the construction of a system.
Finally, the description of each model uses a free~format, keyword-driven syntax of local context,. and does not
require ftxed formatting in its representation.
The present documentation is divided in two sections, the fITS! covering the description of a model, and the second
describing the use of a model in a simulation.
A general overview of the model description approach in MODELS is presented in the next pages, under the
headings MAIN FEATURES, SYSTEM REPRESENTATION, MODEL DECOMPOSITION, and MODEL
DEFINITION.
The main description features of the MODELS language are the following:
- the syntax of MODELS allows the representation of a system to closely follow the system's functional
structw"e, supporting the explicit description of composition, sequence, concurrence, selection, repetition, and
replication;
- the description of a model can also be used as the model's documentation;
- the interface of a model with the outside world is clearly specified;
- the components of a model can be given meaningful names representative of their function;
- a system can be partitioned into individual submodels, each with a local name space;
- the models and functions used for describing the operation of a system can be constructed in programming
languages other than the MODELS language.
The main simulation features supported by the MODELS language are the following:
- distinction between the description of a model and its use, allowing mUltiple independent replications of a
model with individual simulation management (time step, dimensions, initial conditions, etc.); .
- hierarchical combination of three initialization methods (default, use-dependent, and built-in), each
contributing to the description of the pre-simulation history of a model by a direct representation of the pre-
simulation value of its inputs and variables as functions of time;
- dynamically-controlled modification of the values of the inputs and variables of a model during the. course of
a simulation;
MODELS -- p. 2
- d)-1lamically-controlled modification of the structure of a model (both topological composition and algorithmic
flow) during the course of a simulation.
2. MODEL DESCRIPTION
The description blocks of the MODELS language are model definitions. Four aspects of a model are included in its
description:
- what elements are present in the model~
- how these elements interact with each other,
- how the model interacts with the environment in which it operates,
- how the operation of the model is to be simulated.
The internalmteraction of the elements of a model is described by specifying the structure in which the elements
are assembled, using:
- composition, where the joined operation of a group of statements is assembled into a submodel;
- replication, where several independent uses of a model are specified in the description of a system (see USE
statement); .
- selection, where different .groups of statements are active depending on a specified set of conditions (see IF
statement);
- association, where some statements are explicitly identified as belonging to a common group (see DO
statement);
- repetition, where the action of a group of statements is repeated according to directives internal to the
description of the group (see REDO statement);
- conditional repetition, where the action of a group of statements is repeated according to a specified external
condition (see WHILE statement);
- indexed repetition, where the action of a group of statements is repeated using a list specifying the values of
one or more parameters (see FOR statement);
- concurrence, where the statements of a group are active simultaneously with each other (see COMBINE
statement);
- sequence, where the statements of a group are active consecutively, in the order in which they are described
(see SEQUENCE statement).
The external interaction of a model with its immediate surrounding environment is described by specifying how
information is carried to and from the model, through:
- its input connections (see INPUT);
- its output connections (see OUTPUT).
The operation directives that are specific to the individual uses of a model are specified in each USE statement, in
the formoflocal DATA and HISTORY assignments, and oflocal simulation directives (see USE).
MODELS -- p. 3
Although it is generally possible to represent the operation of a model without defining any submodels, there are
many advantages to dividing a larger model into groups of elements each perfonning a more simple function.
Each composite group is represented as a separate model in the overall description of a system, describing the
interaction of the group's elements among each other and the interaction of the group itself with the environment
in which it operates, with the following advantages:
- explicit interface: the interaction of a model with its environment takes place exclusively through
its specified interface;
- local operation: the elements contained in a model operate independently from the environment
in which the model itself is used;
- local naming: all names used as identifiers in a model can be selected without concern for the
possible duplication of names used outside that model;
- replication: once defmed, a model can be used in many separate applications, each application
being used independently from other applications of the same model;
- simulation control: the directives controlling the simulation of a model can be specified individually
for different uses of the same model~
- state history: state information is retained for each separate use of a model, in the form of the
present and past values assigned to its variables~
- local development: being a self-contained description, a model can be developed and tested separately
from the larger context in which it may eventually be used;
- local maintenance: the internal implementation of a model can be modified without affecting the rest
of a system description, provided that the original specifications of the model's
interface remain unchanged;
- model library: an assortment of models can be gathered in a library of models, to be utilized
individually as required;
- rough-modeling: when developing the description of a large system, a model of the overall system
can be prototyped early, by temporarily approximating the internal operation of
unfmished submodels with simplified equivalent representations using the same
model interfaces as the fmal product;
A model written in the MODELS language includes declarations, simulation directives, and operation procedures.
The syntax used for a model defmition is the following:
MODEL name declaration
directive
procedure
' - - - - - - - - - ENDMODEL
declarations:
- CONST declarations specify the name, array range, and value of the constants of the model (the internally-
assigned constant value-holding elements);
- DATA declarations specify the name, array range, and optional default value of the data parameters of the
model (the externally-assigned constant value-holding elements);
MODELS -- p. 4
- VAR declarations specify the name and array range of the variables of the model (the internally-assigned
variable value-holding elements);
- INPUT declarations specify the name, array range, and optional default value of the inputs of the model (the
externally-assigned variable value-holding elements);
- OUTPUT declarations specify which of the model's elements may be used as outputs of the model;
- FUNCTION declarations specify the description of functions used in the model;
- MODEL declarations specify the description of submodels used in the model;
simulation directives:
- TIMESTEP directives specify the optional default value of time step minimum and maximum limits for the
model;
- INTERPOLATION directives specify the default interpolation degree to be applied to the inputs of the model
if the model is used at sub-steps of the external time step;
- DELAY directives specify the default size of value storage associated with usage of the delayO function in the
model;
- mSTORY declarations specify the name of the model's variables for which a history function must be defmed
when using the model; they may optionally be used to assign default history functions to any of the model's
inputs and variables;
operation procedures:
- the EXEC procedure describes the execution algorithm of the model;
- the INIT procedure describes the initialization algorithm of the model.
Once defmed, a model can be used independently in as many separate uses as required. Each use of a model is
introduced in a separate USE statement specifying the inputs and outputs of the used model, and stating the local
directives controlling its simulation (see USE).
The names chosen for identifying the constants, data, variables, inputs, functions, and submodels defmed in a model
are local to the model. They are not visible outside the model, and can be selected without concern for the possible
duplication of names already used outside the model.
In addition to using the MODELS language for describing the operation of a model, it is also possible to use
procedures written in other programming languages. MODELS provides a pre-defmed interface that can be used
by the user to connect "foreign" programs to a simulation. The interface is defmed as four arrays carrying the values
of data, input, output, and history variables between MODELS and the foreign procedure. Each foreign model must
provide both an execution procedure and an initialization procedure, with a function corresponding to the EXEC
procedure and the INIT procedure of a model. For example, a Fortran model would be written as:
where
- execsub: arbitrary name of the execution section of the foreign model;
MODELS -- p. S
In order to be recognized as a model, a foreign model is declared in the model in which it is used. The declaration
fonnat is as follows:
MODEL name FOREIGN idname { T dimension-name: expr '1
- - }
where:
- name: local name by which the foreign model can be referenced in the model;
- idname: arbitrary name used in the connection table of the foreign interface subroutine of MODELS to
recognize calls to this model;
and where the following pre-defined names must be used to identify the size of the four arrays used to interface this
model with the rest of the simulation:
- ixdata: number of elements in the array xdata
- ixin: number of elements in the array xin
. - ixout: number of elements in the array xout
- ixvar: number of elements in the array xvar
A foreign program must be compiled and linked to the simulation program before it can be called by MODELS. Any
source language may be used, provided that the compiled object code is compatible with the linker available on the
computer platform used to run the simulation. The interface routine of MODELS (in file modOO [Link]) is where the
user registers the correspondence between the idname used in the foreign model declarations, and the actual names
of the foreign subroutines and functions linked with the program.
Once declared and named, a foreign model can be used independently in as many separate uses as required. The
inputs and outputs of the foreign model, along with the directives controlling its simulation, are specified in a
regular USE statement (see USE). The following simulation directives apply:
- DATA directives specify the value of the elements of the xdata array;
- INPUT directives specify values to be assigned to elements of the xin array at model execution;
- OUTPUT directives specify usage of the values of elements of the xout array at model execution;
- HISTORY directives specify history functions used for assigning pre-simulation history to elements ofxvar
andxin;
- TIMESTEP and INTERPOLATION directives can be specified as in a regular USE statement.
All local variables of a foreign model are considered to be under memory management defmed locally in the foreign
procedure. Storage for the elements of the anays xdata, xin, xout, and xvar is provided automatically by MODELS.
The array xvar can be used by the foreign procedure for storage by MODELS, between calls to the procedure, of
the state variables of the procedure. Storage of these values is provided and managed by MODELS, automatically
taking into account the possibly many separate uses of the same model.
MODELS -- p. 6
No model can be used in a model without being first declared in that model. If the defmition of a model is not
included in a model in which it is used, it must be declared as EXTERNAL to that model, as follows:
MODEL name EXTERNAL
The implied search algorithm for the location of the defmition of an external model inspects the model structure
from the local model upward. All models defmed at the same level as the model containing the external declaration
are candidates (including the host model itself, which permits a model to use itself). This search is carried to the top
of the model structure, one level at a time.
2.3 STATEMENTS
Three categories of statements are available for describing the operation of a model's procedures: assignment
statements, algorithm control statements, and simulation directive statements.
Value assignment statements are used for assigning or modifying the values of a model's variables (see
VARIABLES).
Explicit values are specified on the right-hand side of an assignment in the form of a regular expression (see
REGULAR EXPRESSIONS), a linear sum of variables (see SUM EXPRESSIONS), a linear polynomial of the
derivatives ofa variable (see DERIVATIVE EXPRESSIONS), or the integral ofa variable (see INTEGRALS).
Implicit value assignments in the form of differential equations and Laplace or Z transfer functions are also available
for specifying the value of a variable (see DIFFERENTIAL EQUATION, LAPLACE TRANSFER FUNCTION,
Z TRANSFER FUNCTION).
A single value can be assigned to a single variable, to a single element of a variable array, or to a group ofelements
of a variable array sharing the same value, by using a single-value assignment as follows:
1
name
name I expr]
name I expr .. expr ]
3 .= expr
and an array of values can be assigned to a group of elements of a variable array, using an array-value assignment
as follows:
name I expr .. expr] := array expr
Minimllm and maximum limits can be attached to the value of a variable or array of variables inside the expression
describing the value (see EXPRESSIONS).
[Link] DIFFERENTIALEQUATION
where "y" can refer to any variable of the model, and "x" to any variable or input of the model, specified using a
simple name or a reference to an element of an array as follows:
, - name
L name [expr] J
The D-poJynomial describes the tenus "ap;" of the equation, written as follows:
TL :~p~~;;]
LX~~
where each coefficient can be represented as an arbitrary expression (linear or nonlinear, constant or time-varying),
and is separated from the D operator by a vertical bar, which is the "applies to" operator of MODELS, with the
meaning of "expression applied to D;" (see DERIVATIVE EXPRESSIONS for examples). Minimum and maximum
limits can be specified for any of the coefficients (see EXPRESSIONS).
to indicate a constant-coefficients .differential equation. The expressions specifying the value of the coefficients in
CDIFFEQ are not re-evaluated during the execution, regardless of the variation of the values of any input or variable
possibly referred to in these expressions. Using CDIFFEQ instead of DIFFEQ when the coefficients are constant
will increase the simulation speed of the solution by avoiding needless re--evaluation of the coefficients at each step.
Dynamic minimum and maximum limits can be imposed on the value of "y". The limits are specified in the
statement as follows:
OIFFEQ ( O-polynomial ) I y{ limits} := x
or
COIFFEQ ( O-polynomial ) I y{ limits} := x
where the limits are expressed using the following syntax:
{[l DMIN : expr
OMAX: expr
1
}
The limit applied to a variable expressed by means of a differential equation is a "dynamic limit". While an external
static limit would simply clip the value of the variable outside of the procedure by which the value of the variable
is calculated, a dynamic limit modifies the calculation procedure itself by recognizing that the values of the
derivatives of the variable held at a constant limit are zero.
In a case in which the value of the variable calculated by means of a differential equation is subsequently reassigned
by other means during the same time step, the action of any dynamic limit previously applied to that variable at that
time step is ignored.
When the driving variable "x" of a differential equation of "y" is itself a function of "y", the differential equation
should be solved simultaneously with the equation of "x" in a COMBINE group or in an explicitly-defmed iteration
structure, because both are together defining the value of "y" concurrently with the value of the derivatives of "y" .
.. r
MODELS -- p. 8
y N(s)
~
where "y" can refer to any variable of the model, and "x" to any variable or input of the model, specified using a
simple name or a reference to an element of an array as follows:
. - name
L name [ expr ] J
The s-polynomials describe the terms "a;si .. and "b;~" of the Laplace function, with each polynomial written as
follows:
T[:~P~ ~ ;;-]
LX~~
where each coefficient can be represented as an arbitraIy expression (linear or nonlinear, constant or time-varying),
and is separated from the "s" operator by a vertical bar, which is the "applies to" operator of MODELS, with the
meaning of "expression applied to Sill (see DERIVATIVE EXPRESSIONS for examples). M~um and maximum
limits can be specified for any ofthe coefficients (see EXPRESSIONS).
to indicate a constant-coefficients Laplace function. The expressions specifying the value of the coefficients in
CLAPLACE are not re-evaluated during the execution, regardless of the variation of the values of any input or
variable possibly referred to in these expressions. Using CLAP LACE instead of LAPLACE when the coefficients
are constant will increase the simulation speed of the solution by avoiding needless re-evaluation of the coefficients
at each step.
Dynamic minimum and maximum limits can be imposed on the value of "y". The limits are specified in the
statement as follows:
LAPLACE ( V / x) { limits} := (S-polynomial ) / (S-polynomial )
or
The limit applied to a variable expressed by means of a Laplace function is a "dynamic limit". While an external
static limit would simply clip the value of the variable outside of the procedure by which the value of the variable
is calculated, a dynamic limit modifies the calculation procedure itself by recognizing that the values of the
derivatives of the variable held at a constant limit are zero.
MODELS - p.9
In a case in which the value of the variable calculated by means of a Laplace function is subsequently reassigned
by other means during the same time step, the action of any dynamic limit previously applied to that variable at that
time step is ignored.
When the driving variable "x" of a Laplace function of "y" is itself a function of "y", the Laplace function should
be solved simultaneously with the equation of "x" in a COMBINE group or in an explicitly-defmed iteration
structure, because both are together defining the value of tty" concurrently with the value of the derivatives of "y".
The operator "p" may be used equivalently to "s" when describing the polynomials of the Laplace function.
can be used for expressing the value of a variable "y", where "z" is the Z operator.
where ny" can refer to any variable of the model, and "x" to any variable or input of the model, specified using a
simple name or a reference to an element of an array as follows:
....,-- name
L name [expr] J
The z-polynomials describe the tenns "[Link]-i" and "biZ-i" of the Z function, with each polynomial written as follows:
T[~~pr~~
Lx~r~
where each coefficient can be represented as an arbitrary expression (linear or nonlinear, constant or time-varying),
and is separated from the "z" operator by a vertical bar, which is the "applies to" operator of MODELS, with the
meaning of "expression applied to z-i" (seeDERIVATIVE EXPRESSIONS for examples). Minimum and maximum
limits can be specified for any of the coefficients (see EXPRESSIONS).
Dynamic minimum and maximum limits can be imposed on the value of "y". The limits are specified in the
statement as follows:
ZFUN ( y / X) { limits} := ( Z-polynomial ) / ( Z-polynomial )
or
CZFUN ( y / x) { limits} := (i-polynomial) / ( Z-polynomial )
MODELS - p.l0
The limit applied to a variable expressed by means of a Laplace function is a "dynamic limit". While an external
static limit would simply clip the value of the variable outside of the procedure by which the value of the variable
is calculated, a dynamic limit modifies the calculation procedure itself by recognizing that the values of the
derivatives of the variable held at a constant limit are zero.
In a case in which the value of the variable calculated by means of a Z function is subsequently reassigned by other
means during the same lime step, the action of any dynamic limit previously applied to that variable at that time step
is ignored.
When the driving variable "x" of a Z function of "y" is itself a function of "y", the Z function should be solved
simultaneously with the equation of "x" in a COMBINE .group or in an explicitly-defmed iteration structure, because
both are together defming the value of "y" concurrently with the value of the derivatives of "y".
[Link] IF
The use of an IF statement allows the conditions applying to the selective operation of groups of statements to be
stated explicitly. An IF statement is specified as follows:
-IF expr THEN statement-list
ELSIF expr THEN statement-list
in which the conditions are expressed as logical expressions, and the statement lists can include any arrangement
of MODELS statements.
Only one option among the IF, ELSIF, and ELSE options of an IF statement is operative at a time: it is the fIrst
option for which the logical expression describing the condition associated with the option is evaluated as true (see
EXPRESSIONS). All remaining options are ignored at that time.
[Link] WHILE
The use of a WHILE statement allows the conditions applying to the repetition of a group of statements to be stated
explicitly. A WHILE statement is specified as follows:
WHILE expr DO statement-list ENDWHILE
in which the condition is expressed as a logical expression, and the statement list can include any arrangement of
MODELS statements.
The entire statement list placed in a WHILE statement is considered to be looped onto itself as a repetition. The
condition expressed in the associated logical expression is evaluated every time the decision to enter or re-enter the
list of statements must be made. The group is entered only if the condition is true. The group is then re-entered as
many times as required at the same simulation time as long as the condition continues to be evaluated as true (see
EXPRESSIONS).
MODELS -- p. 11
The use of a FOR statement allows the value of the parameters controlling the repetition of a group of statements
1
to be stated explicitly. One or more parameters can be specified in the same FOR statement, as follows:
FOR argument-name:~ value-list J
DO statement-list ENDFOR
in which the statement list can include any arrangement of MODELS statements.
The values of each parameter ca."} be specified as a list of values, a range of values, and a combination of the two,
as follows:
--~- expr------------------
expr TO expr - - - - - I
expr TO expr BY expr
The entire statement list placed in a FOR statement is considered to be looped onto itself as a repetition. The list
of statements is entered and re-entered as many times as required until all the parameters have been assigned all
combinations of their specified values.
The names chosen for representing the parameters are local to the FOR statement. They are not visible outside the
FOR statement, and can be selected without concern for the possible duplication of names of variables already
defined in the model. They may not, however, duplicate the names of the resident variables and constants and of
the model's constants, data, and inputs.
When a parameter of a FOR statement is used as an array index, and the expression defming its value yields a
non-integer value, a value rounded to the nearest integer is implied and used.
When the size of the "BY" interval used for covering a range of values is not specified, a default value of +1 is
implied.
[Link] DO
The use of a DO statement allows the association of a group of statements to be stated explicitly. An DO list of
statement is specified as follows:
DO statement-list ENDDO
in which the statement list can include any arrangement of MODELS statements.
The use of the OO ... ENDOO statement is equivalent to the use of parentheses marking association in an algebraic
expression. It defmes the boundaries of a group of statements to which a COmmon operation applies (see REDO).
[Link] REDO
The use of a REDO statement allows internal conditions controlling the repetition of a DO ... ENDDO group of
statements to be stated explicitly.
The indication that the operation of a DO ...ENDDO group of statements is to be repeated is specified within the
group by the use of one or more REDO statements. The boundaries of application of the REDO directive are
determined by the extent of the DO ... ENDDO statement enclosing the group that is to be repeated (see DO).
MODELS -- p. 12
The REDO statement sets a repetition flag if it is encountered during the execution of the DO ... ENDDO group of
statements. At the start of each repeated execution of the group, the repetition flag is reset. At the end of each
execution of the group, the status of the flag determines whether the group will be repeated or not.
The REDO directive has no qualifiers, and is specified by the simple use of the "REDO" statement anywhere in a
DO ... ENDDO group.
The simple DO repetition structure differs from the conditional (see WHILE) and indexed (see FOR) repetition
structures as follows:
- the directives controlling the repetition are internal to the group of statements forming the DO ... ENDDO
repetition group;
[Link] COMBINE
A group of variables can be solved simultaneously by placing their assignment statements inside a COMBINE group
of linear statements of the form:
COMBINE AS identifier statement-list ENDCOMBINE
where the identifier is a name or an indexed name uniquely identifying the group in the model, and "max-iter" is
the maximum allowed number of iterations to convergence, defaulted to 10.
The first form is used for groups of linear variables, and is solved in matrix form using Gaussian elimination. The
statement list of a linear COMBINE can include any of the following value assignments:
- differential equations
- Laplace functions
- Z functions
- linear value assignment of a variable or of an array element of a variable, using: .
- linear sum of variables (sum expression)
- polynomial of derivatives of a variable (derivative expression)
- integral of a variable (integral function)
- first and second derivative of a variable (derivative function)
- no regular expression (considered as possibly nonlinear)
- one set of static or dynamic minimax limits in one of the group's assignments (allowed by the Gaussian
elimination method)
The second form is used for groups ofnonlinear variables, and is solved by iteration using the Newton method. The
statement list of an iterated COMBINE can include a combination of any type of assignments, at the cost of
possibly-longer execution times and possible non-convergence of the solution, or convergence to a local (non-
global) solution point. Accuracy of initial history and size of time step are determining factors in attaining correct
solution points. '
All assignments placed in a COMBINE group are evaluated simultaneously. Examples of simultaneous groups
include:
- a group of value assignments in a tightIy-couple.d (non-delayed) feedback loop,
MODELS -- p. 13
Each statement in a COMBINE statement list specifies how to calculate the value of each simultaneous variable.
The value of each simultaneous variable cannot be specified in more than one statement.
The simultaneous variables of a COMBINE group are considered to be evaluated concurrently with each other. For
this reason, any reference to the value of these variables within the COMBINE group is considered to be a reference
to the present value of the variable, not to its previous value. It is however possible to refer to the previous value
of a simultaneous variable by defming, outside of the CO MBINE group, a separate variable carrying that previous
value. Note that this distinction is not required in ordinary sequences of statements.
The configuration of a COMBINE group is considered to remain unchanged throughout a simulation. The array
index values identifying the group's simultaneous variables are therefore considered to remain constant throughout
the simulation.
Both the linear and the nonlinear COMBINE groups accept the coefficients used in the statements to be time-
dependent as well as nonlinear expressions. However, in the linear COMBINE solution, the value of each
coefficient, Whether linear or not, is calculated every time step before fmding the solution point of the group. As a
consequence, in cases where the value of a coefficient is dependent on the value of a simultaneous variable, the
coefficient is pre-evaluated using the variable's value from the preceding time step. This allows the solution to
remain linear by inserting one-step delays in these dependency loops. This is discussed in more detail in the section
on model simulation below.
[Link] SEQUENCE
When no other form of structure is specified, the statements describing the operation of a model are considered to
be assembled in a sequence fonn. The sequence structure can also be specified explicitly in a SEQUENCE statement
as follows:
SEQUENCE statement-list ENDSEQUENCE
in which the statement list can include any arrangement of MODELS statements.
The statements assembled in a sequence are considered to operate consecutively from the first statement to the last.
[Link] USE
Once defmed, a model can be used in as many instances as needed in the model in which it is defmed. Each instance
is introduced by its own USE statement specifying the defIned model, the usename of the instance, and the directives
controlling its simulation. The syntax for a USE statement is the following:
USE modelname AS usename -.------......
ITERATE
directive
' - - - - - - ENDUSE
where:
- modelname is the name of the used model;
MODELS -- p. 14
- usename is a unique local identifier of each instance of the used model, in the form of a single name or an
indexed name, as foHows: -
-,- name
L name [ expr] J
- ITERATE is a keyword indicating that this instance may be re-used more than once at each time step;
- INPUT directives are used to assign values to the inputs of the model:
- OUTPUT directives are used to assign the values of the outputs of the model to variables of the calling model;
- DATA directives are used to assign values to the data of the model;
- HISTORY directives are used to assign history functions to variables and inputs of the model;
- TIMESTEP directives are used to assign minimum and maximum limits to the execution time step of the
model;
- INTERPOLATION directives are used to specify the interpolation degrees to be applied to the inputs of the
model if the model is used at sub-steps of the external time step;
- DELAY directives are used to specify the size of storage associated with usage of the delayO function in the
model.
A model can be used only in a model in which its name is visible. The name of a model is only visible in the model
in which it is declared (see MODEL DEFINITION, FOREIGN MODEL, EXTERNAL MODEL).
[Link] WRITE
Individual lines of text can be written to the computer's standard output during a simulation, as specified in a model
description in one or more WRITE statements as follows:
WRITE ( write-list)
n=~~:~~:'~
LX~
,
The statement keywords WRITEI and WRITE2 can be used instead of WRITE, to send the respective lines of text
to the files named models.l and models.2 .
[Link] ERROR
Predicted error situations related to the simulation of a model can be stated explicitly in the model, using an
ERROR... STOP structure to specify the pre-termination procedure to be followed before the simulation is halted
in a well-ordered manner.
where the statement list can include any arrangement of MODELS statements.
On completion of the execution of the statement list specified in an ERROR statement, the simulation is
immediately terminated.
2_3.3.3 DEPOSIT
The DEPOSIT statement allows a model to modify the value of any program variable of A TP that can be changed
using ATP's SPY command DEPOSIT. The ATP documentation of the Spy commands describes what program
variables can be modified.
and where a single value can be assigned to single variable, to a single element of an array variable, or to a group
of elements of an array variable.
2.4.1 ARRAYS
The value-holding elements of a model can be specified singly or as elements of unidimensional arrays, with the
following advantages:
- the symmetry or similarity of a group of elements can be made more explicit when an array form is used (for
example in identifying similar inputs to a model)
- the possibility of referring to many instances of a variable or constant under the same name simplifies the use
of repetition structures (WHILE, FOR, DO).
The total index range of an array is inferred from one or more declarations of the elements of the array in the model
definition (see DATA, INPUT, CONSTANTS, VARIABLES). The default index range is one.
A single array element is identified by indicating the name of the array and, within square brackets, a numerical
expression specifying the value of the array index:
name [expr]
A group of array elements is identified by indicating the name of the array and, within square brackets, the two
numerical expressions specifying the index range of the group:
name [ expr .. expr]
When the evaluation of an expression defining the value of an array index yields a non-integer value, a value
rOWlded to the nearest integer is automatically implied and used.
MODELS -- p. 16
2.4.2 CONSTANTS
The constants of a model are named value-holders carrying constant values. Their name, optional array range, and
value are declared in one or more CONST declarations in a model definition as follows:
CONST T constant-element {VAL: expr} l
- where each constant element can be specified as a single name, a single array element, or a group of array
elements, as follows:
name
1 name [expr]
name ( expr .. expr 1 j
- where a single value can be assigned to a single constant, to a single element of a constant array, or to a group
of elements of a constant array sharing the same value;
- and where an array of values can be assigned directly to a group of elements of a constant array by using an
array-value [Link] describe the assigned value.
A number of numerical and logical constants are permanently defmed and are available for use in model
descriptions. Their value can be used directly in any expression of a model (see VALUE REFERENCE,
EXPRESSIONS). Their names are visible in any model, and can be used directly without being declared in a
CONST declaration.
2.4.4 DATA
The data of a model are named value-holders carrying use~defmed constant values. They allow a model to be
described with generic dimensions, coefficients, parameters, and flags which can be assigned specific values at the
time the model is used. Their name. optional array range, and optional default value are declared i.n one or more
DATA declarations in the model definition, and they can then be assigned local values in each USE statement where
the model is used. ..
1 name [ expr ]
name [expr .. expr J j
- where a single default value can be assigned. to a single data, to a single element of a data array, or to a group
of elements of a data array sharing the same value;
- and where an array of default values can be assigned directly to a group of elements of a data array by using
an array-value expression to describe the assigned default value.
In a USE statement, values can be assigned to the data elements of the used model as follows:
DATA T data-element:= expr l
- where a single value can be assigned to a single data, to a single element of a data array, or to a group of
elements of a data array sharing the same value;
- and where an array of values can be assigned in array form to a group of elements of a data array.
Not all data elements of a model need be assigned a value in each model use, provided that a default value has been
specified in the model's DATA declaration for each optional data. assignment.
The value of a data element is determined at the first instant each use of a model is first executed, and remains
constant throughout the rest of the simulation for that model use.
Minimum and maximum limits can be attached to the value of a data element in the expressions describing its
default and assigned values (see EXPRESSIONS).
- references to data values can be used in expressions defining the dimensions of an array in any array range
declaration of a model definition; this allows the size of arrays to be dynamically specified later when the model
is used.
MODELS -- p. 18
2.4.5 VARIABLES
The variables of a model are named value-holders carrying the internal variable values used in a model. Their name
and optional array range are declared in one or more VAR declarations in a model definition as follows:
VAR T var-element )
where each variable element can be specified as a single name, a single array element, or a group of array elements,
as follows:
1
name
name [expr]
name [ expr .. expr ]
J
The variables of a model are used as follows:
- their name and optional array range are declared in one or more VAR declarations in the model defmition;
- their value is assigned and can be modified in any value assignment statement in the model;
- their value can be used in any expression in the model's procedures;
- their value can be used as an output of the model.
A number of variables are permanently defmed and are available for use in a model. Their value can be used directly
in any variable expression of a model (see VALUE REFERENCE), and cannot be modified in assignment
statements in the model. Their names are visible in any model, and can be used directly without being declared in
a V AR declaration.
The following resident variables provide access to the time characteristics of the simulation of a model. A separate
set of values of these variables exists locally for each use of each model. They are:
t the present value of the simulation time in the model;
prevtime the previous value of the simulation time in the model;
timestep the present value of the simulation interval in the model (=t-prevtime);
endtime the external simulation time to which the model is to be updated;
fullstep the total time interval over which the model is to be updated (= endtime - previous endtime);
maxstep the calculated present maximum allowed value of the time step in the model;
minstep the calculated present minimum allowed value of the time step in the model;
Three other resident variables are defmed globally for a simulation. They are:
starttime the value of time at the start of the simulation;
stop time the value of time at which the simulation will end;
startstep the value of the outermost time step at the start of the simulation.
In addition to representing the present value of the simulation time in a model, the variable t can also be used as a
general reference to the value of time in expressions describing history functions in a model (see HISTORY).
MODELS -- p. 19
2.5.1 INPUT
The inputs of a model are named value-holders canying the external input values used in a model. Their name,
optional array range, and optional default value are declared in one or more INPUT declarations in a model
defmition, and they can then be assigned local values in each USE statement where the model is used.
1 name [expr]
name [expr .. expr 1 j
- where a single default value can be assigned to a single input, to a single element of an input array, or to a
group of elements of an input array sharing the same value;
- and where an array of default values can be assigned directly to a group of elements of an mput array by using
an array-value expression to describe the assigned default value.
In a USE statement, values can be assigned to the input elements of the used model as follows:
INPUT T input-element := expr l
- where a single value can be assigned to a single input, to a single element of an input array, or to a group of
elements of an input array sharing the same value;
- and where an array of values can be assigned in array form to a group of elements of an input array.
Not all input elements of a model need be assigned a value in each model use, provided that a default value has been
specified in the model's INPUT declaration for each optional input assignment.
Minimum and maximum limits can be attached to the value of an input in the expressions describing its default and
assigned values (see EXPRESSIONS).
Any input or variable of a model can be used as outputs of the model. Their name and optional array range are
specified as outputs of the model in one or more OUTPUT declarations in the model definition as follows:
OUTPUT T output-element l
where each output element can be specified as a single name, a single array element, or a group of array elements,
as follows:
1 name
name [ expr ] ---~
3
name [ expr " expr ]
In a USE statement, the value of any output of the used model can be assigned to any variable of the calling model.
The use of a model's outputs is specified in one or more OUTPUT directives of a USE statement, as follows:
OUTPUT T var-element := output-element l
- where the value of a single output can be assigned to a single variable, to a single element of a variable array,
or to a group of elements of a variable array assigned the same output value;
- and where the value of a group of elements of an output array can be assigned in array fonn to a group of
elements of a variable array.
All outputs specified in a model definition are available for reference in any use of the model, although not all
outputs need be used in each model use.
2.6 FUNCTIONS
A function describes the method by which a value or an array of values is calculated, given the values assigned to
the function's arguments. When used in an expression, a function returns the value or array of values it calculates.
In addition, two sets of functions are pre-defmed and are available for use in any model:
- resident numerical and logical functions
- resident simulation functions
A statement function is a parametrized expression evaluated according to the values assigned to the function's
arguments. It calculates a numerical value, or an array of numerical values, and is defmed in a model as follows:
FUNCTION name ( T argument-name l
) := expr
MODELS -- p. 21
The input arguments of a function are single elements with names that are local to the function. They are not visible
outside the function, and can be selected without concern for the possible duplication of names already defmed
outside the function. They may not, however, duplicate the names of the resident variables and constants dermed
in MODELS.
A statement function is used by referring to the function's name and providing values for the function'S arguments
in the same order as they appear in the function definition:
function-name ( LXP~ )
,
A statement function can be used in any expression of the model in which it is dermed (see EXPRESSIONS), except
in its own defmition.
Minimum and maximum limits can be attached to the value of the expression describing the statement function in
the function definition (see EXPRESSIONS). Minimum and maximum limits can be attached to the value of the
function's arguments when the function is used, in the expressions describing their value.
A pointlist function is a list of coordinates {(xk'Yk)' k=l..n}, ordered in increasing values of x. The function is
assumed to be defmed over the entire range of x (from -infmity to +infmity) in one of the two following ways:
- either as a continuous function, where the missing inteIIDediate points ('S' y) in
the interval Xk_1 < 'S < x k will be interpolated using linear of quadratic interpolation;
- or as a discontinuous function, where)} holds a constant value equal to Yk-I for each missing inteIIDediate point
('S' y) in the interval Xk_1 < 'S < x k .
A pointlist function is used by referring to the function's name and by providing a value for its "x" argument and
for its optional "pol" argument, in the fOIID of f(x) or f(x,pol), as follows:
function-name (LXP~)
,
- where "x" is the value at which the pointlist function f(x) is to be evaluated;
- and where "pol" is an optional argument indicating the interpolation degree 0, 1, or 2 used for evaluating the
function between its defmed points (O=discontinuous, 1=linear, 2=quadratic) (default= 1).
A pointlist function can be used in any expression of the model in which it is defmed.
When the variable x is considered to be holding values of time, the pointlist function can be considered to represent
a function of time f(t).
MODELS -- p. 22
In addition to defIning functions using the MODELS language, it is also possible to use functions written in other
programming languages. MODELS provides a pre-defmed interface that can be used by the user to connect
"foreign" functions to a simulation. The interface is defmed as one array carrying the input arguments passed to the
function, and returning the output values calculated in the function. For example, a foreign function written in C
would have the form:
double cfun(double xarg[])
{ ...
xarg(O]=.. .
xarg(l]= .. .
xarg(2]=.. .
return 3; 1* indicating it placed 3 values on xarg[] *1
}
where
- cfun: arbitrary name of the foreign function
- xarg: array of values carrying the input and output values of the function
In order to be recognized as a function, a foreign function is declared in the model where it is used. The declaration
is as follows:
FUNCTION name FOREIGN idname {IXARG : expr }
where:
- name: local name by which the foreign function can be referenced in the model;
- idname: arbitrary name used in the connection table of the foreign interface subroutine of MODELS to
recognize calls to this function;
- xarg: pre-defmed keyword that must be used to specify the size of the argument array.
A foreign function must be compiled and linked to the simulation program before it can be called by MODELS. Any
source language may be used, provided that the compiled object code is compatible with the linker available on the
computer platform used to run the simulation. The interface routine of MODELS (in file modOO [Link]) is where the
user registers the correspondence between the idname used in the foreign function declarations, and the actual names
of the foreign functions linked with the program.
A foreign function is .used by referring to the function's name and providing values for the function's arguments in
the same order as they are expected in the foreign function:
function-name (LXP~)
,
A foreign function can be used in any expression of the model in which it is defmed. Minimum and maximum limits
can be attached to the value of the function's arguments when the function is used, with each expression describing
their value.
No function can be used in a model without being flrst declared in that model. If the defmition of a function is not
included in a model in which it is used, it must be declared as EXTERNAL to that model, as follows:
FUNCTION name EXTERNAL
MODELS -- p. 23
The implied search algorithm for the location of the defmition of an external function inspects the model structure
from the local model upward.
A number of numerical and logical functions are permanently defined and are available for use in a model. Their
names are visible in any model, and can be used directly without being declared in a FUNCTION declaration.
A resident function is used by referring to the function's name and by providing values for the function's arguments,
as follows:
function-name (LXPJ)
,
where each argument of the function is assigned a value, in the same sequence as the arguments appear in the
function defmition.
A number of functions which are related to the time simulation of a model are permanently defmed and are available
for use in a model. Their names are visible in any model, and can be used directly without being declared in a
FUNCTION declaration.
A resident simulation function is used by indicating the function's name, the single element to which the function
is applied, and values of any required function arguments, as follows:
function-name ( element =-:=--l
LX~ )
.
- where the element can be any input or variable element of a model, as follows:
-,- name
L name [ expr ] J
- and where, in the case of the functions histdef and histval, the element can also be the integral of any input or
variable of the model:
integral ( -,- name J )
L name [ expr ]
For those functions requiring inteIpolation or extrapolation (seethe list of functions below), the interpolation degree
''pol'' is an optional argument indicating the interpolation degree 0, 1, or 2 used for evaluating the function between
the available values of the element (O=discontinuous, l=linear, 2=quadratic) (default=l).
delay(x,d,pol) past value of x at time (t-d), including references to pre-simulation times using
the history function assigned to x
prevval(x) the value of x at the previous simulation tinle
backval(x,t,pol) past value of x at a time t within the last time step
backtime(x,vai,pol) time at which x had the value val during the last time step
= "undefmed" if not possible
2.7 NAMES
A name is a string of contiguous characters of arbitrary length, starting with a letter, and including any number of
letters, digits, and underscore characters "_". Names in a model are not case-sensitive.
Names are used for identifying models, functions, and value-holding elements (constant, data, input, variable,
function argument, and FOR parameters). The reference to a named element is direct, by simple indication of the
name.
The following identifiers have a reserved interpretation and may not be assigned as names in the description of a
model. They are:
- the names of the resident models, functions, variables, and constants;
- the syntactic keywords of the MODELS language.
A use pathname is the unique pathname describing the location of a model use in a system. It consists of a
contiguous sequence ofusenames, each separated by a period. A USename is the local identification name assigned
to a model in each use of the model, and may be a single name or an indexed array name, as follows:
-,- name
L name [ expr ] J
Use pathnames are used by the simulation program in the printout of warning and error messages.
MODELS -- p. 26
2.8 VALUES
Three types of values are available: numerical values, logical values, and text values.
Numerical values are integer or real values in the interval (-inf,+inf), specified as follows:
Logical values are the values troe and false, and can be specified by using the resident logical constants troe(false,
on/off, closed/open, and yes/no.
A text value is an arbitrary string of characters enclosed in quotes or apostrophes. A string can include any character
except the string delimiter used for enclosing the string.
Numerical values can be used directly as logical values, where they are interpreted as troe when positive, and as
false when negative or zero.
Logical values can be used directly as numerical values, where they are interpreted as having the value 1.0 when
troe, and 0.0 when false.
The value associated with a named value-holding element can be accessed in any expression of the model in which
the name of the element is visible. The value-holding elements visible in a model are:
- the constants, data, variables, and inputs declared in the model
- the resident constants and variables of MODELS
The names of the arguments of a statement function are visible only in the function where they are defmed.
The names of the parameters of a FOR statement are visible only in the statement list associated with the FOR
statement.
The value of an element is accessed directly by using the element's name as a reference to its value.
The reference context of an expression is the model in which the value-holding elements referred to in the
expression are defmed The reference context of most expressions is the model in which the expression is specified.
However, the reference context of some expressions in a USE statement also includes the model being used, as
follows:
- data names of the used model can be referenced in any expression of a USE statement defining values or array
indexes of elements of the used model;
- input names of the used model can be referenced in any expression of a USE statement defming values of
elements of the used model, except values of data elements of the used model.
MODELS -- p. 27
{ [ [MIN.
MAX: expr
eXP'l
}
Static limits ("clipping") can be applied to any of the following calculated values:
- a regular expression
- a sum expression
- a derivative polynomial expression
{ [ [ DMIN • exp,
DMAX: expr
1
}
A static limit modifies the value of a variable outside and independently of the procedure by which the variable is
calculated. A dynamic limit directly affects the procedure used for the calculation of the variable.
In -control circuitry, applying a dynamic limit corresponds to modifying the value of a signal within a component's
internal feedback loop. Applying a static limit corresponds to modifying the value of a signal externally from the
component producing the signal.
MODELS -- p_ 28
The effect of applying an external static limit and an internal dynamic limit to an integral, for instance, is
demonstrated in the following example:
x(t)
-'-----'
2.9 EXPRESSIONS
An expression is a description of the method by which a value is determined. An expression can refer to names of
functions and of value-holding elements visible in the context where the expression is used (see VALUE
REFERENCE). An expression can be used for specifying the value of a single element or of a group of array
elements. It is implicitly an array of one or more elements.
The type of value (numerical or logical) resulting from the evaluation of an expression is determined by the type
of the operators used in the expression.
A regular expression is either a logical expression or a numerical expression depending on the operators used in the
expression. The value of a regular expression is either a single value or an array of values depending on the value
descriptions used in the expression.
- a regular expression consists of one or more logical terms separated by the OR operator:
T I09ic~IRterm T
- a logical term consists of one of more logical factors separated by the AND operator:
~i~~~ctorT
MODELS -- p. 29
- a logical relation consists of two numerical expressions separated by one of the six relational operators:
- - numerical expr - - relational op - numerical expr-
- a numerical expression consists of one or more numerical terms separated by the addition or subtraction
operators + and - :
Tnum~termT
- a numerical tenn consists of one or more numerical factors separated by the mUltiplication or division operators
* and/:
~
xponent relation=r
modulo relation
value reference
- an exponent relation consists of two value references separated by the exponent operator ** :
value-ref ** value-ref
- a modulo relation consists of two value references separated by the modulo operator MOD:
value-ref ** value-ref
1'-------,."""'"'1'"-
:~r:~~~~~e
named value
function value
NOT ( expr )
where:
- a simple numerical value or an array value can be described directly
- a named value, a function value, or a sub-expression can be preceded by the unary numerical or logical
inverse operators - and NOT
MODELS -- p. 30
-..c-+-j"- n-[-l--n-j-'--"["'--E=:==:-n-j"""-
. L+J
where n is any contiguous sequence of decimal digits
- an array value is a list of regular single-value or array-value expressions enclosed in square brackets:
- [--''"""""""'1'-- exp:v-:-J
[ LarraY,~J_
- a named value is:
a reference by name to a single value-holding element,
- a reference by name and array index to a single element of an array,
- or a reference by name and array index range to a group of elements of an array
(when used, the left bracket must immediately follow the name)
name
1 name [expr]
name [ expr .. expr ]
j
- a function value is expressed as a function name followed by a list of argument values
(the left parenthesis must immediately follow the function name)
function-name ([Link]~ )
I
Numerical limits can be applied to the value of a regular expression. Limits applied to an expression are static limits.
{ [ L MIN: expr
MAX: expr
1
They are specified immediately following the expression, enclosed in a pair of braces:
where y can refer to any variable of the model, specified using a single name or a single element of an array:
-,- name
L name [expr] J
The polynomial describes the tenns "a;Xj" of the equation, written as follows:
T [ ~~~~I
~ ~ element-L
where each element can be a single name or a single element of an array:
-,- name
L name [ expr ] J
and where each coefficient can be represented as an arbitrary expression (linear or nonlinear, constant or time-
varying), and is separated from the element by a vertical bar, which is the "applies to" operator of MODELS, with
the meaning of "expression applied to x". Minimum and maximum limits can be specified for any of the coefficients
(see EXPRESSIONS).
Minimum and maximum limits can be assigned to the value of the sum as follows:
y:= sum ( polynomial) { limits}
Limits applied to a sum expression are static limits_ They are specified immediately following the sum expression,
enclosed in a pair of braces:
{ [ (MIN: exprl
MAX: expr
}
An expression is specified as a sum expression when it is necessaxy to put in evidence the linearity of the expression
with respect to the x elements. It can be used as the right-hand side of any value assignment, but is required only
in a COMBINE group of statements (see COMBINE, SIMULTANEOUS ELEMENTS).
References to the value of the fIrst- and second-order time derivatives of an input or variable can be used in any
expression of a modeL by means of the functions deriv(x) and deriv2(x) (see RESIDENT SIMULATION
FUNCTIONS). Alternately, a linear polynomial of the time derivatives of an element can be used, of the fornl:
(a o +ap+ap2+ ... )x
where D is the time derivative operator representing dldt.
In MODELS, a derivative expression can be used for describing a linear polynomial of derivatives, as follows:
y := derivpol ( D-polynomial ) I x
- where y can refer to any variable of the model, and x can refer to any input or variable of the model, each
specified using a single name or a single element of an array:
-,- name
L name [expr] J
- and where the polynomial is separated from the element to which it is applied by a vertical bar, the "applies
to" operator of MODELS, with the meanmg of "polynomial applied to x".
The D-polynomial describes the terms "api" of the equation, written as follows:
TC ~~p~~~
LX~~
where each coefficient can be represented as an arbitrary expression (linear or nonlinear, constant or time-varying),
and is separated from the D operator by a vertical bar, the "applies to" operator of MODELS, with the meaning of
"expression applied to D". Minimum and maximum limits can be specified for any of the coefficients (see
EXPRESSIONS).
Minimum and maximum limit values can be assigned to a derivative polynomial as follows:
y:= derivpol ( D-polynomial ) I x { limits}
Limits applied to a derivative polynomial expression are static limits. They are specified immediately following the
element to which the derivative expression is applied, as follows:
{ [ (MIN :expri
MAX: expr
-}
An expression is specified as a derivative expression when it is necessary to put in evidence the linearity of the
expression with respect to the derivatives of x. It can be used as the right-hand side of any value assignment, but
is required only in a COMBINE group of statements (see COMBINE, SIMULTANEOUS ELEMENTS).
2.9.5 INTEGRALS
The time integral of any input or variable of a model is automatically calculated during the simulation whenever an
integral expression is evaluated. The value of the integral of an element at a given time step is a cumulative value
dependent on the previous value of the integral and on the present and previous value of the integrated element.y
MODELS -- p. 33
where y and x can be references to a single element or to a single array element, of the fonn:
-,- name
L name [ expr ] J
Minimum and maximum limits can be assigned to the value of an integral as follows:
y := integral ( x) {limits}
{ [ ( DMIN : expr
DMAX: expr
1
They are specified immediately following the integral, enclosed in a pair of braces:
The limit applied to an integral is a "dynamic limit". While an external static limit would simply clip the value of
the integral separately from the procedure by which it is calculated, a dynamic limit modifies the calculation
procedure itself by recognizing that the past value used in a later calculation of the integral is the integral's limited
value.
When more than one integral expressions affect the same element at a given time step of a simulation, the integral
is re-evaluated each time it is used, to reflect possible changes in the value of the element to which it applies. Each
new evaluation of the integral during the same time step also releases any previously-applied limit to that integral
at that time step.
The value of an integral can be reset at any time of a simulation, using an integral value assignment. A single value
can be assigned to the integral of a single element, of a single array element, or of a group of array elements sharing
integral ( 1
the same value, by using a single-value integral assignment as follows:
name
name[expr]-------~·
J ):= expr
and an array of values can be assigned to the integral of a group of array elements, using an array-value integral
assignment as follows:
integral ( name [ expr .. expr] ):= array expr
Minimum and maximum limits can be attached to the value assigned to the integral, in the expression describing
the value (see EXPRESSIONS).
From the point where a reset value is assigned to an integral until the end of the execution of that model at that
simulation time, the value of the integral becomes fixed, and is not influenced anymore by the value of the integrated
variable.
MODELS -- p. 34
2.10 FORMAT
The syntax of MODELS allows the use of free-style fonnatting throughout the description of a model. The
interpretation of the description is based exclusively on the use of single keywords (for example, DATA, INPUT,
TlMESTEP) and of sets of delinliters (for example, MODEL. .. ENDMODEL, USE ... ENDUSE, IF ... ELSE ... ENDIF,
"..... ), and by the local context of interpretation defmed by their use.
The interpretation of the description of a model is not sensitive to the case of the identifiers used in the model.
Uppercase letters have been used for identifying the various keywords in this documentation, but only in order to
increase their visibility.
2.10.2 DELIMITERS
Names, numerical values, and reserved keywords, must be written as strings of contiguous characters.
In a name, any character other than a letter, a digit, or the underscore character, is interpreted to indicate the end of
the name (see NAME DEFINITION).
In a numerical value, any character other than a decimal digit, a plus sign, a minus sign, a period, or the letter E, is
interpreted to indicate the end of the numerical value (see VALUE TYPES).
In a reserved keyword, any character other than a letter is interpreted to indicate the end of the keyword (see NAME
DEFINITION).
All groups of commas, semicolons, and white-space characters (spaces, tabs, carriage returns, line feeds), are
interpreted as spaces, with no additional syntactical meaning. There is one exception: a carriage return or line feed
is used to mark the end of an in-line comment.
Line indentation can be used in the description of a model for the purpose of facilitating the reader's identification
of the structure of the model description.
Any space or tab characters used for indenting the lines of a model description are only visual place markers in the
written presentation of the model, and cany no syntactic meaning affecting the interpretation of the description,
other than their regular use as delimiters of names and numerical values (see DELIMITERS).
Blank lines can similarly be used freely for increasing the readability of a model description.
2.10.4 COMMENTS
Comments can be included anywhere in a model description, and do not affect the syntactic interpretation of the
model description.
Two types of comments can be used: in-line comments, and block comments.
An in-line comment is any text beginning with a hyphen string (two or more contiguous hyphens) and ending at
the end of the line.
MODELS -- p. 35
or
ILLUSTRATION --.,.......r---- text :-l
[l graphics 1
- ENDILLUSTRATION
3. MODEL SIMULATION
3.1.1 TIMESTEP
Over the course of a simulation, the state of a model is updated at successive instants of time, every time the model
is called for execution by the environment in which it is used. The size of the time interval between two successive
instants of execution of a model is referred to as the simulation time step of the model.
It is possible to defme limits on the pennitted time interval between successive executions of a model. Variable
minimum and maximum size of a model's time step can be specified in any defInition and in any USE of a model,
using one or more TIMESTEP directives, as follows:
TIMESTEP [ l MIN: expr
MAX: expr
i
Whenever a model is called for execution after a time step that is smaller than the calculated minimum time step,
the execution request is ignored. A model can in this way be executed with a time step larger than the time step used
in the environment in which the model is used, its state and its outputs remaining constant from one execution to
the next.
Whenever a model is called for execution after a time step that is larger than the calculated maximum time step, the
model's local time step is divided into equal sub-steps of a size satisfying the stated maximum, and the model is
executed successively at each sub-step until the complete interval is covered. A model can in this way be executed
with a time step smaller than the time step used in the environment in which the model is used (see
INTERPOLATION for calculation of the inputs to the model at each sub-step).
When no minimum and maximum values are specified for the time step, a model is executed every time it is called
by a USE statement.
The values of the minimum and maximum specifIed for a model's time step in a USE statement are subject to the
minimum and maximum values specified in the defmition of the used model.
MODELS -- p. 36
3.1.2 INTERPOLATION
When a model is executed, the values presented to its inputs by the calling model are values calculated at the
simulation time of the calling model. If the used model runs at sub-steps of the calling model (see TIMESTEP), the
values of the inputs are undefined at those intermediate times, and must be estimated by the model, using
interpolation.
The inputs can be treated as continuous or discontinuous, depending on the level of interpolation used for
calculating their value for sub-step execution (O=discontinuous, 1=linear, 2=quadratic) (default= 1).
The interpolation degree to be applied to the inputs of a model for sub-step execution can be specified for individual
input elements, in the model defmition and in USE statements, in INTERPOLATION DEGREE directives of the
form:
- where a different degree value can be specified for different lists of input elements;
- and where a default degree value can be specified for the remaining unlisted input elements.
1 name [expr]
name [expr .. expr 1 j
When unspecified, a default interpolation degree value of 1 is automatically selected.
An INTERPOLATION DEGREE directive specified in a model defmition applies to all uses of the model, and can
be modified by specifying individual INTERPOLATION DEGREE directives in local USE statements.
Interpolation on the values ofan element x in an interval (Xc, XI) has the following interpretation depending on the
interpolation degree:
o uses the value Xc for any time to <= t < tl
uses the value XI for time t = tl
(equivalent to considering x as a step function oftime)
uses linear interpolation based on the two most recent values of x
2 uses quadratic interpolation based on the three most recent values of x
3.1.3 DELAY
The resident simulation function delayO provides access to past values of the input and variable elements of a
modeL The simulation program reserves a default number of memory cells for each element to which the function
is applied. However, a different number of storage cells can be assigned to any delay element, in the model defmition
1
and in USE statements, in DELAY CELLS directives of the form:
- where a different number of cells can be specified for different lists of elements;
- and where a new default degree value can be specified for the remaining unlisted elements.
1 name [ expr]
name [ expr .. expr]
j
When unspecified, the program reserves a default number of 100 cells for each element to which the delay function
~~~. .
A DELAY CELLS directive specified in a model definition applies to all uses of the model, and can be modified
by specifying individual DELA Y CELLS directives in local USE statements.
Depending on how it is specified, the number of storage cells for each delay element is calculated as follows:
if specified in a DELAY CELLS list in the USE defmition, then that number;
- else if specified in a DELAY CELLS list in the MODEL defmition, then that number;
- else if there ~ a DELAY CELLS DFLT in the USE defmition, then that number;
- else if there is a DELAY CELLS DFLT in the MODEL defmition, then that number;
- else 100 cells.
This allows the developer and. the user of a model to adjust the storage size that is required to match the maximum
number of storage cells necessary for lodging the largest delay value applied to a given element (number of cells =
largest delay value / smallest time step value).
3.2.1 INITIALIZATION
During the simulation of a system, the state of each used model is evaluated repeatedly at discrete instants of time
over a number of time intervals (the time steps of the model) covering the course of the simulation.
Evaluating the state of a used model at a given instant of the simulation consists in calculating the present value of
the model's variables and integrals according to the execution procedure describing the operation of the model (see
EXECUTION), using the values being applied to the model's inputs (see INPUT) and the accumulated history of
some of the model's variables required in the operation of the model.
At the first call for execution of a used model, this evaluation could not be conducted without first knowing the
history of the quantities expected to have been carried from non-existent previous execution times.
The minimum initialization task then consists in defming the pre-simulation history of the quantities expected to
have been carried from the missing previous execution times.
A history function can be associated to any variable of a model. It can be defmed as a general function of time f(t),
including references to pointlist functions and to the history functions of other variables.
MODELS -- p. 38
Three levels of history defmition can be successively applied. The history can be first specified in the defmition of
a model in the form of a default function; then in the HISTORY section of each USE statement; and fmally in the
form of history assignment statements in the !NIT procedure of the model description.
During the simulation of a model, references are made to the past values of an element in the following situations:
- when referring to a variable for which a value has not yet been detennined at the present execution time;
- when using a variable as argument of the simulation functions delay, prevval, predval, predtime, backval,
backtime, histdef, histval, deriv, and deriv2;
- when applying a Laplace or Z function, a differential equation, an integral, or a derivative expression to an
element;
- when using interpolation on the inputs ofa model during sub-step execution (see INTERPOLATION).
These past values do not exist when a reference is for a simulation time preceding the start of the execution of a
model However, it is possible to defme history functions that describe the value of an element for times preceding
the simulation of a model. History functions can be defmed for any element of a model, as follows:
- in HISTORY directives in the definition ofa model;
- in HISTORY directives in a USE statement defining the use of a model;
- in a history assignment statement inside the INIT procedure of a model.
All variables publicly requiring a history function in a model (as opposed to history functions privately defmed in
the INIT section of a model) must be declared in a HISTORY directive of the model definition. HIS TORY directives
in the model defInition can also be used for assigning a default history function to any input or·variable element of
the model. The fonnat ofa HISTORY directive in the model definition is the following:
HISTORY
lL history-element
history-element { DFLT: expr} =l
- where a history element can be a single name, a single array element, or a group of array elements, as follows:
name
1 name [ expr]
name [expr .. expr J J
- where a history element can also be the integral of a single name or of a single array element, as follows:
integral ( -,- name J)
L name [ expr J
- where a single default value can be assigned to a single history element or to a group of array elements sharing
the same value;
- and where an array of default values can be assigned directly to a group of array elements using an array-value
expression to describe the assigned default value.
In a USE statement, history functions are assigned to the elements of the used model in a HISTORY directive of
the form:
HISTORY T history-element := expr l.
MODELS -- p. 39
In the INIT procedure of a model, history functions can be assigned privately (as opposed to publicly in a USE
statement) to elements of the model by using a history assignment statement of tile form:
histdef ( history-element) := expr
Because Laplace or Z functions and differential equations are solved in a model by applying trapezoidal integration
to both sides of the equation, the solution implicitly uses past values of both the driving variable and the calculated
variable. History functions must therefore be defined for both variables if these types of calculation are used in the
ftrst n time steps of the execution of a model, given a s-polynomial or D-polynomial of order n.
Integrals are evaluated using the trapezoidal rule. Their solution implicitly uses the past value of the integrated
variable and of the integral. History functions must therefore be defmed for both if integrals are used at the ftrst step
of an execution without any previous integral value assignment.
No history function or default history function need be assigned to the inputs of a model which is not executed at
sub-steps of the applied time step at the ftrst time step that the model is used.
It is possible to defme, in the model description, an initialization procedure that is different from the regular
execution procedure of the model. The INIT procedure, if present in a model description, is executed once at the ftrst
execution of each use of the model. It can be used, typically, for completing the history assignments required in the
model, and for verifying, correcting, and possibly rejecting the conditions under which the model is being used.
When defmed, the initialization procedure is specifted in the INIT section of a model defmition as follows:
INIT statement-list ENDINIT
The statement list of an INIT procedure may include any statement and function not requiring the existence of a
history for their execution, namely:
- value assignments other than differential equations and Laplace or Z functions;
- history assignment statements;
- integral assignment statements;
- algorithm control statements other than the USE statement;
- the simulation directive statements ERROR and WRITE;
- the simulation functions histdef and histval, but not the functions delay, predval, predtime, backval, backtime,
and prevva1;
- and no derivatives or integrals.
The EXEC procedure is the main procedure of a model. It contains the algorithm describing how the model operates
at the successive instants of the simulation. It is executed each time the model is called by a USE statement.
MODELS -- p, 40
Each time the model is used, the execution procedure updates the values of the variables of the model for the new
simulation time, taking into account the values assigned to the inputs of the model in the USE statement.
The execution procedure is specified in the EXEC section of a model definition as follows:
EXEC statement-fist ENDEXEC
The statement list of the EXEC procedure may include any type of statements except histOIY assi b'l1ment statements
(see STATEMENTS). The execution flow is directed by the algorithm control statements used in the procedure (see
ALGORITHM CONTROL STATEMENTS).
The description of a model may include sets of interdependent variables represented by a group of value
assignments, differential equations, and transfer functions connected in a closed-loop configuration.
The statements describing a group of simultaneous variables can be assembled in a COMBINE statement (see
COMBINE), or can be grouped inside an iterative solution algorithm dermed explicitly in the model using a WHILE
or DO statement.
The distinction between linear and nonlinear groups of simultaneous variables is discussed in the following two
sections.
The statements of a linear COMBINE group are considered to be linear descriptions of the value of the simultaneous
variables ofthe group, with the possible inclusion of one nonlinearity in the form of a limit applied to the value of
one of the group's variables.
The linearity requirement of the linear COMBINE is only with respect to the group's simultaneous variables, and
does not apply to references made to variables external to the group in the expressions describing the coefficients
used in the group's statements.
In the solution, the differential and integral equations of the group are frrst converted to algebraic equations, by
application of the trapezoidal rule of integration. The dependencies of the group's simultaneous variables is then
represented in matrix form, as follows:
[C], x= b
During the simulation, the values of the interdependent variables in x are calculated using the two-step procedure
of, first, Gaussian elimination using Crout's algorithm of LU decomposition, transforming [C] and b into a
triangu1arized form [C w ] and b' which, in tum, are used for evaluating the unknown part of x by back-substitution,
in the form:
[Cw ]' x = b'
When the coefficients in [C] and b remain constant over successive execution times, re-triangularization is not
required and only back-substitution is performed, using the existing values of [C w ] and b'.
MODELS -- p.41
In most instances of a change in the value of some elements of [C] or b from one execution time to the next, only
a partial re-triangularization is sufficient for reflecting the change, either because only a subset of the equations is
affected, or only elements of b are modified. These situations are automatically recognized, and after the partial re-
triangularization is performed, the back-substitution process takes place as usual.
As described in the previous section, a set of simultaneous linear equations can be solved without iteration by using
a linear COMBINE group. Groups of nonlinear simultaneous variables, however, must normally be solved using
some iteration algorithm.
But in cases where the iteration approach would produce longer execution times or convergence difficulties, a
linearized approach may be considered. In cases where the time step is small with respect to the group's time
constants, it is 'often possible to insert delays inside the dependency loops of simultaneous nonlinear equations and
still represent adequately the higher-frequency variations of the group's variables. Under this condition, it is
therefore possible to adequateJy solve simultaneous groups of nonlinear equations by breaking them into a sequence
of smaller linear groups which can be represented without iteration in separate linear COMBINE groups.
As a result of this artificial sequencing, a reference within a linear sub-group to the not-yet-calculated value of one
of the outer group's nonlinear variables is in effect a reference to the value that was calculated at the previous time
step of the simulation. This is equivalent to transferring the previous value of that variable to the sub-group of
independent variables used in the solution of the group's interdependent variables (see example below).
This solution technique is equivalent to introducing a time delay equal to the size of the present time step of the
model and affecting how the present values of some of the group's variables are available for the calculation of the
remaining variables dependent on these values for their evaluation.
The error introduced by this solution method is controlled by prescribing a time step size that is small enough to
ensure that the values of the variables delayed by their exclusion from the group do not vary appreciably from one
execution time to the next. It is recommended to place the artificial delays (that is, to break a feedback loop) on the
value of a slower-varying continuous variable, in order to minjmjze the approximation error.
An example consisting of a closed-loop arrangement of linear components, one nonlinear component, and one limit
is illustrated below using a block diagram representation:
U W
Under the conditions discussed above, the diagram could be reduced to a sequence of individual elements and of
linear COMBINE groups of elements, for the purpose of avoiding the use of an iteration structure for its solution.
In this example, the loop containing the nonlinear element may be opened at one of three possible points in the loop,
as shown below, preferably at a slowly-varying continuous variable. The variables a, c, and d are grouped in a
COMBINE statement and solved simultaneously as a set. The COMBINE group is executed in sequence with the
value assignments of the variables b and nl, in one of the three possible ordering arrangements illustrated below.
MODELS -- p. 42
u w
u w
nl(t-t.t)
MODELS -- p. 43
4. MODELS IN A TP
All models used in a data case must be declared and defmed in the MODELS section of the data case. Once defmed,
these models can be used in a control-type connection to the circuit, or in a circuit-type connection.
In the control-type connection, each application of a model is dcfined with a USE statemcnt placed in the MODELS
section. Inputs are measurements taken from the circuit at simulation time t. and outputs are control signals passed
to the circuit at simulation time t+timestep.
In the circuit-type connection, each application of a model is introduced by defining a type-94 component in the
circuit part of the data case. Inputs are voltage values at the tenninals of the component, and outputs are current
values. Three types of modeling are available: Thevenin, Norton, and iterated.
The MODELS section of the data case is introduced by the keyword MODELS, and ends with the keyword
ENDMODELS. It is placed in the data case immediately before the description of the electrical circuit.
The MODELS section contains the model defmitions of all models used in a simulation. It also contains the
directives indicating use instances of the models used with a control-type connection, for identifying the inputs and
outputs used between the models and the electrical circuit, for declaring the top variables of the MODELS section,
and for recording the values of variables during the simulation.
- Model defmitions:
Each model used in a simulation must be defmed in the MODELS section of the data case. Each model
provides a separate environment where names can be chosen independently from the names existing in the
other models of the data case. A model can be described using the MODELS language, or can be defmed as
a "foreign" model that is written in a programming language (for example, Fortran or C) as a subroutine or a
function that is compiled and linked to ATP prior to running the simulation.
The MODELS section may contain any number of the above INPUT, OUTPUT, VAR, MODEL, USE, and
RECORD directives, in the following format:
The name and type of each variable passed from the electrical circuit to the MODELS section are specified in one
or more INPUT declarations as follows:
INPUT T input-name { type ( id ) } l
where the input names are arbitrary names given to each input;
where the identifier is a node name or a switch name, as required for each type;
and where the input types are v, imssv, i, imssi, switch, mach, tacs, p14, and atp, used as follows:
- v(nodename) indicates the value of the voltage measured at node "nodename";
- imssv(nodename) indicates the imaginary part of the complex steady-state value of the voltage measured at
node "nodename" at t=O;
- i(switchname) or i(nodename) indicates the value of the current measured through the switch named
"switchname", or through the first switch connected to node "nodename" (in the order in which the case data
is presented), with the direction of the current considered to be from "left node" to "right node";
- imssi(switchname) or imssi(nodename) indicates the imaginary part of the complex steady-state value of the
current measured at t=O through the switch named "switchname", or through the first switch connected to node
"nodename" (in the order in which the case data is presented), with the direction of the current considered to
be from "left node" to "right node".
- switch(switchname) or switch.(nodename) indicates the status of the switch named "switchname", or of the first
switch connected to node "nodename" (in the order in which the case data is presented);
= 0 when the switch is OPEN
= 1 when the switch is CLOSED
- mach(varname) indicates the value of an electrical or mechanical variable internal to a machine, as specified
in the documentation of the synchronous machine and of the universal machine for variables which can be used
by T ACS and MODELS;
- tacs(vamame) indicates the value of a variable from the TACS section of the data case;
- pI4(number) indicates the curve number of a signal obtained from a PL4 plot file; the PL4 fIle is identified in
ATP using a "POSTPROCESS PLOT FILE" request.
- atp(name), or atp(name[expression]), indicates the value of a single A TP program variable or array element
accessible by ATP's SPY command EXAMINE.
MODELS -- p. 45
The names chosen for identifying the MODELS inputs are not visible outside MODELS, and can be selected
without concern for the possible duplication of names already used in the electrical circuit_
In the electrical circuit, output variables from MODELS are used identically to output variables from TACS.
The MODELS output variables passed to the electrical circuit must be declared globally in one or more OUTPUT
declarations as follows:
OUTPUT T output-name l
Values can be assigned to the MODELS output variables in any USE statement of the MODELS section. Once
assigned, the output values can be used as input to other USE statements of the MODELS section as well as control
variables in the electrical circuit.
The names of the MODELS outputs are limited in length to 6 characters, in order to be compatible with the names
that can be used in A TP.
The names chosen for identifying the global MODELS outputs are not visible from inside the models defmed in the
MODELS section. They can be selected without concern for the possible duplication of names already used in the
models.
Variables can be defmed in the MODELS section for carrying information between the models used in the
MODELS section.
These "top" variables of the MODELS section must be declared in one or more V AR declarations as follows:
VAR T var-name l
Values can be assigned to these variables from outputs of any USE statement at the top level. Once assigned, their
value can be used as input to other USE statements at the top level.
The names of these top variables are limited in length to 6 characters, in order to be compatible with the name
storage of ATP.
The names chosen for identifying these top variables are not visible from inside the models defmed in the MODELS
section. They can be selected without concern for the possible duplication of names already used in the models.
MODELS -- p. 46
A recording of the values of any value-holding element of a model or submodel (except arguments of FOR
statements) can be included in the ATP printouUpiotting list. The recording is done at each execution time step of
the electrical modeL
The values that will be included in the A TP pri.11touUplotting list can be specified in one or more RECORD
directives, in the following format:
RECORD T record-element AS labell
where each recorded element is assigned a 1- to 6-character label to be used by ATP to identify the element in the
printout/plotting list;
and where each recorded element is identified by its name, optionally preceded by an indication of where it is used,
as follows: -
--r-------..,,- value-element -
F usename .3'
When a recorded element is an input, output, or top variable of the MODELS section, no path is required. When
it belongs to a model or submodel called from a USE statement of the MODELS section, the path is the sequence
of use names of the models leading to its location, separated by periods. A use name is the AS labe! given to each
used instance of a modeL
The path of an element belonging to a model called from a type-94 component of the A TP simulation is an 18-
character name formed using the left node name, the right node name, and the model name. All blank characters in
these three names are each replaced by underscore characters '_', in order to form a single I8-character label, which
is then followed by a period and the name of the recorded element from inside that model.
Instead of being used in a control connection to the circuit, a model can also be used as a circuit element in the
circuit part of a data case. In this case, all inputs, outputs, data, and use directives for that model are generated
automatically by the type-94 component referring to that model. For this type of model use, no USE statement is
needed in the MODELS section of the data case, because the model is called directly by the type-94 component
during the simulation.
The type-94 component (Thevenin, iterated, or Norton) is a general nonlinear single- or multi-phase circuit
component. It allows the user to simulate arbitraty nonlinear circuit and control elements in a circuit. The operation
of the component can be described in MODELS, and also in procedures written in other languages called from
MODELS. The interaction between the model and the rest of the circuit is defmed in terms of voltage, current and
impedance or admittance at the terminals of the component.
In the Thevenin type, the component sees the rest of the linear circuit as a Thevenin equivalent. Inputs are Thevenin
voltages and resistance matrix at the terminals of the component. The model calculates the value of the resulting
current at each time step.
In the iterated type, a group of nonlinear components see the rest of the linear circuit as a Thevenin equivalent, and
each calculate their current (outputs) corresponding to estimated voltages (inputs) provided by A TP's Newton
iteration algorithm.
Both of these approaches provide a solution synchronized with the rest of the circuit. In the Thevenin type, it is the
model that solves the Thevenin circuit equation. In the iterated type, that solution is done by A TP. In cases with only
MODELS -- p" 47
one nonlinear component (which can be multi-phase), the Thevenin type can be used, and provides a faster
execution time as it avoids iteration. The iterated type allows to connect more than one nonlinear components (type-
94 and others) per subnetwork.
For the Norton type, the circuit sees the component as a Norton equi\"alent, an admittance to ground in parallel with
a current source. For a multi-phase component. the admittance to ground is a matrix. and there is a current source
at each node. At each time step, the component receives node voltage valueS as inputs. and calculates as outputs the
admittance and current sources to be used in the circuit solution at the next time step. No iteration is performed by
ATP. Changes in values take effect with a delay of one time step. The time step delay is not a problem for passive
components, as this is the same method already used in ATP for the representation of inductances, capacitances,
and transmission lines. The current sources typically represent past values, and can be easily synchronized, using
prediction, with the solution time at which they will be used. The only values affected by the delay are the
admittance values, with normally negligible consequences.
In the Norton case, when admittance values change, A TP must re-triangularize the admittance matrix of the circuit.
Because of the relatively time-consuming re-triangularization,. this type is best used for infrequently-changing values
of admittances. There is no execution cost in having frequently-changing values of the current sources. Under these
conditions, the Norton type-94 is faster than the other two, because ATP is not required. to calculate a Thevenin
equivalent at each time step (needed for Thevenin and iterated), and because no iteration is taking place (needed for
iterated). The Norton approach also provides the greatest flexibility in component representation, because it allows
the user to directly control values in the admittance matrix of the ATP solution.
Because the admittance or admittance matrix supplied by the Norton type-94 component is an admittance to ground,
this type is normally used with its left nodes connected to the circuit, and its right nodes unconnected. This provides
an opportunity to assign the following additional function to this component: when the component is connected to
the circuit on both sides, it is interpreted by A TP to be operating in transmission mode, actually isolating the
subnetworks on each side from each other. Each side of the component provides its own admittance matrix and set
of current sources to the circuit. This interpretation is not possible with the Thevenin and iterated types, because
they are branch-based instead of node-based.
The type-94 component is seen by ATP as an electrical black box connected to the circuit. The black box may be
a one-branch component or a multi-branch component. It is specified in the data case along with the other branches
of the circuit. The model it uses is placed in the MODELS section of the data case, and doesn't need a corresponding
USE statement.
A single-branch type-94 iterated component between nodes Al and Bland using a model named 'ml' would be
specified as follows:
94A1 B1 M1 ITER
>END
MODELS -- p. 48
A multi-branch component is specified in a similar way, with the additional branches following the first card,
without repeating the model information:
94Al B1 Ml ITER
94A2 B2
94A3 B3
etc. "
>END
Data values can be assigned to the model used by the component, just like in a USE statement of MODELS. Each
data card specifies the name of the parameter expected by the model, and its value, as follows:
94A1 B1 M1 ITER
94A2 B2
94A3 B3
>DATA 01 xxxxxxxxxx
>OATA 02 xxxxxxxxxx
>etc ...
>END
Like other nonlinear branches in A TP, the type-94 branches are excluded from the initial linear steady-state
calculations by ATP. Typically, a user would represent a simplified operation of the component during steady-state
in a separate sub-circuit, using the 'phasor' keyword or switches to remove this sub-circuit from the solution at t>O.
Steady-state voltages and currents from such a sub-circui.t can be used to initialize the operating point of the type-94
component, using SSI and SSV lines as follows:
94A1 B1 M1 ITER
94A2 B2
94A3 B3
>OATA 01 xxxxxxxxxx
>OATA D2 xxxxxxxxxx
>ssv KA Vol tage (t"'O) at left-node #1 = voltage at node KA
>SSV #2 = default existing value at A2
>SSV KB #3 = voltage at node KB
>SSV KC Voltage (t"'O) at right-node #1 = voltage at node KC
>SSV #2 = default existing value at B2
>SSV KD " " " #3 '" voltage at node KO
>SSI KA Current (t=O) into left-node #1 = current in switch KA
>SSI " #2 default value of zero
>SSI KB " " iI3= current in switch KB
>END
N-branch Thevenin and iterated types can use up to 2n SSV values and up to n SSI values. N-phase non-
transmission Norton components can use up to n SSV and n SSI values. Transmission-mode Norton components
can use up to 2n SSV and 2n SSI value, n for each side.
The following are templates for building models to be used by type-94 components.
MODEL name
comment ----------------------------------------------------------------------
I First, declarations required for any type-94 Thevenin model I
I - these data and input values are provided to the model by ATP I
I - these output values are used by ATP I
I - these names can be changed, except 'n', but not their order I
------------------------------------------------------------------- endcomment
DATA n number of node pairs
n2 {dflt: n*n} number of matrix elements
INPUT vth [1. • n] Thev. voltage(t) across each branch
rth [1. . n2] Thev. resistance(t) matrix, symmetrical
gth II.. n2] inverse of rth
vO[1..nJ voltage (t=O) across each branch
iO [1. .nJ current (t"'O) into each branch
MODELS -- p. 49
VAR v(I. .n) calculated voltage{t) across each branch
i [1. . n) calculated current{t) into each branch
OUTPUT i(1..n)
comment ----------------------------------------------------------------------
I Next, declarations of user-defined data for this particular model
I - their value is defined at the time of using the type-94 component
------------------------------------------------~------------------ endcomment
DATA
comment ----------------------------------------------------------------------
I Next, declarations private to the operation of this model
------------------------------------------------------------------- endcomment
VAR •.•
INIT
ENDINIT
EXEC
ENDEXEC
END1'10DEL
MODEL name
comment --------------------~-------------------------------------------------
I First, declarations required for any type-94 Thevenin model I
I - these data and input values are provided to the model by ATP I
I - these output values are used by ATP I
I - these names can be changed, except 'n', but not their order I
- .. ----------------------------------------------------------------- endcomment
DATA n number of node pairs
n2 {dflt: n*n} number of matrix elements
INPUT v[1. .n) guessed voltage(t) across each node pair
vO[1..n) voltage (t=O) across each node pair
iO[l. .n) current (t=O) into each left node
VAR ill. .n) calculated current{t) into each left node
didv[l. .n2) calculated left-side nodal conductance(t) matrix
(formed for solving matrix equation [didv)V=I)
comment ----------------------------------------------------------------------
I Next, declarations of user-defined data for this particular model I
I - their value is defined at the time of using the type-94 component I
--,----------------------------------------------------------------- endcomment
DATA
comment ----------------------------------------------------------------------
I Next, declarations private to the operation of this model I
------------------------------------------------------------------- endcomment
VAH ...
INIT
ENDINIT
EXEC
ENDEXEC
ENDM,ODEL
MODELS .- p. 50
MODEL name
comment ----------------------------------------------------------------------
I First, declarations required for any type-94 Thevenin model I
I - these data and input values are provided to the model by ATP I
I - these output values are used by ATP I
I - these names can be changed, except 'n', but not their order I
------------------------------------------------------------------- endcomment
DATA n number of phases
ng {dflt: n*(n+1)/2} -- number of conductances
comment ----------------------------------------------------------------------
I Next, declarations of user-defined data for this particular model I
I - their value is defined at the time of using the type-94 component I
------------------------------------------------------------------- end comment
DATA
comment ----------------~-----------------------------------------------------
I Next, declarations private to the operation of this model I
------------------------------------------------------------------- endcomment
VAR •••
INIT
ENDINIT
EXEC
ENDEXEC
ENDMODEL
MODEL name
comment ----------------------------------------------------------------------
I First, declarations required for any type-94 Thevenin model I
I - these data and input values are provided to the model by ATP I
I - these output values are used by ATP I
I - these names can be changed, except 'n', but not their order I
------------------------------------------------------------------- endcomment
DATA n number of phases
ng {dflt: n*(n+l)/2) -- number of conductances on each side
INPUT Iv[l. .n) voltage(t} at each left node
rv[1. .n) " right node
IvO [1. .n) voltage (t=O) at each left node
rvO [1. .n) ".. right node
liO [1. .n) current (t=O) into each left node
riO [1.: n) .. right node
VAR li[l. .n) current(t} into each left node (for printout/plotting)
ri[l. .n) .. right node .." "
lis [1. .n) Norton source(t+timestep} at each left node
ris[1. .n) .. right node
19[1. .ng) conductance (t+timestep) at each left node
rg[1. .ng) " right node
sequence is I-gr, 1-2, 1-3 .• 1-n, 2-gr, 2-3 .. 2-n, n-gr
flag set to 1 whenever a conductance value is modified
comment ----------------------------------------------------------------------
I Next, declarations of user-defined data for this particular model
I - their value is defined at the time of using the type-94 component
------------------------------------------------------------------- endcomment
DATA
INIT
ENDINIT
EXEC
ENDEXEC
ENDMODEL
Introduction - 1
Introduction
3. Different formats
The "$VINTAGE. 1"-card. which is honoured by most computer systems, provides
for an alternate high-precision format. Specifically the R. L and C fields are
switched from limited accuracy (E6.2) to extended accuracy (E16.0) when the request
card "$VINTAGE, 1" precedes a branch card (grouping). If " $VINTAGE , 0" follows
this card (grouping). the high-precision format will be toggled to a normal format.
For example:
$VINTAGE, 1
lumped series R-L-C branches of any type (e.g. type 0: uncoupled RLC; type
1,2.3 •••• : coupled RLC; type 51.52,53, ••• : coupled RL) as long as they use
the high-preciSion formats.
$VINTAGE, 0
4. COnnectivity definition
Each branch is defined by its terminal ends (BUS1 and BUS2). By allocating
node names to these terminal ends, the network connectivity is defined. But in
effect. the terminal node names do not uniquely specify the branch; just think
about two (or more) parallel branches having the same terminal node names. Only
in a limited number of cases, it will be necessary to distinct between branches;
• Branch output request (column 8O-punch)
. Reference branch usage (see next paragraph).
If no special care is taken, the order of appearance in the input is withheld
for parallel branches. If two or more parallel branches occur in the input, it is
the first one appearing that will be used as reference branch or that will generate
the requested branch output.
When distinction should be made between two parallel branches, it is sufficient
to alter the sequence of the node names. This simple action indeed is sufficient
to distinct between two parallel branches.
Example; Suppose one wants to define two parallel branches between node NODA
and NODB. For one branch. BUS1 = NODAand BUS2 = NODB. For the other
branch, BUS1 =NODB and BUS2 =
NODA.
When dis tinction should be made between more then two parallel branches. users'
inventivity is called upon. Possible solutions; define an extra. intermediate node
by splitting the series RLC in two different parts. or by using dummy measuring
switches.
IV.A.l. ARRlication
1 GENERAL USAGE;
Uncoupled or single phase. lumped series RLC branches specify the non-zero
impedance of a branch between two named nodes. or between one named node and the
ground (no special name. but just a blank will be sufficient to specify the ground).
This impedance can be either a resistance. a capacitor. an inductor or a series
connection of any of these.
R R L R L C
~
L C
0-----1 ~
Within FIX SOURCE. a data generator is available that converts the active and
reactive loads(P and Q} into equivalent RLC branches (uncoupled. lumped series
elements). See section X (FIX SOURCE) for more details.
2 SPECIAL USAGE;
The uncoupled. lumped series RLC element can be used for following purposes:
- measure the branch current or voltage (see remark 2).
break closed loops of parallel connected switches (e. g. thyristor and
free-wheeling diode).
damp out numerical oscillations which could occur when interrupting the
current in an inductor. or applying a step voltage to a capacitor (i.e.
scaling of a resistance by the time step DELTAT - see section IV.A.3;
remark 7),
link a floating. subnetwork to the reference network (e.g. delta connected
loads. ungrounded transformer or machine windings).
Remarks:
- There are limitations on the values of the resistance; there is a maximum
and a minimum resistance we have to take into account (remark 5 and 6 of
section IV.B.3.).
- For current-sampling purposes, there is also another facility called a
measuring switch (remark 6 of section IV.B.3.).
- Usage of a high-precision format is explained in section IV.B.2-2.
IV.A. Branch carda for uncoupled. lumped aerie. RLC branchea (type 0) - 5
3 [Link]. FORMAT
Besides the regular format and the high-precision format, a third (but tricky)
way can be used to input RLC branches. This input is called FREE FORMAT, but it
is not totally "free". Some important rules apply here:
separate each field by comma's (i.e. last sign of the variable CHRCOM in
the STARTUP file);
- blanks are totally ignored. and node names are left adjusted;
- do not input node names after column 26;
- do not input values before column 27;
- Make sure there is always a total of five comma's before column 26 (delimiting
one type field and four node name fields) and a total of eight comma's
should follow column 27 (delimiting three numeric fields for R, L, C.
augmented by 6 dummy fields, probably to make the format compatible wi th
the type l,2.3-format).
- for output requests you still MUST use column 80;
- if a zero is not entered explicitly, the comma should nevertheless always
be entered (even for column 1).
With these rules. only column 27 and possibly column 80 must be determined as
position information. On the other hand. a painstaking count of comma's is necessary.
IV.A,3. Parameters
1) There are two different ways to specify or alter XOPT and COPT. They can
be defined in the miscellaneous cards (see II-B.), or one can use the $UNITS
card. This card can be inserted in the branch card grouping, on several
places, to switch the units of the capacitors and inductors any time. The
use of the $UNITS ~ard is further explained in section I-D-15.
2} At least one value of R, L and C per branch must be non-zero.
3) When a branch has only one or two elements (R, L, Rand C, L and C, etc.),
just leave the fields blank of the elements which do not occur in the branch.
4) When using a reference branch which has other branches in parallel, it is
not clear which of them should be the reference branch. Therefore the highest
mentioned branch among the parallel branched always is the reference branch.
Note that NODEA to NODEB and NODEB to NODEA are two different node-name
pairs. These can therefore be used as two distinct reference branches.
5) A high resistance. being used for voltage sampling for example. may not
exceed the maximum resistance value, which depends on the computer system.
The general rule is that R must not exceed the square root of the largest
number which the computer system can represent in floating-point form (e.g.
1.E1B ohms on Univac and Honeywell/GE, 1.E35 ohms on IBM and 1.E100 ohms
on CDC).
Startup file parameter FLTINF contains the maximum resistance value.
6) A low resistance, being used for current sampling for example, may not be
taken lower then the minimum resistance value, which depends on the computer
system and the program release. Following limitations exist:
- the fundamental limitation is due to floating-point word length (system
dependen t) •
- the .singularity tolerance parameters EPSILN and TOLMAT. The general
idea is that all impedances which terminate on a given node should
not differ drastically in value, as measured by the just-mentioned
singulari ty tolerances. Specific relevant points related hereto
include the following:
EPSILN = singularity tolerance for real, all-resistive transient
equivalent-network solutions. For transient studies, the
impedances in question are equivalent Norton resistances,
depending not only on the element. but also on the time
step DELTAT.
• For a resistor, this is just the value of the resistance
in Ohms.
• For an inductor of L Henries, the equivalent resistance
is 2L/DELTAT.
• For a capacitor of C Farads, the equivalent resistance
equals DELTAT/2C.
pistributed parameter lines or cables can be treated like
a resistor having a resistance equal to the characteristic
impedance.
EPSILN can be specified in the floating-point miscellaneous
data card. or in the .startup file.
TOLMAT = singularity tolarance for complex (i.e. phasor) admittance
solutions during steady state ini tial condi tions. For steady
state studies. the impedances in question are phasor
impedances. depending not only on the element but also on
the frequency f of the sinusoidal excitation being used.
· For a resistor. this is just the value of the resistance.
· For an inductor. this is 2nf*L.
IV.A. Branch card. for uncoupled. lWllped series RLC branches (type 0) - 7
IV.A.4. Examples
e 1 2 3 4 5 678
e 345678901234567890123456789012345678901234567890123456789012345678901234567890
VOLT-A10-A 1. 123 •• 211-3
$VINTAGE. 1
$UNITS. O. 0
BUSA BUSB 12.8000000000000 10. 3
$VINTAOE. 0
$UNITS. -1. -1
VOLT-B10-B VOLT-AlO-A 1
PORT 300.
e 1 23 4 5 6 7 8
e 345678901234567890123456789012345678901234567890123456789012345678901234567890
IV.A. Branch carda ~or uncoupled, lumped aeriea RLC branchea (type 0) - 8
The examples in the above figure are representing the branches following below.
Presume that XOPT and COPT are set to 0 respectively 60 (Hz) in the miscellaneous
data cards. When we switch to high-precision notation, we also use the SUNITS, 0, 0
card to change the units of the capacitance to pF (the units of the inductance
remain the same, because XOPT already was 0). At this point. we have to be careful
when weare going to use referencing. The branch with nodenames VOLT-B and 10-B
will use now the reference branch with nodenames VOLT-A and 10-A. Therefor the
units must be the same for these two branches. To switch to the old units again,
we will use the SUNITS, -1, -1 card.
The current of the branch with terminal nodes VOLT-B and 10-B will be included
in the output as well as both current and voltage of branch BUSA to BUSB.
VOLT-A ~ ~ 10-A
12.8 mH 10 P F
8USA 0 I .~ BUSS
VOLT-8 ~ ~ 10-8
PORT
3000
IV.B. Branch card. for .utually coupled RLC element. (type 1.2.3) - 9
IV.B. Branch cards for mutually coupled RLC elements (type 1,2,3)
IV.B.I. Applications
1 GENERAL USAGEi
First of all it is important to realize that, in contrast with the previous
branches (type 0), the capacitance values specified on the input cards of type
1,2,3 are for shunt connected capacitances, not for series connected ones. A further
observation worth reminding is that the capacitance value that is entered, is
internally allocated half at the beginning and half at the end of the model.
R L
c
R L
• 1 dV t •
i --[C]-+i tm
t 2 dt
• 1 dUm.
im - Z[C]dT- i tm
Note that all matrices are assumed to be symmetric and that the matrix of the
capacitance is split in two, with half of the total on each end of the branch.
This model, better known as a multi-phase nominal PI-equivalent, can be used
to simulate transient phenomena on short lines or cables. By connecting many short
sections in series, keeping track of any actual transposition (if any), even a
transient model for a long line can be obtained. Yet because of increased running
time and memory requirements, this modelling should generally be used only as a
last resort, where more sophisticated models (e.g. distributed-parameter models)
IV.B. Branch card. for mutually coupled RLe element. (type 1.2.3) - 10
are believed to be inadequate. Note that this is DQ!. the CASCADED PI option referred
to in section IV.F; cascaded PI uses the long-line equivalent, which is valid only
for steady state, at one specific frequency.
The supporting routine LINE CONSTANTS (section XXI-E) or CABLE CONSTANTS
(section XXIII-B) can be used as data generator for type 1.2.3 branch cards. Indeed
the parameters [R], [L] and [C] cannot easily be calculated by hand.
But also transformers can be modelled using PI-equivalents. Because most
transformers have a small P.U. excitation current. the admittance matrix is nearly
singular. The leakage impedance is rather low and can be obtained by substracting
the mutual impedance from the self-impedance. Because off the fact that the
admittance matrix is ill-conditioned, the leakage impedance can get lost in the
magnetizing impedance. Therefor. it is necessary to have sufficient accuracy for
the inductance. Hence, the normal card format (E6.0) is not sufficient. For
transformers, either the alternative high-precision format should be used (see
section IV.B.2 and related data generator BCTRAN, section XIX-C} , or a more
appropriate branch card format (type 51-52-53. see section IV-C) should be used
(see data generator XFORMER. section XIX-A). In the ideal case of non-existing (or
very low) P.U. excitation currents, the inductance matrix does not even exist. For
this special situation. a special option (AR notation) is used. Here, A stand for
L-l (the inverse of the inductance). which does exist (be it almost singular). This
is later explained in more detail (see section IV.B.2). In both cases (AR and RL
notation), the positions for the capacitance can be used succesfully to derive
frequency dependent transformer models. where one needs to take into account the
interwinding capacitances. as well as the capacitances to ground. At this moment
(November 1990) , no related automatic data generator is available within EMTP.
2 SPECIAL USAGE:
A first special situation is when [C] = [0] (there are no capacitances). This
case represents only mutually-coupled RL branches. for which even a separate input
format {type 51,52,53, see section IV.C.} has been provided. This is the normal
situation for transformer modelling.
r R L
O~--~I~~r--~""r--rl---0
1
I I
I I
I
I
R L I
I
O~--~I--~c==Jr--~""r--r1---0
I I
I I
I R L I
0~--41--~c:=J I o
L_________________J
I I
Coupling
c
c
c
c
Note hereby that the series impedances must be chosen large enough to represent
an open-circuit. Recall. that there is a limitation on the used values (see section
IV.A.3). The C-matrix. specified in the input file must be twice the desired final
matrix values, as mentioned before. Recall that the specified value is internally
allocated half to the beginning and half to the far end of the model.
One can also obtain a single phase (i.e. uncoupled) PI-equivalent. The difference
with the representation by uncoupled, lumped series RLC branches is that you can
enter the shunt capacitance to ground directly instead of having to introduce two
separate branches for this purpose. The only thing you have to do, is using branch
type number 1.
I' If IE
~ l<fE If Ie I~ i'f~ H rn~ Ie I: I~~~ fE Imlc I: i.t: ff tm .: t' f~l( I" ~ ~I f tIi~ Ie I~ rf ,~Ie
w node names reference br. elements (k. m) elements (k. m+ 1) elements (k. m+2)
CL
~
BUS1 BUS2 BUS3 BUS4 R L C R L C R L C
If there is no special request card, the normal format is in use. The R, L and
C fields only have a limited accuracy (E6.2 format). See section IV.B.3 (remarks)
for further usage.
IE If
I: l~~! If Ie I' ~! tC I: ~f p ~. H tit! t·t' I!I! m~l( I: ~~ tll!l( ~, rlt~l(
AR notation
In some cases. the [L]-l-matrix is ill-conditionned or singular. so [L] does
not exist. Therefor the AR notation is used. "A" stands for the [L]-l-matrix and
"R" stands for the [R]-matrix.
Switching to the AR notation can be done by the following card:
Now we have to be carefull when punching the data in the input format. The
[L]-l-matrix replaces R in the input format. In the same way, the [R]-matrix replaces
L in the input format.
Remarks:
- This notation can not be used for single-phase situations; only for coupled
phases (minimum two).
- Before using the AR notation, the program automatically sets XOPT as 0.1591549
(XOPT - -i;). In this case w = 1. COPT remains unchanged. The values of the
corresponding term of the inverse of L are now to be specified in Henry-l.
Before switching to the RL notation. the old value of XOPT can be restored
using the command SUNITS,-1,-1.
- The AR notation can be combined with the use of the high extention format
($VINTAGE, 1) and the free format.
IV.B.3. Parameters
a} for $VINTAGE, 0:
Rll Lll
2 S8 R8 R21 L2l C2l R22 L22 C22
3 SC RC R31 L31 C3l R32 L32 C32 R33 L33 C33
4 SO RD R41 L4l C4l R42 L42 C42 R43 L43 C43
R44 L44 C44
5 SE RE R51 L51 C5l R52 L52 C52 R53 L53 C53
R54 LS4 C54 R55 L55 C55
: Etc:.
b) for$VINTAGE, 1:
It IE
• IE Ie I ~ 1.11< rEfS f'; IE ~c I·f~ IE ~~ I!~E .. i~ If~SIC ~E Ie I' tEis:c
1 SA RA Rll Lll Cll
2 S8 RB R2l L21 C2l
R22 L22 C22
3 SC RC R3l l3l C3l
R32 L32 C32
R33 L33 C33
4 SO RO R4l L41 C41
: Etc:.
3) No branch current output is possible for this branch type. However, the
branch voltage can be obtained on the first two phases. In these phases,
column 80 is still free and can therefor be used to punch number 2 for
branch voltage output requests. By the next phases, column 80 is occupied
(at least for $VINTAGE,O) and can therefore not be used for output requests.
IV.B. Branch card. for autua11r coupled RLC element. (trPe 1.2.3) - 15
IY.B.4. Examples
The next example contains two identical.3-phase circuits. Together, these two
circuits constitute six coupled conductors. With two. identical PI-equivalents
cascaded, the data cards appear as follows:
C 1 2 3 4 567 8
C 345678901234567890123456789012345678901234567890123456789012345678901234567890
$t1NITS. 60. 0
110-A 20-A 1.41 8.334 .164
210-B 20-B 0.972.8586-.0289 1.239.1392 .1626
310-C 20-c 0.912.2823-.0088 0.863.4218-.0273 1.16 9.518 .1662
411-A 21-A 1.002.0984-.0180 0.942.1248-.0101 0.902.0398-.0053
1.41 8.334 .164
511-B 21-B 0.942.1248-.0101 0.892.5064-.0104 0.862.6454-.0087
0.972.8586-.0289 1.239.1392 .1626
611-C 21-C 0.902.0398-.0053 0.862.6454-.0087 0.833.1597-.0142
0.912.2823-.0088 0.863.4218-.0273 1.16 9.518 .1662
C 1 2 345 678
C 345678901234567890123456789012345678901234567890123456789012345678901234567890
USE AR
$VINTAGE. 1.
IBUS1 RBUSH 2.4311266503345 1.369233463069
2BUS[Link]RBUSL -29.04015078715 0.0
361.43763967638 .0095961038351
.06629545237001 0.0
-.7919085305828 0.0
2.4311266503345 1.369233463069
-.7919085305828 0.0
23.900085059572 0.0
-29.04015078715 0.0
361.43763967638 .0095961038351
.06629545237001 0.0
-.7919085305828 0.0
.06629545237001 0.0
-.7919085305828 0.0
2.4311266503345 1.369233463069
-.7919085305828 0.0
23.900085059572 0.0
-.7919085305828 0.0
23.900085059572 0.0
-29.04015078715 0.0
361.43763967638 .0095961038351
USE RL
$VINTAGE. O.
$UNITS. -1. -1 (do not forget thi.1
C 1 234 5 678
C 345678901234567890123456789012345678901234567890123456789012345678901234567890
120-A 30-A 10-A 20-A
220-B 30-B
320-C 30-C
421-A 31-A
521-B 31-B
621-C 31-C
As you can see in the grid, following matrices are used in the first six phases
)
of the PI-equivalent:
1.41 8.3340
0.97 1.23 2.8586 9.1392
0.91 0.86 1.16 2.2823 3.4218 9.5180
[R]- n [wL]- n
1.00 0.94 0.90 1.41 2.0984 2.1248 2.0398 8.3340
0.94 0.89 0.86 0.97 1.23 2.1248 2.5064 2.6454 2.8586 9.1392
0.90 0.86 0.83 0.91 0.86 1.16 2.0398 2.6454 3.1597 2.2823 3.4218 9.5180
IV.B. Branch card. for mutually coupled RLC element. (type 1.2.3) - 16
0.1640
-0.0289 0.1626
-0.0088 -0.0273 0.1662
[C]- I1F
-0.0180 -0.0101 -0.0053 0.1640
-0.0101 -0.0104 -0.0087 -0.0289 0.1626
-0.0053 -0.0087 -0.0142 -0.0088 -0.0273 0.1662
Remark the symmetric structure of each matrix and interprete the units of the
[L] matrix in ohms (XOPT is set to 60 Hz). The next 6 phases represent a multiphase
transformer. The AR notation is used representing following matrices:
2.4311266503345
- 29.04015078715 316.43763967638
(Ll- I • • 06629545237001 -.7919085305828 2.4311266503345
-.7919085305828 23.900085059572 - 29 .040 15078715 361.43763967638
[ .06629545237001
3" . ".3"",.]
- .7919085305828 .06629545237001 -.7919085305828 2.4311266503345
-.7919085305828 23.900085059572 -.7919085305828 23.900085059572 -29.04015078715
1.369233463069
0.0 .0095961038351
0.0 0.0 1.369233463069
[RJ • n
0.0 0.0 0.0 .0095961038351
f 0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
1.369233463069
0.0 .009596 103835.J
The high-precision format ($VINTAGE, 1) is also used, because the transformer
needs this format to be as accurate as possible.
Remark the use of $UNITS, -1, -1 which resets the old units of the inductors
(XOPT = 60) and capacitors (COPT = 0). This is indispensable because when using
the AR notation, the program automatically changes the units to $UNITS. 0.1591549.
O.
Finally. there is a multiphase PI-equivalent which will be referred to the
first multiphase PI-equivalent. As mentioned in section IV.B.3. only the first
phase bears the reference nodes.
IV.C. Branch carda tor mutually coupled RL elements (type 51.52.53 •••• ) - 17
lY,e.1. Application
1 GENERAL USAGE;
This class of branches provides for the representation of lumped-element,
mutually-coupled R-L branches.
r----R-------C---l
1 O----~I~~
I
I
I o
I R L I
I I
2 O----~I~~
I
I
I
o 2
I I
I I
I R L I
N 0..----1-1--I[Link]J I o N
I-----------------~I
Coupling
The input cards for these branches do not differ much fro~ the previous type
1,2,3 branches. except that there is no provision for inputting a shunt capaci tance
matrix ([C] = [0]). On the other hand. the inductance data field provides for 12
columns rather then only 6. allowing for greater precision. This is primarily
intended for representing the coupled impedances of transformers. as with lower
precision the leakage impedances. obtained by substracting the mutual impedances
from the self impedances. are very badly and get lost in the magnetizing impedance.
However, this drawback can be circumvented by using the high-precision format for
type 1,2.3 (see section IV.B). Also network equivalents can be represented using
coupled R-L equivalents. Following data generators create punched cards in the
type 51.52.53-format: .
XFORMER (section XIX.A) = transformer model
NETEQV (section XXIV.) = network equivalent
CHANGE TRANSFORMER (section XIX.J) = convert SATURABLE TRANSFORMER data into
XFORMER punched card output format.
2 SPECIAL USAGE;
1) Sequence value;
For transposed (balanced) lines. the associated [R] and [L] matrices {phase
values} have a special structure: all diagonal elements have a common value Zs and
all off-diagonal elements have a common value z.. When in addition. we only consider
transposed three-phase cases, an easier notation. based on Fortesque decomposition,
exists. In this case. it is no longer necessary to store the entire matrix {or
even the lower-diagonal part}. It is more convenient to specify only the associated
zero- and positive-sequence values (Ro,Lo) and (Rt.R2) of a purely diagonal matrix.
z".
Z. ... F ortesque =+
Z".
xv.c. Branch card. for autually coupled RL element. (type 51.52.53 •••• ) - 18
The relation between phase values (Z•• z.) and sequence values ([Link]) is very
simple;
z.-z.-z".
Furthermore. sequence values can be calculated automatically using supporting
routines LINE CONSTANTS (section XXI-C or section XXI-D) or CABLE CONSTANTS STAND
ALONE.
Note, however that data manually should be put in the correct input format!
This input format will be discussed in more detail in section IV.D.2-3 and 3-2.
2) AR notation:
In the ideal case of a transformer having non-existing (or very low) P.U.
excitation currents,the inductance matrix does not even exist. For this special
situation. a special option (AR notation) is used. Here. "A" stands for L-l (the
inverse of the inductance). which does exist. Remark. however, that the supporting
routine XFORMER .is not able to create output in AR notation in order to treat such
an "ideal" transformer. On the other hand, BCTRAN can, but it does not create the
type 51,52.53 branch format being discussed here.
For this card-type. 2 different formulations exist: phase value and sequence
value formulation. For the phase value formulation, in addition 2 different notations
exist: the RL-notation and the AR-notation. In both notations. three different
card formats can be used:
• normal format ($VINTAGE, 0)
• high-precision format ($VINTAGE. 1)
· free format.
These card formats first will be explained for the RL-notation (normal usage).
Next, the AR-notation will be discussed. These notations, which .belong to the phase
value formulation. will be followed by another part, where an extra format used
for the sequence value formulation will be discussed.
Phase values
RL notation
Normally the RL notation is used. You can stack the values for [R] and [L] in
the way explained in section IV.C.3. If previously the AR notation was used. you
can toggle to the RL notation by using the following card:
w node names reference br. elements (k. m) elements (k. m+ 1) elements (k. m+ 2)
Cl.
~
BUS1 BUS2 BUS3 BUS4 R L R L R L
12 A6 A6 A6 A6 E16.0 E16.0
3 EBEE. FORMAT
Besides the regular format and the high-precision format. a third (but tricky)
way can be used to input type 51.52.53 RL branches. This input is called FREE
FORMAT. but it is not totally "free". Some important rules apply here:
- separate each field by comma's (i.e. last Sign of the variable CHRCOM in
the STARTUP file);
- blanks are totally ignored, and node names are left adjusted;
- do not input node names after column 26;
- do not input values before column 27;
- Make sure there is always a total of five comma's before column 26 (delimiting
one type field and four node name fields) and a total of six comma's should
follow column 27 (delimiting six numeric fields for R and L).
- If the figures are to be continued on the next card because the number of
columns per card exceeded, the continuation symbol (fifth character of
CHRCOM of STARTUP. usually "$") must be used. On such card. no extra comma IS
are needed.
With these rules, only column 27 must be [Link] position information.
On the other hand, a painstaking count of comma's is necessary. See section IV. C. 3
(remarks) and section Iv.c.4 (examples) for further usage. Supporting routine
XFORMER (section XIX.A) creates punched card output in free-format notation.
AR notation
In some cases, the [L]-l-matrix is ill-conditionned or singular, so [L] does
not exist. Therefor the AR notation is used. "A" stands for the [L]-l-matrix and
"RI! stands for the [R]-matrix.
IV.C. Branch card. tor mutually coupled RL element. (type 51.52.53 •••• ) - 20
Now we have to be carefuil when punching the data in the input format. The
[L]-l-matrix replaces R in the input format. In the same way, the [R]-matrix replaces
L in the input format.
Sequence values
When using the sequence value formulation, only one card format exists:
Il I! If !E
I~ fl:! If E ,e I~ I·;!l f!lf rft~1 e ,~ l~1 f tE Ie If 'EI~ Ie I' I~'l f!lf tE ,~ic .i _f' 'EI~le H:~ If rf~~ Ie
I~
~.l~ ~ E rEI~ r
12 A6 A6 A6 A6 E6.2 E12.2
IV.C,3. Parameters
ITYPE: Specifies N phases by numbering 51, 52, 53 •••• (50+N} in this field.
N is limited up to 40. Continuation cards must have blank ITYPE fields.
BUSl. BUS2: Terminal node names of the elements in the phase, indicated by the
ITYPE field. Nodes may be grounded (indicated by blank field name) if
desired.
BUS3, Bus4: Equally to mutually coupledRLC branches, referencing can be used
here. The same rules must be taken into account as typing only the node
names of the first phase of the reference set in the same sequence.
R. L: The numerical values of the matrices [R] and [L] are to be put in these
fields. The units for R will be in ohms and for L there are two cases:
- Inductance L : mH if XOPT = zero;
- Reactance 2nf~ in ohms at frequency f = XOPT
IV.C. Branch card. tor autua11y coupled RL e1eaent. (type 51.52.53 •••. ) - 21
Remarks
- Matrices [R] and [L] are symmetric, so only need to be specified on and below
the diagonal. When one card is not sufficient to specify all R-L values,
then continuation cards are used, with columns 1-26 left blank. The following
format applies:
a) for $VINTAGE, 0:
I~ IE
I~I~
5 SA
ISle I~
RA
f~ f· r* Rll
tf Ie
L11
tfl~ I~ tf ~~ ~t 'EI*
: Etc.
b) for $VINTAGE, 1:
.
.~
,
IC
5 SA RA Rll L11
5 5B RB R21 L21
R22 L22
5~ 5C RC R31 L31
R32 L32
R33 L33
5"1 SO RO R41 L41
R42 L42
R43 L43
R44 L44
: Etc.
- There is no branch current output possible for this branch type. However,
the branch voltage can be obtained on the first two phases (column 80 is not
being used) .
- There is only one supporting routine that can be used to generate the data
in the proper input format:
IV.C. Branch card. tor mutually coupled RL element. (type 51.52.53 .... ) - 22
IV.C.4. Examples
Next example will show the use of normal mutually coupled RL elements. We'll
use the output of the supporting routine XFORMER (see section XIX-A) which format
is a high-precision and free format.
C 1 234 567 8
c 345678901234567890123456789012345678901234567890123456789012345678901234567890
[Link] 0.9272618817281£-01. 0.3493188082966£+03 •••••
52.L1 -0.5411077293636£-01. 0.2037410770117£+03 S
0.3157657837292E-Ol. 0.1189555285801£+03 •••••
c 1 234 567 8
C 345678901234567890123456789012345678901234567890123456789012345678901234567890
C 1 234 567 8
C 345678901234567890123456789012345678901234567890123456789012345678901234567890
51 N1A N2A 4.5 87.6
52 N1B N2B 3.1 66.4
53 N1C N2C
C 1 234 567 8
C 345678901234567890123456789012345678901234567890123456789012345678901234567890
IV.D. Branch card. for [Link]-parameter element. (type -1,-2,-3) - 24
Introduction
This figure represents just one incremental section, of a line with only one
phase. In general, the equations of a multiphase line can be written as follows:
dU dt •
- dX = [L]dt + [R]i
dt dV -
- dX = [C]~+ [G]u
[R]. [L] and [C] can be determined from a supporting program. See "LINE
CONSTANTS" (section XXI) or "CABLE CONSTANTS" (section XXIII).
IV.D. Branch carda for diatributed-parameter element. (type -1.-2.-3) - 25
It should be stressed that none of the above models uses phase value. notation.
Modal values and sequence va1ues are used instead. Both notations will be explained
here after.
1 GENERALLY
The general figure of a power carrier (line or cable) with distributed parameters
is shown below:
PARAMElERS
IN THEMOOAl.. DOMAIN
With this formula, the ac steady-state results are practically identical whether
the line is modelled as distortionless or in the other two ways to follow. Transient
responses differ mainly in the initial rise of voltage pulses.
IV.D. Branch cards for distributed-parameter elements (type -1.-2.-3) - 27
DISTRISUTEO DISTRISUTEO
L'.t" L'.t"
OJ/lTI/I/Jm/lllll7lI/I/I/J//llll/J/lJ/JTITITI/II GROUND
The half-length distribution sections then become lossless (hence dis tor-
tionless). But at high frequency steady state (200 kHz). results of such model are
quite erroneous. Therefore. an extra option called "exact phasor equivalent" was
developed.
2 ClillIl. FORMATS
As in most cases, also here one can provide input data in a normal or in
high-precision format.
I- I! tE Ie ~ . ~m
,
~~
Q)
fC I" I..:
........
~l tf ~E
I'
t~l( I"
1* ~,l~IE
1* r~
8
0
!=
If ,
f~ff Ie f~ f! ~qf
[
W l~if t~ I~I' f~ H 'E I~ l~ff { [d~ I·I~
J:
I.U Resistance u
a.. BUS1 BUS2 A B Length l.U
z z
R'[O /Iength] - :::>
~ !:QQ,
3 PARAMETERS
Branch card input:
ITYPE: indicates the sequence of the phases by punching -1. -2. -3 ••••• -N.
There is one such card for each phase. Recall that the number of modes
equals the number of phases. See remark 1 and 2.
If N is greater than 9. phase indication is alphabetical (10 = A. 11 = B.
etc. ). In practice ,such lines are believed to be transposed always. Hence,
not ITYPEbut IPOSE is the actual indication of the number of phases (see
remark 7).
BUS1, BUS2: terminal node names of each phase. Nodes may be grounded (indica ted
by a blank name field) if desired.
BUS3, Bus4: Equally to PI-equivalents, referencing can be used here. On the
other hand. this option has no advantages. since there is no saving of
memory storage anyhow. The same rules must be taken into account, so that
only the first card (first phase) bears the reference nodes. specified as
the nodes appearing on the first card used as reference set. The following
cards (following phases) just specify the consecutive type numbers and the
node names of the other input ports, not the nodes of the reference set
nor the RLC values.
Resistance: modal resistance in ohms/length. Be sure to keep length-units
consistent for "A", "B" and "LENGTH". See remarks 1 and 2.
A: dependent on "ILINE" , "A" will be punched as shown in following table. See
remarks 1 and 2. No confusion should be made with the AR-notation. it
should be noted!
B: dependent on "ILlNE", "B" will be punched as shown in following table. See
remarks 1 and 2.
LENGTH: value of the total length of the line to be examined. See remark 3.
Value should be positive for transposed cases (IPOSE = 0) and negative for
untransposed cases (IPOSE > 0).
IV.D. Branch card. for distributed-parameter element. (type -1.-2.-3) - 29
ILlNE: determines the definition of "A" and "B". See remarks 1, 2 and 3.
Following table represents the possibilities:
lLlNE "A" "B"
0
(not
-modal inductance L' in mH/length
if XOPT = 0
- modal capacitance. C' in llF/length
if COPT = 0
blank) - modal reactance uL' in njlength at - modal susceptance <.AJ:; , in
frequency :. = XOPT ~ [Link]/length at frequency ::. =COPT ~
1 Modal surge impedance Z. in ohms Modal propagation velocity in
length/sec
Z.-
# C.
v---
~
1
~ Recall that XOPT and COPT can be specified in the. miscellaneous data cards
or via the $UNlTS request.
IPUNCH: specifies the type of modelling to be used on the mode of the card in
question:
o .... lumped-resistive modelling (usual case). unless the special request
"EXACT PRASOR REQUEST" was made in the input.
1 .... distortionless-mode modelling
Note that it is not obligatory to model the different modes of a mul tiphase
power carrier all in the same way!
rpOSE: specifies if the line is assumed to be transposed or untransposed:
o .... transposed line: Clarke model - no transformation matrix should be
specified.
N .... untransposed line with N phases: K.C. Lee model - a transformation
matrix should be defined following the N-th branch card (see remark
8). Please refer to remark 7 in case N > 9.
roUT: can be used for branch output requests:
,1' branch current;
'2' branch voltage;
'3' branch current and branch voltage;
'4' branch power and energy consumption.
Because of a program bug, only lOUT = 2 will give correct results. For all
other rOUT-values. results are unreliable.
See also remark 4 for further usage.
Remarks;
1} For an N-phase continuously-transposed line, there exists only two modes.
Specify the zero-sequence parameters on the first card (card for the first
phase), and the positive-sequence parameters on the second card (card for
the second phase). Leave the modal parameters blank on the third and later
branch cards. For specially-transposed double-circuit 3-phase lines. we
refer to section rV.D.2.
2) For an N-phase untransposed line, there exists N different modes. Specify
the modal parameters for the first mode on the first card, for the second
mode on the second card, etc., for the third and later modes.
IV.D. Branch carda for diatributed-parameter elementa (trPe -1.-2.-3) - 30
3) Be sure to keep length units consistent for "Resistance", "A", "B" and
"Length" • The length should be negative in order to avoid the program from
misinterpreting [Ti]
4) There are two restrictions when using the lOUT output request.
a) All phases should be keyed equally whenever requesting branch current
output, which is also involved in the power and energy output requesting.
The reason for this is that a vector-matrix computation is involved to
find the line current. so all components of the current vector must be
available.
If the user does not want such symmetric current output. he is advised
to leave column 80 blank and instead to do his current sampling with
either a series switch or a low-impedance branch.
b) Never use the column 80 output request in case of a single-phase distributed
line. since the result will be wrong.
5} All modes of a line must have travel time ~ in excess of the time step size
~t. If not. the program will stop with an error message.
6) Both L' and C' must be nonzero for each mode.
7) When using the alternate high-precision format. the length of the IPOSE-field
will be 11 rather than 12. If N (number of phases) is less than 10. IPOSE
will be equal to N. If N is greater than 9. the assignement of IPOSE is :
N IPOSE
10 A
11 B
12 C
13 D
14 E
15 F
16 G
17 H
18 I
8) Transformation matrix input:
Only when " IPOSE" is nonzero. the transformation matrix [Ti] is read
immediately after the N-th branch card. Beware that this only will be
performed correctly if the LENGTH parameter obtained a negative value.
Following format is to be used:
1~~H~i~~~ ~
~ IE E
~~f E I ~ I~ 'f Ie ~ E 'f r ~ rff~l( ~~~~ rE r
The elements of the matrix [Ti] are read in by rows (row 1 first. then row
2. etc.). For a given row. the real part of matrix element for all columns
comes first; then the imaginary part follows on a new card. Within each
row, elements are read in order of increasing column number. Each row
begins with a new card and there are 6 or fewer elements per card.
IV.D. Branch card. tor d1.tr1buted-parameter element. (type -1.-2.-3) - 31
If the transmission line had only 3 phases, the final three fields (columns
37-72) would not be used. For N ~ 6 phases, exactly 2N data cards are
involved; for 7 ~ N S 12 phases, exactly 4N data cards are involved, etc.
Note that there must be exactly 2N2 elements for [TiJ.
4 EXAMPLE
1} Consider the 3-phase continuously-transposed line shown in the next figure,
so only two different modes should be considered; grand mode (or zero sequence
value) and line mode (or positive sequence value). Furthermore, no transformation
matrix should be specified.
Suppose the line length is 180 miles, with sequence parameters per unit of
length (i.e. per mile) as follows:
Remarks:
1} $UNITS, 0., O. was needed to specify XOPT = O. and COPT = O.
2} ILINE = 0 (col 52); "A" represents the modal inductance, in mH/mile
(XOPT = 0)
"B't represents the modal capacitance, in llF/mile
(COPT = 0)
3} Lumped resistance model is in use: IPUNCH = 0 (col 54)
4) IPOSE = 0 (col 56): transposition assumed.
5) "Length" has positive value.
2) The next example will treat four separate, uncoupled single-phase lines.
Data are shown below.
IV.D. Branch card. for d1.tr1buted-parameter element. (type -1.-2.-3) - 32
lD-11{~': ~6d1
0160 Hz
10-40----- ----_0
,.. - e60 '""
length - 200m
11'_ 0.30/roWe ot 60 Hz
l'- 0.4 a/roWe
Llo-[Link]J-------[Link]t-----c::;-o Rl (
co- 12.6Pmho/roWe
~ ; ; lonvltl • 0.1 mila
1 [Link]
In the introduction to section IV.D, we already dealt with the full transposed
6-phase circuit. Here, only two distinct parameters were in use: Zs and Zm.
IV.D. Branch carda for diatributed-parameter elementa (type -1.-2.-3) _ 33
- Zc·Z,+SZ". (multiplicity 1)
- Z L - Z. - Z rn (multiplicity 5)
This phase value impedance matrix agrees with following physical reality:
· tower configuration
2b 1b
· transposition scheme
10 ----"""'-
1 b ---___..,.
1c ------...
2 a ---___..,.
2b -----..,/
2c
A special case of transposed lines is when two multiphase circuits are physically
separated and when these two circuits are individually transposed, but mutual
untransposed. This agrees with following physical reality:
· tower configuration
IV.D. Branch cards for distributad-parameter elements (type -1.-2.-3) - 34
1c 2c
transposition scheme
;~ ----------------------;(~--------------------~~-----------------------
In the matrix. ,.only three distinct parameters are allowed: Z•• Zm and Zp.
Zs Ziti Z". Zp Zp Zp Zc
Z". Z, Z". Zp Zp Zp Z IL
Z". Z". Z, Zp Zp Zp ZL
~
Zp Zp Zp Z. Z .. Z".
Zp Zp Zp Z .. Z. Z ..
Zp Zp Zp Z .. Z .. Z,
The three distinct phase coupling parameters Z•• Zm and Zp can be indirectly
specified by three sequence parameters. The relationship is:
- Z c - Z, + 2Z .. + 3Z p (multiplicity 1)
- Z IL - Z, + 2Z .. - 3Z p (multiplicity 1)
- ZL-Z,-Z .. (multiplicity 4)
Here ZG .is the ground-mode parameter. identical to the value for the zero-sequence
mode of the continuously-transposed line of section IV.D.l. if parameters Zp and
Zm happen to be equal (all conductors are continuously transposed). Parameter ZL
is identical with the familiar line-mode of the continuously-transposed line.
Finally. parameter ZIL is completely new. It is an interline-mode associated with
intercircuit zero-sequence coupling.
The next figure shows the submatrices of the previously mentioned matrix.
Z(l.l) Z(1.2)
Z(2,1) Z(2.2)
IV.D. Branch card. for [Link]-parameter element. (type -1.-2.-3) - 3S
Submatrices Z(l,l) and Z(2,2) (which are equal amongst each other) are matrices
which are conform to the matrices of continuously transposed lines. This means
that the each circuit individually is continuously transposed.
All elements of [Z(l,2)] or [Z(2,l)] are equal to the same value (Zp), the
mutual coupling between anyone of the conductors of one circuit and anyone of
the conductors of the other circuit.
2 CARZ2. FORMATS
Again, data can be provided either in a normal or in a high-precision format.
No transformation matrix should be specified. because in this case, the program
uses the directly converted sequence parameters. An ordinary run of the supporting
routine "LINE CONSTANTS" will not generate the sequence values for this
double-circuit special transposition case. The user himself will have to calculate
the sequence values. This is explained in the example of section XXI-F-3. On the
other hand, the Semlyen setup can be used in a more userfriendly way, without the
involvement of manual calculations. This is explained in section XXII-D. Finally,
remark the obligatory input sequence (section 3. remark 1), which is different
from the sequence in which the parameters are normally obtained by an automatic
procedure.
:c
Resistance ""u
"" BUS1 BUS2 A B Length z z
~ R'[O/Iength] -
Q;l~
:::>
3 PARAMETERS
ITYPE: The numbering of these circuits must be done consecutive by numbering
the first circuit in the normal way (-1, -2, -3) and continue this numbering
at the second cirCuit (-4, -5, -6).
BUS1, BUS2: terminal node names of each phase. Nodes may be grounded (indicated
by a blank name field) if desired.
IV.D. Branch cards tor distributed-parameter elements (type -1.-2.-3) - 36
~ Recall that XOPT and COPT can be specified in the miscellaneous data cards
or via the $UNlTS request.
lPUNCH: specifies the type of modelling to be used on the mode of the card in
question:
o ~ lumped-resistive modelling (usual case), unless the special request
"EXACT PRASOR REQUEST" was made in the input.
1 ~ distortionless-mode modelling
Note that it is not obligatory to model the different modes of a mul tiphase
power carrier the same way!
lPOSE: will always be blank because the line is assumed to be transposed, be
it specially transposed.
lOUT: can be used for branch output requests:
'1' branch current;
'2' branch voltage;
'3' branch current and branch voltage;
'4' branch power and energy consumption.
IV.D. Branch cards tor distributed-parameter elements (type -1.-2.-3) - 37
Because of a program bug. only lOUT = 2 will give correct results. For all
other lOUT values. results are unreliable.
See also remark 3 for further usage.
Remarks:
1) Only three sequence values have to be put in the input carcl. That is: the
G-sequence (ground mode) goes on card of conductor 1. the L.-sequence (line
mode) goes on card of conductor 2 and the IL-sequence (interline mode) goes
on card number 3. Cards 4 through 2N are to be left blank for the input
values. The node names must of course be inputted.
2) Be sure to keep length units consistent for "Resistance". "A". "B" and
"Length" •
3) There is only one restriction when using the lOUT output request:
All phases should be keyed equally whenever requesting branch current output.
which is also involved in the power and energy output requesting. The reason
for this is that a vector-matrix computation is involved to find the line
current. so all components of the current vector must be available.
If the user does not want such symmetric current output. he is advised to
leave column 80 blank and instead to do his current sampling with either
a series switch or a low-impedance branch.
4) All modes of a line must have travel time -c in excess of the time step size
~t. If not, the program will stop with an error message.
5) Both L' and C' must be nonzero for each mode.
4 EXAMPLE
Consider a 180-mile double-circuit line having the one-line diagram as sketched
below.
~~ ~-----""(-:~-~-:-i-)-:,-':-----~ ::
Note that termination of both lines at one end is on the same 3-phase bus
"SEND". while on the other end. the termination is different ("REC1" and "REC2").
The sequence parameters for this line are assumed to be taken as follows:
R [Ohm/mile] L [H/mile] C [pp/mile]
G-mode 0.58 0.00340 0.0091
L-mode 0.034 0.00068 0.0166
IL-mode 0.035 0.00110 0.0116
HQte Qn ~ generation g! double-circuit special transposition seguence values:
- Supporting routine LINE CONSTANTS can not generate such sequence values
automatically. Additional manual calculations are involved. as explained in
section XXI-F-3.
Supporting routine SEMLYEN SETUP can generate the requested sequence values
automatically. without extra manual calculations. This is explained in section
XXII-D.
IV.D. Branch carda for diatributed-parameter element. (type -1.-2.-3) - 38
The JMARTI supporting routine described in .section XVII can only generate the
so-called LUNIT7 punched output for travelling wave modelling.
In this particular model. both the characteristic .impedance Zc and the
propagation function A1 are obtained using modal characteristics. calculated over
a user-defined frequency range. under the assumption of a constant transformation
matrix (phase-mode-transformation). Then, both Zc and Al undergo a high-order
rational function .approximation. In the time domain, this fitting is represented
by a sum of real exponentials, thus allowing usage of recursive convolution methods
in the time domain. Typical values for the order are 5 ..• 10.
In order to allow the program to calculate the necessary model characteristics
for the conductor .system under study, the JMARTI code imbeds the LINE CONSTANTS
code. This is explained in section XVII in sufficient detail. JMARTI code can
also imbed CABLE CONSTANTS code. Except for Single-phase cases, results are believed
to be erroneous though,because the transformation matrix for cables is highly
frequency dependent.
The LUNIT7 punched output. resulting from such run immediately is in the correct
input format.
The punched cards always contain the following sequence for each pase or mode:
- branch card
- card grouping or frequency dependent representation of Zc
- card grouping for frequency dependent representation of A1
At the very end. the card grouping specifying the current transformation matrix
[Ti]should only follow in cases where the line is assumed to be untransposed (NP
> O. see first branch card).
Let us discuss these different card types in more detail now.
IV.D. Branch card. for [Link]-parameter element. (type -1.-2,-3) - 39
1 Branch ~ t:sJ.r.. ~ K
12 A6 A6 A6 A6 E6.2 E6.2
parameters
ITYPE: negative value of the phase number (-1, -2, -3 •... ). Phases should be
stacked in natural order.
BUS1, BUS2: names of the terminal nodes of the phase under consideration.
Recall: blank means connection to ground.
BUS 3 , Bus4: reference branch indication.
SKIP: control flag for the amount of branch data that will be displayed as
part of the data card interpretation.
o or blank: display and interpretation of all data cards
1: omit the display of data cards carrying poles and residues
2: omit the display of both the declaration of the function order as
well as the data cards carrying poles and residues. Only the branch
cards and the cards defining the transformation matrix (only in
case of an untransposed line) will remain visible.
PDTO: control flag for possible order reduction of the approximating rational
functions
o or blank: full function approximation as created on LUNlT7 will be
used.
~1: request for automatic order reduction (Le. elimination of
low-timeconstant poles). taking the user's time step size DELTAT
(see first miscellaneous data card) into account. Poles which have
no physical meaning will be eliminated. Such reduction will speed
up the simulation time and save memory storage. For details. we
refer to the minutes of the 1986 LEe Spring Meeting, contribution
86-13. [Link] Lima: "Replacement of low-timeconstant poles by a
single equivalent pole in recursive convolution line models".
The second subcase of DCNEW4 illustrates such order reduction. Results are
to be compared with the first subcase. omitting such reduction.
-2-flag: fixed flag. typical for the JMARTl branch cards (to distinguish this
model from the other distributed line models).
NP: transposition flag
0: all mutual coupled phases belonging to the JMARTl branch cards are assumed
to be continuously transposed. At the end of the card sequence, no
transformation matrix should be specified.
>0: in case the coupled phases are untransposed. one should specify the
total number of phases in the NP-field. Furthermore. at the end of the
card sequence. a transformation matrix should be specified.
lOUT: branch output request flag
0: no output
1: branch current output
2: branch voltage output
3: both branch voltage and current output
4: branch power and energy output
IV.D. Branch carda for distributed-parameter elements (type -1.-2.-3) - 40
~:
1. All phases should be keyed equally whenever branch current, power or
energy are involved. Remember that a vector-matrix computation is involved
to find the line currents. Hence, all components of the current vector
must be available.
2. If the user does not want such symmetric current output, he is advised
to leave column 80 blank, and instead request current sampling using
either a series measuring switch or a low-impedance branch.
NORDER ZC,inf
18 E32.20
parameters:
NORDER: order of the approximating rational function for Zc for mode K. From
this, the program learns the number of residue or pole cards that will
follow in the card grouping defining the approximating rational function.
Ze. int: limiting value of Zc for mode K as frequency goes to infinity.
I- i~ IE IE
i~ l'~ E IE Ie ~I· f~~ E Ie I~ tEI~iC ~E I ~ I.I~
rEI* ~,l~~E 1~
'EI*
FUN(I) FUN(I+ 1) FUN(I+2)
•
E25.0 E25.0 E25.0
parameters :
FUN{I): fitting parameters of Ze for mode K
- first come all residues for Ze (mode K), three per card, for as many cards
that are needed (see preceding NORDER card).
- next come all poles for Ze (mode K), starting on a new card, three per
card, for as many cards that are needed (same number as for the residues).
IV.D. Branch card. for [Link]-parameter element. (type -1.-2.-3) _ 41
NORDER TRAVINF
18 E3Z.Z0
parameters:
NORDER: order of the approximating rational function for Al for mode K. From
this, the program learns the number of residue or pole cards that will
follow in the card grouping defining the approximating rational function.
TRAVINF: infinite-frequency travel time for mode K
I~
I ~ l~~E Ie rm '"l-
I-
IE Ie i ~I~ ,e ~~ r~i( .~ IE ,
~
l'~E ,I 'EI~lc
'"
FUN(I) FUN(I+l ) FUN(I+2)
parameters:
FUN{I): fitting parameters of Al for mode K
- first come all residues for Al (mode K), three per card, for as many cards
that are needed (see preceding NORDER card).
- next come all poles for Al (mode K), starting on a new card, three per
card, for as many cards that are needed (same number as for the residues).
These groups a), b) and c) should be repeated for each phase, stacked in natural
order.
order. for as many data cards that are required. Then come all imaginary parts.
beginning on a new input card (wheter or not the preceding real parts completely
filled the preceding card).
The general format for all such numbers is as follows:
1< I~ If ~E
·~!E IE I~I~ '~iE rf~ ~ .~I< i!!E ~( I~I~ IE If 1* H 'fl~l( I· i~ i~lc :~ 'f~N t~'! rEin
TI(L.M) TI(L.M+1) TI(L.M+2) TI(L.M+3) TI(L.M+4) TI(L.M+5)
,
E12.0 E12.0 E12.0 E12.0 E12.0 E12.0
HQ.t.e.:
Recall that via the first frequency card of the imbedded LINE CONSTANTS case,
the user has control over the frequency at which the transformation matrix will
be calculated.
- Further recall that. stricktly speaking, such transformation matrix can become
highly frequency dependent.
- It hence is advised to the user to carefully select the frequency to calculate
[Ti], in close relation to the transient behaviour (frequency range) one wants
to observe.
For transposed lines. this is not an issue because in such case. [Tt] is known
apriori. Furthermore. [Tt ] is constant allover the frequency range.
5 Example
JMARTI punched cards cannot be calcultaed manually. so it is felt unusefull
to .give more details. The user is referred to supporting routine JMARTI (see
description in chapter XVII).
For examples illustrating the output sequence. we refer to benchmarks DCNEW3.
DCNEW5 and DCNEW6.
DCNEW3 generates cards to be used in DCNEW4. DCNEW5 and DCNEW6 generate cards
that are used in DCNEW7.
IV.D.4. SEMLYEH-model
Although Semlyen Setup can generate various types of output (see section
XXII-A). in this section we only clarify on the so-called LUNIT7 punched output
for travelling wave modelling.
In this model, both the propagation response as well as the admittance response
are obtained using model characteristics calculated over a user-defined frequency
range, under the assumption of a constant transformation matrix (phase-mode
transformation). Then. both the propagation response as well as the admittance
response are approximated in the time domain. using only two real exponentials.
thus allowing usage of recursive convolution methods in the time domain. Results
are represented in the form of partial-fraction expansion.
In order to allow the program to calculate the necessary modal characteristics
for the conductor system under consideration, the Semlyen code imbeds either the
LINE CONSTANTS or the CABLE CONSTANTS code. In chapter XXII. both situations are
explained in detail.
IV.D. Branch carda for diatributed-parameter elementa (type -1.-2.-3) - 43
The LUNIT7 punched output, resulting from such run immediately is in the correct
input format.
The punched card format always contains the following sequence for each phase
or mode
- branch card
- steady state information
- one card containing partial-fraction expansion specifications for the
wave propagation response
one card containing partial-fraction expansion specifications for the
characteristic admittance response.
Next come cards that define the voltage transformation matrix [Tv] and current
transformation matrix [Ti].
Let us discuss these different card types in more detail now:
.~ fiE Ie
I, 12 1.<1 I~ iE
2 I~ f~l€ 'E Ie I~
rfl* I' tf tqc ~f Ie I' I' I~ i-I' rE Ie
BUS1 BUS2 Yo TAU N1 N2 N3 N4 N5
~
- A6 A6 E12.5 E12.5 13 13 13 13 14 1
parameters
Remark:
The column-BO punch (lOUT) on the branch cards must always be supplied by the
user if branch output variables for a Recursive Convolution line are desired. The
punched-card output of "SEMLYEN SETUP" will always leave column-Bo of the branch
cards blank (corresponding to no such output).
1~11 H~ ~~l
/- IE
I~ f~lf tE 1< 1-1- f!~EI' I 'f. IE t< I~ ~f Il ,.1: Ie rE~~lc
parameters
R{w). ui.(w): Total series modal impedances for mode number K. This is in Ohms.
at the frequency FREQ of the steady-state phasor solution which may be
performed to find EMTP initial conditions.
G(w). u.!:{w): Total shunt modal admittance for mode number [Link] is in mhos,
at the frequency FREQ of the steady-state phasor solution which may be
performed to find EMTP initial conditions.
FREQ: The steady-state frequency at which R, wl, G and u.£ are calculated.
Hence, XOPT and COPT (miscellaneous data parameters) have no importance
here.
IE iF
I·l~ Iclqc I~ ~'~~~E f~lc i' r!,9C
The above sequence (a, b, c) must be repeated for all Kmodes. Next follows
the specification of the voltage transformation matrix and current transformation
matrix (even in case of transposition, it should be noted).
IV.D. Branch card. for [Link]-parameter element. (type -1.-2.-3) - 4S
I~
~,IJ rf~~~
I~
I- l~1 E If 1~ tl~ ~ I' l'fE Wlc 111* ~l I~ !< 111* I~ "l~ I<!!I(
R I R I R I
lY K.l lY K•t lYK•2 lY K•2 lY K•3 lY K •3
R I R I R I
TI K.l TI K.l TI K•2 TI K.2 TI K.3 TI K'3
BUS1-1 BUS1-2
R2
Low voltage High voltage
winding winding
BUS2-1 BUS2-2
Fig.1: Single-phose two-winding case
- Excitation losses (iron core) are confined to a linear resistance (RMAG. see
fig.1) which is in parallel to the saturation branch. This. is all right in the
single-phase case, even for multiple windings.
The extension to a single-phase N-winding transformer is easy. Fig.2 depicts
the schematic representation.
IDEAL
~B~U~S~1-~1~....~c=~~BTU~S~T10Pr-______-lN1 :N2 C:~[Link]-=BU:;S 1-2
L1 R1 R2 L2
winding 1 winding 2
BUS2-1 BUS2-2
c===~
R2
....
L2
~B~U~S1-N
winding N
BUS2-N
1 INPUT RULES:
Suppose that a user wants to represent a single-phase transformer using the
SATURABLE TRANSFORMER component. The following card sequence should then be
inserted in the group of branch cards of the actual electrical network:
Let s discuss the normal card format in more extensive detail now. Recall
t
that this card sequence needs to be inserted in the normal group of branch cards
for a normal network simulation run.
1. First comes the special request card. Besides the special request word
"TRANSFORMER", this card also bears steady state information of the flux. as
well as an output request option.
Parameters:
I. FLUX: (current, flux) pair used to define the linear inductance, representing
the magnetizing branch in the first winding during the phasor steady-state
solution. Only during a transient run, the saturated part of the
(flux-current)-curve can be taken into account. it should be noted.
Note the following, in order to avoid problems during the time step loop:
1. Both current and flux are expressed as peak values. I in Ampere and flux
in Volt-second.
2. Take the steady-state ([Link])-pair equal to the first point used
in the description of the flux-current characteristic. as obtained using
SATURA (see section XIX-G). It is recommended to take this value larger
then or equal to 70 percent of the maximum saturated flux value.
IV.E. Saturable transformer component - 49
BUSTOP: A name for the internal starpoint in winding 1, used to represent the
magnetizing branch (see fig.1). This name always should be mentioned. since
it uniquely identifies the tranformer.
Note that this name also can be used as a reference name. should the user
desire to specify another unit having parameters identical to those of a
previously-defined transformer (see section IV-E-2 for more details). This
internal node can not be connected with other branches of the electrical
circuit, however.
Rmag : Constant and linear resistance (in Ohms), parallel to the magnetizing
reactance (see fig.1). This resistance takes account for the excitation
losses (core) and can be calculated as:
VRAT~y
Rna" - - = : - - -
p .".Ioss
E16.0 E16.0
FLUX
one (current-flux) pair
Notes: 1. Take the steady-state (current. flux) pair (see first card. bearing
the special request word "TRANSFORMER") equal to the first point.
used in the description of the saturation curve.
2. The steady-state flux value should be larger than or equal to 70
percent of the maximum saturated flux value.
3. The supporting routine SATURA (see section XIX-G) can be used as
data generator to create the pseudo-nonlinear saturation char-
acteristic (current. flux) (peak values) out of the measured curve
{VRMS , IRMS}'
Ilmmml~m~lmmmlmmJ~~mmm~lJnmmlJmHmllJJUm~
999
4. Finally, the winding specification cards (one such card per winding) should
follow. The card format is as follows:
Parameters:
BUS1, BUS2: Terminal node names of the transformer winding "K". Thus, each winding
will be interpreted as a branch between "BUS1" and "BUS2" (see fig.1). Note
that a blank field is taken to mean "ground-connection".
R, L : Leakage resistance (in Ohm) and inductance (in Ohm or mH depending on value
XOPT), associated with the winding "K" in question. The values for this
leakage impedance can be calculated from the short circuit impedance, using
the following formula:
x ~ - l~
_1-SQRT(U 2 -
~
P~Il'IO").
l~ •
in Ohms
R," U~
R - - - - ' resistance of winding k
t N U~v'
X.I& U~
X - - - - ' reactance of winding k
t N U~v'
2 EXAMPLE:
Consider the case of a one-phase 2-winding transformer with both primary and
secondary winding earthed at one terminal point. The other terminal pOints are
called "P1" and "S1" for primary and secondary. respectively. Further assume "TIl"
being the name of the internal star point of winding 1. Finally, following data
were obtained by measurement for this transformer:
FREQ = 50. Hz
PBASE = 0.0063 MVA
UBASE = 0.22 kV (RMS)
IPUNCH = 0
KTHIRD =0
The only point of the linear curve is defined by the excitation test results.
Indeed, under nominal voltage, the transformer is assumed to have no saturation.
-3 0.22
I (p. u . ) .. 1 • 85. lOx 0 • 0063 .. O. 0646 (p.u.)
I peal - 2. 6161665255 A
Note that 2.61611.[2- 1.849. thus almost reconstructing the RMS value 1.85 for the
current. In case of a real saturation curve. a similar method should be used to
derive other points too.
In this linear case, a more direct way for obtaining the (flux-current) peak values
can be used. however:
U"" 220
4> pool = 4. 44xJ" 4. 44x50" 0.990 Vsec
The derived values for the other parameters are:
V R AT~v 220 2
R mOOR - p - -65 -744.60hms : core excitation losses
IX, loss
1 P~""O") =16SQRT
2
( U'''---z- 1 (2 2)
x.,,=[SQRT 8.3 - 95
-2 =.36240hms
-" J," 16
c 345678901234567890123456789012345678901234567890123456789012345678901234567890
c 1 234 567 8
$UNITS. 0 •• 0.
C : TRANSFORMER: :: x: : flux: ausTOP:Rmag: : flag
TRANSFORMER 2. 6161. 99034TA- 744.6 1
C I:: flux :
2.6161665255 0.9903479478
9999
C :aUS1: :8US2:: :1 B:I L::Vrat:: IP
lLl .0632 .196 .220 1
C :BUS1: :BUS2:: :: R:: L: :Vrat:
2Hl .1855 .576 .377
C 345678901234567890123456789012345678901234567890123456789012345678901234567890
C 1 234 567 8
Recall that this is part of the normal branch data in a network simulation data
deck.
1 INPUT RULES
The next card sequence should then be inserted in the group of branch cards:
1. First comes the special request card. Besides the special request word
"TRANSFORMER", this card only bears two bus names:
Parameters:
REFBUS: This field should carry the internal node name which was used as variable
"BUSTOP" for the previously-defined reference component of which a copy is
desired (Fig.1).
BUSTOP: A name for the internal .starpoint in winding "1", used to represent the
magnetizing branch. This name should never be omitted since it uniquely
identifies the transformer (Fig.l). This internal node can not be connected
with other branches of the electrical circuit, it should be noted.
flag: Output specification flag for the shunt magnetizing reactance branch.
= 1 branch current output
= 2 branch voltage output
= 3 both branch current and branch voltage output
2. Finally, "N" winding specification cards should follow. The card format is as
follows:
12 A6 A6
K BUS' BUS2 IP
node names only on the
first cord
Parameters:
BUS1. BUS2: Terminal node names of the transformer winding "K". Thus. each winding
will be interpreted as a branch between "BUS1" and "BUS2".
Note that a blank field is taken to mean "ground-connection".
IV.E. Saturable transformer component - 55
IP Output specification flag (should only be mentioned on the card for the first
winding) •
= 1 : branch current flowing from "BUS1" of the first winding to the internal
node "BUSTOP" will be printed as a time step loop variable.
~: 1. No other values are necessary, since they are taken the same as the
previously-defined reference component.
2. Examples of such reference component usage are discussed extensively in
the next section.
No new rules are needed. Caution should be made for the measurement of the
saturation curve, however. The curve needed here should NOT be obtained from one
winding of one phase, with all others open-circuited. The curve needed here can
be obtained correctly by balanced excitation of the three phases, thus averaging
both the currents and voltages of the three phases. Next, use supporting routine
SATURA (see section XIX-G) to turn. this measured curve (Vrms,lrms) into a
(flux, current) (peak values) characteristic.
1 INPUT RULES
Next card sequence has to be applied and needs to be inserted in the group of
branch cards for the actual electrical network:
1ST UNIT
1. TRANSFORMER -special request card
2. flux-current specification
- to be omitted if the magnetizing reactance is assumed not to exist
- only one card in the linear case
- card grouping (see TYPE-98 pseudo-nonlinear reactor element) for the
saturated case
3. flag card ending flux-current specification grouping
4. tiN" winding cards (terminal node names and winding data specified)
2ND UNIT
5. TRANSFORMER-REFBUS -special request card
6. "N tt winding cards (only terminal node names specified)
IV.E. Saturable transformer component - 56
3RD UNIT
7. TRANSFORMER-REFBUS -special request card
8. "N" winding cards (only terminal node names specified)
First, there is the problem of how to derive the equivalent circuit. Suppose
that the primary winding is .D-connectedand the secondary winding Y-grounded. Fig.
3 shows the resulting interconnection of elementary components. Remark the
following:
- Rl and Ll are the primary winding leakage-impedance parameters (the same for all
three phases; reference component option).
- R2 and L2 are the secondary leakage-impedance parameters (the same for all three
phases) •
- Bus Tl is the internal node "BUSTOP" for the first single-phase unit, with primary
terminals "PA" and "PB" , and .secondary terminals "SA" and "TERRA".
- Bus T2 is the internal "BUSTOP" for the second single-phase unit,
with Tl as reference name "REFBUS" (first transformer), primary terminals "PB"
and "PC", and secondary terminals "SB" and "TERRA".
- Bus T3 is the internal "BUSTOP" for the third single-phase unit, with Tl as
reference name, "REF'BUS" (first transformer), primary terminals "PC" and "PA"
and secondary terminals "SC" and "Terra".
Thus the primary windings (PA-PB, PB-PC, PC-PAl indeed are Delta-connected and
the secondary windings (SA-Terra, SB-Terra, SC-Terra) areWye-connected to ground.
Note that through the node name allocation, the clock-system declaration can be
established.
IV.E. Saturable tran.~ormer component - 57
L1
R1
T1 SA
PB
SB
PC
R L2 SC
A second problem concerns the need for a path to ground on the DeLta-side of
the transformer bank. Indeed. a floating delta is not honored by the program.
since mathematically the voltage there would then only be defined within an arbitrary
constant.
b) Balanced solution: connect three equal capacitors from the corners of the
DELTA to the ground. Take care to use realistic values (e.g. 0.003 ~ F) in
order to avoid matrix singularity (fig.4b)!
Use this option whenever it is necessary to preserve the inherent balance on
the DELTA side.
Only in the case where the DELTA is artificially opened, the actual zero-sequence
test can be performed. In this case, the homopolar flux will close its path through
the air and the tank. Such situation cannot be represented by this SATURABLE
TRANSFORMER component model. It can only be represented by the 3-1eg core-type
option, explained in section IV-E-4.
IV.E. Saturable transformer component - 59
2 ~Xl1MPLES
Rmagn = 3. E5 Ohms
VLV = VHV = 3.03 E5 Volts
RLV = RHV = .25 Ohms
XLV = XHV = 25. mH (XOPT = O. on miscellaneous data card)
In this case, the homopolar reluctance is high and the zero sequence flux is
forced to return through the air and the tank, outside the windings. Because of
the air gap, the zero-sequence [Link] curve is nearly linear, quite unlike
the positive sequence magnetizing curve. which is highly nonlinear. It seems
therefore reasonable to approximate. the zero-sequence magnetizing curve as a linear
magnetizing inductance Le. The core-leg (positive sequence) nonlinear inductance
SATURA can again be added across the first winding of each phase. Because of this.
a whole new model (depicted in fig. 5) is needed to represent such type of transformer.
On the other hand, this complicated model is not recommended to use since it
is not possible to represent magnetic coupling between the phases. This type of
3-phase transformer better can be modelled using the supporting routine BCTRAN
(see section XIX-C), with the external addition of nonlinear elements at the proper
winding connection points (Le. those windings which are closest to the iron core).
IV.E. Saturable tranaformer component - 60
LV-winding HV-winding
I
,...1, Ll R2 L2
1
01 1
4: 1
~I
phase I1 R
IV
0:: Lr' V
c
1
1 .8
v
::J
\:)
C
0'
[Link]~l·H=:=J~~~-lN':N:f· [-=~R:2::::~H.L~2~1--'" 1:
c
'N
,...1, ~
IV
01
4:
1
I phose
1 S
C
0'
o
~I 1 E
0:: L-r' IV
1 V
1 C
IV
::J
0"
IV
N'f
VI
• 1: 1
...o
IV
1 N
,...1, Ll Rl 4:
R2 L2
I 0::
0-
01 1 ...J
4: 1
::E 1
0:: L
1
I
1
phose T :::>
~
(/)
1:: 1"1
-r'
1
1
I •
BUS3PH
Fig.S: 2 winding 3-leg core type transformer. Yy connected
necessary {FLUX ,Current) characteristic using peak values. The same curve
has to be applied to all 3 phases (use the reference branch option of section
IV-E-2) .
NOTE: This is NOT the curve obtained from one winding (one phase),
with all others open circuited.
- In the linear case, only one value should be entered for the magnetizing
impedance input data. Data can be obtained from the direct excitation test.
- In case no flux-current characteristic is specified, the magnetizing reactance
is assumed not to exist (magnetizing current can be neglected).
- Excitation losses (core) are confined to 3 linear mutually coupled resistances
~Rmag (dotted elements in Fig.5) one should add manually across the low-voltage
winding terminals of all three phases. Such mutual coupling is mandatory for
representing homopolar excitation losses in a correct way. It is hence recommended
NOT to use the non-coupled resistance Rmag provided by the model (cfr. Fig.l).
1 INPUT RULES
As explained before. a whole new transformer model is needed to represent this
3-leg core-type transformer. Therefore new rules are needed. The next card
sequence should then be inserted in the group of branch cards of the actual
electrical network:
1ST UNIT
2. TRANSFORMER -special request card
3. flux-current specification
omitted if the magnetizing reactance is assumed not to exist
- only one card in the linear case
- card grouping (see TYPE-98 pseudo-nonlinear reactor element) for the
saturated case
4. flag card ending flux-current specification grouping
-5. "N" winding cards
2ND UNIT
6. TRANSFORMER-REFBUS -special request card
7. "N" winding cards
3RD UNIT
8. TRANSFORMER-REFBUS -special request card
9. "N" winding cards
Let's discuss the card input in more detail now:
1. First comes the "TRANSFORMER THREE PHASE" special request card. This is a flag
card. indicating the fact that the homopolar reluctance option has to be used.
At this point, the program will automatically introduce the two ideal isolation
transformers, as well as their proper interconnect~on (see fig.5). Further,
this card bears the value for the constant magnetic reluctance RO (representing
the linear zero-sequence inductance LO, recall) and also a unique name "BUS3PH".
IV.E. Saturable tranaformer component - 62
Parameters:
BUS3PH: Unique name, associated with the homopolar reluctance of the transformer.
This name refers to an internal (hidden) node, that can not be connected with
other branches of the electrical network. Accordingly, the name should be
distinct from all other names used in the same network study !
2-5. Next, the first transformer unit needs to be specified. This is done using
the card sequence explained in section IV-E-1. Special care should be devoted
to the following:
Card 2:
"./3)2
where R /10'" =, .c."'oft
(V ....
and R Itlr
(V d,,)2
- --
' ••. cur
In these formulas, Vdir and [Link] are the excitation voltage (RMS value) and
the excitation losses for the direct excitation. test (Le. the usual test).
Similarly, VhOll and P ex . hOll apply to the homopolar excitation test. In the latter
case, do not forget to open the DELTA winding (if such winding would exist).
Card 3:
. if ~( . ~E f- tEI*
I~
f-I.~
I~
tEI~I( f-~'
I~
rEI S~( ,.:i~
€
Ie tEI* f- .1H~~~
E16.0 E16.0
I FLUX
one (current-flux) pair
Card 4:
11JJJJiiJJJliliijtJ~~lJJJ~~tJJ~lJJJJiiJJ~lJJJJJtJJ~lJJJJifJ~~lJJIJJtJ~~lJJIJJ{JJ!
999
IV.E. Saturable transformer component - 64
Card 5:
One should work in equivalent phase values while deriving values for R,L and VRAT
6-9. The two other single-phase uni ts are defined using the reference branch option.
The rules are already described in section IV-E-2 and thus won't be documented
here again. For allocation of internal nodes, we refer to the example explained
hereafter.
2 EXAMPLES
Consider the case of a three-legged core type three-phase transformer with
both primary and secondary winding WYE-connected, and with both STAR points grounded
(YNynO). The other terminals are called BUSl R, BUSl S, BUSl T and BUS2 R, BUS2 S,
BUS2_T respectively. Further, following data were obtained by standard measurement
on this transformer (at 50 Hz).
Following data can be obtained for the saturable transformer component model:
card type 1:
BUS3PH = lNHOM
Ro = 642.6
This reluctance of the homopolar air-return path for the flux can be calculated
via an estimation of the homopolar inductance:
Note the approximation for the voltage drop over the LV short-circuit impedance
(fig. 5).
1st unit
- First comes the normal "TRANSFORMER" request card.
I = 3.37997 A (peak)
FLUX = 28.6335 Vsec (peak)
This results in following peak values for current and total flux:
IV.E. Saturable tranaformer component - 66
I = 2.39 X J2 = 3.37997
A (peak)
'I' - 11010//3
4.44,,50
= 28.6335 Vsec (peak)
BUSTOP = TOP R
RMAG =0
Indeed, if one wants to be able to represent homopolar exctation losses
with enough accuracy, the magnetizing loss should not be confined to one
single resistance branch, but one should place mutually coupled resistance
branches (type 51, 52, 53) over the terminals of LV winding 1 manually. The
values for these self and mutual resistance can be calculated as follows,
using excitation voltages:
11010 2
direct: R dlr - Ta"ii2 - 6692.8 Ohm
(1183,,/3)2
homopolar: R "om - 115325 - 36.4 Ohm
FLAG =1
This will result in branch current output.
I = 3.379 A (peak)
'I' = 28.6148 Vsec (peak)
- Finally, two winding specification cards should follow. Using the direct
short-circuit test results, following values can be obtained (equivalent phase
values) :
R 192530/3
.,,- 153.1 2 -2.738 Ohm
35.213/.[3
[Link] - 0.1531 -132.79 Ohm
R2_2.~38_1.369 Ohm
132.76
X2- 2 -66.381 Ohm or [Link] at 50 Hz
VRAT 2 -132/,[3-76.2102 kV
11.05)2
R 1 - R 2 X ( 132 - 0.00959 Ohm
11.05)2
X I - X 2 X ( 132 - 0.465 Ohm or 1.48 mH at 50 Hz
Further units
- For the 2nd and 3rd unit. we only have to use the special reference component
option. Hence. only the node name allocation still needs to be explained. For
the winding terminals. we have:
y.:.H BUSL
BUS1-S
BUSH
BUS2-S S
BUS1-T BUS2-T BUSL BUSH
BUS1-T BUS2-T T
BUSL BUSH
Further remarks
- Further. in this example. the homopolar short-circuit losses can not be covered
only by winding resistance losses. Hence additional losses can be confined to
a single resistance. to be placed between BUSH (star point of HV-side) and ground.
The value of this resistance is calculated as follows:
IV.E. Saturable transformer component - 68
153.09)2
P sA. ADm - 8.825 ( 70/3 - 379.94kW
Indeed. we had to upgrade the losses. since the homopolar short circuit test
was not performed under nominal conditions.
18US1_TBUSL
2aUS2 TaUSH
C end of data entry for thr_-pha•• tranaforwer unit -.uS3PR-
This model can be used to simulate a single-phase or 3-phase (both shell- and
core-type) 2-winding transformer, using test data of the exciting test and the
short-circui t test at the rated frequency. In the 3-winding case. numerical
problems might occur. The obvious symptom of trouble will be following message:
This message is somewhat deceptive. since there really is no trouble with this
TYPE-98 element at all. If one looks at the network node voltages. however. one
will observe an exponential blow-up of the solution without any abrupt change or
discontinuity. It rather appears to be that roundoff error (numerical noise) was
amplified as the simulation progressed, although up to now. the origin of the hash
could not yet be located.
IV.E. Saturable transformer component - 69
Excitation losses can be taken into account by this model, although these
losses can be neglected for both single-phase transformers as well as 3-phase
(3-leg shell-type or 5-leg core-type) transformers. On the other hand, for 3-phase
3-leg core-type transformers, the exciting current is fairly high in the
zero-sequence test and these excitation losses should therefore be included. The
short-circuit losses can (and always should) be taken into account.
The model can be used in both the linear and the saturated case, depending on
the input data netered for the flux-current characteristic (TYPE-98 pseudo-nonlinear
reactor model). Hysteresis can be simulated by adding type 96 elements connected
to the proper transformer terminals (i.e. the terminal ends of the winding that
is closest to the iron core) in the electrical network. during the steady-state
or transient run.
On the other hand, this complicated three-leg core-type model is not recommended
to use since it is not possible to represent magnetic coupling between the phases.
This type of 3-phase transformer better can be modelled using the supporting routine
BCTRAN (see section XIX-C), with the external addition of nonlinear elements at
the proper winding connection points (i.e. those windings which are closest to the
iron core).
IV.F.l. Applications
1 GENERAL USAGE
In Section IV.B we already discussed the multi-phase nominal PI-equivalent.
This appeared to be a good model to simulate transient behaviour on short lines
and cables. By connecting many short sections in series, keeping track of the
actual transposition (if any), even a transient model for a long line can be
obtained. Yet, because of the enormous memory requirements, more sophisticated
models were formulated. More details can be found in section 4.2. of the Theory
Book.
For transient anaLysis, the models of section IV.D are more appropriate.
For steady state (at any frequency), the CASCADED PI option dealt with in this
section is a better alternative, since it is less memory consuming. On the other
hand, some important limitations exist:
- CASCADED PI uses the long-line equivalent (not the nominal PI-equivalent). Hence,
the model is only valid at one specific frequency. Accordingly, only steady
state calculations (TMAX SOon miscellaneous data card) at that specific frequency
FREQCS (see IV.F .2-1: Cascaded PI header card) are honored. The frequency of the
type-14 sources should have the same value as FREQCS.
- the user can only obtain results at the line terminals, not at the interconnection
points.
A representation of such a model, you can find in the figure below.
M
W
.9'"
0
>
.
"",",
0
.:
RA1 58 7.0.1
...,\''''"' RBI SC 7B
1:"'"'
~
.2
ReI 7C .
2-
0 ;;
CD
'":
T
The mathematical modelling of this can be interpreted as follows. The components
T
representing the line are defined sequentially as a chain, from one end (sending
end) to the other (receiving end). For each such section, a long-line equivalent
PI is used. This data is in its turn processed as it is read, sequentially, so
as to produce at any stage of the process a mathematical equivalent for all
components between the sending end and the last component read. This is shown in
the next figure.
- EQuiVQ~nt for
-
..- components .. Component
K -
Equivalent for
components
1.2.3 ..... K-l
1.2. 3 •.... K
~
IV.F. Branch input u8ing "CASCADED PI" feature - 71
To represent this mathematical model. only the nodal admittance matrix [Y] is
used. Hence, when input process:ing of' the last component of' the cha:in :is completed.
an adm:ittance matr:ix among the term:inal nodes of the lines ex:ists, as shown in the
following matrix.
yss Y s,]
[ Y,s Yu
Remarks:
- The number of elements Yu of the matrix [Y], only depends on the number
of transmission lines; it is independent of the number of components
which are cascaded together.
- The number of cascaded components has its effect on the computational
effort to produce an equivalent. Only the computer time for translating
the input data to the global nodal matrix [YJ will increase with the
number of cascaded components. The time figure for the steady-state
solution remains the same, because finally, only one admittance matrix
will be withheld.
2 SPECIFIC USAGE OF "CASCADED PI"
Following rules must be taken into account when using the cascaded PI feature.
1) The first line segment of the chain of elements which are to be cascaded
may not have any series or shunt connections. That is, the sending end
must begin. with a. PI-circuit.
2) Second and later sections can each consist of up to four types of
sub-components, in the order as shown below:
a) Series uncoupled R-L-C branches. if any.
b) Shunt uncoupled R-L-C branches, if any.
c) New line-position (transposition) specification, if any.
d) specification of new (Le. changed) PI-circuit parameter matrices
[R], [L] and [C].
When using diagnostic (see benchmark DCPRINT25). the program also will generate
a phasor branch admittance matrix. Only the values are obtained correctly: the
format has to be modified manually according to the specifications explained in
section IV.G.
BEWARE: diagnostic should be activated in column 26 (overlay 3 = branch input).
The minimum IPRSUP(3)-value equals three. This will give you only the final values
for the phasor branch admittance matrix to be used as input (see section IV. G.) .
A higher IPRSUP(3)-value will list all intermediate results of the section elim-
ination too.
3 INPUT STRUCTURE
In order to utilize the "CASCADED PI" modelling feature as part of an EMTP
data case, the following classes of data are involved in the order indicated:
Class 1 "CASCADED PI" header card; special request card which begins the
definition process.
Class 2 Cards which specify the sending end and receiving end bus names, as
well as the [R], [L] and [C] matrices which apply to the first
PI-circuit.
Class 3 Line position card for the first PI-circuit, the one at the sending
end of the line.
Class 4 Line position card, if any.
Class 5 Cards defining series R-L-C branches, if any.
IV.F. Branch input using "CASCADED PI" feature - 72
Classes 1. 2. 3 and 8 are used once for the sending and receiving end of the line
in ques tion. Classes 4. 5. 6 and 7 apply to the interior of the line. to be repeated.
once for each section.
I~ ,~ E IE
~ i.l:~ if I~ Ie I ~ ,.I 'E~~I( ~
!E IEI~ IC ,2
NPHCASF REQCe::
l~~ f 'EI~IC I· l~ff IElc 1 ~i': [Link]~ ff IE IC . ~
l~
.* '~,~l C
CASCADED PI 16 E6.2
2 SPECIFICATION CARD OF BUS NAMES AND MATRICES [R7, [L7 and [C7
These data cards are used to specify the sending-end and receiving-end bus
names of the line as well as the [R]. [L] and [C] matrices which charactarize the
line or cable geometry of the first section. The format and meaning are identical
to that of the conventional PI-circuit (type 1,2.3):
I~ . .<1 iE IE
.*
,
w
.~
node names
I~ I( I~ ,~l~ i E IE f*
reference br.
1.1 IE~~!( i ~ [Link]·~E
elements (k. m)
I( I ~ ~ ;/ iE IE~~
I· 1.1 iE r!i~l( l:;i~ l~
elements (k. m+ 1)
'Ef~lc
(L
t
BUSl BUS2 BUS3 BUS4 R L C R L C R L C
~ I~ l~ E IE
~I- f~ff 't Ie I~ fE rt 1< IC I~ It ie :"1- l' rt~* I~I- ~ ,l~, t I~i( I~ i~i: rU~le
:" I ,l~ .
~~~, ( rE~5
'"0 '"0
(I)
Cl ~ ~ ~ ~
0 . ..
.c
~
.c .c
a.. a.. a.. (MAPCAS(I). 1= 1. NPHCAS)
E6.2 14 14 14 14 14 14 14 ....
TERMINAL
BRANCH
NODE
PARAMETER VALUES
NUMBERS
N1 N2 R L C
in section IV.F. 3-4. The general format then, used for this change of line parameters,
is the same format as shown in point 2 of this section, but notice the remarks in
section IV.F.3-7.
IliJIJJi4J~1~ljJ4jJ~~lJJJJJiJ~~IJJIJJjJJ~lJJIJJiJ~~IJJJJJ±JJ~llIIJJfJ~~lJJIJ~tJ~~
STOP CASCAD
IV.F.3. Parameters
2 SPECIFICATION CARD OF BUS NAMES AND MATRICES [R7, [L7 and [e7
ITYPE: Fill out the number of phases, beginning with 1, 2, 3, etc. up to NPHCAS
(see point 1 of this section).
BUSl. BUS2: Node names at both ends of the circlli t consisting of NPHCAS phases.
Nodes may be grounded (indicated by a blank field name) if desired. See
also remark 2.
BUS 3 , Bus4: If the cascaded PI circuit we are now specifying, is identical
with another previously specified cascaded PI circuit, following
storage-saving option may be used:
Repeat only the first node names of the reference cascaded PI circuit in
the same sequence in the BUS3-BUS4 fields. Leave the R-L-C fields blank.
On the second and later phases, only the node names of these phases must
be specified. See also remark 3.
R: ReSistance value in Ohms.
L: Inductance value (in mH or Ohms. depending on XOPT).
- an inductance L: mH (XOPT = zero or blank)
- a reactance 2nf*L: ohms (XOPT = f)
IV.F. Branch input using "CASCP~ED PI" feature - 75
I~ ,I~~~~ 11,*
SA RA
I'
tl~* !~ \! I( I: ~I H
I!
Ie Wlc tl
If
MSER = 1:
this indicates that there is a R-L-C series connection for this
section(s) and data for this is to follow.
MSER = 0: this indicates that there is no R-L-C series connection for this
section(s}.
MSER = -l:this indicates that there is a R-L-C series connection for this
section(s}. The data from the last R-L-C series connection is
to be used.
MSECT = 0: (or blank) means old R-L-C values are used for following
section(s).
MSECT = 1: a new R-L-C matrix is to be read in.
Phase1. Phase2, ••• : Specification of line position. These numbers are a map
of the position of the phases of the cascaded circui t. The sequence of the
fields (phase1. phase2. phase3. • •• ) as they appear in this card, correspond
to the order (1, 2, 3, ..• ) of the phases as they appear in the equivalen t
PI card (which specify the node names and R-L-C values). The number entered
in these phase-fields is the row number of the equivalent PI matrix where
this phase takes effect on the electrical properties specified by this
row.
Example: If phase 3 has electrical properties which are specified by the
second row of the PI equivalent matrix, then number 2 must be entered in
the field under "phase3" (column 33-36). See also remark 3 for further
usage.
Remark:
1) If MULTIP is set greater then 1 {default is 1 or blank}. so that there are
more then one identical sections being cascaded. then there may be series
and shunt connections between these sections. However. these connections
must be the same for all sections handled by this multiplicity feature.
2) Should the user desire to put the same R-L-C connection between every other
(unequal) section, then this can be easily accomplished as follows:
The first section preceeded by such a R-L-C series connection would have
MSER=l. The next section would have MSER=O. The third section, which is
to be preceeded by a R-L-C connection would have MSER=-l.
3) For 14 or less conductors, cols. 25-80 of the data card are sufficient, as
shown. For 15 or more conductors. the following data spills over onto as
many extra cards as are required to complete the data input. On such extra
cards, columns 1-24 must be left blank and the data must be punched from
column 25.
IV.F. Branch input uaing "CASCADED PI" feature - 77
l~· li~~~i~ *
1 SA RA
~~ l~
tl~~~ ~~~~E li~~~ ,,:~~~H~ ~~~Hl l~~il l!l<
I
Rll L1l Cll
I~
ill1 ~I!IC
II
~ mJ1~ ~~~ f~~~
2 5B RB R2l L21 C21 R22 L22 C22
3 5C RC R31 L31 C31 R32 L32 C32 R33 L33 C33
4 5D RD R41 L41 C41 R42 L42 C42 R43 L43 C43
R44 L44 C44
5 SE RE R5l L51 C51 R52 L52 C52 R53 L53 C53
R54 L54 C54 R55 L55 C55
: Etc.
IV.F.4. Examples
In order to show the power of this feature, let us compare the input files for
a given configuration:
1) manual setup (benchmark DC10)
2) cascaded PI setup (benchmark DC9 or DCP25).
Remark the differences in length of the input files. Further remark that the
cascaded PI setup has less memory requirements but is less flexible: in the manual
setup, all intermedite nodes are accessible too!!
2 CASCADED PI MODELLING
BEGIN NEW DATA CASE
C BENCHMARK DC-9
C Illustration of many "CASCADED PI" features. See DCPRINT-25 if any
C trouble. and DC-l0 for comparison (aame solution only manual cascade).
0.0 0.0 60. (TKAX-O.: only steady state
001 1
CASCADED PI 3 60.0 (FREOCS-60 Hz
lRA1 GAl .877 8.40 .1628
2RBl GBl .747 4.14-.0252 .852 8.43 .1559
3RCl GCl .735 3.47-.0067 .723 4.17-.0277 .829 8.46 .1571
1.0 2 o o 1 1 2 3
1.0 1 1 o o 2 3 1
2 999999
3 13.1449.071
BLANK card ending first Claas-5 (Seriea R-L-C) set of data
1.0 1 1 10312
1 13.14
2 13.14
3 13.1449.071
BLANK card ending 2nd Claaa-5 (Seriea R-L-C) set of data
1 -1 13.1449.071
2 -1 13.1449.071
3 -1 13.1449.071
-1 5.0 13.14
BLANK card ending firat Class-6 (Shunt R-L-C) aet of data
2.0 1 -1 -1 1 1 2 3
1 .829 8.46 .1571
2 .723 4.17-.0277 .852 8.43 .1559
3 .735 3.47-.0067 .747 4.14-.0252 .877 8.40 .1628
STOP CASCADE
BLANK card ending branch carda
BLANK card ending switch carda (none for thia problem)
CAll steady .tate .ourc•• (type-14) work at a frequency equal to
14GAl 424.35 60. 0.0 -.1
14RA1 424.35 60. 10.0 -.1
14GB1 424.35 60. -120.0 -.1
14RB1 424.35 60. -110.0 -.1
HGCl 424.35 60. 120.0 -.1
14RCl 424.35 60. 130.0 -.1
BLANK card ending aource cards
C Total network loa. P-loa. by summing injections - 9.311041032B66E+03
C 1st gen: RAl 417.90316999073 424.35 -.0131358847782 .05382578726276
C 1st gen: 73.687604192962 10.00000 .05219831324431 104.1253709
C End last gen: -12.95674346101 44.419110587004 -6432.468410934 9424.6247887975
C End last gen: -42.48741206788 -106.9593405 -6888.171205186 -0.6825172
BLANK card ending selective node voltage outputs (none for this problem)
PRINTER PLOT
BLANK card ending plot cards (none allowed for CASCADED PI use. actually)
BEGIN NEW DATA CASE
BLANK
IV.G. [Link] branch [Yl input it no [Link] simulation - 81
IV.G.l. General
The card format to input the phasor admittances basically is the same format
as used in section IV. C. (type 51.52.53). But the meaning of the parameters is
entirely different. The only way the program recognizes the difference between a
mutually coupled RL input and a phasor branch admittance input is the unnamed extra
phases for the extra rows of the branch admittance matrix.
If If
I~ l'IE I( I~ t4 f ~ H tal 1'1_ 1,1 '~E t! II fE tll! ~,
ff r!~! I'I~ tH!IC I~ ~~I ! t*l( bl t!I~
w node names reference br. elements (k. m) elements (k. m+ 1) elements (k. m+2)
a..
~
BUS1 BUS2 BUS3 BUS4 TR TX TR TX TR TX
I! II
I· ~~If t!llj( 1. 1' piC f')' '!~I tl I( If WI(
I'
,. ~!tE ~q( ,. t' f!lq( I' f!11 taq< I' rd!jc
IE
12 A6 A6 A6 A6 E16.0 E16.0
IV.G.3. Parameters
ITYPE: Specifies N phases by numbering 51. 52. 53 •.•. 50+2*N in this field.
N is limi ted up to 20. In case of 3 phases. the numbering will be:
[Link].55.56. since there are 6 rows. Continuation cards must have
blank ITYPE fields. See also remark 4.
BUS1. BUS2: Terminal node names of the elements in the phase, indicated by the
ITYPE field. Nodes may be grounded (indicated by blank field name) if
desired. In case of 3 phases. there will be 6 cards to be specified, but
only the first three cards will contain the node names. See also remark
4. This is the only difference between the ordinary type 51,52,53 element
of section IV.C. and the phasor branch admittance discussed in this section.
BUS3. Bus4: Equally to mutually coupled RLC branches. referencing can be used
here. The same rules must be taken into account as typing only the node
names of the first phase of the reference set in the same sequence.
IV.G. Phaaor branch [Y] input if no tranaient aimulation - 83
TR. TX: These fields are occupied with the phasor branch admittance values (TR
contains the real part. TX contains the imaginary part). expressed in mho
and calculated at the frequency for which the steady state calculation
will be performed. When the CASCADED PI feature was used as data generator'.
this frequency has the value FREQCS.
Unlike previous cases, XOPT always should be put equal to i;.. in order to
avoid scaling. The value of COPT has no importance for type 51,52,53 cards.
note:
TR and TX are the table headers. as obtained by the data generator {CASCADED
PI-feature. using DIAGNOSTIC output in overlay 3 (=column 26). The minimum
value for IPRSUP(3} = 3}.
Remarks
" are symmetric, so only need to be specified on and
1) Matrices [TR] and [TX]
below the diagonal. When one card is not sufficient to specify all TR-TX
values. then continuation cards are used, with columns 1-26 left blank. The
only way the program recognize the difference between a mutually coupled
RL input (type 51.52.53) and the phasor branch [V] input is the unnamed
extra phases for the extra rows of the matrix. The, following format applies
for a 3-phase case:
a) for $VINTAGE. 0:
IE If
I~ I'll tf I~ ~!!l t! I~CI( ~! tIl! WI< H! II tl 1< tI Ie
5 SA RA
!-
TRl TXl .'
5: SB RB TR2 TX2 TR3 TX3
5~ SC RC TR4 TX4 TR5 TX5 TR6 TX6
54 TR7 TX7 TRB TXB TR9 TX9
TR10 TXl0
5" TR11 TX" TR12 TX12 TR13 TX13
TR14 TX14 TR15 TX15
5E TR16 TX16 TR17 TX17 TR18 TX18
TR19 TX19 TR20 TX20 TR21 TX21
IV.G. Phasor branch [Yl input if no transient simulation - 84
b) for $VINTAGE, 1:
5 SA RA TR1 TX1
5~ 58 RB TR2 TX2
TR3 TX3
5 SC RC TR4 TX4
TRS TXS
TR5 TX6
TR7 TX7
TR8 TX8
TR9 TX9
TR10 TX10
55 TR11 TX11
TR12 TX12
TR13 TX13
TR14 TX14
TR1S TX15
SE TR16 TX16
TR17 TX17
TR18 TX18
TR19 TX19
TR20 TX20
TR21 TX21
2) There is no branch current output possible for this branch type. However,
the branch voltage can be obtained on the first two phases (column 80 is
not being used).
3) There mus t be added two $UNITS cards.
a) The first one "$UNITS, .1591549431,0." is mandatory whenever [YJ input
is used, so loading [YJ into List-3 tables TR and TX (see diagnostic
output) has been done without any scaling. In this first $UNITS card
XOPT must than be equal to .1591549431 = ~, since the scaling factor
should be unity. COPT can be anything, since it will not be used.
b) The second "$UNITS, -1., -1." card is needed to restore the previous
values of XOPT and (less important) COPT.
IV.G. Phasor branch IT] input if no transient simulation - 85
IV.G.4. Example
Data generator:
BEGIN NEW DATA CASE
C BENCHMARK DCPR-25 Diagnostic version of DC-9.
DIAGNOSTIC 0 0 3 0 o 000 000 (critical to generate phasor branch output
0.0 0.0 60.
001 1
CASCADED PI 3 60.0
1RA1 GAl .877 8.40 .1628
2RB1 GB1 .747 4.14-.0252 .852 8.43 .1559
3RC1 GC1 .735 3.47-.0067 .723 4.17-.0277 .829 8.46 .1571
Only the extra DIAGNOSTIC line contents and place are shown here. The remainder
of this data case is the same as nC9 (already depicted in section IV.F.).
Generated branCh admittance output:
Remarks;
1) TR-TX table manually should be put in the proper input format described in
this section (IV.G).
2) Although the type 51.52.53 data are preceeded by a SUNITS card. data are
only valid for the frequency for which they are created (value FREQCS = 60
Hz in DCPRINT25). So only type 14 - sources at that very frequency are
allowed. Furthermore, only Steady state calculations at the same frequency
are allowed.
IV.H High-order rational admittance function - 88
IV.H.I Applications
Any impedance or admittance seen from a port of a passive network or network component can be
expressed as a rational function in the frequency domain. The poles and zeros of the rational function
reflect the dynamic behavior of the system and indicate resonant frequencies of the network under
consideration. This electrical branch allows direct representation of aport -admittance given in form of .
a rational function for electromagnetic transients simulations. Rational function expression for port-
admittances can be gained by approximation of frequency response curves using external
fitting/optimization techniques.
The high-order rational admittance function Yes) (or Y(z» has been used to represent low-order
network equivalents in the EMTP for switching surge computations. An application of this branch can
be found in the paper of M. Kizilcay, Low-order network eqUivalents for electromagnetic transients
studies, European Trans. on Electr. Power Eng. (ETEP), vol. 3, no. 2, pp. 123-129, Mar./Apr. 1993.
Theoretically, the developed model can be used to represent any individual power system component,
provided that the poles and zeros of its immittances are known in an frequency interval, that is relevant
to the type oftransient studies.
Yes) Y(z)
The rational admittance function of the branch connecting nodes BUS 1 and BUS2 shown in the above
figure may be described either in s (Laplace transform) or z (Z-transform) domain as follow:
in Laplace domain:
Q +QS+"'+QS'"
res) =K 0 1 '"
h +hs+···+hsn
o 1 n
inzdomain:
A +.A Z -1 + ... + .A Z-l/l
Y(Z) = K 0 1 '"
B~ + B 1Z -1 + •.• + B nz ~
The data input of this new EMTP-branch is slightly tricky. The node pair for this branch and the output
option (branch current, branch voltage, etc.) must be declared on a preceding RLC branch card (type
0). A dummy resistance value (columns 27-32), that has no meaning, must be supplied on the RLC
branch card.
IV.H High-order rational admittance function - 89
The following card sequence must be inserted in the group of branch cards of the electrical network:
1 2 3 4 5 6 7
12 1345678901234 5678901.23456 789012 3456789012345£789012345678901234567890123456789
I dummy
T node names resis.
y
p BUSI BUS2 R (Q)
E
12 A6 A6 E6.2 II
11
The parameters used in the above card are the same of uncoupled, lumped series RLC branch explained
in Section IV.A.2
A special request card with the request 'KIZILCAY F-DEPENDENT' in capital letters (columns 1-20)
follows immediately the RLC branch card.
1 2 3 4 5 6 "I
[1:234567-890'1234567890:1234 56789012 134561890'1234567890'1234567 [Link] Is 678901234567.890
A20, 4X I8 E25.0
1
Parameters:
ORDER: maximum value between m and n, which are the orders of the numerator and denominator
polynomials of the rational function, respectively (please refer to the equations ofY(s) and
Y(z) given above).
SZFLAG: flag to indicate the type of rational function (Y(s) or Y(z» to be entered. Please enter'S'
for Laplace-transform or 'Z' for Z-transform modelling in capital letters. Leaving blank is
the same as'S'.
Depending on the value of ORDER, a sequence of (ORDER+I) cards with the coefficients of
numerator and denominator polynomials follow:
1 2 3 4 5 6 7 8
1234567S90~2345678901234!: 6789012345678901234567890 P.23456789012345678901234567890
coefficients of coefficients of
numerator polynomial denominator polynomial
ai or Ai b i or Bi
i = 0,1, •• , ORDER i = 0,1, .• , ORDER
E2S.0 E2S.0
Parameters:
IV.H.3 Remarks
1. It is recommended to check the stability and realizibility of the rational function to be represented.
F or example, the orders of the numerator and denominator polynomials may differ at most by
unity 'I' according to network theory.
2. In an electrical network maximum 30 such branches with maximum order of25 each are allowed.
3. Time step DELTAT (see IT.B.1 floating-point miscellaneous data card) must be consistent with
the sampling period ofZ-transform applied to obtain the rational function Y(z).
IV.H High-order rational admittance function - 91
IV.H.4 Examples
Series RLC-circuit
This simple data case is selected to show data input format. A series RLC-circuit wi]] represented by a
rational admittance function Y( s) and the results of the simulation can be compared with those of an
ordinary RLC-branch.
R L c
GEN
0.050 lmH
Cs
Yes) =
1 + RCs + LCs 2
EMTP data cases comparing the representation ofY(s) with the ordinary RLC-branch are given below:
C 1 2 3 4 5 6 7 8
C 345678901234567890123456789012345678901234567890123456789012345678901234567890
0.0005 0.05 O. O.
10 1 1 1 1 1
C
RES 0.05
C -- preceding R branch defines node names and output option
C < .... >: dummy value!
GEN RES 99. 1
C ---Request-------> < Order><-------- Gain --------->
KIZILCAY F-DEPENDENT 2 1.0 S-transform
C -coeff. of numerator--><-coeff. of denominator->
0.0 1.0
0.005 2.5E-4
0.0 5.0E-6
BLANK ending branch cards
BLANK ending switch cards
llGEN 10.
BLANK ending source cards
1
BLANK ending plot cards
BEGIN NEW DATA CASE
BLANK
Z-Transfonn Application
The same series RLC branch in the figure above is represented by a rational function Y(z). The
coefficients of s given above are converted into Z-transfonn quantities by applying the bilinear
transfonnation:
2 (l-Z·l)
s = _.-'----'-
At (l+Z·l)
10 - 10z·2
Y(z)
41 - 79z·1 + 4Oz·2
Note, for a diffurent time step At, these coefficients are no more valid, i. e. they must be recalculated for
each new DELTAT. The EMTP data case looks as follows:
IV.H High-order rational admittance function - 93
C 1 2 3 4 5 6 7 8
C 345678901234567890123456789012345678901234567890123456789012345678901234567890
C ---Request-------> < ORDER><-------- GAIN ---------> I
KIZILCAY F-DEPENDENT 2 1.0 Z-transforrr,
v. NONLINEAR ELEMENTS
Single-phase nonlinear elements are those consisting of a single, nonlinear network branch
having two tenninal nodes. Both resistors R and inductors L fall into this class. Although such elements
are usually installed in 3-phase banks at some location of the network, the elements themselves are
inherently single-phase. It is not the elements themselves, but rather the network, which provides
coupling among such elements. This is to be contrasted with multiphase nonlinearities of rotating
electric machinery, which are not treated in the present single-phase section (for machinery, see Section
VIII and IX) .
In addition to nonlinear elements, time-dependent elements are also treated in the present
section. Although linear, such elements can not conveniently be solved together with those linear
elements that are constant (and which can be built into a constant nodal admittance matrix [Y]. Time-
varying linear elements are grouped with nonlinear elements because they can be solved by the same
specialized solution techniques. The Type-97 staircase time-varying resistance of Section V-C is solved
along with pseudo-nonlinear elements, whereas the Type-91, piecewise-linear, time-varying resistor of
Section V -F is solved along with true nonlinear elements using compensation and superposition.
The dominant distinction among the various nonlinear and time-varying elements of the present
chapter has to do with the solution method that is used. Half are solved "exactly" as "true"
nonlinearities, using compensation and superposition. The other half, called "pseudo-nonlinear", are
only solved approximately (although this may be perfectly adequate for engineering purposes. Pseudo-
nonlinearities are represented at each time step by a single linear segment that was selected from the
known solution of the preceding time step. Whereas true nonlinearities are rigorously solved using
Newton's method to iterate on all coupled nonlinear equation of an isolated subnetwork, pseudo-
nonlinearities have no such coupling, and the resulting solution may involve error (if operation does not
remain on assumed linear segment). A pseudo-nonlinearity is really only appropriate if the user knows
that the resulting operation will vary smoothly along the characteristic as a function of time.
The various subsection of this chapter are devoted to specific nonlinear elements. They have
been ordered according to the solution method that is used. First come the pseudo-nonlinear models
(Section V-A through V-D), followed by the true nonlinear models (Section V-E through V-J). The
Table of Contents (Section 0) provides a summary list of all of them.
The computational burden of true pseudo-nonlinearities is quite different than that of pseudo-
nonlinearities, and this difference should be understood by the user. For the case of inductors, this
aspect is important in selecting between the two alternate forms of modeling. Pseudo-nonlinearities are
represented within the nodal admittance matrix [Y] for the linear network. Each time the operating
point of any pseudo-nonlinear elements of the network changes from one linear segment to another of
the piecewise-linear characteristic, the affected four elements of [Y] must be modified, and the entire
matrix must be retriangularized. Case summary statistics show the number of times this has happened
upon the completion of execution (see "No. times=" in the line of List 5). As network size grows to
infinity, reliance upon pseudo-nonlinear modeling would result in segment changes on nearly every time
step, and hence very slow simulation. Users who assemble network with thousands of nodes and
hundreds or thousands of nonlinearities should be aware of this disturbing asymptotic limit. As for true
nonlinearities, these are not a part of [Y] at all. Instead, they are handled as current injections (using
superposition) after the nonlinear elements currents have been found by a solution that involves a
2 -V. Nonlinear elements
Thevenin equivalent of the linear network . This is the compensation approach. Provided distributed-
parameter transmission circuits isolate nonlinearitiesinto subnetworks of reasonable size ( e.g.,
involving just 3, or 6 or even 12 nonlinearities for each subnetwork), compensation has the advantage
that computational effort only varies linearly with network size, and repetitive triangularization of [Y]
is avoided.
As a general rule, nonlinear resistors may undergo unpredictable and discontinuous operation.
For example, a resistor in parallel with a linear inductor will have voltage that is equal to the derivative
of the inductor current, and this derivative need not be continuous. On the other hand, resistors in
parallel with lumped, linear capacitance will necessarily operate smoothly, since the voltage is integral
of the capacitor current. So, pseudo-nonlinear modeling of resistor in parallel with a linear inductor is
generally suicidal, whereas pseudo-nonlinear modeling of resistor in parallel with a capacitor is
generally acceptable. But if such details are unclear, the general rule is that nonlinear resistors should
be modeled as true nonlinear elements. Ie., in the absence of knowledgeable advice to the contrary,
avoid Type-99 modeling of Section V-A, and use Type-92 modeling of Section V-E and V-F instead.
As a general rule, nonlinear inductors will operate smoothly, since flux is the integral of voltage.
Hence pseudo-nonlinear modeling (Type-98 of Section V-B, or Type-96 of Section V-D) are
acceptable, and are to be preferred over the true nonlinear modeling (Type-93 of Section V-H). This
assumes that the network is too large (resulting in too much triangularizing), and that the characteristic
is not represented by too many segments (resulting in too many or too fast changes among segments).
The general principle is simple: compensation is too good and too powerful to be wasted on something
as simple as a saturable reactor. Save the compensation for those cases where it may be needed (e.g.,
ZnO modeling, or maybe the U.M.).
Because user-supplied FORTRAN has been connected to true nonlinear elements, but has not
yet been connected to pseudo-nonlinear elements, there is much greater potential variability of true
nonlinearities. If the reader does not notice the nonlinear modeling that he is looking for, perhaps he
could write his own. Details are covered in Section V-J.
V. Nonlinear elements - 3
T ACS can be used to modify or enhance any basic, true, nonlinear element in anyone or a
combination of the following three elementary ways:
Each true nonlinear element can use up to three TACS variables to control these. three
functions. The names are declared on a special-request card that must immediately follow the ""9999"-
card that terminates the nonlinear element to be controlled. The format of the declaration is as follows:
1 2 4 567 8
12345678901234 6789012345 45678901234567890123456789012345678901234567890
TACS CONTRO
A6 A6 A6
The three TACS variable names of columns 15-32 correspond to the three functions listed, in
order. Any name that is left blank is interpreted as a request for no such TACS control. In the cases of
sources, the value (voltage or current, respectively) is set equal to the controlling TACS variable at
each time step. As for the usage ofNAME3 to scale the characteristic, it is the current that is multiplied
by the TACS variable in question. Examples of such usage can be found in the BENCHMARK test
cases. For series voltage (''NAME1'') control, see. the 2nd. subcase of BENCHMARK DC-37; For shunt
current ("NAME2") control, see the 2nd subcase of BENCHMARK DC-45; For scaling of the
characteristic ("NAME3" usage), see the 3rd subcase of BENCHMARK DC-45.
The interpretation ofthe "TACS CONTROL" declaration can be illustrated by the solution to
the 2nd subcase of BENCHMARK DC-37:
--------------------------------------------------+--------------------------------------------------------------------------------
Descriptive interpretation of input data cards. I Input data card images are shown below, all 80 columns, character by character
o 123 4 5 678
012345678901234567890123456789012345678901234567 890123456789012345678901234567890
--------------------------------------------------+--------------------------------------------------------------------------------
COIII1tIent card. NUMOCD = 1. IC data:DC37_2.DAT
Marker card preceding new EMTP data case. IBEGIN NEW DATA CASE
Comment card. NUMDCD = 3. IC DIAGNOSTIC 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
Comment card. NUMDCD: 4. IC 2nd of 3 subcases. Same basic network as just solved, only with modified
« Comment cards removed for brevi ty »
Width of time-step loop numbers. W:13 S:2 IPRINTED NUMBER WIDTH. 13, 2, {Request mllllimum preciSion (for 8 output columns)
Misc. data. 5.000E-05 2.000E-02 [Link]+OO I .000050 .020
Misc. data. 1 1 1 0 1 -1 0 0 0 0 I 1 1 0 -1 0
Printout : 2 10 33 1 40 10 I 2 10 33 1 40 10 100 50
Electric network, too. But TACS data first ••• ITACS HYBRID { We use TACS only to produce series voltage 'SATTER' of ZnO
Free-format TACS supplemental variable defined. 199BATTER = 10000. {Small battery (dc source) is inserted in series with ZnO
Names of TACS variables for output vector. I 33BATTER { Output tile only this one TACS variable that controls ZnO source
TACS initial condition. 'BATTER' 1.000000E+04 I77BATTER 10000. (Initial condition required for smooth electrical step 1
Blank card terminating all TACS data cards. IBLANK card ending. all TACS data
3.060E-01 5.820E+00 1.200E-02 6.964E+02 1.671E-031-1SEND REC .306 5.82 .012 200.
Type-92 R(i) [Link]+OO [Link]+OO 5.5550E+03 192REC 5555.
Comment card. NUMaCD = 28. IC :=::=:=:=:=:::::::=:::=::::::::::::==:::==::=:==:=::::=:::::=::::::::::::::=:
Comment card. NUMDCD = 29. IC 92REC TYPll 5555. 1
Comment card. NUMDCD: 30. IC The preceding comment card is just for verification of solution. See the
Comment card. NUMDCD: 31. IC explanation on comment cards below the blank card ending switch cards.
Comment card. NUMDCD = 32. Ie ==::::::::::::::=::::====::::::==::::=::=:=:::::::::=::==:::==:=::=:::==:=:::
4 -V. Nonlinear elements
While it is possible that no solution will be found using Newton's method (in which case an
EMTP error termination would result), the nonlinear element solution should be correct if the
simulation runs to completion. This is a dominant advantage of the compensation-based approach. A
disadvantage is that isolating, distributed-parameter transmission lines must be used to separate a
subnetwork containing such single-phase nonlinear elements from any compensation-based UM.
modeling. But since the UM. generally can be used without compensation if necessary, the artificial
separation using stub lines is almost a thing of the past. Such isolation is almost never necessary for
single-phase, nonlinear elements, although it might be used as a matter of computational convenience
(to reduce the maximum number ofnonlinearities within anyone subnetwork).
Consider controls of the Newton Iteration, Which may require adjustment for difficult
configurations. It is the "ZINC OXIDE" special-request card of Section II-A that allows the user to
redefine Newton controls at the beginning of execution.
A possible error termination for true nonlinear elements is associated with singularity of the
equations being solved. To invert the Jacobian matrix [J] of Newton's method, pivoting is used, and
miscellaneous data parameter EPSILN provides the measure for "how small is small". If a solution is
diverging ("blowing up"), it is not uncommon for there to be an EMTP error termination complaining
about a singular [1]: KILL == 209, LSTAT(19) == 3501. This is particularly true for ZnO arresters of
Section V-E, since excess voltage is fed back into the ZnO nonlinearity to produce astronomical
currents. Elements of the Jacobian matrix thus can be quite abnormal, and it is the singularity test that
not infrequently terminates the simulation. BPA production users have had this problem in cases where
ZnO protection of series capacitors was used, with a fault placed on the system in the phasor sinusoidal
steady state solution for initial conditions (Ref. 8, Vol. X, Page MIOG-12, "Rule", 8 March 1980). So
if a simulation ends prematurely due to a singular Jacobian matrix, the user is advised to examine the
voltages across the nonlinear element at the time of difficulty, since this is the initial guess for Newton's
method. Unless such voltages are reasonable physically, the iteration has little hope for convergence.
Possibly the iteration limit would simply be reached, but more likely, singularity of the Jacobian would
be detected.
Should the Newton iteration of coupled nonlinear elements somehow terminate abnormally, the
user of interactive execution, observation, and control (Spy of Section XVI) will be given an
opportunity to observe and correct the trouble. First, there will be an abbreviated explanation of the
trouble, followed by suspension of the simulation, and a disaster-level audible alarm and prompt as
follows:
SEND REMEDY (SPY, SOLVE, LOOK, STOP) :
The simplest of possible responses is "STOP", which is to be used if the user surrenders, and if he
V. Nonlinear elements - 5
wants to tenninate program execution. But more optimistic is always appropriate and simple "LOOK",
which will result in a repeat of the failed Newton iteration with DIAGNOSTIC printout turned on. The
user can control the level, since there will be a subsequent prompt for it in this case:
The response "9'~ is generally appropriate here. From the resulting diagnostic output, the source of the
trouble may be evident, in which case the user might attempt an on-line correction using Spy (which
will be available after sending "Spy"). The user might want to change control parameters of the
Newton iteration via "DEPOSIT", and for the, the following information about the storage of variables
of the "ZINC OXIDE" special-request card is critical. The maximum number of iteration is stored in
variable MAXZNO, the convergence tolerance is EPSZNO, the warning tolerance is EPWARN, and
the fatal error tolerance (resulting in the present interruption) is EPSTOP. Finally correction of the
Newton iteration are limited by ZNOLIM(l) and ZNOLIM(2). The interactive user only relinquishes
control by sending "SOLVE". Yet, if the resulting, resumed iteration fails to converge, the "SEND
REMEDY" prompt will reappear in short order.
6 -V. Nonlinear elements
Data cards for Type-99, pseudo-nonlinear resistor R(i) begin with a single branch card bearing
type code "99" in columns 1-2:
1 2 4 5 6 7
2 45678901234 6789012345 45678901234 678901234567890123456789012345678
A6 A6 A6 A6 E6.0 E6.0E6.0
The usual pair of terminal node names BUS1 and BUS2 occupy columns 3-14, and BUS3 and
BUS4 of columns 15-26 are used for reference-branch or branch-naming purposes. As usual,
column 80 can be used for branch output requests. In between are four variables VFLASH, TDELAY, JUMP,
and V SEAL - all related to flashover of the built-in gap or opening on a current zero. The Type-99
branch is an open circuit during the phasor solution, and it is only connected when the branch voltage
exceeds (in absolute value) the threshold VFLASH ' Then operation will begin on segment number JUMP,
and conduction will continue for a while (usually until a current zero).
When a current zero occurs, there will be opening, provided a time interval greater than or
equal to TDELAY has elapsed since the most recent flashover. The current zero is noted by reversal in the
sign of the current, and it is assumed that this reversal will occur only while operation is on the first
segment of the characteristic. If the current zero occurs while operation is on some higher segment, a
warning message will be issued:
If such a message is ever seen, the user should be skeptical of the solution, and should either
look for an error in his choice of parameters, or he should consider switching to true nonlinear
modeling.
An alternative opening strategy is use a voltage criterion rather than a current zero. Ifkeyed
positive, parameter V SEAL provides for this: there will be disconnection when the branch voltage falls
below this threshold in absolute value. This allows opening before a current zero (useful in some cases).
Next come cards that specifY the nonlinear i-v characteristic point by point, from left to right
(in order of increasing device current), with one data card for each pair of values defining the
piecewise-linear curve. The format is:
1 2 3 4, 5 6 7 8
23456789012345 890123456789012 45678901234567890123456789012345678901234567890
The origin (0,0) is an implied point number zero that the. user is to skip. The v-i characteristic
is assumed to be symmetric, so no negative values are to be keyed by the user. The user merely keys 2
or more positive points (for a nonlinearity~ one point would result in a linear branch), and terminates
this characteristic with a "9999"-card (a special value of current, in effect).
The user of TYPE-99 modeling must resist the illusory idea that accuracy improves as the
number of segments that define the characteristic approaches infinity. The trouble is that operation is
only allowed to move from one segment to an adjacent segment during a single time step. Too many
segments means that operation will sometimes be on the wrong segment, leading to error.
Ifthe user wants to allow a Type-99 element to flash only once, then he can use the "SINGLE
FLASH" option. This is declared on a "9999"-card as follows:
1 2 3 4 5 6 7 8
234567890123456 r890123456789012 ~45678901234567890123456789012345678901234567890
9999. isINGLE FLASH
Within any data case, the "SINGLE FLASH" request is to be keyed only once, on the first
element (in order of data input) to be controlled in this way. Any other Type-99 element that has the
same first breakpoint voltage will be assumed to have such modeling, too. Hence any number of
Type-99 elements can be constrained to flash only once, but all must have the same characteristic (or
more precisely, the first voltage of each must be identical).
The interpretation of input data cards for the Type-99 pseudo-nonlinear resistance R(i) can be
illustrated using the solution to BENCHMARK DCPRINT -6. The initial branch card confirms the
values of parameters VfLASH ' TDELAy, and JUMP, whereas (x,y) values of the characteristic are
confirmed on each such card:
--------------------------------------------------+--------------------------------------------------------------------------------
Descriptive interpretation of input data cards. I Input data card images are shown below. all 80 columns. character by character
a 123 4 5 6 7 8
01234567890 1234567 890 1234567 89012345678901234567890123456789012345676901234567890
--------------------------------------------------+--------------------------------------------------------------------------------
Comment card. NUMOCD = 1. IC [Link]
Marker card preceding new EMTP data case. IBEGIN NEW DATA CASE
Comment card. NUMDCD = 3. IC BENCHMARK DCPR-6
Comment card. NUMDCD = 4. Ie Test of Type-99 pseudo-nonlinear resistance. I-phase line energization.
Width of time-step loop numbers. W=I3 S=2 IPRINTED NUMBER WIDTH. 13. 2, I Request maximum precision (for 8 output columns)
Debug print. a 9 9 9 9 9 0 9 9 9 9 9 IDIAGNOSTIC 0 9 9 9 9 9 0 9 9 9 9 9 9 9 9 9 9 9 9
Misc. data. 2.000E-04 2.000E-02 6.000E+01 I .000200 .020 60. 60.
Misc. data. 1 1 1 1 1 -1 0 0 0 0 I 1 1 1 1 -1
Printout: 2 -1 5 5 20 20 I 2 -1 5 5 20 20
Series R-L-C. 1.000E+02 [Link]+OO [Link]+OO I REC 100. 3
3.000E-01 4.000E-01 1.260E+01 1.782E+02 5.955E-041-1SEND REC 0.3 0.4 12.6 100.
Type-99 nonlinear R. 5.000E+OO [Link]+OO 2 199REt 5.0 Z 1
Breakpoint. 1.00000E+OO 1.00000E+02 I 1.0 100.
Breakpoint. 2.00000E+OO 2.oo100E+02 I 2.0 200.1
Spacial t.~inat;on-of-points card. I 9999
Blank card ending branches. IBR. NTOT = 2 3 IBLANK card ending branch cards
Should the "SINGLE FLASH" option be used on the "9999"-card, then the interpretation of
this final card is augmented as follows
Special termination-of-points card. I-fl ash 9999
8 -V. Nonlinear elements
Data cards for Type-98, pseudo-nonlinear reactor L(i) begin with a single branch card bearing
type code "98" in columns 1-2:
1 2 3 4 5 6 7
2 45678901234 6789012345 890123456789012345678901234567890123456789012345678
A6 A6 A6 A6 E6.0 E6.0
The usual pair of terminal node names BUSl and BUS2 occupy columns 3-14, and BUS3 and
BUS4 of columns 15-26 are used for reference-branch or branch-naming purposes. As usual,
column 80 can be used for branch output requests. In between are the coordinates ( i , l\r) in the
current-flux plane for the linear representation during the steady-state phasor solution.
Next come cards that specify the nonlinear i -l\r characteristic point by point, from left to right
(in order of increasing device current), with one data card for each pair of values defining the
piecewise-linear i -l\T curve. The format is:
1 2 3 4 5 678
23456789012345 890123456789012 45678901234567890123456789012345678901234567890
Current (i) Flux (~)
E16.0 E16.0
The origin (0,0) is an implied point number zero that the user is to skip. The i -l\r characteristic
is assumed to be symmetric, so no negative values are to be keyed by the user. The user merely keys 2
or more positive points (for a nonlinearity; one point would result in a linear branch), and terminates
this characteristic with a "9999"-card (a special value of current, in effect).
For typical production usage, the Type-98 pseudo-nonlinear inductance works well, and is
recommended ahead of the compensation-based, Type-93 model of Section V-H. The Type-98 reactor
a subcomponent of the saturable TRANSFORMER model of Section IV-E, and can be connected
almost anywhere, in any number, without much concern by the user. The only general concern are
about computational efficiency for very large cases (see Section V), problems with a large number of
short segments to represent the characteristic, and excessive flux during the phasor solution.
The user of Type-98 modeling must resist the illusory idea that accuracy improves as the
number of segments that define the characteristic approaches infinity. Operation is only allowed to
move from the current segment to an adjacent segment during a single time step, and this may cause
trouble. Too many segments means that operation will sometimes be on the wrong segment, leading to
error. Note that the use of 2 segments always avoid this problem (each segment is adjacent to the
other). On the other hand, two segments is too crude for typical, modem modeling. The use of3 to 5
V. Nonlinear elements - 9
Trouble with excessive flux during the phasor solution refers to operation on other than the first
segment of the nonlinear characteristic. Actually, the characteristic is not used, since an equivalent
linear inductor of the user's choice is used to represent the branch during the phasor solution. But when
the phasor solution is complete, and the flux at time zero calculated from it, there is a problem if this
initial flux exceeds the end of the first segment of the characteristic. Since flux is continuous, step one
of the transient simulation will involve an abrupt change of current, as the operating point moves
toward the appropriate 2nd or later segment. The associated surge of current produces voltage spikes
in other inductors, of course. In general, then, there may be bothersome discontinuities at time zero, if
the phasor flux exceeds the first segment of the magnetization curve. This is good reason to have a long
first segment, and also to consider adjusting the angular reference of phasors so that no one problem
flux is at its maximum at time zero.
The interpretation of input data cards for the Type-98 pseudo-nonlinear reactance L(i) can be
illustrated using the solution to the second subcase of BENCHMARK DCPRINT-15. The initial
branch card confirms the values of parameters i and l\1 , whereas (x,y) values of the characteristic are
confirmed on each such card:
--------------------------------------------------+--------------------------------------------------------------.--.-.------------
Descriptive interpretation of input data cards. I Input data card images are shown be1o", all 80 columns, character by character
o 123 4 5 6 7 8
012345678901234567890123456789012345678901234567 890 123456 7890 1234567 890 123456 7890
--------------------------------------------------+--------------~----------------------------------------------------------------.
Comment card. HUMDCD = L IC data.DCP15_2.DAT
Marker card preceding ne" EMTP data case. IBEGIN NEW DATA CASE
Comment card. HUMDCD = 3. IC 2nd. of 2 sub cases replaces the Type-93 reactor by a Type-98 one
Width of time-step loop numbers. W=13 S=2 IPRINTED NUMBER WIDTH, 13, 2, {Request maximum preciSion (for 8 output columns)
Debug print. 0 9 9 9 9 9 0 9 9 9 9 9 IDIAGNOSTIC 0 9 9 9 9 9 0 9 9 9 9 9 9 9 9 9 9 9 9
DELTAT-1oop printout. 0 0 0 0 IALTERNATE DIAGNOSTIC PRINTOUT, 0, 0, 0, 0, { Required for 2nd or later case only
Misc. data. 5.000E-03 1.000E+00 [Link]+OO I .005 1.0
Misc. data. 1 1 1 1 -1 0 0 0 0 I 1 1 -1
Pri ntout : Z -1 5 5 20 20 I 2 -1 20 20
Series R-L-C. 1.000E+03 [Link]+OO [Link]+OO I LOAD 1.0E3 3
Sat. Xformer. [Link]+OO [Link]+OO [Link]+OO I TRANSFORMER TRAN
Special termination-of-points card. I 9999
Winding 1. 5.0000E+00 5.0000E+01 5.0000E+01 I 1GENT 5.0 5.E4 50.
Winding 2. 2.0000E+01 2.0000E+OZ 1.0000E+02 I 2LOAD 20. [Link] 100.
Type-'8 psoudo-nonlinoar L. 5.000E-03 3.000E+01 1'8TRAN .005 30. 3
Breakpoint. 5.00000E-03 3.00000E+01 I •005 30 •
Breakpoint. 1.00000E-02 4.00000E+01 I .01 40.
Broakpoint. [Link]-02 4.50000E+01 I •02 45 •
Broakpoint. 1.00000E-01 5.00000E+01 I 0.1 50.
Breakpoint. 5.000ooE+OO 1.00000E+02 I 5.0 100.
Special [Link]-of·points card. I 999'
10 -V. Nonlinear elements
Even though it is a linear, the staircase time-varying resistance is solved by the same
computational procedure as are pseudo-nonlinear elements. That is,each time there is a change of
resistance (from one step to another), [Y] must be modified and retriangularized. As a result, the
Type-97 element is sloppily referred to as pseudo-nonlinear element for simplicity.
Data cards for Type-97 staircase, time-varying resistance R(t) begin with a single branch card
bearing type code "97" in columns 1-2:
1 2 3 4 5 6 7 8
12 345678 901234 567890 12345E 789012 ~45678 90123456789012345678901234567890123456785
97 BUS1 BUS2 BUS3 BUS4 V FLASH TDELAY " .. " ..•...
The usual pair of terminal node names BUS 1 and BUS2 occupy columns 3-14, and BUS3 and
BUS4 of columns 15-26 are used for reference-branch or branch-naming purposes. As usual,
column 80 can be used for branch output requests. 1n between are the flashover voltage V FLASH in
columns 27-32 and a delay time TDELAy in columns 33-38. These two parameters control when the
element is connected to, and when it is to be disconnected from, the network. There are just three
common cases:
Case 1: If TDELAy = -1, then VFLASH is ignored, and the element is assumed to be connected for all
time, including the phasor solution for initial conditions. In effect, the first segment or step
is extended horizontally to the left to cover all negative times (this is the resistance used for
phasor solution).
Case 2: If TDELAY > 0 , the element will never be connected before the simulation time t reaches this
minimum time TDELAY' If no such delay is wanted, leave the field blank, or key zero.
Case 3: If VFLASH> 0 ,and TDELAy '" -1 , then the element will never be connected before the
branch voltage reaches this flashover value V FLASH' Yet the user must remember that
positive TDELAy also inhibits such connection (see case 2). By leaving V FLASH blank or
zero, there is no such flashover gap.
Next come cards that specifY the staircase resistance values point by point, from left to right (in
order of increasing time), with one data card for each pair of values defining the staircase R(t) curve.
V. Nonlinear elements - 11
1 2 3 4 5 678
23456789012345 890123456789012 45678901234567890123456789012345678901234567890
Time (t) Resistance (R)
E16.0 E16.0
Such data (2 or more such cards) are to be terminated by a 9999-card (a special value of time,
in effect). The user need not worry about times larger than his last point, since the program
automatically extends the final step to infinite time.
The interpretation of input data cards for the Type-97, staircase, time-dependent resistance R(t)
can be illustrated using the solution to BENCHMARK DC-42. The initial branch card confirms the
values of parameters VFLASH , TDELAy , whereas (x,y) values of the characteristic are confirmed on each
such card:
--------------------------------------------------+--------------------------------------------------------------------------------
Descriptive interpretation of input data cards. I Input data card images are shown below, all 80 columns, character by character
o 1 2 3 4 & 6 7 8
012345678901234567890123456789012345678901234567890123456789012345678901234567890
--------------------------------------------------+--------------------------------------------------------------------------------
Commen t card. NUMDCD = 1- IC data:[Link]
Marker card preceding new EMTP data case. I BEGIN NEW DATA CASE
Comment card. NUMDCD = 3. IC BENCHMARK DC -42
Comment card. NUMDCD = 4. IC Test of batch-mode Fourier series and 'X-Y PLOT" capabllity. Also, a
Comment card. NUMDCD = 5. IC Type-97 staircase time-varying. resistance element, and. Type 1-10 source
Comment card. NUMDCD = 6. IC is present. A Type-91 compensation-based nonl inear resistor was added.
Comment card. NUMOCD = 7. Ie For answer to Fourier series, see EMTP Rule Book, page 43-m, HWD example
Comment card. NUMDCD = 8. IC 1st of 3 data subcases, of which only two are real (3rd is a near-dummy)
Request preceding 5 printout number pairs. I CHANGE PRINTOUT FREQUENCY
Printout : 10 5 0 0 0 0 I 10 5
Misc. data. 1.000E+00 6.000E+01 [Link]+OO I 1.0 60.
Misc. data. 1 1 0 0 0 0 0 0 0 0 I 1
Series R-l-C. 1.000E+00 [Link]+OO [Link]+OO I VALUE 1.0
Series R-l-C. 1.000E+00 [Link]+OO [Link]+OO I COS 1.0
Series R-l-C. 1.000E+00 [Link]+OO [Link]+OO I SIN 1.0
Series R-l-C. 1.000E+00 [Link]+OO [Link]+OO I GEN LOAD 1.0
Type-97 R(T). [Link]+OO -1.0000E+OO 1·7LOAD -1. 1
Breakpoint. [Link]+OO 1.00000E+OO I 0.0 1.0
Breakpoint. 2.01oo0E+OO 5.00000E-Ol I 2.01 0.5
Breakpoint. '.0IOO0E+OO 2.oo000E+OO I '.01 2.0
I
."..
Breakpoint. 7.01000E+OO 1.00000E+35 7.01 1.E35
Special termination-of-points card. I
35
10 ohm - - - -
4 i i
E
.s::. 3 I
- i \
o I
I
i i
i
i
I --0
I
t
I
I
I i
~I
o i
I
i
i
I
'" I
I
I
o 1 2 3 4 5 6 7 8 9 10
time (5)
12 -v. Nonlinear elements
Data cards for Type-96, pseudo-nonlinear, hysteretic inductor L(i) begin with a single branch
card bearing type code "96" in columns 1-2:
1 2 4 4 5 6 7
2 45678901234 6789012345 45678901234 678901234567890123456789012345678
The usual pair of terminal node names BUS1 and BUS2 occupy columns 3-14, and BUS3 and
BUS4 of columns 15-26 are used for reference-branch or branch-naming purposes. As usual,
column 80 can be used for branch output requests. In between are the coordinates ( i , 1.\1) in the
current-flux plane for the linear representation during the steady-state phasor solution. There also is
RESID of columns 39-44, which is for an optional residual flux. More about these final three data fields
later.
Next come cards that specify the nonlinear i - 1.\1 characteristic point by p0int. There is assumed
symmetry to the hysteresis loop, so only points of the lower half of the loop are to be inputted. These
begin with the first point to the right of the negative saturation point (where the two curves meet in the
3rd quadrant), and they end one point to the right of the positive saturation point (where the two curves
meet in the first quadrant). Points are inputted from left to right (in order of increasing device current),
with one data card for each pair of values defining the piecewise-linear lower curve. The format is:
1 2 345 678
23456789012345 890123456789012 45678901234567890123456789012345678901234567890
Current (i) Flux (~)
E16.0 E16.0
If hysteretic inductor is not energized during the phasor solution for initial conditions, then
residual flux is to be keyed in data field RESID of columns 39-44. On the other hand, if the inductor is
energized during the steady-state, then value RESID will generally ignored. In any case, RESID must
lie within the major hysteresis loop. If not,execution will be terminated with an error message
(KILL = 205) .
V. Nonlinear elements - 13
The steady-state phasor solution for initial conditions is the trickiest aspect of the Type-96
hysteresis element. Although only the ratio of "'steady and i steady is actually required to define. the phasor
reactance, "'steady is taken to be the limit on the linear region of operation. If initial flux exceeds this
value, the EMTP prints out a warning message after the steady-state solution. In addition, the point
(i steady, "'steady) must lie within the major hysteresis loop. Ifit does not, the program will halt execution
with an error message (KILL = 204). As a general rule, the user should avoid a phasor inductance
smaller than that corresponding to the positive saturation point.
The user also has the option of allowing. the. program to calculate i steady and "'steady itself This
option is chosen by keying i steady = 8888 and leaving "'steady (columns 33-38) blank. Then the program
will select the steady-state point by the. following method. First, an energization trajectory extending
from the origin to the positive saturation point is imagined. On this curve, the point having flux equal
to 70% of the saturation flux will then be chosen as the steady-state point. I.e., the phasor inductance
will pass through this point.
Whenever a type-96 element is being used, there must be a phasor solution, whether it is used
for subnetwork of the hysteretic inductor or not. If this is not the case, execution will be terminated
with an error message (KILL = 203). The remedy to such a complaint is easy enough. add an isolated,
dummy source and one-ohm resistor to ground.
An additional restriction must be imposed on any phasor solution for initial conditions of the
hysteretic inductor. If the initial condition is found. to lie outside of the major hysteresis loop, this is
impossible, so can not be allowed. The program will move any such illegal initial condition so that it
does lie within the major loop. Logic for this is simple enough. In effect, the program draws a line of
constant current through the illegal initial point, noting the two flux values where this line intersects the
upper and lower halves of the major hysteresis loop. An average of these two flux values is used along
with the solution current for the required initial condition. Whenever such correction is required, the
program will issue a detailed warning message. It is the user's responsibility to determine whether the
change made is acceptable or not. It should be realized that transients due to sudden changes in flux
(like those being made here) may die out very slowly. It is strongly suggested that the user make
legitimate alterations that cause all such messages to disappear.
It is anticipated that many users will have difficulty obtaining hysteresis characteristics for
type-96 modeling. Those who lack all data are referred to Section XIX-H for a simple, first attempt
based on standard magnetic core materials. An. example is provided by the third subcase of
BENCHMARK DC-I3.
14 -v. Nonlinear elements
The interpretation ofinput data cards for the Type-96 hysteretic inductor L(i) can be illustrated
using the solution to BENCMARK DC-33. The initial branch card confirms the three floating-point
parameters i , ljI, and RESID, whereas (x,y) values of the characteristic are confirmed on each such
card:
--------------------------------------------------+--------------------------------------------------------------------------------
Descriptive interpretation of input data' cards. I Input data card images are shown below. all 50 columns. character by character
01234 5 678
012345678901234567890123456789012345678901234567890123456789012345678901234567890
-------------------------------_ .. _---------------+-----------------------.--------------------------------------------------------
Comment card. NUMOCD; 1. IC data:DC33.0AT
Marker card preceding new EMTP data case. IBEGIN NEW 'DATA CASE
Width of time-step loop numbers. W=13 S=2 IPRINTED NUMBER WIDTH. 13. 2. {Request maximum precision (for 8 output columns)
M1sc. data. 5.000E':05 2.000E-02 [Link]+OO I .000050 .020
Misc. data. 1 1 1 1 1 -1 0 0 0 0 I 1 1 -1
Printout : 5 5 20 20 0 0 I 5 5 20 20
£lectr1c network. too. But TACS data first ••• ITACS HYBRID
TACS fund 1on 'FLUX '. Order = 1. 1.0000£+00 I IFLUX +GEN
Numer. 1.00£+00 0.00£+00 I 1.0
Denom. [Link]+OO 1.00E+00 I 0.0 1.0
TACS source. 0.000£+00 [Link]+OO [Link]+OO 190GEN
TACS source. [Link]+OO [Link]+OO [Link]+OO 191GROUND
Fixed-format TACS supplemental variable defined. 199CURR -1.0* GROUND
Names of TACS variables for output vector. 133FLUX GEN GROUNOCURR
Blank card terminating all TACS data cards. IBLANK card terminates all TACS data
Hystoresis. 8.8880E+03 [Link]+OO 1.0000E':09 1t6&ROUND6EN 8880. I.E-9 1
Breakpoint. 1.00000E+OO -7.00000E-Ol I 1.0 -0.7
Brllakpoint. 2.00000(+00 9.00000E-01 I 2.0 0.9
Braakpoint. 3.50000E+OO 1.00000E+OO I 3.5 1.0
Spacial tllrMinat;on-of-po;nt, card. I 9999
Blank card ending branches. IBR, NTOT ; 0 3 IBLANK card ending all BRANCH cards
1
3
0.5
.....-
.~
)(
0
E
-0.5
-1
-4 -3 -2 -1 o 1 2 3 4
current (A)
The diagram above shows the characteristic of the hysteretic inductor defined by entering the
three points 1, 2 and 3. The hysteretic curve is assumed to be symmetric about the origin.
v. Nonlinear elements - 15
The model of this section provides for true (as opposed to pseudo) nonlinear representation of
an arbitrary number ofZnO surge arresters. The original theory and implementation are documented in
Ref 22, Vol. 1 No.2, December 1979, pages 6-9. Extension to multiple exponentials and a static gap
is documented in Ref 22, Vol. 1, No.3, April 1980, pages 8-13.
The basic constraint equation for ZnO modeling is resistive, and is highly nonlinear :
where "i" is the arrester current, "v" is the arrester voltage, and "p", Vref, and "q" are constants of the
device. Typically one picks the reference voltage Vref to be twice the rated voltage, or something close
to this. In theory, the choice is arbitrary (it is an extra parameter, note). However, it normalizes the
equation, and prevents numerical overflow during the exponentiation. Then constants "p" and "q" are
unique parameters of the device.
Although the exponential modeling of the present section can be applied to other cases than
ZnO, as a general rule, it should not be wasted on less extreme nonlinearities. If a piecewise-linear
characteristic of only a few segments would be sufficiently accurate, the alternative of Section V-G
should probably be considered. Unless there is a real need, the use of exponentials is wasteful
computationally.
Due to the extreme nonlinearity of ZnO characteristics, very little current is drawn for voltages
that are substantially below the rated voltage Vref (e.g., 0.5 30 = 9.£:.... 10). So, in order to avoid the
possibility ofunderllow during exponentiation, and also to speed the numerical solution, a linear model
is actually used for low voltages. But this is hidden, out of sight of the user, and it need not concern
him. In physical terms, the solution is unaffected by such simplification (no amperemeter could detect
the difference).
There is some application of the present model to silicon carbide (SiC) arresters, although
serious (perhaps unacceptable) approximations must be made. No dynamics of the gap can be provided.
Hence the possibilities of such usage will not be emphasized. The interested reader is referred to
Ref 22, Vol. 1, No.3, April 1980, pages 8-13. In essence, such usage represents the block very
accurately ( "two exponential segments appear to provide a very adequate fit") while ignoring totally
the dynamics of the gap (the gap modeling after flashover) .
16 -V. Nonlinear elements
Data for a ZnO surge arrester begin with a single branch card for a Type-92 nonlinear element
(nonlinear resistance), Invariant data of such a ZnO request has "92" in columns 1-2 and the special
ZnO identifier "5555." in columns 39-44:
1 2 3 4 4 5 6 7
2 45678901234 6789012345 89012345678901234 678901234567890123456789012345678 0
BUS2 BUS3 BUS4
A6 A6 A6 A6 5555.
As usual, tenninal names are BUS 1 and BUS2 ( columns 3-14 as 2A6 information), and BUS3
and BUS4 (columns 15-26) can be used for the reference branch feature, if data of this arrester is to be
copied from a preceding one. Variable K is for branch output requests (keyed in column 80 as usual,
with values 1 through 4).
The second data card of a ZnO surge arrester contains control variables V REF, V FlASH, VZERO' and
COL as follows:
1 2 3 4 5 6 7 8
234567890123456789012345 6789012345678901234567890 1234567890123456789012345 67890
VREF (cols. 1-25) is the reference voltage of the ZnO constraint equation, in units of voltage
(nominally, Volts).
(cols. 26-50) is the normalized (i.e., divided by VREF ) flashover voltage of the gap. If the
arrester is gapless, any negative number should be keyed .
V ZERO (cols. 51-75) is the initial arrester voltage (the value at time zero, in effect) in the same
units as VREF . In almost all cases, leave it blank. The Newton iteration then will begin with
zero current.
COL (cols. 76-80) is the number of columns (parallel copies or elements) of the characteristic.
Ifblank,zero, or unity, one column is assumed, and the characteristic is to be used without
modification. But for positive COL (normally an integer), the coefficient COEF of all
following cards will be internally multiplied by COL during data input, prior to storage and
usage.
V. Nonlinear elements - 17
Next come cards that specify the exponential segments. These begin with the characteristic
before flashover (the only characteristic if there is no gap). Each characteristic is to be terminated bv a
special "9999"-card (this value is to be keyed in columns 22-25). The following format is used for e~ch
exponential segment of each characteristic, in natural order (of increasing current and voltage):
1 2 3 4 5 6 7 8
1234567890123456789012345 6789012345678901234567890 1234567890123456789012345 67890
COEF (cols. 1-25) is the coefficient "p" of the ZnO constraint equation (see the start of this
section). This is in units of current (normally amperes) .
EXPON (cols. 26-50) is the dimensionless exponent "q" [Link] constraint equation.
VMIN (cols. 51-75) is the minimum voltage for usage of the just-stated characteristic, in per unit
based on the reference voltage VREF'
All such cards describing the exponential segments of a ZnO characteristic are to be in their natural
order of increasing device current. Terminate each grouping with a "9999"-card. If the arrester is
equipped with a gap, the preflashover characteristic comes first, followed by the post-flashover
characteristic.
Control of the Newton iteration is provided by various parameters that initially are defined by
the STARTUP file, but which may be redefined by a "ZINC OXIDE" special-request card. See details
ofthe latter in Section II-A for an explanation of the six controls.
illustrations ofZnO usage can be found in the several subcases of BENCHMARK DC-37 (for
single-phase ZnO) and DC-38 (which involves a 3-phase bank ofZnO).
The interpretation of input data cards for a ZnO surge arrester can be illustrated using the
solution to the second subcase of BENCHMARK DC-37:
._------------------------------------------------+--------------------------------------------------------------------------------
Descriptive interpretation of input data cards. I Input data card images are shown below. all 80 columns. character by character
o 1 2 3 4 5 6 7 8
01234567890123456789012345678901234567890123456 7890123456789012345678901234567890
--------------------------------------------------+--------------------------------------------------------------------------------
Comment card. NUMDCD = 1. IC data: DC37 _2.DAT
Marker card preceding new EMTP data case. IBEGIN NEW DATA CASE
Comment card. NUMaCD = 3. IC DIAGNOSTIC 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
Comment card. NUMaCD = 4. IC 2nd of 3 subcases. Same basic network as just solved. only with modified
Comment card. NUMDCD = 5. IC ZnO characteristic as derived by OC-39. One exponential with fl ashover.
« Comment cards removed for brevi ty »
Width of time-step loop numbers. W=13 S=2 IPRINTED NUMBER WIDTH. 13. 2. {Request maximum preCision (for 8 output columns)
Misc. data. 5.000E-05 2.000E-02 [Link]+OO I .000050 .020
Misc. data. 1 1 1 0 1 -1 0 0 0 0 I 1 1 0 -I 0
Printout : 2 10 33 1 40 10 I 2 10 33 1 40 10 100 50
Electric network, too. But TACS data first... ITACS HYBRID { We use TACS only to produce series voltage 'BATTER' of ZnO
Free-format TACS suppll!lRental variable defined. 199BATTER = 10000. { Small battery (de source) is inserted in series with ZnO
Names of TACS variables for output vector. I33BATTER { Output the only this one TACS variable that controls ZnO source
TACS initial condition. 'BATTER' 1.000000E+04 I77BATTER 10000. {Initial condition required for smooth electrical step 1
Blank card terminating all TACS data cards. IBLANK card ending all TACS data
18 -v. Nonlinear elements
3.060E-Ol 5.820E+00 1.200E-02 6.964E+02 1.671E-031-1SEND REC .306 5.82 .012 200.
Type-92R(i) [Link]+OO [Link]+OO 5.5550E+03 I92REe S55S. 1
COM-Ant carel. IUMDCD = 28. Ie ....................._ ••••••••=••••••••••"•••••••••••••••••••••••••••••••••••
e_ant card. NUMDCO" 29. Ie 9ZREC TYPll 5555. 1
c-ent card. NUMOeD = 30. IC Th. preceding c_ent card is just for verification of solutton. See the
c-ant card. NUMDeD· 31. Ie explanat;onon c_ent cards bDlow thD blank card ending switch cards.
[Link] 'card.. MINDeD· 32.. Ic ......................a • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • •
c-ant card. NUMDeD = 33. Ie VREF YFLASH YlERO COL
Zinc oxide. 7.7800E+05 1.0000E+OO [Link]+OO I 0.778000000000000E+06 1.0
e_ent card. NUMDCD = 3S. IC COEF EXPOM VMIN
Breakpoint. 2.9480E-Zl 1.0000E+OO 9.0000E+OO I 0.ZI479544Z1611S7E-20 1.0 .IOOOOOE+OI
Spacial teraination-of-points card. I 1199 {Bound on axponentials of 1st, pre-flash v-i curve
Breakpoint. 2.1480E+04 2.6530E+OI 5.4S05E-OI I 0.29479S442961157E+OS 0.26530262418S338E+02 0.545050636122854E+OO
Spacial teraination-of-po;nts card. I 9•• 9 {Bound on exponantials of 2nd, post-flash v-; curve
3 TACS Nl control variables. 40 0 0 I TACS CONTROlBATTER I Only 1st of three A6 names, for series voltage, is used
Blank card ending branches. IBR, NTOT = 1 3 IBLANK card terminating branch data
Blank card ending switches. KSWTCH = O. IBLANK card terminating all (in this case, nonexistent) switches
Comment card. NUMDCD = 43. Ie =============================================================================
Should the ZnO solution using Newton's method fail to converge, remedial action almost always
is possible provided the parameters of the model are realistic. Understanding of basic numerical
mathematics is the key. One potential source of failure, namely singularity of the Jacobian matrix [J],
has already been discussed toward the end of Section V. Although such solution failure applies to all
nonlinear elements, it is most commonly associated with one or more ZnO elements. This is because of
the extreme nonlinearity involved. Any ZnO user is advised to read the aforementioned paragraph
carefully. In addition, there are several more specific recommendations to correct failed Newton
iterations:
1. Really gross blunders by the user are the source of considerable difficulty with production usage
ofZnO modeling. For example, ifthere is confusion between sets of arrester data, it is possible
for lower-voltage ZnO data to be applied at a higher-voltage bus, with the result typically being
a nonconverged iteration. So, any user should always check that his ZnO characteristic does in
fact match the voltage that is being applied to it.
2. Reduction of the simulation time-step size DELTAT might help, sometimes. Recall that
Newton's method is guaranteed to converge if a solution exists, provided the initial guess is
close enough. This may translate into a need to track the transient closely, since the initial guess
for the Newton iteration comes from the solution of the preceding time step (for steps
numbered 2 or later). Too big a time step might make the shock too big for the Newton
iteration to survive.
4. Interactive execution, observation, and control (SPY) of Section XVI provides the most
convenient framework for the remedy of nonconverged groupings of ZnO. Even if the
correction is not made interactively, the diagnosis is so much simpler, particularly for big cases
(for which conventional, batch-mode DIAGNOSTIC printout can be overpowering). This was
summarized at the end of Section V.
V. Nonlinear elements - 19
The Type-91 component of the present section provides for the continuous, piecewise-linear
representation of a time-varying resistance R(t). This is to be contrasted with the Type-97
representation of Section V-C, for which the function R(t) is necessarily a discontinuous, staircase
function. The present element uses compensation the same way "true" nonlinear elements do. Any
Type-91 elements are solved using Newton's method along with all true nonlinear elements of a
subnetwork.
The Type-91 resistive element begins as an open circuit, drawing no current. It is connected to
the circuit only when the terminal voltage exceeds (in absolute value) the user-specified initiation
voltage V START . At this instant, the timer of the resistance function R(t) is started. If TSTART is the
instant when voltage exceeds V START , then the resistance for larger times t is R( t - TSTART). This is
the correct mathematical notation, although for simplicity we usually denote this using !he shortened
form R(t). There is a time offset, however, and this offset usually is unknown ahead of time, since it
depends on the solution voltage.
Data cards for a time-varying resistance begin with a branch card bearing type code "91" in
columns 1-2 and the further identifier "3333." in columns 39-44:
1 2 3 4 4 5 6 7 8
12 345678 9012341567890 12345E f789012345678 9012341567890123456789012345678901234567850
91 BUS1 BUS2 BUS3 BUS 4 .... ' .c. ~::, i .~
..
'
'.' ,
A6 A6 A6 A6 3333. 1 3. : , , ' ~t . . ; ,.; .•...... ..... I
The usual pair of terminal node names BUSI and BUS2 occupy columns 3-14, and BUS3 and BUS4
of columns 15-26 are used for the reference-branch or branch-naming purposes. Finally, column 80 can
be used for branch output requests. For an example of such usage, see BENCHMARK DC-42.
This initial branch card is to be followed by a separate card from which the starting voltage V START is
read:
1 2 3 4 5 678
2345678901234567890123456789012345678901234567890123456789012345678901234567890
E25.0
Present element logic requires a positive value for this datum. Hence, if the user really wants the
Type-91 timer to begin when voltage first becomes nonzero, he can key an arbitrarily small number
(e.g., I.E-38, which should be valid for all modern scientific computers).
After these two initial cards come those that specifY the piecewise-linear characteristic R(t)
20 -V. Nonlinear elements
1 2 3 4 5 678
2345678901234567890123456789012345678901234567890123456789012345678901234567890
Resistance Time
E2S.0 E25.0
Such data (two or more such cards) are to be terminated by a "9999"-card (a special value of
resistance, in effect).
Control parameters for the Newton iteration are defined by the STARTUP file. Yet they also
can be changed by the special-request word "ZINC OXlDE" (see Section II-A). But note that there is
no nonlinearity associated with the Type-91 element, which is time-dependent rather than nonlinear.
Hence the Newton iteration will converge exactly in a single step unless some Type-92 element
(nonlinear v-i) is involved in the same subnetwork, and hence must be solved as part of the same
coupled group.
The interpretation of input data cards for the Type-91 time-dependent resistance R(t) should be
self-explanatory from the illustration that follows (drawn from the solution to BENCHMARK DC-42):
--------------------------------------------------+--------------------------------------------------------------------------------
Descriptive interpretation of input data cards. I Input data card images are shown below. all 80 columns. character by character
o 1 2 3 4 5 6 7 8
012345678901234567890123456789012345678901234567890123456789012345678901234567890
--------------------------------------------------+--------------------------------------------------------------------------------
Comment card. NUMOCO = 1. Ic data:[Link]
Marker card preceding new EMTP data case. IBEGIN NEW DATA CASE
Comment card. NUMDCD = 3. Ic BENCHMARK DC-42
Comment card. NUMDCD = 4. IC Test of batch-mode Fourier series and 'X-Y PLOT' capability. Also. a
Comment card. NUMDCD = 5. Ie Type-97 staircase time-varying reSistance element. and Type 1-10 source
Comment card. NUMDCD = 6. IC is present. A Type-91 compensation-based nonlinear resistor was added.
Comment card. NUMDCD = 7. IC For answer to Fourier series. see EMTP Rule Book. page 43-m. HWD example
Comment card. NUMDCD = 8. IC 1st of 3 data subcases. of which only two are real (3rd ;s a near-dummy)
Request preceding 5 printout number pairs. ICHANGE PRINTOUT FREQUENCY
Printout : 10 5 0 0 0 0 I 10 5
Misc. data. 1.000E+00 6.000E+Ol [Link]+OO I 1.0 60.
Misc. data. 1 0 0 0 0 0 0 0 0 I
Series R-L-C. 1.oo0E+00 [Link]+OO [Link]+OO I VALUE 1.0
Series R-L-C. 1.000E+OO [Link]+OO [Link]+OO I COS 1.0
Series R-L-C. 1.000E+00 [Link]+OO [Link]+OO I SIN 1.0
Series R-L-C. 1.oo0E+00 [Link]+OO [Link]+OO I GEN LOAD 1.0
Type-97 R(T). [Link]+oo -1.0000E+00 197LOAO -1.
Breakpoint. [Link]+OO 1.00000E+00 I 0.0 1.0
Breakpoint. 2.01000£+00 5.00000E-Ol I 2.01 0.5
Breakpoint. 6.01000E+00 2.00000E+00 I 6.01 2.0
Breakpoint. 7.01000E+00 1.00000E+35 I 7.01 1.E35
Special termination-of-points card. I 9999
Series R-L-C. 5.000E+03 [Link]+OO [Link]+OO I Al A2. 5.E+3
Series R-L-C. [Link]+03 [Link]+oo [Link]+OO I A2. 5.E+3
nail-vary R. TyPII 91. [Link]+OO 3.3330E+03 tUA2 3333. 1
TypII-91 .ise:. data. V-start· 3.0oo0oo00E+05 t 300000 •
• nakpoint. 3.00000E+02 [Link]+OO t 300. 0.0
.nakpoint. 2.00000E+02 3.ooo00E+OO t 200. 3.0
.nakpoint. 1.50000E+02 [Link]+OO t 150. 6.0
.nakpoint. 1.50oooE+02 1.oooo0E+03 t 150. 1000.
Spodal [Link]. t 9999.
Blank card <!nding branches. IBR. NTOT = 6 8 IBLANK card ends branch cards
V. Nonlinear elements - 21
The model of this section provides for true (as opposed to pseudo) nonlinear representation of
an arbitrary number of coupled, nonlinear resistances R(i) . The nonlinearity is represented by a
piecewise-linear characteristic of current and voltage.
The element of the present section is very similar to the ZnO representation of Section V-E.
Note that both use the same branch type code "92". The principal difference lies in the representation
of the nonlinearity. For accurate representation of the extreme nonlinearity of ZnO over the full range
of operation, the exponential segments of Section V -E really are required. But in the present section,
the simpler straight lines (hence the name" piecewise-linear" ) are used instead. Another difference is
that the ZnO representation of Section V-E allows to separate characteristics per element: one before
flashover, and one after. Not so for the piecewise-linear representation of the present section, which is
assumed to be an open circuit when the gap is not conducting. Another difference is that the nonlinear
element of the present section allows an extra, built-in linear resistance ~ , for user convenience.
Distinction between the two different Type-92 nonlinear resistances is made by the request number that
is keyed in columns 39-44: the ZnO model of Section V-E uses "5555." whereas the present
piecewise-linear one uses "4444."
Data cards for a piecewise-linear resistance R(i) begin with a single branch card bearing type
code "92" in columns 1-2, and the further identifier "4444." in columns 39-44:
1 2 3 4 5 6 7 8
21345678 9012341567890 12345€ 17890121345678 9012341567890123456789012345678901234567850
.:
~2 BUS1 BUS2 BUS3 BUS4 N FLASH .Y • . . < ...••.. ,".::
:,
".'.'
A6 A6 A6 A6 E6.0 4444.
.J •..5< ...:..~L5~ ~~.~1:l.,·.'.··.···.
h "'~'.'" • .. :.•.•..::,2:. I
The usual pair of terminal node names BUSI and BUS2 occupy columns 3-14, and BUS3 and BUS4
of columns 15-26 are used for reference-branch or branch-naming purposes. As usual, column 80 can
be used for branch output requests. Only variable N FLASH (columns 27-32) is new or slightly
complicated. It controls the logic of the gap.
If the user wants no series flashover gap (see later miscellaneous data parameter VFLAS~' then
he can ignore variable NFLASH . But if a series gap is to be present, then NFLASH controls possible clearing
(gap opening) and reflashing (reclosing). There are three different cases of interest, requiring N FLASH
equal to either -1, 0, or + 1. The rules are as follows:
1) Use N FLASH = + 1 if the gap is to flash and clear only once (after the single clearing, the
gap remains open for the remainder of the study)
2) Use N FLASH = °(or leave columns 27-32 blank) if the gap is to flash and clear as many
times as required by the network conditions
3) Use NFLASH = -1 if the gap is to discharge only once, and remain closed continuously
thereafter (i.e., no clearing).
22 -v. Nonlinear elements
The second Type-92 data card is for miscellaneous data. It and the following characteristic must
be omitted if the reference..;branch feature (where names BUS3 and BUS4 point to a previous such
branch) is being used, of course. But for cases without such copying of a previously-defined Type-92
element, a second card must contain Type-92 miscellaneous data (variables Rtm, VFLASH, and VZERO as
follows:
1 2 3 4 5 6 7 8
234567890123456789012345 6789012345678901234567890 1234567890123456789012345 67890
""'<"c'
R lin V FLASH V URO >,
E25.0 E25.0 E25.0
:~"ihti~
Rtm (cols. 1-25) is the linear resistance that is to be connected in series with the nonlinear (actually,
piecewise-linear) characteristic. It can be used to represent the grounding resistance of an
arrester, for example. A value of zero is permissible, if desired. The units for Rtm are to be
[voltage/current] , which nominally are [ohms].
VFLASH (cols. 26-50) is the gap flashover voltage in units of voltage (nominally [voltsD. If the resistor
is to have no gap, key any negative number.
VZERO (cols. 51-75) is the starting (or initial) branch voltage in units of voltage (nominally [voltsD. In
almost all cases, leave this data field blank. Then the Newton iteration will start from zero
current, which usually is satisfactory.
Finally come cards that specify the nonlinear i-v characteristic point by point, from left to right
(in order of increasing device current), with one data card for each pair of values defining the
piecewise-linear i-v curve. The format is:
1 2 3 4 5 6 7 8
234567890123456789012345 6789012345678901234567890 123456789012345678901234567890
Such data (2 or more such cards) are to be terminated by a 9999-card (a special value of current, in
effect).
If the characteristic is symmetrical with respect to the origin, the following feature can be used
to save both program table space (storage of List 10) and also keyboard effort. Specify only the
positive portion of the characteristic (both current and voltage positive). Do not specify the origin
(0.0, 0.0) in this case, since it will automatically be added by the program as the characteristic is
inputted. Subsequent use will exploit the assumed symmetry ofthe characteristic. The user is advised
to specify a full characteristic (including third-quadrant points of negative current and voltage) only if
the characteristic is not symmetric about the origin.
V. Nonlinear elements - 23
For illustrative usage of the Type-92 piecewise-linear resistance R(i), see the first data case of
BENCHMARK DC-38. The following interpretation has been drawn from this example:
--------------------------------------------------+--------------------------------------------------------------------------------
Descriptive interpretation of input data cards. I Input data card images are shown below. all 80 columns. character by character
o 1 Z 3 4 5 6 7 8
01234567890123456789012345678901234567890123456 7890123456789012345678901234567890
-------------.. ------------------------------------+---------------------------------------------------------------------_ . . . -_ . __ . . _-
Comment cl.\rd. NUMDCD = 1. IC data:DC38_1.DAT
Marker cl.\rd preceding new EMTP dl.\tl.\ case. IBEGIN NEW DATA CASE
Comment cl.\rd. NUMDCD = 3. IC BENCHMARK DC-38
Comment card. NUMDCD = 4. IC ZnO simulation similar to DC-37. only here a 3-phase network is used.
Comment card. NUMDCD = 5. IC The same arrester having characteristic i = 2500 * ( v / V-ref) ** 26
Comment card. NUMDCD = 6. IC is used. only here the coefficient has been cut in four (to COEF =625)
Comment card. NUMDCD = 7. IC so that the column multiplier COL = 4.0 can be used: 4 * 625 = 2500.
Comment card. NUMDCD = 8. IC Also. the usual. recommended (and more accurate) exponential modeling
Comment card. NUMDCD = 9. IC (Type-92 nonl1near R(i) requested by '5555.') is only used for two of
Comment card. NUMDCD = 10. IC the three phases. In order to Illustrate the piecewise-linear alter-
Comment card. NUMDCD = 11. IC native (requested by '4444.'). such less-accurate model ing (for the
Comment card. NUMDCD = 12. IC highly-nonlinear ZnO. anyway) has been placed in the 3rd phase ('c').
ZnO const. 20 1.000E-08 1.000E-03 1.000E-01 IZO. 20 • • • • 0.9. .1 To improve ZnO convergence. control Newton ZnO iteration
Misc. data. 5.000E-05 2.000E-02 [Link]+OO I .000050 .020000
Misc. data. 1 1 1 0 1 -1 0 0 0 0 I 1 1 1 o 1 -1
Pri ntout : 5 5 20 1 30 5 I 5 5 20 1 30 5 50 50
3.055E-01 5.819E+00 1.210E-02 6.935E+02 1.678E-031-1SENDA RECA .305515.8187.01210 200. o 200-m; 1e. constant-
3.199E-02 1.556E+OO 1.937E-02 2.834E+02 1.098E-031-2SENDB RECB • 031991.5559.01937 200 • o parameter, 3-phase
3rd or later transposed distributed phase. 1-3SENDC RECC { transmission line.
Type-92 R(i) [Link]+OO [Link]+OO 5.5550E+03 192RECA 5555. lIst card of 1st of 3 ZnO arresters
Comment card. NUMDCD = 21. IC VREF VFLASH VZERO COL
Zinc oxide. 7.7800E+05 1.0000E+19 [Link]+OO I 778000. -1.0 0.0 4.0
Comment card. NUMDCD = 23. IC COEF EXPON VMIN
Breakpoint. 6.2500E+02 2.6000E+01 5.0000E-Ol I 625. 26. 0.5
Special tennination-of-points card. I 9999.
Reference branch. Copy (RECA • ) 192RECB RECA 5555. { Phase 'b' ZnO is copy of 'a'
Type-92 R(il [Link]+OO [Link]+OO 4.4440E+03 192RECC 4444. {Phase ·c D ZIIO is piecewise-linear
C_ant card. NUMDCD - 28. IC VREF VFLASH VZERO
Piecewise-lin. [Link]+OO 1.000E+19 [Link]+OO I 0.0 -1.0 0.0
Breakpoint. 1.00000E+OO 5.82400E+05 I 1.0 582400. {First point of i-v curve.
Breakpoint. 2.00000E+OO 5.'0800E+05 I 2.0 5.0800. {Data is copied frotll DC-3'
Breakpoint. 5.00000E+OO 5.99200E+05 I 5.0 591200. {which was used to create
Breakpoint. 1.00000E+01 6.04800E+05 I 10. 604800. {the ZbO branch cards that
Breakpoint. 2.00000E+01 6.16000E+05 I 20. 616000. {are used in pha511S "a" &
Breakpoint. 5.00000E+01 6.3OOO0E+05 I SO. 030000. {-b". But there is sOIIa
Breakpoint. 1.00000E+02 6.44000E+05 I 100. 644000. {distortion due to the use
Breakpoint. 2.00000E+02 1.6U20E+OS I 200. 111120. {of linear rather than the
Breakpoint. 5.0ooo0E+02 6.94400E+05 I 500. 694400. {More accurate axponential
Breakpoint. 1.00000E+03 7.21280E+05 I 1000. 721280. {Modeling. of course.
Breakpoint. 2.00oooE+03 7.56000E+05 I 2000. 756000.
Breakpoint. 3.00000E+03 7.78400E+05 I 3000. 778400. {Last point of i-v curve.
Spacial tennination-of-points card. I '999. { Tanninator for piecewise-linaar charachristic
Blank card ending. branches. IBR. NTOT = 3 7 IBLANK card follows the last branch card
The second data card shown here actually carried the three input numbers ( 0.0, -1.0, 0.0 ). But
the second of these, the value ofVFLASH , was converted by the program to FLTINF = I.EI9 prior to
interpretation of the data card. This represents a signal or flag to solution logic that in fact the element
has no gap.
24 -V. Nonlinear elements
For typical production usage, the Type-98 pseudo-nonlinear inductance is recommended instead
of the compensation-based, Type-93, true-nonlinear inductor of the present section. This was explained
in Section V.
Data cards for a Type-93, piecewise-linear inductance L(i) begin with a single branch card
bearing type code "93" in columns 1-2:
1 2 4 5 6 7
2 45678901234 6789012345 456789012345678901234567890123456789012345678
BUS2 BUS 3 BUS 4
A6 A6 A6 A6 E6.0
The usual pair of terminal node names BUS 1 and BUS2 occupy columns 3-14, and BUS3 and BUS4
of columns 15-26 are used for reference-branch or branch-naming purposes. As usual, column 80 can
be used for branch output requests. In between are the coordinates ( i , W ) in the current-flux plane for
the linear representation during the steady-state phasor solution.
Next come cards that specify the nonlinear i - W characteristic point by point, from left to right
(in order of increasing device current), with one data card for each pair of values defining the
piecewise-linear i-W curve. The format is:
1 2 3 4 5 678
23456789012345 890123456789012 45678901234567890123456789012345678901234567890
Current (i) Flux (ljI)
E16.0 E16.0
Such data (2 or more such cards) are to be terminated by a 9999-card (a special value of current, in
effect). Usually the saturation curve is assumed to be symmetric about the origin. If this is the case,
ignore all negative values in the third quadrant, beginning with the origin ( 0,
BENCHMARK DC-4.
°).
This is illustrated in
The interpretation of input data cards for the Type-93 true, nonlinear inductance L(i) is
illustrated by the solution to BENCHMARK DC-4. The initial branch card confirms the values of
parameters ~teady and Wstcady, whereas (x,y) values of the characteristic are confirmed on each such
card:
V. Nonlinear elements - 25
--------------------------------------------------+--------------- -----------------------------------------------------------------
Descriptive interpretation of input data cards. Input data card images are shown below. all 80 colUllns. character by character
o 123 4 5 6 7 8
012345678901234567890123456789012345678901234567 890 1234567 890 1234567 890 1234567 890
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ---- - - -+-- - - - - - - --- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- --- -- - - - - - - -- - - - - - -- - - - - - - - - - --
Comment card. NUMDCD = 1. IC data:[Link]
Marker card preceding new EMTP data case. IBEGIN NEW DATA CASE
Comment card. NUMDCO = 3. IC BENCHMARK OC-4
Comment card. NUMDCO = 4. IC Solution agrees (key variables. anyway) with OC-5 saturable TRANSFORMER
Comment card. NUMDCO = 5. IC Here. there is no transfonner. since tha secondary impedance has been
Comment card. NUMDCO = 6. IC reflected to the primary. Also. the pseudo-non 1inear reactance of the
Comment card. NUMOCD = 7. IC saturable TRANSFORMER is hera represented by a 'true' nonl inearity.
Comment card. NUMDCD = 8. IC 2nd subc1lSe will illustrate residual flux for Type-93 nonlinear induct.
Width of time-step loop numbers. W=13 S=2 IPRINTED NUMBER WIDTH. 13. 2. {Request maximum precision (for 8 output columns)
Misc. data. 1.000E-02 6.000E+00 [Link]+OO I .010 6.0
Misc. data. 1 1 1 1 1 -1 0 0 0 0 I 1 1 1 1 -1
Printout : 5 5 20 20 100 100 155 20 20 100 100
Moniker' , for next branch 1. Index = 3 I BRANCH NAME:First { Even though name could. go on next card. use this instead
Series R-L-C. 5.000E+00 5.000E+01 [Link]+OO I GEN TRAN 5.0 S.E4 3
Series R-L-C. 1.000E+04 [Link]+OO [Link]+OO I TRAN NAME R-MAG 1.E4
Nonlinaar L. Typo 93. 5.0000E-03 3.0000E+Ol I93TRAN NAME MA6NET .005 30. 3
Comaont card. NUMDCD = 17. Ie -5.0 -100. { No longer naedad 3-rd quadrant point
C_ant card. NUMDCD = 18. IC -.1 -so. { No longar naodad 3-rd quadrant point
e_ant card. NUMDCD = 19. IC -.02 -45. { No longar naadad 3-rd quadrant point
C_ant card. NUMDCD = 20. IC -.01 -40. { No longar naadod 3-rd quadrant point
e_ant card. NUMDCD = 21. Ie -.005 -30. { No loagar naodad 3-rd quadrant point
Breakpoint. [Link]+OO [Link]+OO I 0.0 0.0 { 1st point being origin is requost to reflact
Breakpoint. S.0000UE-03 3.00000E+01 I .005 30.
Braakpoi nt. l.ooo00E-02 4.00000E+01 I •01 40 •
Breakpoint. 2.00000E-02 4.50000E+Ol I .02 45.
Breakpoint. 1.00000E-Ol 5.00000E+01 I .10 SO.
Braakpoint. 5.00000E+OO 1.00000E+02 I 5.0 100.
Spacial tanaination-of-points card. I
""
100
I
.,4 5 ~6
50 (5, 100)
I 21"
1 I
>< o , i
~
u.. i
! ..)
-50 !
iI
i i
-100
-0.2 -0.1 o 0.1 0.2
Current (A)
The diagram above shows the saturation curve of Type-93 nonlinear inductance defined by
entering six points in the first quadrant. Saturation curve is assumed to be symmetric about the origin.
26 -V. Nonlinear elements
The modeling of an electric are, including the most practical case of the controlled arc within a
circuit breaker, is possible using a TACS-controlled resistance. This follows the research of
Prof Mustafa Kizilcay during his research assistance period at the University of Hanover, Germany, as
first documented in the literature in Ref. 22, vol. 5, no. 3, July 1985, pages 15-26.
The dynamics of the arc are all modeled within TACS or using MODELS. Electric voltages or
branch current represent inputstotheTACS or MODELS modeling. The output is a signal R(t) (name
BUS4 of columns 20-26 of the branch card), which is to be the arc resistance as a function of time. It
is this TACS signal that is to be connected to the electric network element of the present section, as
explained in rules that follow.
Each electric arc is requested by a single branch card that defines a degenerate, controlled,
time-varying resistor. This is a compensation-based, Type-91 element without any associated
characteristic. The data format is as follows:
1 2 3 4 5 6 7
45678901234 6789012345 890123456789012345678901234567890123456789012345678
BUS2 BUS4
A6 A6 A6 I
The usual pair of terminal node names BUSI and BUS2 occupy columns 3-14, following the type code
of"91" in columns 1-2. The special request word "TACS" must be keyed in columns 15-18, followed
by the name of the TACSfMODELS variable that defines the resistance R(t) in ohms. This is variable
BUS4 of columns 21-26. Finally, column 80 can be used for branch output requests as usual. For an
illustration of such usage, see the second sub case of BENCHMARK DC-22. But this is an artificial test
of the mechanics of connection only. For realistic parameters and time-step size, see the two subcases
of BENCHMARK DC-43, both of which come from University Hanover.
Interpretation of the input data confirms the name of the TACSfMODELS variable that controls
the resistor, of course. As an illustration, consider the first such usage in the second data subcase of
BENCHMARK DC-22:
V. Nonlinear elements - 27
--------------------------------------------------+--------------------------------------------------------------------------------
Descriptive interpretation of input data cards. I Input data card iMages are shown below, all 80 columns, character by character
o 1 234 5 6 7 8
01234567890 1234567890 1234567 890 1234567 890 123456 7890 12345678901234567 890 1234567 890
- - - -- - - - - - -- - - - - - - - - - - - - - - - - - - - - - - - - - -- - - - - ---- - --+- - - -- - - - - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - --
Comment card. NUMDCD = 1. IC data:DC22 [Link]
Mar~er card preceding new EMTP data. case. IBEGIN NEW DATA CASE
Comment card. NUMDCD = 3. IC 2nd of 5 subcases of OC-22 is a hybrid TACS example of the TACS-controlled
Comment card. NUMDCD = 4. IC resistance (Type-91 electric network branch type). All-resistive electric
Comment card. NUMDCD = 5. IC network allows easy checking with a pocket calculator at any step: For each
Comment card. NUMDCD = 6. IC branch, verify that program node voltages and branch currents correspond. to
Comment card. NUMDCD = 7. IC the branch constraint equations v = R * 1. There actually are two discon-
Comment card. NUMDCD = 8. IC nected subnetworks, with one having two TACS-controlled arcs (illustrating
Comment card. NUMDCD = 9. IC use of the multivariable solution code of 'ZINCOXO) and the other having 1.
Request preceding 5 printout number pairs. ICHANGE PRINTOUT FREQUENCY
Printout : 5 5 0 0 0 0 I 5 5
Misc. data. 2.000E-02 2.000E+00 [Link]+OO I .02 2.0 { Step size is immaterial since network has no dynamics
Misc. data. 1 1 1 1 1 0 0 0 0 0 I 1 1 1 1
Electric network., too. But TACS data first... ITACS HYBRID I In a real case, arcs are on electriC side, and equations in TACS
Free-format TACS supplemental variable defined. 199RESIS = 1.0 + SIN ( 3.0 * TIMEX) {1st R(t) signal -- constant + sine wave
Free-format TACS supplemental variable defined. I99RES = 1.0 + COS ( 3.0 * TIMEX) I 2nd R(t) signal -- constant + cosine
Names of TACS variabl es for output vector. 133RESIS RES {Output the only 2 TACS variabl es: the 2 Rlt) resistance functions
TACS initial condition. 'RESIS' 1.000000E+00 I77RESIS 1.0 ( Initial condition on 1st R(t) insures smooth start
TACS initial condition. 'RES 2.00oo00E+OO I77 RES 2.0 ( Initial condition on 1st R(t) insures smooth start
Bl ank card. terminating. all TACS data cards. I BLANK card ending all TACS data
Series R-L-C. 1.000E+00 [Link]+OO [Link]+OO I BUS1 BUS2 1.0 {Master copy of five I-ohm resistors I 1
Reference branch. Copy (BUS1 ,BUS2) I BUS2 BUS3 BUS1 BUS2 { 2nd of 3 linear branches in 1st subnetwork
Reference branch. Copy (BUSl ,BUS2) I BUS3 BUS1 BUS2 { 3rd of 3 linear branches in 1st subnetwork
Reference branch. Copy (BUSl ,BUS2) I BUS1 BUS4 BUS1 BUS2 1st of 2 linear branches in second. subnetwork
Reference branch. Copy (BUSl ,BUS2) I BUS4 BUSl BUS2 ( 2nd of 2 linear branches in second subnetwork
TAts-controlled Typa-91 R(t). -RESIS - 1118US2 TAts RESIS {R(t) controlled by TAts variable -RESIS- } 1
TAtS-controlled Typa-91 Ret). -RES 11188S3 TAtS RES { Ret) controll.d by TAts -RES- --- 2nd of 2} 1
TAts-controlled Typa-91 Ret). -RES 1918US4 TAtS RES { Ret) within 2nd, isolatad subnetwork} 1
Blank card ending branches. IBR, NTOT = 5 5 IBLANK card ending electric network branches
Note that the just-described rules prohibit use of the reference branch feature, where columns
15-26 of the data card are used to name a preceding branch that is to be copied. Yet this is hardly a
loss, since neither program table space nor user data space could be saved by any such feature. This is
why the reference branch feature has not been provided for the arc model.
The arc model has no external gap. It is the user's responsibility to model any such dynamics
within TACSIMODELS. For an open gap, the user should define a signal R(t) with a very large
resistance (e.g., 1.E8 ohms).
Should R(t) from TACSIMODELS ever be exactly zero, logic applicable to the electric network
will convert this value to the near-zero singularity tolerance EPSILN (see the floating-point
miscellaneous data card). This is necessary to avoid division by zero, since the admittance formulation
reqUlres
di 1
=
dv R
As with all hybrid solutions involving both TACSIMODELS and the electric network, there is a one
time-step delay between the determination ofR(t) within TACSIMODELS and its usage in the electric
network solution.
28 -V. Nonlinear elements
User-supplied FORTRAN was first described publicly in Ref. 22, Vol. 3, Number 3,
February 1983, pages 37-42. Although the general concept remains unchanged, there have been several
important improvements since that early work. The interface is better and more powerful, since there
now is a connection with the phasor solution for initial conditions (in the case of reactors), and input no
longer is tied to the cumbersome ZnO modeling of "M31." vintage. Most importantly, the new
user-supplied FORTRAN elements can be mixed in the same subnetwork with any program-supplied
modeling of the present Section V. All nonlinear equations including the user's are solved using the
same coupled Newton iteration.
The 2nd sub case of BENCHMARK DC-7 illustrates logic that has been built into the UTPF.
For simplicity, a hyperbolic magnetic saturation curve has been modeled:
where \j.r is the reactor flux, "i" is the reactor current, and "a", "b", and "c" are parameters read from
cards numbered one and two of the 3-card characteristic of the Type-93 element. The exceptional
nature of the Type-93 characteristic is indicated by keying "FORTRAN" in columns 33-39 ofeach of
the three cards preceding the "9999"-card that ends the component. The third card is an extra bounding
card that can contain an arbitrary pair (x, y), since the numbers are not used. But the card is required to
reserve space (3 cells of List 10 are required for each nonlinear element). There is no provision for
reference branch usage, so leave the BUS3 and BUS4 fields (columns 15-26) of the leading Type-93
card blank.
123 4 5 678
23456789012345 890123456789012 01234567890123456789012345678901234567890
-333777. value "a"
No interpretation of the input data cards need be illustrated, since this is no different than for the
conventional Type-93 element of Section V-H.
User-supplied FORTRAN can involve an arbitrary number of parameters, limited only by List
10 dimensioning. The 3 values that are used to describe the hyperbolic saturation curve within the
UTPF are limited in number only by the user's data, not by the code. The program will continue to read
(x,y) points of the characteristic until the "9999"-card, and two parameters can be decoded from each
V. Nonlinear elements - 29
card. But for Type-93 usage, just do not forget that extra, unused card at the end, to protect the final
real pair of parameters. The extra card is required because Type-93 logic redefines the final (x.,y)
storage to reflect extension of the final segment to infinity (actually, just to 1000 times the last real
point).
The user can add as many different types of nonlinear elements as he wants. These will be
distinguished by varying the numerical flag ("-333777" for the hyperbolic function of the UTPF) on the
first point of the characteristic. These different numerical flags will be found in no subroutine other than
the solution routine "SOLVNL". Ifthe user were to add just one new type ofType-93 modeling of his
own, the revised structure could be as follows (assuming the use of "-444888" as the new request flag):
Presently, the D5 = D4 statement follows S.N. 4520 since the proposed code between S.N. 4520 and
S.N. 5520 does not now exist. The generalization to two or more additions should be obvious.
Interpretation of the input data will correspond to whatever type of nonlinear element is being
used. For inductor modeling, this will be the Type-93 element. An illustration is provided by the
second data subcase of BENCHMARK DC-7:
--------------------------------------------------+--------------------------------------------------------------------------------
Descriptive interpretation of input data cards. I Input data card images are shown below. all 80 columns. character by character
o 123 4 5 6 7 8
0123456789012345678901234567890 1234567 890 1234567 890123456789012345678901234567890
--------------------------------------------------+--------------------------------------------------------------------------------
Comment card. NUMDCD = 1. IC data:DC7 _2.DAT
Marker card preceding new EMTP data case. IBEGIN NEW DATA CASE
Comment card. NUMDCD = 3. IC 2nd of 2 subcases illustrates user-supplied fORTRAN to provide for smooth
Comment card. NUMOCD = 4. IC modeling of magnetic saturation. Special logic presently is built into
« Comment cards removed for brevi ty »
Output global peak voltage of network. 3 IPEAK VOLTAGE MONITOR. 3. { Request network extrema of both node & branch voltage
Width of time-step loop numbers. W=13 S=2 IPRINTED NUMBER WIDTH. 13. 2. {Request maximum preCision (for 8 output columns)
Misc. data. 2.000E-02 4.000E+OO [Link]+OO I .020 4.0
Misc. data. 1 1 1 1 1 -1 0 0 0 0 I 1 1 1 1 -1
Printout : 5 5 20 20 0 0 I 5 5 20 20
Series R-L-C. 1.000E+02 [Link]+OO [Link]+OO I GEN NODE 100. { Create unknown-voltage 'NODE' for coup l1ng
Series R-L-C. [Link]+00 5.000E+Ol [Link]+OO I NODE TRAN 5.0 5.E4 1
Nonlinear L. Type 93. 5.0000E-03 3.0000E+Ol I 93TRAN .005 30. 1
Breakpoint. [Link]+OO [Link]+OO I 0.0 0.0
Breakpoint. 5.00000E-03 3.00000E+01 I .005 30.
Breakpoint. 1.00000E-02 4.00000E+Ol I .01 40.
Breakpoint. 2.00000E-02 4.50000E+Ol I .02 45.
Breakpoint. 1.00000E-01 5.00000E+Ol I .10 50.
Breakpoint. 5.00000E+00 1.00000E+02 I 5.0 100.
Special termination-of-points card. I 9999
Series R-L-C. 1.000E+03 [Link]+OO [Link]+OO I TRAN 1000. (Need to damp hash within previous NL element
Series R-L-C. 5.000E+02 [Link]+OO [Link]+OO I NODE XXXX 500. ( Current-limiting. phase-shifting resistor
Comment card. NUMOCD = 43. IC User-supplied fortran follows. This is a regular Type-93 NL inductor until
Comment card. NUMDCD = 44. IC the time-step loop. Note 3-card characteristic. followed by '9999' bound.
Comment card. NUMDCD = 45. IC The characteristic parameter usage is: PSI = II • tanh ( b * i ) + c * i.
Nonlinoar L. Typo 93. 8.0000E-02 3.5000£+01 I93XXXX .08. 35.0 1
Breakpoint. -3.33777E+05 3.50000E+Ol I -333777. [Link] {-333777· flag; a • peak iron flux
Breakpoint. [Link]+Ol 5.ooo00E+OO I 20. 5.0FORTRAN { b • "arrent ault; c· linear soria, L
Breakpoint. 1.0ooooE+OO 1.0ooooE+OO I 1.0 1.0FORTRAN { o-y third card to protoct card 2
Special toraination-of-peiats "ard. I ttt. { End of usor-suppliod fortran (sao requost in cols. 33-3.)
Blank card ending branches. IBR. NTOT = 4 5 IBLANK card ending progrlllll branch cards.
30 -v. Nonlinear elements
The first card confirms ~teady and tVsleady whereas points of the characteristic involve parameters of the
hyperbolic saturation model: a = 35, b= 20, and c = 5, respectively. The third card of the characteristic
is unused (the values of unity were keyed just to insure legal numbers).
PageSK-l
Corona .modeling comes to the EMTP fran 1ST (Instituto SUperior Tecnico) of
Lisbon, Portu;al. ~e l.I1derlying research concerning the representation of each
corona cell is docunentedin the doctoral dissertion of Prof. M. T. Correia de
Barros (.see Ref. 44). Also inclu:1edin this research was an accurate, nonlinear
traveling wave propagation a1goritbn. 9:>~ver, the initial EMTP implementation
does not rely on any such new propagation model. Instead, fo.r Simplicity,
conventional, short EM'I'P lines segments are used (see following paragraFh).
Instrunenta1 to the application of this nunerica1 research to the EM'I'P has been
J. Allen .Uma o.f the nationalpo~r company (EIP). Implementation of corona in
ATP began .in Leuven, Belgiun, imnediately following the (X;tober 27th meeting of
IEC during 1986. '1tle author has been invited to write a slJm\ary article for the
EMTP Newsletter (Reference 22), so interested readers might watch for this.
1 2 3 - Etc. - N
Corona modeling is build into the linear p:>rtion of the system just as
pseooo-nonlinear elements (e.g., 'JYpe-98 reactor) are. When voltages really are
excessive, and when corona is active, it must be expected that [YJ will be
modified and retriangularized on each time step. 01 the other hand, after the
surge moderates and corona dies out, there will be no such automatic
retriangularization due to corona. '1tle one dominant advantage of this
implementation of corona modeling usingpseooo-nonlinearities is that it does
not rely on compensation, thereby leaving compensation for other elements that
seem to be more in need of it (e.g., Zno surge arresters). It is acceptable to
apply banks of 'IYPe-92 surge arresters at either end of the line, or even at any
intennediate node of the cascaded sections (although this w::>uld be less common) •
page 5K-2
DIST (cols. 1-8) is the common length of all cascaded line sections in
kilometers.
?????? ??????
?????? Etc., etc. (to be completed when model ing is available). ??????
?????? As this page is being frozen for printing, ??????
?????? corona is still being developed in Usbon. ??????
?????? ??????
VI. switches - 1
VI. Switches
General
Such switch cards follow the regular EMTP branch cards and precede the EMTP source
cards. If a network involves no such switch components, then the blank card ending
switches immediately follows the blank card ending the branches.
Note that if a case starts from zero initial conditions, no switches are necessary
for connecting voltage and current sources to the network at time zero. provided
the sources remain connected throughout the study.
Switches can be connected quite arbitrarily. although there are a few restrictions:
- Switch currents must be unique: there must be no loop involving closed
switches. This can be circumvented by placing a small resistance in between
two switches in loop or series.
- Kirchhoff's law must not be violated for a loop involving a voltage source
and a switch. For example,a closed switch must not be connected to two nodes
of known voltage (including ground).
Yet such restrictions seem almost never to be a problem for practically-formulated
studies, so the average production user normally will not have to deal with these
restrictions.
There exists an optional printout of steady-state phasor switch flows (both current
and power can be monitored). The integer miscellaneous data parameter KSSOUT (cols
25-32, see section II.B.) continues to control such steady-state output. If such
phasor switch output is requested (KSSOUT positive), it will follow the phasor
branch flows and precede the .injections at nodes of known voltage.
VI. Switches - 2
For any switch which is closed in the steady-state, printed and plotted values
will be correctly assigned for step zero. Also such switch currents at time zero
can be seen from printout which immediately follows the variable heading of the
time-step loop. As an illustration, consider BENCHMARK DC-32 at and immediately
above the printout for step zero:
M5 All, uc. SItCA SICC l\II4 M5 A116 TIIAIIA
CAT1I5 CATS' CAD1 CATB2 CATB3 CA'J'IM CAT1I5 CATS' GDIII
••• I'IIIISOa 1101 -
0.168733OZ+02 SIItTCII"SItCA - TO -CATS2 - CLOSED APTEK [Link] SEC
... I'BA5OIt 1101" 0.2407845Z+01 SIItTCII "AII4 - TO "CA'J'IM " CLOSED APTEK O. oooooZ+OO SEC
I'IIIISOa 1101 -
0.2947680Z+01 SIIITCII -Mi - TO -CATB6 - CLOSED AnEll [Link]+OO SEC
o 0.000000-0.358383Z+01-o.358383Z+01 0.127072Z+02-o.753039Z+02-o.6793471:+02-o.739543Z+02-o.753039Z+02 0.161380Z+03-0.739543Z00
0.770132Z+02 0.1613801:+03 0.7701321:+02 0.6714131:+00-0.819947Z+02 0.806896Z+02-0.679347Z+02 0.7701321+02-0.799739100
The printed "PHASOR I(O}" equals the real part of the complex phasor switch current
of the steady-state display, of course. Such output will be found for any switch
which was closed during the steady-state phasor solution (three of them for this
example). Note that the closing time for these switches are zero.
a) rejected configurations
Following circuit is used to indicate the difficulties which can result during the
opening of a switch in a physically improper model.
0.180
~~--~
V=sillJ.> t (f=60Hz)
..
0.299711
at 60Hz
~--~~
I\-L
221 OO~ F
Assume that both switches (I and II) are closed at t = O. Then a transient current
i(t) will charge the capacitor. Switch II shall open as soon as i(t} is approximately
zero. In the time step in which the opening is signaled (iSW1TCH changing sign for
IE = 0 and lisw1TCHI < IE for IE > 0), there will still be a residual current Ai. through
the inductance L. The next time step, switch II will be open with no path left to
dissipate the rest energy iL(~i)2.
But the problem is even far more fundamental. There will in fact be voltage
oscillations even though the switch opening occurs exactly at a current zero. The
problem is inherent to the trapezoidal rule of integration which is being used.
As a result, the computer cannot find the correct voltage V2(t) anymore (see figure
below) .
VI. Switchea - 3
Voltage
Decreasing "DELTAT" so as to decrease the "rest energy" will D.2.t. solve the problem.
o 0
or
Solution: 1} By putting a very small fraction of the capacitance over onto the
left side of the switch, a path is provided for dissipating the
rest ~nergy and a solution becomes possible again {see figure
below} •
VI.A. Stand-alone awitchea - 4
Voltage
But a 1-step delay may actually occur in certain cases (e.g. non-linear elements).
A switch closing represents a change in the network; certain conditions (voltages
for example) immediately following the closure may be quite different than those
immediately preceding the closure (t = T-). Ideally. we really should get a network
solution for t = T+ too. Among other things, this would clearly equalize the node
voltages across the switch in question and hence perhaps thereby initiate other
flashovers which should also really be performed at time instant t = T+. But ~
program does not presently perform such extra solutions in the same time step.
Equalization of node voltages for the just-closed switch will only occur as part
of the network solution at time T + 6t. thereby introducing a delay of 6t.
Switches which are different from diodes. valves or gaps and which do not need
additional data cards to specify the switch behaviour, can be subdivided in following
three classes:
- time-controlled (closing is time-controlled. opening depends on current)
- voltage-controlled (closing depends on voltage, opening depends on
current)
- measuring (always closed)
VI.A. Stand-alone switches - 5
isWITCHchonges sign
~
I I
TOPEN
+1:: ---- ----------------------------
-t
.-'
~./ i
. I
-----+--------------------------
Opening will be effective
next time step
a) Format
b) Parameters
BUS1. BUS2: Terminal node names of the switch. One of them may be grounded,
which is indicated with a blank field for the associated name.
TCLOSE: Actual time at which the switch will close. Normally, the switch is
open during steady state. Put TCWSE < 0 if switch should be closed during
steady state.
TOPEN : Time before which the switch can not open again. The actual opening time
depends on the extra current condition (cfr. fig 1 & fig 2).
IE: The current margin IE. See also remark 2.
OUTPUT OPTION: Output options for printing and/or plotting are punched as
follows:
"1": request for switch current output
"2": request for switch voltage output
"3": request for both switch current and voltage output
"4": request for switch power and energy flow·
'c) Remarks:
1) If transients start from a. non-zero ac steady-state condition, make TCLOSE < 0
for time-controlled switches which should be closed during the ac steady-state
calculation.
2) With IE = 0, the switch will open as soon as iSWITCH changes its sign. Since
the value of the current might be larger in the step where the sign change
is noticed as compared with the value in the preceding step, it is advisable
to use a non-zero current margin (see fig 1 and fig 2. earlier in this
section) .
VOlT....GE
ACROSS SWITCH / OPENS OPENS OPENS"-
• •
• -------} ~HO'JER
VOlT....GE
~HO\IER
VOLTAGE
-vFlAS
---------------+------- ---------+-------
a..OSES a..OSES a..OSES
'~--------~V~--------~/
WHENEVER "swiTCH OIIERSTEPS VnAsH
a) Format
Time Criteria
o~---r----~------.-------~
b) Parameters
BUS1, BUS2: Terminal node names of the switch. One of them may be grounded,
which is indicated with a blank field for the associated name.
TCLOSE : Time at or after which the switch will close depending on VFLASH . Before
this time, the switch is prevented from flashing over (see remark 2).
TDELAY: Time after flashover,before which the opening of the switch will not
be allowed. At or after this delay, the switch will open, as soon as the
current condition is met: current margin IE or change of sign of the switch
current (see time-controlled switches).
IE: The opening of the switch appears when the current through the switch
(iSWITCH) oversteps the current marge IE (after delay TDELAY). See also remark
3 for IE = O.
VPLASH : The closing of the swi tchappears when the voltage across the switch
exceeds VFLASH (after time [Link]>.
OUTPUT OPTION: Output options for printing and/or plotting are punched as
follows:
"lit: request for switch current output
"2": request for switch voltage output
"3": request for both switch current and voltage output
"4": request for switch power and energy flow
VI.A. Stand-alone switch•• - 8
c) Remarks:
1) In case the voltage across the gap oscillates around the true value (i.e.
an inductance "hanging in the air". as per sketch). this can be avoided by
computing the gap voltage for checking flashover as the average of the last
two time-step figures:
_(V(t)+V(t-M))
Vgap ( t ) 2
BUS1 :>
BUS2 a
A6 A6 I
Parameters
BUS1. BUS2: Terminal node names of the switch. One of them may be grounded.
which is indicated with a blank field for the associated name.
MEASURING: Special request word to specify the measuring switch.
OUTPUT OPTION: Output options for printing and/or plotting are punched as
follows:
"1": request for switch current output
tl2": request for switch voltage output
tl3": request for both switch current and voltage output
"4": request for switch power and energy flow
VI.B. Statistic and systematic switches - 9
VI. A. 4 Exam"l e
This example treats each class of stand-alone switches of section VI.A. First,
the cards are shown in the proper format, followed by a verbal explanation.
C 1 2 3 4 5 678
C 345678901234567890123456789012345678901234567890123456789012345678901234567890
BUS-1 Bus-2 .001
BUS-3 BUS-4 .0005 .002 .001
GAP-1 GAP-2 .1 1.E6
BUS-5 BUs-6 MEASURING
C 1 234 567 8
C 345678901234567890123456789012345678901234567890123456789012345678901234567890
CARD 1: Breaker pole lt BUS-llt to "BUS-2" closes at t = 0 and opens after t ~ [Link]
as soon as the current goes through 0 (current margin field IE was left
blank) •
CARD 2: Breaker pole ItBUS-3 1t to ItBus41t closes at t ~ 0.0005s and opens after
t ~ 0.002s as soon as the absolute value of the switch current becomes
smallet than [Link] or goes through O.
CARD 3: Gap "GAP-lit to "GAP-21t closes whenever the voltage across the switch becomes
bigget than 1000000V (indeed: Tclose = blank or zero) and opens as soon as
the absolute value of the switch current becomes smalletthan [Link] or
goes through 0 (indeed: Tdelay = blank or zero) •
CARD 4: Measuring switch "BUS-5 1t to "BUS-6" will be permanently closed.
A data case designed for statistical network studies (Le. containing at least
one STATISTICS or SYSTEMATIC switch), has a peculiar structure:
First, one should distinguish between random closing and random opening switches
(flag CLOP)
• Random closing switches (CLOP = blank) are always open initially (Le. during
steady state). They close instantaneous at a random time and will never open
again •
• Random opening switches (CLOP = 3333.) are always closed initially {i.e.
during steady state}. They open after random time and never close again. But
this opening in not necessarily instantaneous. The current criterium (see
current controlled switches; [Link] = 0 or [Link] < IE) should be. met too.
Only when both the time and current criterium are met, opening will take
place. Hence it is quite possible that the switch will never open (e.g. too
small current margin IE)'
The random opening/closing time is to be specified. for each STATISTICS switch
individually, using the average value T and a corresponding standard deviation a.
On the other hand, a tricky alternative (the so-called "TARGET" feature) allows
the user to avoid the keying of the average value T, which then will be the same
for all independent switches. This general value will be set equal to the average
value specified for the "target" switch. But C1 can be different on all independent
switches and hence should be specified on each switch card separately.
Further, one should distinguish between two distribution laws (types of dice)
for the opening/closing time (flags IDIST and ITYPE); Gaussian or uniform dis-
tribution. For Gaussian distribution, in addition, parameter IDICE (see section
II-C-l) controls whether or not. standard random numbers are to be used. Further,
parameter NSEED (see section II-C-l) is important too. Finally, please refer to
section II-C-3 for more details on how to perform dice [Link] without actually
performing the corresponding network energizations.
VI.B. Statistic and systematic switches - 11
~~ f(T)
b T
~
~
+
F(T)
1.0
0.5
T T
Two different situations can exist, depending on the fact whether all switches
will follow the same distribution law or that different switches will follow
different distribution laws:
b) some switches should follow Gaussian, other switches should follow uniform
distribution :
• Put IDIST = 0 (miscellaneous statistics parameter, see section II-C-l)
• Put ITYPE = 0 for those switches that follow Gaussian distribution and
ITYPE = 76 for those switches that follow uniform distribution
where:
Remark that the use of dependence only affects the average closing time T. No
efects can be made on the standard deviation o. Finally note that this dependency
character of the "STATISTICS" switch is not limited to two switches. The EMTP
allows an arbitrary number of such dependencies and an arbitrary number of levels
of servitude are permitted.
In addi tion to the random opening/closing time (which can be specified for
each statistical switch individually). one can add an extra random delay, applicable
to all statistic switches, all opening switches or all closing switches (depending
on parameter ITEST - see section II-C-l):
ITEST = 0: extra random delay applicable to all statistics switches
= 1: no extra random delay applicable to any statistics. switches
= 2: extra random delay applicable only to random closing switches
= 3: extra random delay applicable only to random. opening switches
Unlike the random opening/closing time (which can be either Gaussian or uniform
distributed). this extra random delay always follows a uniform distribution. This
extra random delay is expressed in degrees, based on power frequency STATFR (cfr.
STARTUP file). Relevant parameters are DEGMIN and DEGMAX.
Finally, the STARTUP variable NENERG (positive for STATISTICS studies) defines
the number of energizations (number of shots). If the number of shots is too low.
statistical postprocessing of peak voltages will be meaningless. The adviced minimum
value for NENERG = 30.
VI.B. Statistic and systematic switches - 13
Let us now discuss the random closing and random opening STATISTICS switch in
more detail. Finally. some illustrative examples will be given.
a) Random closing "STATISTICS" switch (CLOP = blank)
Format:
Following card format is to be used
BUS1 BUS2
BUS5 BUS6
Parameters:
ITYPE: Together with IDIST (miscellaneous data parameter), ITYPE can be used
to select between a Gaussian (normal) or a uniform distribution of the
switch closing times. Either zero (blank) or "76" are allowed.
Parameters:
ITYPE: Together with IDIST (miscellaneous data parameter), ITYPE can be used
to choose between a Gaussian. (normal) or a uniform distribution. Either
zero (blank) or "76" are al:;Lowed (see following table).
CARD' 1: "STATISTICS" switch connecting node "JDAYGA" to node "JDAYA" has an average
clOSing time of 2.0 ms and an associated [Link] deviation of 0.4 ms.
Assuming that statistics miscellaneous parameter "IDIST" is zero, the
probabilistic distribution will be Gaussian (normal). This assumes that
there is no "TARGET" statistics switch in the data case {unlike this
example} .
CARD 2: "STATISTICS" switch connecting node "BS" to node "BSW" i.s the ttTARGET"
switch for the data case in question. All non-dependent "STATISTICS"
swi tches of the data case will have the same average closing time of 4.0 ms.
In other words, the information which is punched in columns 15-24 {T} of
all non-dependent "STATISTICS" switches is over-ridden by the value for
the present "TARGET" switch. The standard deviation of the closing time
for this "TARGET tt switch is 0.5 ms.
tt
CARD 3: The switch connecting node "OS" to node "OSW" is a dependent ttSTATISTICS
tt
switch. Its reference switch is the one connencting node "JOAYGA to node
"JOAYA tt . Note that the reference switch must have been previously specified.
The closing time of the present switch is delayed from that of its reference
by a random delay time which has an average of 6.0 ms and a standard
deviation of 0.2 ms.
Unlike STATISTICS switches, SYSTEMATIC switches are always open initially {i. e •
during steady state}. Each .systematic switch has its closing time systematically
(regularly) varied between a given beginning and ending time, in steps which are
uniformly spaced. The switch closing is instantaneous and permanent (meaning the
switch will not open again).
The time span is to be specified for each SYSTEMATIC switch individually. using
the beginning time Tbeg or mid-time [Link] (depending on ITEST. see section II-C-2).
time incrementINCT as well as number of equidistant time intervals NSTEP. On the
other hand, a tricky alternative (the so-called "TARGET" feature) allows the user
to avoid the keying of Tbeg/Tmidt which then will be the same for all independent
switches. This general value will be set equal to the Tbeg/Tllid value specified for
the "TARGET"switch. But the time increment INCT and the number of equidistant
time intervals NSTEP can be different on all independent switches and hence should
be specified on each switch card separately.
Finally, one should distinguish between independent and dependent SYSTEMATIC
switches (flags BUS5 and BUS6) •
. for independent .systematic switches, the regularly varying closing times
of one switch do not influence the regularly varying closing times of
another switch. BUS5 and Bus6 are blank.
Adding an independent systematic switch augments the dimensionality of
the vector space of switch closing times which is to be systematically
explored. The number of energizations is increased by a factor ttNSTEP"
(see remarks under ttIndependent SYSTEMATIC switches") •
• for dependent systematic switches, the regularly varying closing time
of the master switch does affect the closing time of the slave switch.
The BUS5-field of the slave switch should refer to the BUS1-field of
the master switch. Similarly, .BUS6 refers to the BUS2-field. Adding a
dependent systematic switch does not increase the dimensionality of the
vector space of switch closing times which is to be systematically
explored.
The closing time of a dependent "SYSTEMATIC tt switch ttBtt can be subdevided
in two elements. The first element is the closing time of the master
switch ttAtl • The second element is an offset by a fixed amount from the
closing time of the reference switch "B".
Finally, the absolute value of the STARTUP variable NENERG (negative for
Systematic stUdies) defines the total number of energizations (number of shots).
It should be equal to the product of all NSTEP values of all independent systematic
switches.
Let us now discuss the independent and dependent systematic switch in more
detail. Finally, also some illustrative examples will be given.
VI.B. Statistic and systematic switches - 18
Node Names
w Tbeg
~
or INCT NSTEP or
~ BUS1 BUS2 Tmid BLANK "
o
Parameters:
ITYPE: The "SYSTEMATIC" switch type code always is zero. This field may also
be left blank.
BUS1, BUS2: Terminal node names of the switch. One of these nodes may be
grounded, indicated by a blank field for the associated name.
Tbeg or Talid: Depending on the miscellaneous parameter "ITFST" (see section
II-C-2) the beginning time or the mid time (both in seconds) are to be
punched. See also next table:
ITEST col 15-24 punch
0 Tlllid
1 Tbeg
beg Tmid
tlose
...
Tl T2 T3 T4 TS T6
'-v---I
/::,.T
tIIJ!I# NSTEP = 6
In case of target switch usage, this field can be left blank. Please refer
to the remarks 1 and 2 for more details.
INCT: For each non-dependent "SYSTEMATIC" switch. the. size of the time increments
&' (in seconds) is to be punched in this field.
NSTEP: This field contains the number of time increments for the non-dependent
"SYSTEMATIC" switch. For a relation between NSTEP and INENERGI. please refer
to remark 3.
SYSTEMATIC: Special request word to indicate a SYSTEMATIC switch.
TARGET: If an independent switch is chosen to be a "target". the special request
word "TARGET" has to be punched in this field (see remark 1). When the
switch is independent and no target. this field has to be left blank.
OUTPUT OPTION: Output options for printing and/or plotting can be obtained by
the following punches:
VI.B. Statistic and systematic switches - 19
NENERG = -5.4.3
"fclose
-------------~---------~
/ /1 /1
t; T~/{ / 1 1 /
/ /
/ 1 NO
1
= 5/ / 1
1
~-- ---->I
/1/
/1 / C
N /'11
f--J-~-- ------~~-T--r-, /
1 1/ / 1
1 ~---- -----~-+--~~~ 1
1 /1 1
1/ 1
f--4----
1 1
------~~~~~~ N~ = 3 I
1 1 llT~
1 1
1 1
1 1 1 / /
1 1 1 / / ~Iose
Ill-rtl 1 1 / 1 1 /
I I 1/ 1 1/
1
I
-----------r--r-----,--7
1 / 1 /
______________ L1/ 1/
________ - f
~Iose
Node Names
w
Cl.. TDELAY
~ BUS1 BUS2 :I
0
A6 A6 E10.0 A6 A6
Parameters:
ITYPE: The "SYSTEMATIC" switch type code always is zero. This field may also
be left blank.
BUSl. BUS2: Terminal node names of the switch. One of these nodes may be
grounded. indicated by a blank field for the associated name.
TDELAY: Constant delay time (in seconds) with respect to its "master" switch.
applicable to the considered "slave" switch. The master switch is refered
to via parameters BUS5 and Bus6.
SYSTEMATIC: Special request word to indicate a SYSTEMATIC switch.
BUS5: BUS5 of the "slave" switch should refer to BUSl of the. "master" switch.
Bus6: Bus6 of the "slave" switch should refer to BUS2 of the "master" switch.
OUTPUT OPTION: Output options for printing and/or plotting can be obtained by
the following punches:
'1': switch current
'2': switch voltage
'3': both switch current and voltage
'4': switch power and energy flow
Remarks:
Adding dependent switches does not augment the demensionality of the problem.
since TDELAY of a "slave" switch is a constant value for all energizations
(see also the introduction to point VI.B.2).
CARD 1: Non-dependent "SYSTEMATIC" switch connecting node "AS" to node "ASW". The
mid-closing time is 3. Oms, assuming "ITEST" is zero and that the data case
in question has no "TARGET" switch (unlike the situation presented here).
The closing time of the switch is to be varied in steps of size [Link]. 12
steps are to be taken.
VI.C. TACS-controlled switches - 21
CARD 2: "SYSTEMATIC" switch connecting node "CS" to node "CSW" is the "TARGET"
switch for the data case. All non-dependent "SYSTEMATIC" switches of the
data case have the same mid-closing time of [Link] (if "ITFST" is zero) or
the same beginning closing time of [Link] (if "ITFST" is unity). The
information of columns 15-24 (Tbeg or Taid) on all other non-dependent
"SYSTEMATIC" switch cards is over-ridden by the value on the "TARGET"
switch card (that now being discussed). The closing time of this switch
is to be varied through 8 steps. the step size is [Link].
CARD 3: The switch connecting node "ES" with node "ESW" is a dependent "SYSTEMATIC"
switch. Its reference switch is the one which connects node "CS" to node
"CSW". The closing time of the present switch is offset (delayed) from
that of its reference by a constant offset time of -5.0ms. In other words.
the present switch will always close [Link] before closure of the reference
switch.
[Link]-coDtrolled switches
1st 2nd
NODE O---"~_"'I!----o NODE
"GRID"
Firing signol
1st . 2nd
NODE 0 --t'
I
0 NODE
TACS-CONTROLLED
OPENING/CLOSING "SIGNAL"
Any combination of these three modes can represent a switch. in which case
either or both grid signal and overriding signal can simultaneously be active.
VI.C. TACS-controlled switches - 22
a) Format
NODE NAMES
Vig Ihold tDEION
11 OPEN/
BUS1 BUS2 (in sec.) CLOSE :>
0
A6 A6 E10.0 E10.0 E10.0 A6 A6 I I
b) Parameters
11: Number to indicate a type-ll switch for diode and valve applications.
BUS1. BUS2: Terminal node names of the swi tch. One of the nodes may be grounded.
indicated by a blank. field name. The direction of the current is taken to
be from "BUS1" to "BUS2". In other words. for both valve and diode. we
have
anode : always "BUS1"
cathode : always "BUS2"
Vis: Minimum ignation voltage. The meaning of this parameter in the opening
and closing of the switch is explained in the following section.
I HoLD : Minimum holding current. The meaning of this parameter in the opening
and closing of the switch is explained in the following section.
tDEION: De-ionization time. The meaning of this parameter in the opening and
closing of the switch is explained in the following section.
CLOSED: The switch may be specified as closed during the program-calculated
steady-state initialization. if the user punches the keyword "CLOSED".
SAME: When data for the parametric fields have to be repeated on one ore more
cards. the keyword "SAME" should be used on these cards. immediately
following the card bearing the definition of these parameters.
GRID. OPEN/CLOSE: These alphanumeric names correspond with the names of the
associated TACS variable. Next section explains the opening/closing results
on actions of the GRID and OPEN/CLOSE variables on the diode or valve,
depending on Vis' I HoLD and tDEION'
ECHO: The user may obtain a printed echo of the occurrence of all opening and
closing operations of the switch, by punching a '1' in this field. No such
diagnostic will be printed if this field is. punched with a '0' or left
blank
OUTPUT OPTION: Output options for printing and/or plotting can be obtained by
the following punches:
'1': switch current
'2': switch voltage
'3': both [Link] current and voltage
'4': switch power and energy flow
---: theoretical
- : simplified
~
ANODE 0 ~ ~I 0 CATHODE
I Vra\ed \jg
I reyerse blocking
I region
I
- The switch acts as a DIODE.
- When the forward voltage across the terminals becomes greater than Vig. than
the diode starts conducting.
- As soon as the forward current through the switch becomes smaller than I HoLD •
than the diode ceases conducting.
- Restrictions of this simplified model:
operation below reverse blocking region can not be simulated
. heat sink requirements and actual design can not be simulated
"'II vol<
c.3) The OPEN!CL~)E signal is BPecified (the switch acts not as a diode neither
as a varve)
on
v
~
I ,
off
BUS1 ~----<> BUS2
v
TACS - CONTROLLED
VI.C. TACS-controlled switches - 24
d) Example
Following example shows the use of the type-11 switch. First the format is
shown for several cases, whereafter a verbal explanation can be found.
C 1 234 567 8
C 345678901234567890123456789012345678901234567890123456789012345678901234567890
11L2 R2 CLOSED
11LEFT RIGHT FIRE2 1
11HOD£1 HODE2 ORDER
11L6 R6 DELAY TRIG
C 1 2 3 4 567 8
C 345678901234567890123456789012345678901234567890123456789012345678901234567890
CARD 2: Thyristor valve from "LEFT" to "RIGlIT", with "FIRE2" as grid signal which
is received from a TACS variable. Every change of status will be echoed
in the printout ('1' punched in column 79).
CARD 3: TACS-controlled switch from "NODE1" to "NODE2", operating as a diode when
"ORDER" has the value "0.0". A positive value of "ORDER" will result in
an immediate closing of the switch. It will remain closed as long as this
positive signal is active. A negative value for "ORDER" will result in an
immediate opening of the switch. It then will remain open as long as this
negative Signal is active. The change OPEN/CLOSE and CLOSE/OPEN is assumed
to be instantaneous.
CARD 4: Valve from "L6" to "R6", with the grid signal "DELAY", with its operation
overriden by the TACS-variable "TRIG" during the periods in which the value
of "TRIG" is different from zero.
a) Format
IE
H ~! 'E Ie
NODE NAMES TACS NAMES ~
Ie
Ihold CLOSED
BUS1 BUS2 SPARK CLAMP ~
~
A6 A6 E10.0 E10.0 A6 A6 I I
b) Parameters
12: Flag for spark gap and triac applications.
BUS1, BUS2: Terminal node names of the switch. One of the nodes may be grounded,
indicated by a blank field name. See also remark 1.
Vi~: Minimum ignationvoltage. See point c for more details on the usage.
IHoLD:Minimum holding current. See point c for more details on the usage.
CLOSED: The switch may be specified as closed during the program-calculated
steady-state initialization, if the user punches the keyword "CLOSED".
Otherwise, the switch will be assumed open during steady-state.
SPARK, CLAMP: These alphanumeric names correspond with the names of the
associated TACS variables. Point c explains the opening/closing actions
of the triac depend on variables SPARK , CLAMP, Vi~ and I HOLD •
ECHO: The user may obtain a printed echo of the occurrence of all opening and
closing operations of the switch, by punching a '1' in this field. No such
messages will be printed if this field is punched with a '0' or left blank
OUTPUT OPTION: Output options for printing and/or plotting can be obtained by
the following punches:
'1': switch current
'2': switch voltage
'3': both switch current and voltage
'4': switch power and energy flow
c) Opening and [Link] actions as a resul. t of the SPARK and CLAMP
signals
Following table shows some grafics of results on opening and closing actions
of the type-12 [Link]:
/' ~
already I
I
" ",
,
I
closed f
I
I
\
\
\
-- ,
I
1
f I
\
I I \
1
I I \
I \
I
I
I
I
I \
,
.
/
/
SPARK
/
/
", -
( '\
/
",,
open
~AAK
It
~
11 \
\
\
I
)
) i SPARK
\ ) 1
I
\
\
\
\
,
", -
Depending on SPARK
ti~hold
/~-------"'"
I
/ , \
,,
I \
\
I
I
I \
\ ,
/
I
I
\
,,
/
\
I
I I
I I
closed -"
/
,- /
tvt<Vign
"'""
--/1'---'" y 'swrrcH <.....
)~L \
If tv~Vign
switch --- 1---" y ''''''"''"< .....
was
already f\ f\ "'""
) .,- \
open ) \ ) \
SPARK Undefined g) >0
a) Format
IE F
fL~C IC f~i~ iL IE Ie ~ f: ;E 1< :EI~ l'IE Ie I~ IE .~ l' ,E tE
TACS
NODE NAMES
OPEN!
I
BUSl BUS2
, CLOSED
CLOSE ~ci
SIGNAL
A6 A6 A6 A6 I I
b) Parameters
13: Number to indicate a type-13 simple TACS-controlled switch.
BUS1, BUS2: Terminal node names of the switch. One of the nodes may be grounded,
indicated by a blank field name.
CLOSED: The switch may be specified as closed during the program-calculated
steady-state initialization, if the user punches the keyword "CLOSED".
VI.C. TACS-eontro11ed switches - 28
OPEN/CLOSE: This alphanumeric name correspond with the name of the associated
TACS variable. Next section explains the opening/closing results on actions
of the OPEN/CLOSE variable on the switch.
ECHO: The user may obtain a printed echo of the occurrence of all opening and
closing operations of the switch, by punching a '1' in this field. No such
diagnostic will be printed if this field is punched with a '0' or left
blank
OUTPUT OPTION: Output options for printing and/or plotting can be obtained by
the following punches:
'1': switch current
'2': switch voltage
'3': both switch current and voltage
'4': switch power and energy flow
d) Example
Following example shows the use of the type-12 switch. First the format is
shown for several cases, whereafter a. verbal explanation can be found.
C 1 2 3 4 5 6 7 8
C 345678901234567890123456789012345678901234567890123456789012345678901234567890
13LEFT RIGHT ORDER
13HODE1 CLOSED SIC 1
C 1 234 567 8
C 345678901234567890123456789012345678901234567890123456789012345678901234567890
CARD 1: Switch form node "LEFT" to node "RIGHT" controlled by the TACS variable
"ORDER".
CARD 2: Switch from node "NODE1" to ground controlled by the TACS variable "SlOtt
and closed at t S 0.0. Every change of status will be echoed in the printout.
VII. Static electric network sources - 1
VII.A. General
- Sources usually have just two terminals and one of these must be ground. Therefore,
most source types only have to be specified by one node-name.
But also ungrounded sources exist. For current sources, this is trivial, since
a current source connected between two nodes is equivalent to two current sources,
each of which have one end grounded. The two replacement sources then should
have equal amplitudes but opposite signs (one source injects current, the other
extracts it). But ungrounded voltage sources are more involved: a special type-18
source had to be created.
- Further, one can distinguish between current sources and voltage sources.
- Following rules apply to nodes where different sources are active at the same
time:
- when several voltage sources are active on the same node, all such source
influences will be added.
- when several current sources are active on the same node, all such source
influences will be added.
- in case both current and voltage sources are active on the same node, only
the voltage source influence is taken into account. The current source
influence is not taken into account.
- Sources can be subdivided in two distinct groups: static and dynamic sources.
- the group of static sources containes following types:
- empirical functions, defined point by point: type-i
- analytical functions: type-ii = step function
type-12 = ramp function
type-13 = 2-slope ramp
type-14 = cosine or trapped charge
type-15 = surge function or renewed surge function
type-16 = simplified ac/dc converter model
type-18 = ideal transformer or ungrounded voltage
source
- TACS-controlled functions: type-17 = TACS modulation
type-60 = connection to TACS variable
- the group of dynamic electrical sources contains:
- dynamic rotating machine models: type-19 = universal machine
type-59 = synchronous machine
This chapter VII will deal with all static electrical sources. The dynamic
electrical sources will be discussed in later chapters: chapter VIII deals with
the dynamic synchronous machine model, whereas chapter IX will deal with the dynamic
universal machine model.
As far as static electrical sources are of concern, only type-14, type-16 and
type-18 in combination with type-14 sources are taken into account during
steady-state, provided TSTART is specified negative on the source card. All other
source types are zeroed during steady-state.
For the dynamic electrical sources. steady-state ini tial values can be specified
by the user or such values can be calculated automatically. We refer to chapter
VIII and IX for further details regarding special rules to be applied.
VII. Static electric network source. - 2
,,,
\
0.2 \
\
\
"12e I \-'IQ
: .... -'11
0.0
"13 : """14
0.02
"'2.
0.2 0.14
°1\3
t
seconds' 100"
-0.2
.,:
-0.4
Parameters :
'1<1+3
EB.O EBoO EBoO EBoO EBoO EBoO EB.O EBoO EBoO EBoO
Parameters:
Vki •• Vki+9: These are the source values (current or voltage) for the k-th
time-step on the i, i+1, .•• , i+9-th source. The source sequence is defined
by the sequence of apprearance of the different type-1 source definition
cards rather than by the type-code (value 1 to 9).
If there is a time-step beyond which all source functions are identical to
zero, such input cards can be terminated by a 9999-card (keyed in columns 5-8).
For each new time step, one needs a new card or card grouping to specify the
function values for all type-1 sources at that time step. Per card there are 10
fields, which means that there can be specified the values of 10 sources on that
card. If there are more then 10 type-1 sources, 2 or more cards are needed per
time step. The number of cards (card grouping) equals the number of time steps.
This can be calculated by deviding '!'MAX (miscellaneous data card) by DELTAT
(miscellaneous data card).
Remark:
1) Beware that, in contrast with other source types, there is no time shift
of the type-l function when using TSTART.
2) If TSTART is in use, all the specified source values between time = 0 and
time = TSTART (excluding time TSTART) are set to zero value. If TSTOP is
in use, all the specified source values after time = TSTOP (including time
TSTOP) are set to zero value. All the specified values between TSTART and
TSTOP are unchanged.
VII. Static electric network soyrees - 4
1.c. Example:
Next example shows the place of the cards and the values of the sources in
these cards.
BEGIN NEW DATA CASE
1.0 20. {Time interval: (O.O, 20.) seconds: time-step: 1.0 second
1 1
VALUE 1.0
VALUE2 1.0
BLANK card enda branch cards
BLANK card ends switch cards (none, for this case)
C 1 234 567 8
C 345678901234567890123456789012345678901234567890123456789012345678901234567890
lVALUE {First type 1-10 souree } 4.001 12.0
lVALUE2 {Second type 1-10 souree}
BLANK card enda aouree carda
VALUE VALUE2 (OUtput request on nodea VALUE, VALUE2
BLANK card ends requeats for program outputs (here., just node voltages)
C 1 234 567 8
C 345678901234567890123456789012345678901234567890123456789012345678901234567890
4. 3. (First column for node: VALUE
1. 0.0 (Second column for node: VALUE2
0.0 -1.
-1.6 -2.6
-.2 -1.2
-0.7 -1.7
-.4 -1.4
2.9 1.9
3.41 2.41
.850 -.150
0.5 -1.
-.1 -1.1
-.8 -1.8
-1.0
9999 (Specification card to terminate souree-values
CALCOMP PLOT
143 2. 0.0 20. VALUE VALUE2
,BLANK card ending plot carda
BEGIN NEW DATA CASE
BLANK card ending all cases
t..-_..-.....-.....-...
:I :
Tl
i -.. - ... i
I I
I I
I I
I I
I I
I I
!
I
AMPLITUDE I
I
I I
I I
I I
I I
I I
I I
-
I I
I I
DELTAT
lSTNH
TSTOP
Format:
1 I~ !, I~ I€ It
"- IC I ~ rfl~l( .~ ic rf~* I-~"" I~ I"" rfl~l( ~* IC rE!sic
11 NAME 51 AMPLITUDE T5TART T5TOP
Parameters:
Example:
Next example shows the use of the type-ll source.
BEGIN NEW DATA CASE
.05 2.0
1 1 1 1 1
BUS3 1.0
~LANK card ending electric network branches
BLANK card ending switches
C 1 2 3 4 567 8
C 345678901234567890123456789012345678901234567890123456789012345678901234567890
llBUS3 2.0 .059 .36
BLANK card ending electric network source cards.
1
CALCOHP PLOT
143.05 0.0 2.0 BUS3
BLANK card ending plot cards
BEGIN NEW DATA CASE
BLANK
VII. Static electric network sources - 6
!'STOP
Format:
Parameters:
Example:
Next example shows the place of the cards and the values of the sources in
these cards.
BEGIN NEW DATA CASE
0.1 2.0
1 1 1 1 1
EXTRA 5.
BLANK card ending branch cards
BLANK card ending non-existent switch cards
C 1 2 3 4 5 678
C 345678901234567890123456789012345678901234567890123456789012345678901234567890
12EXTRA 100. .22 .15 .72
BLANK card ending all electric source cards
1
CALCOHP PLOT
C 1 2 3 4 567 8
C 345678901234567890123456789012345678901234567890123456789012345678901234567890
1430.1 0.0 2.0 EXTRA
BLANK card terminating plot cards
BEGIN NEW DATA CASE
BLANK
....-. .......
At
•
I
I
I
I
I
f> ....-....
.... -.... -.I
I
I
I I
I I
I I
•
I I
I
I
IotTAT I
TSTART l n..E-O
TlIoIE-l
TSTOP
Format:
Parameters:
A'
~. -....-.- ... -.- ....-.- ....---
....-.- .....- --
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
~TAT t
TINE-I
TSTOP
Example:
Next example shows the use of the type-13 source.
BEGIN NEW DATA CASE
0.1 2.0
1 1 1 1 1
NODE3 5.
BLANK card ending branch cards
BLANK card ending non-existent switch cards
C 1 2 3 4 567 8
C 345678901234567890123456789012345678901234567890123456789012345678901234567890
13NODE3 2. .2 1. 1.0 0.1 1.15
BLANK card ending all electric source cards
1
CALCOMP PLOT
C 1 2 3 4 5 6 7 8
C 345678901234567890123456789012345678901234567890123456789012345678901234567890
1430.1 0.0 2.0 NODE3
VII. Static electric network sources - 9
TSTOP
Format:
Parameters:
TSTART: Time at which the function becomes active irrespective whether TSTART
is an integer multiple of DELTAT or not. Any time before TSTART (even in
the limit that the time approximates TSTART) , the value of the function
will be zero. The only thing we have to be carefull with, when DELTAT is
chosen too high and if TSTART is not an integer mUltiple of DELTAT. is the
unrealistic representation of the function. due to plotting logic. See
also remark 1.
TSTOP: Time at which the function becomes inactive irrespective whether TSTOP
is an integer multiple of DELTAT or not. Any time from TSTOP on (TSTOP
included), the value of the function will be zero. The only thing we have
to be carefull with, when DELTAT is chosen too high and if TSTOP is not
an integer multiple of DELTAT, is the unrealistic representation of the
function, due to plotting logic.
Remarks;
1) The phasor solution for initial conditions is driven only by type-14 sources
so such sources are very important for power system use. If a type-14 source
is to be part of the phasor solution, this is indicated by keying the
starting time TSTART negative. The program then will automatically precompute
the correct phasor conditions and will use these as initial conditions to
begin the corresponding time step simulation. Different phasor frequencies
are allowed only if the different frequencies are separated in disconnected
subnetworks. For an illustration of such multiple-frequency phasor solution,
see BENCHMARK DCNEW-1.
2) A special case of phasor solution is the so-called frequency scan. This
feature services the repetition of the steady-state phasor solution (so be
sure to put TMAX = 0 on the miscellaneous data card and TSTART < 0 on the
type-14 source card), as the frequency of type-14 sources is automatically
incremented between a beginning and an ending frequency. See section II-A-16
for more details regarding this feature.
Example:
This example treats the normal sinusoidal function in two ways:
1) type-14 non-steady-state:
2) type-14 steady-state:
BEGIN NEW DATA CASE
C In this case the difference between a normal type-14
C source and a type-14 source used for a phasor solution is shown.
.1 2.0
1 1 1 1 1
EXTRA2 5.
EXTRA3 5.
BLANK card ending branch cards
BLANK card ending non-existent switch cards
C 1 2 3 4 5 6 7 8
C 345678901234567890123456789012345678901234567890123456789012345678901234567890
14 EXTRA2 100. 0.5 -1. 2.0 {steady-state
14 EXTRA3 100. 0.5 2.0 {non-steady-state
BLANK card ending all electric source cards
1
CALCOMP PLOT
C 1 2 3 4 5 6 7 8
C 345678901234567890123456789012345678901234567890123456789012345678901234567890
143 .1 0.0 2.0 EXTRA2EXTRA3
BLANK card terminating plot cards
BEGIN NEW DATA CASE
BLANK
VII. Static electric network sources - 11
A6 12 E10.6 E10.6
Parameters:
2) There is only one necessity when using trapped charge sources. The isolated
subnetwork to which such sources are to be applied may not have other sources
of a different frequency. Also. all trapped charge sources of the same
subnetwork must have identically the same frequency. This is because solutions
of differing frequency must not overlap: one can have only one at a time,
not the superposition of two or more at anyone point of the network. For
an illustration of the usage of a trapped charge source. see BENCHMARK Dc-6.
Examples:
This example shows the use of a trapped charge type-14 source:
BEGIN NEW DATA CASE
C 2nd of 3 subcases. In this case the trapped charge source is in use •
•1 2.0
1 1 1 1 1
EXTRA1 5.
BLANK card ending branch cards
BLANK card ending non-existent switch cards
C 1 234 567 8
C 345678901234567890123456789012345678901234567890123456789012345678901234567890
14EXTRA1-1 2. 1.E-3 5432. 2.0
BLANK card ending all electric source cards
1
CALCOHP PLOT
C 1 2 3 4 5 6 7 8
C 345678901234567890123456789012345678901234567890123456789012345678901234567890
143 .1 0.0 2.0 EXTRA1
BLANK card terminating plot cards
BEGIN NEW DATA CASE
BLANK card ending the case
-.
I(t)
\ ---------------:=-.::-..:::::::==-=--._1-
------
1
\
\
\
\ / .....
\
\ ;'
/
\
,, " /
/
)~
I ...
I ...
,I ' , .....
I
,. '-,
-,
I
/ -'-"
...........
.,..
/
,. -,
',.,',.,.,.,.,.-.-
,
VII. Static electric network sources - 13
Format:
1 i. I~ IE IE
~ l~fE IE Ie I ~ L'IE rml( i~ll IE IE Ie ~E IE tEi~l( I'I~ I d~~( l'~E 'EISIC I·l~ IEi S:C
Parameters:
2) It is cumbersome to the user that the field "AMPLITUDE" does not correspond
to the peak value.
3) Finally, due to numerical instability of the formula (substraction of two
exponentials), numerical oscillations can occur.
In order to avoid the above disadvantages, the Heidler-model was implemented
in the code. This model is described by following function:
I k" :!
i(t)-~--e'
T) 1 + k"
where
t
k=-
1:1
in this formula,
= front time constant: is proportional to the front duration (=time interval
"t 1
between t=O to the time of the function peak)
1: is proportional to the stroke duration
(= time interval between t=O and the point on the tail where the function
amplitude has fallen to 50% of its peak value)
10 = peak value
11 = adjustment constant
n = influences the rate of rise and the instant of time of the maximum rate
of rise. With increasing n, this instant is shifted from the tail end
towards the 50%-value of the peak.
Although the original Heidler model uses 1:1 (front time constant), the EMTP
implementation uses the front duration TFRONT. The model is reasonable accurate
for normalized surge functions (e.g. 1,2 - 50), but can behave very strange for
other shapes (e.g. 1,2 - 1,4). In the latter case, the user has almost no control
over the parameters AMPLITUDE and 1:.
Format:
1 ~ I~ E IE
~ f<l'fE IEI~IC f<·< iE I! { :< I~ fE iE Ie 1< f·f< IEi~lc f< Iff~ ~ I~ ,e ~~~€ Id* l' 'Ei~lc
~: The stroke dUration in seconds. This is the time interval between t=O and
the point on the tail where the current amplitude has fallen to 50% of its
peak value. Typical value: 50 llsec.
N: Factor influencing the rate of rise of the function. Increasing N increases
the rate of rise and shifts the instant of maximum steepness from the tail
end towards the 50% value of the peak. Reasonable values for N are 5 ••• 10.
Do not specify zero or blank, for this is a switch to distinguish between
the old and the new model.
TSTART: Time at which the function becomes active irrespective [Link]
is an integer multiple of DELTAT or not. Any time before TSTART (even in
the limit that the time approximates TSTART), the value of the function
will be zero. The only thing we have to be carefull with, when DELTAT is
chosen too high and if TSTART is not an integer multiple of DELTAT, is the
unrealistic representation of the function, due to plotting logic.
TSTOP: Time at which the function becomes inactive irrespective whether TSTOP
is an integer multiple of DELTAT or not. Any time from TSTOP on (TSTOP
included), the value of the function will be zero. The only thing we have
to be carefull with, when DELTAT is chosen too high and if TSTOP is not
an integer multiple of DELTAT, is the unrealistic representation of the
function, due to plotting logic.
Examples:
Next examples show the place of the card and the values of the source in this
card. The first example shows the use of the type-15 source based on two exponentials.
BEGIN NEW DATA CASE
.05 2.0
1 1 1 1 1
SURGE 1.0 {Dummy branch connecta Type-15 aurge function
~LANK card ending electric network branches
BLANK card ending switches
C 1 234 567 8
c 345678901234567890123456789012345678901234567890123456789012345678901234567890
15SURGE 2.0 -1.0 -3.0
BLANK card ending electric network source carda.
1
CALCOMP PLOT
143.25 0.0 2.0 SURGE
BLANK card ending plot cards
BEGIN NEW DATA CASE
BLANK
The second example shows the use of the type-15 source based on one exponential.
BEGIN NEW DATA CASE
.1 2.0
1 1 1 1 1
LIGHTN 1.0
ALGHTN 1.0
ALGHT2 1.0
BLANK card ending electric network branches
BLANK card ending switches
C 1 2 3 4 5 6 7 8
C 345678901234567890123456789012345678901234567890123456789012345678901234567890
15ALGHTN-l 2.0 1.2 50.0 2.0
15LIGHTN-l 2.0 1.2 50.0 7.0
15ALGHT2-1 2.0 1.2 50.0 0.5
BLANK card ending electric network source cards.
1
CALCOMP PLOT
143 .1 0.0 2.0 ALGHTNLIGHTNALGHT2 { Plot limits: (0.000. 1.000)
BLANK card ending plot cards
BEGIN NEW DATA CASE
BLANK
VII, Static electric network sources - 16
Note that the type-16 DC-voltage source is not defined by its positive and
negative terminals, but by the cathode and anode side. Furthermore, during
steady-state it is actually represented as a near-DC source.
The positive direction of the current flow is from anode to cathode. The current
is not permitted to flow in the negative direction. This is simulated with a switch
on the anode side between internal nodes ttTIP-16 tt and ttTRASHtt. Beware that this
switch can cause numerical oscillations when opening or closing. This oscillation
can be eliminated by the use of an HC snubber branch between anode and cathode
(e.g. H = 900n, C = 0.15 lIF). Also see section IV.A.3. remark 7 (i.e. scaling of
a resistance by the time step DELTAT).
An isolation resistor He is placed between the user-supplied anode node name
"BUS1" and the internally-defined node ttTIP-16 tt • This isolation resistance is
needed in order to allow the type-16 source to be connected to any other EMTP
element, even to a switch (recall that two switches never can be connected directly;
they should be separated at least by a small resistance).
The equivalent resistance HE~IV is function of parameters defining the current
regulator dynamics, because it results from the transformation of the differential
equations describing the source dynamics to difference equations using the
trapezoidal rule of integration (see theory book, p 7-14). This results in :
v de (t) - Vo (t) - R _qui. * i (t)
a voltage source vo(t) in series with an internal resistance R equi., or a current
source io(t) in parallel to Requru.
The dynamic relation between the regulator output voltage en and the control
curren t (I BI AS - i) can be shown as follows:
VII. Static electric network sources -
eo MIOI"-DC~I"
G(s) -
-
8C)Uf"C'.
v • 1(.. )
ck
~----"i
\~ t
The current regulator can be described as an amplifier with two input signals
(I BlAS and i) and one output (e a ) determining the firing angle of the HYDe converter.
The relation between the input and the output is given by following equation:
e" - (1.,.15 - i)G(s)
with: - ea the output voltage of the current regulator which determines '
source voltage v d<
- I BlAS the bias current
- i the measured source current
- O(s) the transfer function of the current regulator:
K(1+sT2) (1)
G (5) = --:..----=..:...-
(l+sT,)(I+sT3)
There are implied limits e... min and e a • max on ea. Those limits are in accordance
with the minimum firing angle of the rectifier or the minimum extinction angle of
the invertor.
The relation between the source voltage V dt and the regulator output voltage
eO. can be described by following equation:
(2)
meaning that the. current regulator output e .. minus a bias value is proportional
to [Link] invertor normally operates on the limit e ... min'
Rather than specifying limits on e...
the user should specify limiting val
for using equation (2).
V de • .
Next figure shows the relation between the source voltage vd<and the regulator
output voltage ea. inclusive the limits on these voltages:
"dC,rnax h-----
•Omox
cos::>l
~min
VII. Static electric network sources - 18
During the transient conditions. the limits will be observed on the regulator
output voltage e .. only. If' the convertor operates at :its l:im:its (e. max or [Link])
either in initial steady-state. or later during the transient simulation. it will
back off the limits as soon as the value of the following derivative changes sign:
(3)
In case of eel" e Clmax the sign will turn from positive to negative. At· either
d 2•
limit the value for -T equals
dl
zero in the right-hand side of equation (3).
Anode side:
ANODE
NAME v dC,min v dC,max freq
6.e. Parameters:
Cathode side:
16: Fixed number to specify the type-16 source.
CATHODE NAME: Terminal node name for the ungrounded cathode side of the type-16
source.
INFLAG: Depending on the value of INFLAG. the following value will be allocated
to the steady-state source voltage e(O).
INFLAG e(O)
1 [Link] (field INVAL. cathode side card 21-30)
2 [Link] (field Vdc,max. anode side card 41-50)
3 [Link] (field Vdc,min. anode side card 31-40)
3} Both names TRASH = " •••••• " and "TYP-16" (see fig i) are reserved for
internal definition by the program. These names should never be used for
anything else by the user.
Example:
Next example shows the place of the source card and the values of this source
in the case.
BEGIN NEW nATA CASE
.000050 .300
1 5 1 1 -1
10 10 100 100
VR A 0.5
GR 0.5
BLANK card ending all branches
BLANK card ending (here non-existent) switches
ellA -1 -1000.
13A -1 250. 0.0 0.1 0.0 0.3
e 13A -1 -1000. -10. 0.3
e 1 2 3 4 5 6 7 8
e 345678901234567890123456789012345678901234567890123456789012345678901234567890
16VR 1 1.00 7380. 4.4 .040 .0103 1000.
16GR -148000. 14800. -70000. 70000. 1.E-8 .001 3
e 14A -1 -1000. .001 0.0 0.0 0.0 -1. .30
e Note: 2 cards before. the 2nd Type-16. cols. 69-72. now have the near-zero
e frequency f . 1.E-3 Hz. Until 18 Sept 1988. this was zero. which
e was set wi thin "SUBR5" to TENK3 --- the same value. But aOlDe
e computers (ene. Green Hills 386) did not have equality with the
e frequency f · .001 on the following Type-1., so a a a ) KILL • 222.
BLANK card ending sources
1
PRINTER PLOT ( Axis limits: (-1.493. 7.000)
18430. 0.0300. VR GR Source Voltage Voltage in volts
BLANK card ending plot cards
BEGIN NEW nATA CASE
BLANK
secunoory primary
For an ideal transformer only, set the source amplitude of the extra voltage
source almost zero. Amplitudes must be positive, but can be arbitrarily small (e.g.
1.E-18). In this case, the shape of the source function is immaterial. A type-14
source should be withheld if one wants to have the type-18 source being active
during steady-state.
VII. Static electric network sources - L
The extra vol tage source can be made ungrounded by grounding the two secondary
nodes "kit and "m" on the type-18 source card. Then there will be no voltage across
ei ther winding and the primary transformer current will be unconstrained. The turns
ratio "n" is arbitrary. although it must have a positive value (unity is convenient).
As far as the input format is of concern. the extra voltage source is to be
defined on the source card that precedes the type-18 source card. This preceding
card is an ordinary source card of arbitrary type code and with the name of node
"j" (one end of the source) keyed in columns 3-8. For the type-18 source card, the
following format should be used.
A5 E10.5 A5 A5 A5
Parameters:
18: Type of source that indicates ideal transformer and ungrounded voltage
source.
Bus-I: Node name of one end of the primary winding of the transformer. Note
that this is not the end. which is connected to the extra source.
Ratio "n": This is an arbitrary positive, real number, which represents the
relation between the secundary and the primary windings.
Bus-K, Bus-M: Node names of both ends of the secundary windings.
Bus-X: This node name is for an extra. fictitious node that will be added
internally by the program as data is read. This node will have voltage
equal to the current of the source and/or transformer. Hence. node voltage
output can be used to display this current, for purposes of either printing
or plotting. The average user of a type-18 source is advised to leave this
node name blank. In this case, the program will supply a default name
serialized from the root name "18TYP" in order of data input. That is, the
first such device will have the name "18TYP1", the fifth would have thp
name "18TYP5", etc.
Example:
Next example shows the place of the card and the values of the sources in this
card.
BEGIN NEW DATA CASE
.000100 .024 1.E-12
1 1 1 1 1
PRIM1 G£N 1.E-8 { Create node PR1H1 of unknown voltage
PRIM2 GEN 1.E-8 { Create node PRIM2 of unknown voltage
SEC1 0.5 l-ohm resistive load on [Link] trans. 1
S£c2 .25 l-ohm resistive load on [Link] trans. 2
PRIBOT 1.0 { 1/2 of resistor for ungrounded source
PRITOPGEN 1.0 { other 1/2 of R for ungrounded source }
BLANK card ending branch cards
BLANK card ending switch cards
14GEN 1. 0 60. -90. {Network's real source is sine wave
11PRIM1 1.£-20
18 00 1.414SECI Ratio**Z a 2: step down. priaary to secondary
14PRIM2 1.0 60. 0.0 { Add vector.: 1.414 / -45 degrees
18 00 2.0SEC2 { Ratio-2: .tep down. primary to .econdary
11PRITOP 1.0 .006
18PRIBOT 1.0 { Ratio is arbitrary since secondary nodes shorted to earth
BLANK card ending source cards
VII. Static electric network sources - 22
Format:
1 I~ I~ 1<4 I~ IE IE
:2 f< ·1E IE Ie i~
IE ,(~<fe 1< IB~ Ie I" l'f~ ta~
Ie '" l* ,dQ( ~<I~IE ts~
Ie '" iE
'~* f< HEI~c
11 NAME
12 A6
Parameters:
Example:
Next example shows the place of the card and the values of the source in this
card. The type-17 source is active on the type-14 source immediately following
the type-17 card.
VII. Static electric network sources - 23
bus
NAME
B TACS
Arbitrary control
system logic defines
Apply
-----~------....
SIgnal
1
60
Format:
1 ~ I": ~ IE It
:; ~<f* Ie ~
~* t!
I( . ~
rE Ie i ~i~ ff C I~ If '~ ;~ 'fl~lc f~ r!~~I ( I~
'EI*
6C NAME S TSTART TSTOP
12 A6 12 E10.6 E10.6
VII. Static electric network sources - 24
Parameters:
60: Type of the source that indicates the connection to a TACS variable. Recall
that this TACS variable should belong to the TACS output grouping.
NAME: Name of the TACS variable to which the type-60 source is connected with.
ST: This field is used to select between a voltage and a current source.
- Blank or zero: voltage source
- Negative integer ("-1"): current source
TSTART: Time at which the function. becomes active irrespective whether !START
is an integer multiple of DELTAT or not. Any time before TSTART ([Link] in
the limit that the time approximates TSTART). the value of the function
will be zero. The only thing we have to be carefull with, when DELTAT is
chosen too high and if TSTART is not an integer multiple of DELTAT, is the
unrealistic representation of the function, due to plotting logic.
TSTOP: Time at which the function becomes inactive irrespective whether TSTOP
is an integer multiple of DELTAT or not. Any time from TSTOP on (TSTOP
included), the value of the function will be zero. The only thing we have
to be carefull with, when DELTAT is chosen too high and if TSTOP is not
an integer multiple of DELTAT, is the unrealistic representation of the
function, due to plotting logic.
Example:
Next example shows the place of the card and the values of the sources in this
card.
BEGIN NEW DATA CASE
C BENCHMARK DC-22
C Illustration of basic TACS logic that can be used to control the firing of
C valves (thyristers) of an ac/dc converter bridge. The electric network
C actually has no valves. however (TACS output signals are not used). The
C electric network passes balanced three-phase voltages to TACS via Type-90
C sources. Summers convert to line-to-line voltages. A constant firing
C angle DELAY1 of 1.0 msec is used. for simplicity. TACS variables FIRE1
C through FIRE6 should go back to electric network to control valves (only
C FIRE1 is passed back. and for simplicity. just to a Type-60 source).
0.0005 0.02
11111
TACS HYBRID
PHA-B +GENA -GENB
PHB-C +GENB -GENC
PHC-A +GENC -GENA
90GENA
90GENB
90GENC
9BZA-B 52+UNITY 1. O. O. PHA-B
9BZB-A 52+UNITY 1. O. 1. PHA-B
9BZB-C 52+UNITY 1. O. O. PHB-C
98zC-B 52+UNITY 1. O. 1. PHB-C
9BZC-A 52+UNITY 1. O. O. PHC-A
9BZA-C 52+UNITY 1. O. 1. PHC-A
9BDELAYl .001
9BFIREl 54+ZA-B .001 DELAY1
9BFIRE4 54+ZB-A .001 DELAYl
9BFIRE3 54+ZB-C .001 DELAYl
98FIRE6 54+ZC-B .001 DELAY1
9BFIRE5 54+ZC-A .001 DELAY 1
9BFIRE2 54+ZA-C .001 DELAY1
33PHA-B PHB-C PHC-A ZA-B ZB-A ZB-C ZC-B ZC-A ZA-C GENA GENB GENC FIRE1
33FIRE4 FIRE3 FIRE6 FIRE5
BLANK card ending all TACS data
OGENA 1.0
OGENB 1.0
OGENC 1.0
FIREl 1.0
BLANK card ending branch cards of the electric network
BLANK card ending switch cards of the electric network
14GENA 1.0 60. -90.
14CENB 1.0 60. 30.
VII. Static electric network sources - 25
y~ 'lcq
Ouadr .. -t......
ax.s
~Ph<lse c:
~
The armature windings are assumed to by Wye connected, with a possible R-L
branch between the neutral and local ground. However, the. user is allowed to
simulate a machine with delta-connected armature windings too. One should be
care full with the output interpretation of the DELTA CONNECTION request (see section
VIII-C-2-C) •
Note;
1. Connection with MODELS is believed to be similar. It has not been tested yet.
2. Directly assigning the field current would be more desirable, but this is not
possible with the current version of ATP, unfortunately.
VIII. THREE-PHASE DYNAMIC SYNCHRONOUS MACHINE SOURCE - 2
The user can simulate a three-phase dynamic synchronous machine model with any
number of lumped masses in the shaft-rotor system, see Figure 1. Each major element
is considered to bea rigid mass connected to adjacent elements by massless springs.
Each shaft mass, except generator and exciter masses, is allowd to have a
constant mechanical power applied to it (in addition to the torque of the mechanical
viscous damping and the spring connections to adjacent masses). The user specifies
proportionality factors for each mass, with the actual constant power then determined
internally by the EMTP at the time of the sinusoidal steady-state initialization.
This is the basic scheme regarding mechanical input torque, in the absence of
special connections.
The user is also allowed to represent prime mover (e. g. governor. boiler, etc.)
dynamics by using TACS to control the total mechanical power. In this case, the
required TACS output variable is a normalized multiplicative constant (equal to
unity if it is to produce no effect) for scaling the otherwise-constant mechanical
power. Should the user desire a constant-torque representation of the prime mover,
this can be readily provided by the TACS connection (TACS would divide the
steady-state speed by the instantaneous speed to produce the required control
signal) •
For output purposes, most machines parameters and variables of interest are
available.
[v] - -[R][i]-~[A]
dt
where
armature phases)
The instantaneous values of the elements of matrix [L] are functions of the rotor
position. The coefficients of the resulting set of differential equations are
periodic functions of the rotor angle and, therefore, functions of time. If
saturation effects are not taken into account and. terms of order 3 and higher in
the Fourier expressions of the armature winding inductances are neglected, this
time dependence can be avoided by transferring armature quantities to a reference
frame attached to the rotor. The rotating fluxes produced by the armature are
projected onto rotor axis, where they appear as stationary. This transformation
of variables, known as Park's transformation, is identical for fluxes, current and
voltages.
where
[TJ - "
f2[~ cosO
sinO
cos(9-2n/3)
sin(9 - 2n/3)
COS(O+2n/3)]
sin(9 + 2n/3)
11.[2 11.[2. 11.[2
Similarly
Since the rotor quantities remain unchanged, the transformation of variables yields
the following set of voltage equations (assuming R a - R ~ - R c)
Vd Ra 0 0 id Ad -WAq
0 Ra 0 iq Aq
V" WAd
Vo 0 0 Ra io Ao 0
d
- VI RI 0 0 0 il AI + 0
dt
0 0 R ta 0 0 ita Atd 0
0 0 0 RI1 0 ill All 0
0 0 0 0 RA:q iA:q AA:q 0
If the machine isWye-connected with a branch (parameters Rn and Ln) between neutral
and the local ground, then the following term must be added to the right-hand part
of the zero-sequence equation
The d-q-o flux linkages are related to the d-q-o currents by means of the following
relationships:
[A'][
AI
Atd
-
L,
LIJ I
L a . ta
L IJ . I
LI
L I . ta
L'' l' ]
L 1.A:a
L ta
'1
ita
[A.][
All
[Link]
-
L.
La 11
La,'tq
L a . 11
LII
L I1 . tq
L'' l' ]
LII,tq
L tq
111
i tq
Ao - Loio
The Park's transformation converts the three armature windings into two ficticious
windings located on the rotor axes and a third static winding, completely uncoupled
from the other windings. The coefficients of the resulting equations are
time-invariant. Figure 2 shows the schematic representation of the electrical
part after the transformation of variables.
VIII. THREE-PHASE DYNAMIC SYNCHRONOUS MACHINE SOURCE - 5
D..~ct
rI
The set of resistances and inductances of the above equations are not directly
available from measurements. Generally. data from standarized tests are known.
According to international standards. parameters available from machine tests are
Ra armature resistance
X, armature leakage inductance
Xo zero-sequence reactance
Xd' .Xq' transient reactances
Xd-.X q - sub transient reactances
"td'."t q • transient short-circuit time constants
"td-'''t q - subtransient short-circuit time constants
Reactances and time constants must be unsaturated values; for this reason.
short-circuit time constants are preferred over open-circuit time constants. because
these are influenced by saturation effects. If the user chooses to describe the
machine by the set of external parameters. either open-circuit or short-circuit
time constants can be input (see PM-parameter on PARAMETER FITTING request card:
section VIII-C-2-b).
d
dt[e] = [w]
where
[e] the vector of angular positions
[w] the vector of angular speeds
[J] the diagonal matrix of moments of inertia
[D] the tridiagonal matrix of damping coefficients (see below)
[K] the tridiagonal matrix of stiffness coefficients (see below)
[T lurb/At] the vector of torques applied to the turbine stages
[T "U/U"] the vector of electromagnetic torques of generator and exciter
DI + DI2 -D 12
-D 12 DI2+D2+D23 -D Z3
[D]- -D Z3 DZ3+ D 3+ D34 -D 34
-D._I.. D._La + D.
K 12 - K IZ
- K 12 K 12 + K 23 - K 23
[K]- -K 23 K23+K34 -K 34
d 2e de
J dt2+DCii-T,ur-T"e.
de
--w
dt
VIII. THREE-PHASE DYNAMIC SYNCHRONOUS MACHINE SOURCE - 7
For hydro units a one-mass model can be used. but it is not accurate enough for
thermal units. For these cases a lumped-mass representation is necessary. specially
in subsynchronous resonance studies.
Generally the inertia constant H rather than. the moment of inertiaJ is specified.
This new constant is a per unit representation of the kinetic energy at synchronous
speed. Following relation exists:
(seconds)
The link between the equations of the electrical and the mechanical part is provided
by the rotor position and the electromagnetic torques
a. l • c
9 ",.cll - NPI2
_-v,i,
T uc
w."c
The input data deck of a dynamic synchronous machine source component within
an EMTP datacase has the following structure:
1. CLASS 1 S.M. DATA CARDS: Steady state and network connectivity specification
2. CLASS 2 S.M. DATA CARDS: Special request cards (optional)
3. CLASS 3 S.M. DATA CARDS: Machine ratings and electrical parameters
4. CLASS 4 S.M. DATA CARDS: Mechanical. parameters (mass cards)
5. BLANK CARD ending mass cards
6. CLASS 5 S.M. DATA CARDS: Output requests
7. BLANK CARD ending output requests
8. CLASS 6 S.M. DATA CARDS: Connections with TACS
9. CLASS 7 S.M. DATA CARDS indicating whether the machine is parallel led by an
additional machine (FINISH PART card) or not (FINISH card).
Rules and general description of card groups in order of data input are given
next.
Parameters:
Type code for the dynamic synchronous machine component is fixed: 59. It should
only be specified for the first phase (a).
BUS: Six-character EMTP network node name. The armature winding of the phase under
consideration is to be connected to this node of the electric network. Only
one node name per winding can be specified. Usually, all armature windings are
assumed to be Wye connected. Only via the special request "DELTA CONNECTION"
(VIII-C-2-c), another setting can be obtained.
VOLT: The steady-state voltage magnitude at the terminals of the machine. This
is peak voltage (1.414 times RMS), line to neutral (0.577 times 1ine-to-1ine).
Use units of volts. See remark 2.
FREQ: The electrical frequency of the generator in Hz, for steady-state operation.
ANGLE: The steady-state voltage phasor angle at the terminals of the machine, for
the phase under consideration. Units are degrees. See remark 1 and 2.
Remarks:
1. Conventional positive sequence is assumed. That is, phase "btl voltage lags
phasetla" voltage by 120 degrees and phase "c" voltage leads phase "a" voltage
by 120 degrees.
2. If the values of VOLT and ANGLE on cards No.2 and 3 (i.e. for phase "bit and
"c" ) are not specified, the program assumes the presence of a three-phase
balanced source at the machine terminals. Otherwise, the presence of an
unbalanced three-phase source is assumed. This allows the user to specify an
unbalanced steady state.
I~ I~ ~ If IE
I~ ~~If 'E I( ·~f€ Id~l( f~l~ 1~lf tt fc ~I' l~IE I~ ~ , jl 'EIH i-I~ t!l* l,l~ Id~I( 'I iSlc
TOLERANCES E10.0 E10.0 E10.0 10X 110
EPSUBA EPOMEG EPDGEL NIOMAX
Parameters:
EPSUBA: Number specifying the ratio between the built-in damping resistors and the
resistive models of the inductive elements paralleled by these resistors, i.e.,
the following relationship holds true for each inductive element
Rp
E PSU BA = (2L16t)
Should the columns 11-20 be left blank, a default value of EPSUBA = 100.0 would
be assigned (see remark 2). For cases of numerical instability, the recommended
value is 20.0 - 50.0.
EPOMEO: Tolerance associated with the iterative calculation of S.M. rotor speed
at each-time of the simulation. The calculation is assumed to have failed when
the relative speed correction is greater than this tolerance after NIOMAX
iterations. The program execution is then terminated with an. appropriate error
message. A default value of 1.00-15 is assigned (see remark 2).
EPDGEL: Tolerance associated with the iterative calculation of S.M. rotor speed
at each-time. The calculation is assumed to have converged when the relative
speed correction is less than this tolerance. If the relative speed correction
is larger than this tolerance but smaller than EPOMBO the solution is assumed
to have converged marginally and an appropriate warning is printed. A default
value of 1.00-16 is assigned (see remark 2).
NIOMAX: Maximum number of iterations which are allowed for the calculation of the
S.M. rotor speed, at any time-step (default NIOMAX = 10 - see remark 2).
Remarks:
2. The default values of all these parameters are specified in the STARTUP file,
EPSUBA, EPOMBO and EPOGEL in the Card 1 (1st Miscellaneous floating-point
numbers), NIOMAX. in the Card 9 (2nd Miscellaneous integers).
VIII. THREE-PHASE DYNAMIC SYNCHRONOUS MACHINE SOURCE - 10
I~ If IE
f! If it I ~i~
PARAMETER FITTING
.* I ~i';
7X
f! Ie
E8.0
I~ [~ff :~!c I~ [~ff ~ l ~ I~I( l~ff r~ Ie I- 'dslC
FM
The equations of the synchronous machine require the knowledge of all the appropriate
machine inductances and resistances. If the available data come from a test, a
parameter conversion is necessary. The procedure used in the present version to
calculate internal parameters was developed by M. Canay. Documentation of the
mathematics used for parameter determination is contained in Reference [48]. The
procedure is also explained in Chapter 8 and Appendix VI of the Reference Manual
(Theory Book), Reference [47].
Since only one procedure for data conversion is available , the value of the parameter
FM is unimportant for this purpose. In order to make compatible the present version
and older versions of the Type-59 S.M. model. this parameter has been preserved.
but having a different function. Parameter FM is used as a flag to distinguish
the type of time-constants which are supplied in the Class 3 data in the following
way (also refer to section VIII-B-l for some theoretical considerations regarding
saturation effect influences).
FM s 2.0 the time-constants input with the manufacturer's data are open-circuit
time constants (beware: avoid influence of saturation effects!).
FM > 2.0 short-circuit time constants are supplied in Class 3 data (preferable
since commonly not influenced by saturation effects).
11JJJJ~lJ~~IJJIJflJJI1JJJJJ1JJ~IJJJJJIJJ~IJJlJJIJJiIJJIJJIJJ~lJJIJJIJJ~lJJJIIIJJ~
DELTA CONNECTION
In absence of such a card, the armature windings are assumed to be Wye connected,
which is the most common situation for large power system generators. Except for
VIII. THREE-PHASE DYNAMIC SYNCHRONOUS MACHINE SOURCE - 11
the possible presence of this one special-request card, no other portion of the
S.M. data specification explicitely makes reference to how the armature windings
are connected.
For a machine of which the armature windings are delta.-connected, a word about the
interpretation of armature current printout is in order. The labeling of variables
is not altered (from that used for a Wye connection), so the user must. be very
careful. There are four situations, depending upon whether one considers initial
condi tions or time-step loop printout, and whether coil variables or Park's vaI'iables
are considered. Of these four, two will be incorrectly labeled.
1) For the time-step-loop output, "ID", "IQ" and "IO" are indeed armature winding
variables (albeit in Park's coordinates). But "IA", "IB" and "IC", see figure
4, are armature coil variables. E.G., what is labeled "IA" in the S.M. initial
condition printout is actually i a ,,, the current from "a" to "b" in the winding.
L - -_ _ _ k:
0. e__---....J
0.
1 •
c c
a) Conventional Wye labeling b) Erroneous inital conditions labeling,
delta-connection
Restriction: The option of DELTA CONNECTION, when used for parallel machines,
applies to all machines connected to the same bus. Consequently,
it is not possible to have a combination of Wye-connected and
Delta-connected machines at the same bus. If such a rare con-
figuration should ever arise, the user is required to isolate the
machines by a small reactance or resistance.
VIII. THREE-PHASE DYlfAHIC SYlfCHRONOUS MACHINE SOURCE - 12
1 I ~ I- I~ l~ E
~ I~I~ iE f Ie I~ ~ ~~ E I ( Ie .~
it Ie icl~le I 'f- ~.t·~ t i~~e I~I~ i ~~( t~ rd~ r
Parameters:
NUMAS: The number of connected masses on the shaft system of this generator.
KMAC: The mass number which corresponds to the generator (or motor) rotor. within
the interconnected mass-spring shaft system. Masses are to be numbered by the
user for identification. beginning with number one on either end. and continuing
sequentially (2.3 •••• ) to the other end of the shaft.
KEXC: The mass number which corresponds to the exciter on the shaft system. If
no exciter exists. leave this field blank.
MECHUN: Flag used to distinguish the type of units in which mechanical parameters
are supplied
o or blank: English units
1: Metric units
NP: The number of poles (not pole pairs) which characterize the machine rotor.
The electrical frequency of the machine is equal to the mechanical frequency
times NP/2.
SMOVTP: Proportionality factor which is used only to split the real power among
the generators constituting a multiple machine during the machine initialization.
If a single machine. this field may be ignored. If a dual machine, suppose
that the user punches value PA for this half of the dual. and value PB for the
other half; then the fraction PA/(PA+PB) of the total steady-state real power
output will be assigned to this half of the dual during machine initialization.
SMOVTQ: The same as SMOUTP. only for reactive rather than real power.
RMVA: The total three-phase volt-ampere rating of the machine. in units of MVA
(million volt-amperes).
RKV: The rated line-to-line voltage of the machine, in units of RMS kV. Taken as
a pair, "RKV" and "RMVA" define the base values upon which per unit machine
parameters are assumed to apply. Should the machine in question have a
delta-connected armature (DELTA CONNECTION request, section VIII-C-2-c). specify
RKV as SQRT(3) times the rated winding voltage in RMS kV.
VIII. THREE-PHASE DYNAMIC SYNCHRONOUS MACHINE SOURCE - 13
AGLlNE: Value of the field current in amperes. which will produce the rated armature
voltage (1.0 per unit) on the air gap line (direct axis). This is an indirect
specification of the mutual inductance between the field and the armature of
the machine, see figure 5. If the S.M. is saturable, append an extra minus
sign (making "AGLINE" negative) as a flag for possible saturation.
S1D: Value of the field current in amperes which will produce rated armature voltage
(ADl per unit) on the no-load saturation curve, see figure 5. This field can
be left blank if the S.M. is not saturable (i.e. AGLINE positive).
52D: Value of the field current in amperes which will produce the rated voltage
(AD2 per unit) on the no-load saturation curve. see figure 5. This field can
be left blank if the S.M. is not saturable (i.e. AGLlNE positive) •
.
1:)
:l Iv air gap line (characteristic
+' if tht' "achint' iron wert' not
·cCJ) P.u.
d
Subject to saturation).
..
£:
CJ)
d
AD2
1.0
+'
'0 AD! curve of terl'linal voltage
>
phasor MQ,gnitude as a
d function of field current
.~
£: I at rated speed and no load.
I-
QJ
I
+' I
I
I-
0 I
1ft I
d
~ I
Cl. I
I
IS2D
The parameters "AGLINE", "SlD" and "S2D" previously discussed actually apply to
the d-axis of the machine. A second card follows to provide extra Q-axis parameters.
If there is no saturation modelling (i.e. AGLINE ~ 0 on previous card), this extra
card should be left blank.
I~ Ii 1< it IE
[~ f~~ E Ifl~f( l<~ ! t~l* f-I< rH~I( I<f! ~ ! t~l( Ie I" "~I' ~ ! tl t~l( 1'
1< ~d* I; ~~ ( <~ ~I ( ~~lclc
AD1 AD2 A01 A02 AGLO S10 S20
E10.6 E10.6 E10.6 E10.6 E10.6 E10.6 E10.6
Parameters:
AD1: Per unit voltage at which current "510" was measured on the previous card.
Should this field be left blank, the default value of 1.0 would be automatically
assigned.
VIII. THREE-PHASE DYNAMIC SYNCHRONOUS MACHINE SOURCE - 14
AD2: Per unit voltage at which current "S20" was measured on the previous card.
Should this field be left blank, the default value of 1.2 will be automatically
assigned.
AQ1: Per unit voltage at which current "SlQ" is measured. Should this field be
left blank, the default value of 1.0 would be automatically assigned.
AQ2: Per unit voltage at which current "S2Q" is measured. Should this field be
left blank, the default value of 1.2 will be automatically assigned.•
AGLQ: Value of the field current in amperes which will produce the rated armature
voltage (1.0 per unit) on the air gap line (q-axis). This is an indirect
specification of the mutual inductance between the fiee1d and the armature
of the machine (cfr. AGLINE).
A nonzero value of AGLQ indicates saturation as follows:
AGLQ > 0: Here the q-axis air-gap line is known, and AGLQ is the value of
the field current in amperes which will produce rated armature
voltage on that line. Data fields SlQ and S2Q must not be left
blank (supply correct values).
AGLQ < 0: The negative value for AGLQ is a flag indicating that the user
does not know the air-gap line for the q-axis. The EMTP will
proceed to internally generate an approximate value, and use it
for q-axis saturation modeling. In this case, SlQ and S2Q can be
left blank.
SlQ: Like S10 (see previous card), but applied to the q-axis.
S2Q: Like S20 (see previous card), but applied to the q-axis.
The remaining cards of Class 3 S.M. data depend upon whether standard
manufacturer-supplied data or internal parameters (Park's data) are being used.
An extra note regarding the simulation of reduced models is added too.
a. Manufacturer's data
If the PARAMETER FITTING card was used (Le. request to use manufacturer's data).
two additional cards having the following format complete the Class 3 data:
I~ IE IE
~ ·~IE rEI~!(
RA XL
Id~l( i~ ~!
XO
Ie I~ ~ ~f E rEI~ H ~* I"
,..:I~
XOO
r* ~~~~ ff
XDDD
raqc 1~ ~'p I rE~~I(
XO XOO XOOO
E10.6 E10.6 E10.6 E10.6 E10.6 E10.6 E10.6 E10.6
I' 1= it iF
f'lt IEI* rdqc ~I fElf!C ~ ~f I rEI! ~t
~* I..:f~ rMc f' Jd~!e rElc Ie
TOOP TOOP TOOPP TOOPP XO RN XN XCAN
E10.6 E10.6 E10.6 E10.6 E10.6 E10.6 E10.6 E10.6
VIII. THREE-PHASE DYNAMIC SYNCHRONOUS MACHINE SOURCE - 15
Parameters:
The meaning of the next four time-constants depend upon the parameter FM, in the
PARAMETER FI'ITING card
XN: The imaginary part of the neutral grounding impedance, in per unit.
NQ.t.e: The machine is assumed to have a Wye-connected armature, with the neutral
connected to ground through the impedance R + j X If the machine is in
A II.
If the user wants to simulate a reduced model, that is, a machine without one or
more rotor windings, the following rules are to be used:
1. The field coil must always be present, therefore XDD > 0.0 and TDOP > 0.0.
2. If the damper winding on the direct axis is to be dropped, the user should set
XDDD = XD and TDOPP = 0.0.
However, as the parameter XDDD is not going to be used, the user can also leave
this field blank.
3. If a machine without the g-winding (eddy-current winding) on the quadrature
axis is to be simulated, punch XQQ equal to XQ (or XQQ = 0.0) and set TQOP = 0.0.
4. If the damper winding on the quadrature axis is to be dropped, the user should
set XQQQ = XQ (or XQQQ = 0.0) and TOOPP = 0.0.
5. If a machine without any damper winding at all on the quadrature axis is to be
simulated, set XQQ = XQQQ = XQ (or = 0.0), and TQOP = TQOPP = 0.0.
b. Internal parameters
Should the user'have chosen to describe the machine by means of internal per unit
inductance and resistance matrices (no PARAMETER FITTING card used), then the Class
3 S.M. data are completed with three cards of the following format:
I-
I- I' I! II I' IE
~E WI< ~!I( 1. 1' III!! ( I- )I ~q( I' H! ~I II ~~I ( 1:1- 1' I!I< f!f! taqe I' ~I tile Ie
LF LAF LFKD LD LAKD LKD
E10.6 E10.6 E10.6 E10.6 E10.6 E10.6
~ I~ I~ IE F
,~ ·~IE r~l~ I~ r~fE r~'~{ 1,1" ~~fE r~I~le I ~I' i~l( I~ "~~fE t! i~l( i~I·t' ~* '~IE W~ l ~~ E r~l~ c
LG LAG LGKO LO LAKO LKO
E10.6 E10.6 E10.6 E10.6 E10.6 E10.6
, ,
I' I~ 't IE
'I~ ~'I ~ ~ E r! ~ ~~~ ! ! (t cie .• 1' t<fE r!l!i( 1.1< i E I~I~'( ~t ~~i ( [Link]~ W!i( f~~ E i~l( 1~ 'il~lc
XO RA RF RKD RG RKO RN XN
E10.6 E10.6 E10.6 E10.6 E10.6 E10.6 E10.6 E10.6
Parameters:
LAF: The mutual-inductance coefficient between the armature and the field winding I
in per unit.
LFKD: The mutual-inductance coefficient between the field winding and the d-axis
damper winding, in per unit.
VIII. THREE-PHASE DYNlIMIC SYNCHRONOUS MACHINE SOURCE - 17
LD: The self-inductance coefficient for the direct axis of the armature, in per
unit.
LAKD: The mutual-inductance coefficient between the armature and the direct axis
damper winding, in per unit.
LKD: The self-inductance of the direct axis damper winding, in per unit.
lAG: The mutual-inductance coeffiecient between the armature and the eddy-current
winding, in per unit.
LGKQ: The mutual-inductance coefficient between. the eddy-current winding and the
q-axis damper winding, in per unit.
LQ: The self-inductance coefficient for the quadrature axis of the armature, in
per unit.
LAKQ: The mutual-inductance coefficient between the armature and the quadrature
axis damper winding, in per unit.
LKQ: The self-inductance of the quadrature axis damper winding, in per unit.
XO: Zero-sequence reactance, in per unit.
RKD: Resistance of the damper winding on the direct axis, in per unit.
RKQ: Resistance of the damper winding on the quadrature axis, in per unit.
RN: The real part of the neutral grounding impedance, in per unit.
XN: The imaginary part of the neutral grounding impedance, in per unit.
NQ.t.e.: The machine is assumed. to have a Wye-connected armature, with the neutral
connected to ground through the impedance R.+jX •. If the machine is in
fact ungrounded (but still Wye-connected) simply use a large grounding
impedance.
O.
For instance, if a machine without the q-axis damper winding is to be modelled
then the user should punch LAKQ = LGKQ = 0 and LKQ , O.
! ~ I' Il I~ E IE
I~ ~~f~H :EI~ IC 1~ I-~~f~ [(I~I{ f- !~I~I{ I- H I~IC IJ' ~ E 1(:* I_f~ '~I~{ ~~l' If [~I~I( 'f i~l(
Ml EXTRS HleO DSR DSM HSP DSD
12 E10.6 E10.6 E10.6 E10.6 E10.6 E10.6
Parameters:
MF: The mass number. Recall that masses are to be numbered by the user beginning
with number one on either end of the shaft system, and continuing sequentially
to the other end, see figures 1 and 3 at the beginning of this chapter.
EXTRS: the fraction of the total external mechanical torque {power) which is
associated with mass "ML":
Generator: For a generator, enter the fraction of the total external mechanical
torque of this shaft system which is applied to this particular mass.
If a pump, enter a negative value.
Motor: For a motor, enter the fraction of the total external mechanical torque
of the shaft system which is developed by this particular mass. If a
pump, enter a positive value.
DSM: The mutual-damping coefficient. This pertains to the present mass (i = ML)
and the mass with the next higher number (i~l). The damping in question is
function of the velocity difference between the two masses
T=DSM(wl-w l +.)
The mutual-damping coefficient is to be punched in units of
[(pound-feet) / (radians/second)] if MECHUN = 0
[(N-m)/(radians/second)] if MECHUN = 1
USP: The spring constant. This pertains to the elastic connection between the
present mass (i = ML) and the mass with the next higher number (i~l). Units
for this data are
[(million pound-feet)/(radians)] if MECHUN = 0
[(million N-m)/(radians)] if MECHUN = 1
a) General remarks
The Class 5 (output request) cards follow the blank card terminating the Class 4
(mass) cards.
The requests for the output of S.M. variables are divided into five separate groups
as follows:
1. Electrical variables
2. Mechanical angles of shaft masses
3. Mechanical speed deviations of shaft masses
4. Mechanical torques on shaft sections
5. Machine parameters and initial conditions
To request an output of any S.M. variable. the user has to specify the output group
to which the variable belongs and an unique number identifying that variable within
that output group. The rules for asSigning those numbers are explained in the
following sections.
VIII. THREE-PHASE DYNAMIC SYNCHRONOUS MACHINE SOURCE - 20
There is a common data card format for all different output groups. The user must
specify the desired S.M. output (.s) in the following format:
2 ~ ~ ~ If !E
~ 1<1 ,f IE j< I~ I~I~ ,E rf~ (Ie : ~f :E Ie j2 f!,E tE Ie I" f~ ,E rf~~ I( :1- I!,E I cI~I < ,~ rf~C IC i ~I_ 'f~si(
~
~ Nl N2 N3 N4 N5 N6 ....
2) II 4X 16 16 16 16 16 16
Parameters:
GROUP: Flag identifying the output group to which the variables specified on this
card belong. Presently, there are 5 possible output groups. All are explained
in detail in the remainder of section VIII-C-5 [points b} up to f}].
ALL: Flag identifying a request for the output of all possible variables in this
output group.
o or blank: Selective specification of variables in columns 9-80
1: All possible variables in this class are to be output; columns 9-80 will not
be scanned.
Nl •••• N12: Identification of variables to be output (in 16 format). Depending on
the GROUP code, the meaning of output request parameters Nl. ••• N12 is different.
This is explained in detail in the remainder of section VIII-C-5 [points b) up
to f}].
The output request cards can be stacked in any order, i.e., a request for output
group i does not have to precede the request for output group i+1. Similarly, the
variable numbers {columns 9-80} can be specified in any order. It is also possible
to stack any number of cards specifying the requests for different variables within
any output group.
For EMTP output and plotting purposes, the output variables are actually identified
by a pair of 6-character names. The first name identifies the machine in question,
in order of data input; for example, "MACH 3" would apply to the third machine.
The second name identifies the variable type mnemonically, as documented in sections
b) up to f). Some examples of such column headings are shown in section VIII.D.
Every mass of the turbine-generator set has been assigned a number ("MLtI) during
the specification of its parameters (Class 4 S.M. data cards). The same number
is to be used when requesting the output of the mechanical angle of that mass.
The output is in units of degrees. The output identification name is "ANGi".
YIIl. THREE-PHASE DYJW1IC SYNCHRONOUS MACHINE SOURCE - 22
I' <I ! € IE
~~ ,f 'EI~!( ,~ .~ r~1 ~~( ,.; f~1 f tf ~( I~i~ 14~ ff IflH If :fl~ .~I~ If rf ie I~I' ,.I .e :f 't I~{ .,~" '~iE rEi~IC
K~ BUS KI
12 A6 6X 13
Depending on the kind of TACS control one wants to model. following guidelines
apply:
~:
- This "scaling" is not simply a multiplication factor: some "history terms"
are involved. Suppose that one wants to "scale" machine parameter EFD
using a TACS variable called VF. The following formulas apply:
EFD(l) = EFD(2) = EFD(O) * VF(O}
EFD(i} = EFD(i-l)*VF(i-2)/VF(i-3) (for i .GE. 3)
- Should the user want to code the logic of this TACS connection, but
temporarily bypass the associated dynamics, then set this TACS value to
"UNITY". Recall that this is the name of the built-in TACS source which
has output identically equal to 1.0.
- If no such a card is used, the EMTP logic will simply hold the field
voltage for this machine constant, at the value obtained by steady-state
solution.
KI: to be left blank.
c) If the internal electrical machine yariables are to be passed into TACS, then
one data card must be specified for each such variable. The data card format
to be used is as follows:
KK: Punch "73" in columns 1-2, as a special request for the internal electrical
machine variables
BUS: The 6-character name of a TACS source whose value is to be equal to the
desired electrical machine variable at each time-step.
KI: Punch variable number in columns 15-17. The following Table summarizes the
variables which can be passed to TACS.
VIII. THREE-PHASE DYHAHIC SYNCHRONOUS MACHINE SOURCE - 24
To show the structure of data files which involve three-phase dynamic synchronous
machine modelling, some simple examples are shown in this section. The comments
for each case are aimed to help the user to understand the options chosen for each
test machine and the information contained in the output listing generated by the
program.
· VIII. THREE-PHASE DYNAMIC SYNCHRONOUS MACHINE SOURCE - 26
VIII-V-1. Example 1
Consider the system shown in Figure 6. A synchronous generator is connected to
a power network consisting of a transformer, a transmission line, compensated by
a series capacitor, and an infinite bus.
~1~21 I
I
;--t
I1-+-----...--8
BUS1 BUSO
a. Ratings
892.4MVA. 2 poles. 26 kV. 60 Hz
All these values apply to the direct axis. The air-gap line and the saturation
curve of the quadrature axis are not known.
c. Electrical data
Ra - [Link]
X, = 0.130pu
Xd - 1.790pu
Xq = 1.710pu
Xd'-0.169pu
X q' == 0.228pu
Xd- - O. 135 pu
Xq- = 0.200 pu
LdO' - 4.300sec
LqO' == 0.850sec
Ldo - - 0.032sec
L q " - == 0.050sec
X0 - 0.130pu
VIII. THREE-PHASE DYNAMIC SYNCHRONOUS MACHINE SOURCE - 27
The Canay's characteristic reactance is not known. it is supposed to have the same
value that the leakage reactance has. X,.
The armature winding are Wye-connected and the neutral is solidly grounded (Rn =
0.0 and Xn = 0.0).
d. Mechanical data
Mass Torque Frac- Inertia (sec) Spring constant
tion (pu Torque/rad)
HP 0.30 0.0928970 19.303
IP 0.26 0.1555890 34.929
LPA 0.22 0.8586700 52.038
LPB 0.22 0.8842150 70.858
GEN 0.8684950 2.822
EXC 0.0342165
The transformer has no losses and the reactance value is in per unit on the machine
base power.
The system is running under balanced steady-state with the following operating
conditions:
26 2
Low-vol tage side Z IIasel - m:To - 0.75751 (0)
Taking into account that the lower side is delta-connected, the actual reactances
of each side, using the proper base, is
No conversion is necessary for the electrical data of the machine as they are
standard manufacturer's data in per unit, which are accepted by the EMTP. However,
mechanical data are to be input in physical units; should the user want to input
these data in English units, the values can be calculated using the following
formula:
2xS
W R2 - Hx 1I0le X 23.7304 (million pound - Jeet 2 )
0)110. . 2
1. The code 59 has been punched in columns 1-2 of the first Class. 1 card, indicating
that a three-phase dynamiC S.M. source is going to be input.
Remember that the specified value of the voltage magnitude at the terminals of
the machine is the peak value. Since the machine is supposed to run under
balanced initial conditions, voltage magnitUde and phase angle of the second
and third cards are not specified.
2. The maximum number of iterations for the calculation of the rotor speed, parameter
NIOMAX, has been redefined using the TOLERANCFS card. This number is now 20.
4. An extra minus sign has been added to parameter AGLINE. This sign is used as
a flag to indicate that the machine is saturable. A negative value (-1.0) for
AGLQ, on the next card, indicates that the air-gap line for the q-axis is not
known; in this case approximate values will be internally generated by the
program.
5. The field XCAN is left blank since the Canay' s characteristic reactance is not
known; the program will internally set XCAN = XL.
6. As an external mechanical torque is applied to several masses on the shaft
system, a fraction of the total torque is punched in the cards associated to
those masses.
VIII. THREE-PHASE DYNAMIC SYNCHRONOUS MACHINE SOURCE - 30
The field HICO ([Link] inertia) is punched in every mass card. while the
field HSP has not been punched in the card associated to the highest number
mass. Remember that the moment of inertia is to be punched in units of million
pound-feet2 when English units are used.
9. The "FINISH" card at the end of the machine data deck indicates that this machine
is not paralleled by any additional S.M.
15.8863853
Mgn! tude
1.72135521.04
A~tur. of phase -b-
. Degree.
-104.1136147
A~ture
""gn! tude
1.72835521+04
of phea. "c"
Degree.
135.8863853
[Link] current of the [Link] in unit. of [ _.... I. Total dc [Link]
3.61945797121.03 3.61945797121+03
[Link]~lcal torque of the generator in unit. of [_lIlian n-.J. tot~ de [Link]
1.43474811061+00 1.4347481106£+00
Exciter .lectroaachanical torque in units of [aillion n-a). Total dc [Link]
4.88635258591-03 4. 8863525859E-03
critical level of total air-gap MMF to begin saturation. in units of [up.l: 1.714298844541+03 1.60523487584£+03
All rotor ....... hev. angul.r velocity OI!IIGA" 3.769911111+02 [recliana/ . .c). l!echanical angl •• of rotor . . . . . . tallow. in
units of [Degreesl: 160.5132177 159.9119257 159.4134641 158.8913500 158.3997606 151.3578651
Shaft torque. [Link] between rotor . . . . . . "i· and "i+l", for i-1. 2 . . . . ~ - 1. unite.... [a1111on n-_). It is to
be noted that the [Link] ~ing torque ia [Link] t .... thia calculation. due to the constant. uniforw speed of the .teady state.
0.43189033901+00 0.80619529941.00 0.11229148811.01 0.14396344631.01 0.48863525861-02
Top -TAPSAV". IICBAIII - 8
c - . t card. JIUIIIDCD - 74. Ic ----- _ voltage output request
Note that every variable is identified bya pair of 6-character names, the first
name (upper name of the printed pair) identifies the .synchronous machine in order
of input; in this example there is only one machine. The second name (lower name
of the printed pair) identifies the variable as documented in section VIII.C.5.
Since the machine has more than one mass on the shaft system, mechanical variables
are identified by using the number associated to each mass in the second 6-character
name. The name ANG is used to identify variables of the Output Group 2 (mechanical
angles), the name VEL is used for variables of the Output Group 3 (deviations of
the mechanical speeds from the synchronous speed) and the name TOR is used for
variables of the Output Group 4 (torques between masses). Note that 6 variables
of groups 2 and 3 are printed, but only 5 pertaining to group 4.
I B~S21
Ro-0.003
R,=[Link]
I
Xo-0.032
X,=0.011
.
BUSt BUSO
Xo=X,=O.OO9
.8 "-'
Infinite
6./'6. Bus
'3.8/220 kV
X =0.040
X~-O.3S0pu
-r~o - 6.240sec
Xo· [Link]
c. Mechanical data
H = 4.5 sec
GENERATOR 2
a. Ratings
76 MVA. 8 poles, 13.8 kV. 50 Hz, 250 A (field current)
VIII. THREE-PHASE DYNAMIC SYNCHRONOUS MACHINE SOURCE - 34
b. Electrical data
Ra - O.OO4pu X , - O.17Spu
[Link] Xq - O.68Spu
X~- O.310pu
-r~o - S.8S0sec
't~o - O.036sec -r~a - O.073sec
X a - O.132pu
c. Mechanical data
H = 5.7 sec
Both machines are not saturable. they have the armature windings wye-connected and
the neutrals solidly grounded. Canay's characteristic reactance is not known for
any machine.
The transformer has no losses and the value of its reactance is in per uni t on 100
MVA base.
The system is running under balanced steady state with the following operating
conditions:
c. The power is split among the two generators assuming the following proportion ali ty
factors
Real power - Machine 1 = 0·55 Machine 2 = 0.45
Reactive power - Machine 1 = 0.55 Machine 2 = 0.45
BUS1-BBUSO-B 4.356
BUS1-CBUSO-C 4.356
C ----- Transmission line
51BUSZ-ABUS1-A 1.45Z 15.488
5ZBUSZ-BBUS1-B 0.484 5.3Z4
53BUSZ-CBUS1-C
C ----- Step-up transformer
TRANSFOJUtER TRAN A
9999
1BUS3-ABUS3-C .1143 13.80
ZBUs2-A 9.680 127.02
TRANSFORMER TRAN A TRAN B
1BUS3-BBus3-A
ZBus2-B
TRANSFOJUtER TRAN A TRAN C
1BUS3-CBUS3-B
2BUS2-C
C ----- Connectivity capacitors
BUs3-A 1.0
BUS3-B 1.0
BUS3-C 1.0
BLANK CARD ENDING BRANCH DATA.
BLANK CARD ENDING SWITCH DATA.
C ----- Infinite bus voltage.
14BUSO-A 1796Z9.Z 50.0 0.0 -1.0
14BUSO-B 1796Z9.2 50.0 -lZO.O -1.0
14BUSO-C 179629.2 50.0 lZ0.0 -1.0
C ----- Synchronous machine specifications
59BUs3-A 11718.36 50.0 34.0
BUS3-B
Bus3-C
C ----- Firat generator
PARAMETER FITTING 2.0
C --- Machine ratings
1 1 8 0.55 0.55 90.0 13.8 Z80.0
BLANK CARD - NO SATURATION MODELING
C --- Machine parameters - Manufacturer's data
0.038 0.220 1.Z00 0.700 0.350 0.700 0.250 0.Z30
6.240 0.032 0.060 0.150
C --- Mechanical syst_ data
1 1.0 3.116092
BLANK CARD ENDING MASS CARDS
C Output data request
51
1 1 Z 3 4 5 6 7 8 11
21
31
BLANK CARD ENDING OUTPUT REOUI!!ST
FINISH PART
C ----- Second generator
PARAMETER FITTING 2.0
C --- Machine ratings
1 1 8 0.45 0.45 76.0 13.8 250.0
BLANK CARD - NO SATURATION MODELING
C --- Machine parameters - Manufacturer's data
0.004 0.175 1.150 0.685 0.310 0.685 0.210 0.18Z
5.850 0.036 0.073 0.13Z
C --- Mechanical system data
1 1.0 3.333065
BLANK CARD ENDING MASS CARDS
C --- OUtput data request
"51
1 1 Z 3 4 5 6 7 8 11
Z1
31
BLANK CARD ENDING OUTPUT REQUEST
FINISH
BLANK CARD ENDING SOURCE DATA.
C ----- Node voltage output request
BUSI-ABUS2-ABUS3-A
BLANK CARD ENDING SELECTIVE NODE VOLTAGE OUTPUT REQUEST.
PRINTER PLOT
BLANK CARD ENDING PLOT REQUEST.
BEGIN NEW DATA CASE
BLANK
1. Since the two machines are connected to the same nodes, the Class 1 data cards
are common to both of them.
3. Reduced order models are used, the g-winding on the q-axis is to be dropped for
both machines. Note that field XQQ is punched equal to field XQ and TQOP is
left blank.
4. A proportionality factor is used to split the power among the machines, the
same values for both, real and reactive powers, 55% for the first machine and
45% for the second one.
5. There is only one mass on each shaft system, therefore, the total external
mechanical torque is applied to this mass (EXTRS = 1.0), in both machines.
The output listing generated for this second case is shown next.
co-nt card. JI\IIIIDCD - 1. C data:[Link]
Marker card preceding new EMTP data case. aEGIK NEW DATA CASE
c:c-en t card. JI\IIIIDCD - 3. C
co..ant card. NUMllCD - 4. C TYPE-59 S.M. TEST CAS£ - EXAMPLE 2
co..ant card. JI\IIIIDCD - 5. C STEADY STATE INITIALIZATION
c:c-en t ca rd. NUMllCD - 6. C
N_ power frequency STATFR - 5.00000000E+01 Bz. POWER FREQUENCY. 50
co..ant card. JI\IIIIDCD - 8. C
Misc. data. 2.000£-04 1.000£-02 5.000£+01 0.0002 0.0100 SO.O SO.O
Misc. data. 1 1 0 0 0 -1 0 0 0 0 1 1 -1
Printout : 5 5 20 10 0 0 5 5 20 10
C~t card. NUllDCD - 12. C ----- SOurce l~ce
Series R-L-C. 0.000£+00 1.387£-02 0.000£+00 8US1-ABUSO-A 4.356
Series R-L-C. [Link]+OO 1.387£-02 [Link]+OO BUS1-aausO-a 4.356
Series R-L-C. [Link]+OO 1.387£-02 [Link]+OO aUS1-CauSO-c 4.356
c:c-ent card. NUMllCD - 16. C -----Transahsion line
1st of coupled R-L. 1.45200E+00 4.92998£-02 51BUS2-ABUS1-A 1.452 15.488
4.840E-01 1.695E-02 [Link]+oo 0.000£+00 0.000£+00 52BUS2-BBUS1-a 0.484 5.324
3.227E-01 1.078E-02 3.227£-01 1.078£-02 8.067£-01 53BUS2-CBUS1-C
[Link] card. NUMllCD - 20. C ----- Step-up trandoraar
sat. Xforaer. 0.000£+00 0.000£+00 [Link]+OO TRANSJIORMER TRAN A
Special teraination-of-polnU card. 9999
Winding 1. [Link]+oo 1.1430£-01 1.3800£+01 1BUS3-ABUS3-C .1143 13.80
Winding 2. 0.0000£+00 9.6800£+00 1.2702£+02 2BUS2-A 9.680 127.02
[Link] copy using reference naae -TItAN A- TRANSFORMER TRAN A TRAN B
Winding 1. (No values read. since copYI 1BUS3-BBUS3-A
Winding 2. (110 values read. since copyl 2BUS2-B
[Link] copy using raference naae -TRAM A- TRANSFORMER TRAN A TRAN C
Winding 1. (No values read. since copYI IBUS3-CBUS3-B
Winding 2. (No values read~ since copy) 2BUS2-C
Cosssan t card. NUMllCD - 31. C ----- COnnectivity capacitors
Series R-L-C. [Link]+oo 0.000£+00 3.183£-09 BUS3-A 1.0
Series R-L-C. 0.000£+00 0.000£+00 3.183£-09 BUS3-8 1.0
Series R-L-C. 0.000£+00 0.000£+00 3.183£-09 BUS3-C 1.0
Blank card ending branch.s. IBR. NTOT - 18 16 BLANK CARD ENDING BRAKC/I DATA.
Blanx card ending switches. KSWTCH" O. BLANK CARD ENDING SWITCH DATA.
Ca..ent card. NUMDCD - 37. C ----- Infinite bu. voltages
VIII. THREE-PHASE DYNAMIC SYNCHRONOUS MACHINE SOURCE - 37
source. 1.80£+05 5.00£+01 0.00£+00 -1.00£+00 14BUSO-1I 179629.2 50.0 0.0 -1.0
SOUrce. 1.80£+05 5.00£+01 -1.20£+02 -1.00£+00 14IUSO-. 179629.2 50.0 -120.0 -1.0
SOUrce. 1.80E+05 5.00£+01 1.20£+02 -1.00E+OO 14111SO-C 179629.2 50.0 120.0 -1.0
eo-en~ card. NUMDCII - oil. c ----- synchronous .achine _peci:flcat1ons
SOUrce. 1.17£+04 5.00£+01 3.40£+01 -9.99£+03 59BUS3-A 11118.36 50.0 34.0
2nd pha.e of S.M. 1.17184£+04 -86.00 BUS3-B
3rd phe.e of S.M. 1.17184£+04 -206.00 IUS3-C
C.-ent card. JnIIIDCD. 45. C ----- Firu _ r a t o r
Optiaize Park'. dat•• PlIIIMl:1'EIl FlTTIJIG 2.0
eo-ent card. JnIIIDCD. 41. C --- "*chine rating.
4th S.N. card. 1 1 0 0 • 0.550 0.550 1 1 • 0.55 0.55 90.0 13 •• 280.0
q-axi., 0.000 0.0000 0.0000 0.0000 llAIQ[ CIIRlI - 110 SllTllllllTI CIII' IIOD£LIJIG
eo-ent card. JIUIUICII. 50. C --- Machine [Link] - Manufacturer'. data
5th S.M. card. 0.0380 0.2200 1.2000 0.0311 0.220 1.200 0.100 0.350 0.100 0.250 1).230
6th S.M. card. 6.2400 0.0000 0.0320 6.240 0.032 0.060 0.150
eo-ent card. JIUIUICII. 53. C --- Mechanical . p t _ data
"* •• card 1 1 1.000£+00 3.116£+00 0.000£+00 1 1.0 3.116092
Blank card te~1nat1ng S.M . . . . . card•• BlAIQ[ CIIRlI ENDING _ CIIIIDS
eo-ent card. JnIIIDCD. 56. C OUtput data request
S.N. output requ... t card for cla. . 5. 51
S.M. output reque.t card for cla•• 1. 1 1 2 3 4 5 6 7 8 11 14
S.M. output reque.t card for cla. . 2. 21
S.N. output reque.t card for cla•• 3. 31
Blank card te~inating S.M. output requeU •• BlAIQ[ CIIRlI ENDIIIG OUTPUT IlBOI/EST
End of 0 TACS int .. [Link].. [Link] follow •• FllfISB PI\IIT
co..ent card. JnIIIDCD. 63. C ----- 5econd generator
Optl.1ze Parle". data. 2.000£+00 PARAMETER FITTING 2.0
co..en t card. JnIIIDCD. 65. C --- "*chiJ18 rating.
4th S.N. card. 1 1 0 0 8 0.450 0.450 1 1 8 0.45 0.45 76.0 13 •• 250.0
q-axi.. 0.000 0.0000 0.0000 0.0000 BlAIQ[ CIIRlI - JfO SllTIIIIIITION IIODELIlfG
co..ent card. JIUIUICII. liB. C --- Machine parl!lJl8terw - Manufacturer' _ elata
5th S.M. card. 0.0040 0.1150 1.1S00 0.004 0.175 1.150 0.685 0.310 0.685 0.210 0.182
6th S.N. card. 5.8500 0.0000 0.0360 5.850 0.036 0.073 0.132
co..ent card. JnIIIDCD - 71. C --- Mechanical syU_ data
"*•• card 1 1 1.000£+00 3.333£+00 0.000£+00 1 1.0 3.333065
Blank card te~inat1ng S.N . . . . . cards. BlAIQ[ CIIRlI ENDING NllSS CIIIIDS
eo-ent card. NUMDCII· 14. C --- OU~PUt data ~t
S.M. output reque.t card for cl. . . 5. 51
S.M. output reque.t card for el... 1. 1 1 2 3 4 5 6 7 8 11 14
S.M. output reque.t card for cia•• 2. 21
S.N. output requeu card for cla. . 3. 31
Blank card t .. ~1nat1ng S.M. DDtpUt requests. BlAIQ[ CIIIID ENDIlfG OUTPUT I!EQVl!ST
End of 0 S.M.-TACS interfaes . .riBbles. FllfISB
Blank card _ electric ne~rk source•• BlAIQ[ CIIRlI ENDIJIG ~ DATil.
Top "TIIPSIIV·, IfCIIIIIlf· 6
Top -TIIPSIIV-. IfCIIIIIlf· 8
Tot.1 na~rk 10.. P-lo.. by .uaaing injectiDftS. 1. 851491291313E+05
MIlCH 1 Dat. par_t .. ra and initial conditiDftS of ...... t .ac:bJJ18 follow.
-BUS3-1I- [Link] 1
Machine reactances and [Link]•• in ( _ . ] . Quantities [Link] . . inductance. ar. in fact reactance.):
1. 35748883£+03 Lf - .elf-inductance of the d-axi. field winding:
4.92857143£+01 Laf . . . . tual inductance between field and . . . .ture:
1. 17138692!+03 Lfkd • fiald-~r _tuel inductance for tM d-axb:
2.5392oooo!+00 Ld • _If-inductance of the d-axio a . . . ture winding;
4.92857143£+01 Lakd - _tual inductance froe . . . .ture to d-axb "-<tr;
1.21755480£+03 LXd - .elf-inductance of the d-axio daaper winding:
5. 73740533!+02 Lg - .elf-inductance of circuit 1 of the q-azta:
[Link]!+OO Lag - ... tual inductance. q-axb circuit 1 to . . . . ture:
[Link]!+OO LgJeq - _tual inductance. q-axb circuit 1 to circuit 2:
1.4812oooo!+00 Lq - .elf-inductance of the q-axio ..... ture winding:
2. 41399417!+01 Lakq . . . . tual inductance. q-azts circuit 2 to ..... ture:
5. 85941179!+02 Lkq " •• If-inductance of circuit 2 of the q-azt.:
3. 17400000!-ol 1.0 • zero _equance indUctance:
8.04080000.-02 Ro - zero sequence reaiatance;
7.10863533£-01 Rf - resiatance of the d-axb [Link] winding:
8.04080000£-02 ... - resiatance of the [Link]:
2.00343385£+01 Rkd - resistance of the d-axia daaper winding:
0.00000000£+00 a g " [Link] of circuit 1 of the q-exi.:
3.10854951!+01 Rkq - [Link] of circuit 2 of the q-azts:
Mechanical par_tera in physical units. . . [Link] by tM co1 _ _ ing. that follow.
""-nt of inerU. Self-daaping coefficient. of . . . . Mutual-daaping coeff. Torsional .pring constant
of rotor . . . . [Link] [Link] (with following " •• 1 (with following . . . . 1
Nillion [n-_/rad/ ••c ••2] Million [n-_/r.d/.ec] Million [n-a/rad/.ec··2] Million [n-e/r&d]
1.3131515£-01 [Link]!+OO 0.0000000£+00 0.0000000£+00 0.0000000£+00
Tabulation of: neg.U. . aequence current. alNEG. CI\II!G. 2.4066854341£-11 3.2401646
zero .equence curren~. CMZER. CllZER • 2.4063113984£-12 1.5701963
Tot.l current injected into the ne~r" . t the [Link] bus. in pha•• coordinat.... For parallel . .china•• this is the coabined
tot.l for all of~. The fir.t 11ne displays the currents . . found by the phaaor network solution. and they will be unbalanced
i f the network b. The 2nd 11ne . _ only the [Link] ~ts of the_. "*9Ritudlla of currents .re in unit. of
[-p.].
Pha.. -.- injection Pha.e -b- injection injection
"*gni tude Degree. "*gni tude Degree. "*gnitude Degree.
Actual: 8.0509394£+03 3.6261425 8.0509394£+03 -116.3738575 8.0509394£+03 123.6261425
Po•• seq.: 8.0509394£+03 3.6261425 8.0509394!+03 -116.3138575 8.0509394£+03 123.6261425
[Link] current. of generator in rotating reference f r _ I d-q-o [Link].l. in units of [eaperas].
Id lq 10
-3.70541628614£+03 3.25215311026£+03 2.55205363316£-28
VIII. THREE-PHASE DYNAMIC SYNCHRONOUS MACHINE SOURCE - 38
3929.32505 -335.95129 .824360058 35.5883751 -.11827£.3 -3134.0339 2758.55853 .13328£-12 406.581165 3.24681003
0.0 -4.3485154 3238.70314 -330.64142 .66130059335.6018471 -.11457£-3
5 .001 167109.736 162780.111 5461.75263 -JlO4.1601 33J1.7JU6 • 19236£-lZ 47J.4767J1 3.15909199 0.0 -3.5111707
3842.37911 -335.95129 .823390701 35.5883736 -.15136£-3 -3138.258 2753.13371 .19231£-12 406.636462 3.36919336
0.0 -4.1001391 3167.96659 -330.64142 .660441351 35.6018456 -.14711£-3
10 .002 148940.227 153586.661 5702.348 -3196.1328 3340.23062 .33787£-12473.4837492.78780677 0.0 -3.5145453
3176.54208 -335.95129 .823391936 35.5883603 -.31257£-3 -3134.5262 2755.95833 .34586£-12 406.675119 3.1586938
0.0 -4.1669177 2620.80934 -330.64142 .660872192 35.6018326 -.30796£-3
15 .003 100718.336 95107.9784 -1069.6774 -3793.1451 3333.10232 -.5991E-12 473.529761 2.60859345 0.0 -3.1Ii52741
2205.54516 -335.95129 .821891994 35.5883379 -.46159£-3 -3136.3412 2747.59206 -.5565£-12 406.764305 3.13471406
0.0 -3.7474744 1822.82615 -330.64142 .659J14186 35.6018104 -.46553£-3
20 .004 57690.2849 60516.4666 -1799.05 -3787.8379 33J1.168 -.5858£-12 473.55076 2.3607908 0.0 -3.3199569
1015.2989 -335.95129 .822735331 35.5883066 -.62195E-3 -3135.2279 2750.52816 -.5797£-12 406.823409 3.01621618
0.0 -3.8231415 843.108497 -330.64142 .65993767 35.6017793 -.61961E-3
30 .006 -54435.032 -53090.209 -8149.3475 -3182.4159 3340.02251 -.2535£-12 473.619369 2.05277934 0.0 -3.2i96087
-1529.9164 -335.95129 .822977535 35.5882171 -.92923E-3 -3134.946 2744.12444 -.2991£-12 406.953245 2.85169082
0.0 -3.4474689 -1252.3379 -330.64142 .658769581. 35.6016912 -.91664£-3
40 .008 -144760.29 -144178.68 -11022.785 -3781.0511 3343.12588 -.2679£-12 473.707391 1.89297498 0.0 -3.3092905
-3488.4195 -335.95129 .823635103 35.5880933 -.00124645 -3133.3509 2737.86741 -.3557£-12 407.061063 2.65468488
0.0 -3.0866228 -2867.0052 -330.64142 .657569287 35.6015698 -.00119886
50 .01 -178990.49 -178414.52 -9431.6401 -3783.4054 3344.91149 -.1677£-13 473.820568 1.86040399 0.0 -3.2734102
-4114.1269 -335.95129 .824179475 35.5879317 -.00157615 -3130.7561 2732.74562 -.1331£-12 407.149562 2.43594414
0.0 -2.7833527 -3386.6165 -330.64142 .• 656539552 35.6014169 -.00146762
Note that parameters and initial conditions of each machine are printed in order
of input.
Since the g-winding is dropped for both machines. some electrical parameters (Lag,
Lgkq and Rg) associated to this winding are zero; however. the self-inductance of
this circuit is positive; this is internally done by the program in order to avoid
a zero-division.
Output variables of each machine are named with two 6-character names, the first
(upper) of the two names is used to identify the machine. and this is done in the
same order of data input.
The generator is supplying 70 MVA. power factor 0.8 (lagging). being its terminal
voltage magnitude 1.0 per unit on generator base voltage.
The equivalent impedance per phase of the load can be calculated according to the
following formula
1V12
Z=--
P-jQ
Taking into account the initial operating conditions of the generator, this
equivalent impedance has the following value
Z - 2.1765+ jl.6325 cn)
VIII. THREE-PHASE DYNAMIC SYNCHRONOUS MACHINE SOURCE' - 40
Lq - 0.7000
R I -5.94719£-4 [Link]
R td -1.67610£-2 R tq - 2.60066£ - 2
The field voltage will be controlled by a TACS source; the rotor angle and the
angular velocity will be passed to TACS.
1 e 11 14
21
31
BLANK CARD ENDING OUTPUT REQUEST
7lEFD
74ANGLE 1
74SPEED 2
P'IIfISH
BLANK CARD ENDIIfG SOURCE DATA.
C ----- Node voltage output requeat
BOS1-A
BLANK CARD ENDING SELECTIVE NODE VOLTAGE OUTPUT REQUEST.
PRINTER PLOT
BLANK CARD ENDIlfG PLOT REQUEST.
BEGIN NEW DATA CASE
BLANK
The most interesting features of this new case are the following:
eo-nt card. JI1JMDCD - 39. C --- Mac:hina par. . . t.r. - Internal par. . .tero
5th S.M. card. 1.1357 0.9800 0.9800 1.1357 0.9800 0.9800 1.2000 0.9800 1.0116
6th S.M. card. 0.4902 0.0000 0.0000 0.4902 0.7000 0.41100 0.4902
7th S.M. card. 0.1500 0.0310 0.0006 0.1500 0.0310 5.94721:-4 1.6761Z-2 2.6OO7Z-2 0.005 0.005
eo-nt card. JIVMDCII - 43. C --- Mechanical .y.t_ 400ta
Ma•• card 1 1 1.000E+00 3.116£+00 [Link]+OO 1 1.0 3.116092
Ilank card [Link].nat1Jlg S.M . . . . . cards. lLANJC CARD EllDIIIC MASS CARDS
eo-nt card. JI1JMDCD - 46. C OUtput 400ta raquaU
S.M. output request card for cla. . 5. 51
S.M. output request card for cla. . 1.
S.M. output reque.t card for cl. . . 2.
1
21
• 11 14
_to
Tabulation of: negativ. sequenca currant. CMJf8G. CAlfEC " 9. 8819667455E-13 -1.0040671
[Link] sequence currant. CMZD, CA2D - 7.1123106695E-13 -2.2531129
Total currant injacted into the network at the g ....r .. torbuo. in phase coordinate.. For parallal . .china•• thio is the coablnad
total for all of t~. The first lina display. tha currant. a. found by the phaoor network solutian. and they will be unbalanced
i f the network h. The 2nd Una . - . only the [Link] of tha.e. Magnitudes of current. ara in units of
(aapa).
Phase -.- injaction Phase '-b- [Link] Phase "c" injection
Magnitude Degree. Magnitu4e Deg"". Jlagni tude Deg .......
Actual: 4. 1425184E+03 -36.1698976 4.14251848+03 -15".8698976 4.1425184E+03 83.1301024
PD•. seq.: 4. 1425184E+03 -36.8698976 4.14251848+03 -156.8698976 4.1425184Z+03 83.1301024
[Link] currents of generator in rotating reference fra.. td-q-o coordinat •• I. in units of [ ...... ra.).
~ ~ ~
-4.10799644756!+03 2.977423188041+03 -I. 53282642705E-13
[Link].-.equence [Link] of generator araeture current 1n phase [Link] ••• in unit. of [_ra.].
AraatuN of pha•• -.- Araatura of .pha•• -b" Arwature of pha.e ·e·
Magni tu400 Deg..... Magni hade Il0l9..... Magni tude Da9r_o
4.14251841+03 -36.8698976 4.1425184Z+03 -15',8691976 4. 1425184Z+03 113.1301024
[Link] current of the g .... rator in unit. of [ ...... ra.). ~tal dc c:oooponent
4.83985231991:+0Z 4.'398523199Z+02
[Link] torque of the venerator in unit. of [nUli"" Il_). total 4c c:oooponent
7.39516548861-01 7.39516548861:-01
Critical leval of total air-gap MMr to begin .aturation, in units of [aapo): 1.7142911144548+03 1.605234875841+03
All rotor . . . . . . have angular [Link] OMEGA - 7.85398163Z+01 [radians/.ac). Mechanical angl •• of rotor . . . . . . follow, in
unit. of (Degree.]: 26.7989943
Top "TAPSAV·. IICIIAIII - 8
e.-nt card. JroMDCD. 57. Ie -----
Node YOltage output reque.t
Type-59 S.M. nuaber 1 begin. oparation on • _ _ to o and O.
Card of naaas fDr [Link] loop output.
Blank card ending requests for output variabl ••. I
IUSI-A
BLANJC CARD E1fDlIfC SELECTIVE II0DI: VOLT1d:E OUTPUT REQUEST.
VIII. THREE-PHASE DYNAI1IC SYNCHRONOUS MACHINE SOURCE - 43
COlUMn heading. for the 9 EMTP output variabl.. follow. The •• are divided [Link] the 5 po•• ibla cIa.... a. follow.
Fir.t 1 output variable. are electric-network voltage difference. (upper voltage .inu. lower volta~):
Next 5 output variables pertain to Type-59 s.". [Link] ([Link] are generated [Link]~~y);
Nex~ 3 output varIables belong to TACS (with -TACS· an internally-added' upper ~ ot pair).
Step Ti_ BUSI-A PIACII 1 IVICB 1 PIACII 1 IV\CII1 IV\CII1 TACS TACS TACS
IA EPD TO GEM ANG 1 VEL 1 EPD ANGLE SPEED
0 0.0 11267.65 3314.01471 -344.04793 .739516549 26.7989943 0.0 1.0 .46773069 78.5398163
1 .2E-3 11246.0205 3463.50574 -344.04793 .739504209 26.7989943 .939731E-8 1.0 .48343865 78.5398163
2 .4£-3 11171.6764 3599.33266 -344.04793 .739493687 26.7989943 .36204E-7 1.0 .499146613 71.5391164
3 .6E-3 11068.5134 3720.95843 -344.04793 .739483566 26.7989943 .787299E-7 1.0 .514854577 78.5398164
4 .8E-3 10913.5672 3827.90638 -344.04793 .739472952 2'.7989943 .137045E-6 1.0 .53056254 78.5398165
5 .001 10716.4858 3919.75082 -344.04793 .739462531 26.7989943 .2113781-6 1.0 .546270503 78.5398166
10 .002 9115.57852 4141.90299 -344.04793 .739416746 26.7989943 .803126E-6 1.0 .62481032 78.5398171
15 .003 6622.75997 3958.69214 -344.04793 .739381689 26.7989944 .170345E-5 1.0 .703350138 78.5398111
20 .004 3481.73148 3388.03094 -344.04793 .739357608 26.7989945 .282813E-5 1.0 .781889956 78.5391192
25 .005 -.51059875 2485.76224 -344.04793 .739342523 26.7'8'947 .41OO62E-5 1.0 .860429776 78.5398204
30 .006 -3482.0034 1340.1'646 -344.047'3 .739334461 26.7"995 .5459731-5 1.0 .'38969597 78.5398218
35 .007 -6623.5311 63.4614999 -344.04793 .739331034 26.7"9'54 .686128E-5 1.0 1.01750'42 78.5398232
40 .008 -9115.682 -121'.4712 -344.04793 .739330599 26.7989958 .827643£-5 1.0 1.09604924 7'.5398246
60 .012 -9115.2764 -4141.5299 -344.04793 .73933656 26.7989983 .138523E-4 1.0 1.41020855 78.5391302
80 .016 3482.36966 -1340.0648 -344.04793 .739339018 26.7990021 .192802E-4 1.0 1.72436788 78.5398356
100 .02 11267.5575 3313.34064. -344.04793 .739338'6 26.7990072 .246846E-4 1.0 2.03852724 78.539841
200 .04 11267.6494 3313.36942 -344.04793 .73933703 26.799051 .5187081-4 1.0 3.60932433 7'.53'8682
300 .06 11267.6324 3313.39744 -344.04793 .739336264 26.79912&1 .7911128E-4 1.0 5.18012197 78.5398955
400 .08 11267.6248 3313.42606 -344.04793 .739335871 26.7992325 .106542E-3 1.06.75092015 78.5399229
A. Introduction
Before presenting the structure of the data records required ;n the Use of
the Universal Machine (U.M.) module, a brief overview of the functions carried
out by the module, along with the characteristics of the computational model,
will be given with the hope that the preparation of the data which is required
can be done in a clear, systematic way. The data records necessary to define a
particular machine type are then given, along with sample data files for simple
machine-network systems. Techniques for reduction of undesired transients
which arise at the beginning of a problem solution because of improper initial
values are described in a final section.
L.
IlIJ vfjn
0
(a) (b)
¢ .
lIIJ
t ¢2j
¢3j
weber-
turns
i 2j '3j
i mj , amperes
-¢2j
-¢3j
Fig. 4: Piecewise-linear approximation to the d.-q domain satura-
tion curve of the direct axis (j = d) or of the quadrature
axis (j = q). The currents i2' and '3' are used for the
S.M. Type-59 data format. J J
page 9C-4
A A
r. r
m m
a a
t t
u u
r r
e e
Two-ax; s coil
S Transformation S
i ;
d d
e e
Rotational
Transformation
-!__ .n-. { d. c.
----- component
IE iqt va . I I E'
x 7f!1!!!-..-- I x
c l~ 1--0 c
i
t
d-q Domain ,vfam I
10--0
i
t
a
t
I a
t
o
i I i
o
n ~---ou----o Ol-----·~u n
S Turn Ratios S
i
d
e
.. --1--1--1- -1--
o o o o
i
d
e
ABC B C
IPA IPB IPC A IPB IPC
o 0 0 0 0 0 r E
S
t
m
a
x
c I-phase _1-1<:0:0) R
a t i o·
t u t 2-phase -< > t
o r a o
r e t s r
.----l-...,d q i i
i a ua o d
r x ax E n e
e i d i x
Res . s c p d q
o t i o i a u a
t t w r x ax • m
o a e e i d i
r t r a I c s . s · S
Two-axis Coil i u E t · t
Transformation 0 S x 2 • a
n i o 0 0 0 t
o 0 0 0 0 0 d lEI IE3 o
lEI _IE2 IE3 e main r
B C A
(a) (b)
i
.,.
)------r-O X
c
o
i veoi1
1
L...---I------------'--O Y
D. l~ 1. Configuration Data
The configuration information required is
,a. machine type (see Table I);
b. number of pole-pairs;
c. the d-q domain coil system as based upon the machine type and the ex-
D. 1. 4. Network Connections
The connection of the machine(s) in the electrical network must be defined
keeping in mind the assignments in the U.M. algorithm for phase sequence, re-
ference directions, and reference polarities which are taken as positive. In
making connection decisions, the following conventions imposed by the U.M. al-
gorithm must be followed:
a. external references for each machine winding (coil) are positive for
generator operation as shown in figure 5, page 8;
b. when raw coil data is entered, a TACS-controllable voltage source may
be included in series with a machine coil aDd its physical terminals
with a reference polarity such that a positive source adds to the ter-
minal voltage as shown in figure 5; i.e.,
vcoil • Vxtacs + vxy ;
c. the three-phase transformation used assumes an internal phase sequence
a-b-c for positive d- and q-axis variables (The definition of the con-
nection between network and machine models is described more fully in
the section on. data structure);
d. the two-phase transformation used in the U.M. algorithm requires a
phase sequence c-b (vc leading vb by 90 degrees) in order to yield the
same direction of rotor motion as produced by the phase sequence a-b-c
for a three-phase machine.
cal parameters are entered as electrical branch data; and the mechanical net-
work node at which air-gap torque appears in the machine is the only data
entered along with the electrical description of the machine. This node pro-
vides the only connection between the electrical and mechanical-equivalent net-
works of a machine.
The parameters required for each representation of the mechanical system
and the units for each are listed below.
In the following description, lines of data which have previously been re-
ferred to as cards will be called records.
In creating a data file, two general conditions must be met. The first is
the sequence to be used in combining data for U.M. machines with other network
data. The second is the format of the. records to be used to enter the data ne-
cessary to define the machine configuration.
f. Output requests.
g. Plot Specifications.
h. Termination records.
E. 2~ Machine-Specific Data Input
The description of the U.M.-machine data requirements is separated into
two parts, general sequencing and record contents.
E. 2. 1. Overall Sequencing
The sequencing of records within the U.M.-source data is
a. record 1 - a flag-record which signals that U.M. data follows by
having the number 19 entered in the first two columns;
b. record 2 - general specifications applicable to all machines;
c. record 3 - blank or 'BLANK (ENDING GENERAL U.M. SPECIFICATIONS)';
d. records associated with machine 1;
e. records associated with machine 2;
f. etc.
NOTES: 1) The U.M. algorithm applies numbers to the machines in the
sequence in which the machine record-groups are entered.
2) If a machine represented by data in the S.M. Type-59 for-
mat shares a mechanical network with another machine, the
records for the 'S.M.' machine must be placed ahead of the
records defining the other machine; i.e., earlier in the
sequence of machine data-groups.
3) The data-groups for machines sharing a given mechanical
network do not have to be placed in sequence immediately
after the data-group of the first sharing machine.
g. final record -- blank or 'BLANK (ENDING ALL U.M. DATA)'.
E. 2. 2. Detailed Machine Sequencing
The U.M. data records for machines fall into three groups; 1) the machine-
table group, 2) the coil-table group, and 3) the S.M. Type-59 group. The coil-
and machine-table groups together describe standard U.M. data for a machine.
These two groups can be replaced by the S.M. Type-59 group when appropriate.
The sequence to be followed for the U.M. data is
first, the machine-table group;
and
second, the coil-table group.
Each of these groups is divided into subgroups which must be entered in the
order in which they are described below.
E. 2. 2. a. U.M. Machine-Table Group
The machine-table group is divided into two subgroups, 1) general machine
data and 2) initialization data.
Page 9E-3
The general machine data subgroup is entered first and has the same struc-
ture for all machine types; viz., 3 records which will be described in detail
below (4 records for machines which share a given mechanical network) .
.The initialization subgroup is included only when automatic initialization
is requested. The number of records depends upon the configuration of the me-
chanical system. The details are given below.
b. subgroup 2a: data for the direct-axis field coils which remain in
the 'real' world. --
NOTES: a) Data for machine types 4, 6 and 7 are excluded from sub-
group 2a.
b) The counter NCLD, which is set with the machine-table data,
defines the number of records to be included in subgroup
page 9E-4
c. subgroup 2b: data for the field windings of the three-phase doubly-fed
induction machine (type 4), which requires a coordinate
transformation.
1) record 1 - contains the d-axis parameters and the net-
work nodes to which the terminals of phase B
are connected.
2) record 2 - contains the q-axis parameters and the net-
work nodes to which the terminals of phase C
are connected.
3) record 3 - contains the zero-axis parameters and the
network nodes to which the terminals of ref-
erence phase A are connected.
NOTES: a) Records in subgroups 2a, 2c and 3 are omitted for the type
4 induction machine.
b) ~ is set to zero for the type 4 induction machine.
c) The order of the records in subgroup 2b differs from the
order of the records for three-phase armatures in subgroup
l!!
d. subgroup 2c: data for machines with single-phase armatures (types 6 and
7).
record 1 ---- contains the parameters for the armature
coil, which is taken to be on the d-axis;
and the network nodes to which the termi-
nals of the armature coil are connected.
NOTE: NClD is always set to 1. No d-axis stator coils are al-
lowed in addition to the armature coil.
e .. subgroup 3: data for the quadrature-axis coils which are not trans-
formed from the 'real' world.
. --
NOTES: a) The counter NCLQ, which is set along with the machine-table
data, defines the number of records to be included in sub-
group 3. MAKE THEM MATCH 1!
Page 9E-S
Unless otherwise specified, all fields will be read correctly when numbers
are entered in decimal or exponential form; e.g .. ,
0.0389, 327.2, 1.0
or
0.369E-4, 3.89E-2, 5.0E8, etc.
All entries in integer fields must be right-justified in the fields for correct
interpretation.
Zero-entries given in the following record definitions should be left
bl ank.
column 1 2 3 4 5 6 7 8 9 A I
row 1
I I 1 ~ 1 J~ i ~ f ~ ~ I ~ ! , ~ 5 ~ t ~ ~ J~ ~ ,
2 A B SOL UTE U. M. DIM ENS ION S, I, J, K, L
The four quantities define, for all U.M. machines combined, the maximum allow-
able values for the total number of
I - coils,
J - machines,
K - machine-variables which can be output,
L - 6-character names which can be assigned
to variables to be output.
E. 2. 3. b. Operating Frequency
The optional frequency-setting record (a Special-Request record) is shown
below. The frequency, F, is entered in free-form format.
column 1 2 3 4 5 6 7 8 9 A 1I I 1 ,
~ ~ ~ §
row 1 I
2 pow E R F R E QUE N C Y, F
For d.c.-machine simulations, F would be set to a very small value; e.g., 0.001
hz.
E. 2. 3. c. General-Specification Group
This group consists of three records entered in the order given under Gen-
eral Sequencing above.
Page 9E-7
column 1 2 ~ 4 5 6 7 a 9 b I I ! 1 I I J A~
row 1
219
II
2
c~01~1~3~5~78~9+A~~~1~~~A~~~~~i~~~~~5~~~~~g~~~~~~~~~3~3~8~~~i~~~A~B~~~i~~~~~6~~~I~~~8=7§,
1 121212111 12
2 J NL P RJ DCOEF EPSOM FREQ
3 IKM o o
4 blankTACS
5 M NODE blank
J N N TOT N
T C C QMH P
Y L L 000 P
PDQ UUU A
E TTT I
R
cols. 1-2, JTYPE U.M. type number, J.
cols. 3-4, NCLD number of untransformed (excitation) coils
on the direct axis, N.
cols. 5-6., NCLQ -- number of untransformed (excitation) coils
on the quadrature axis, L.
co1. 7, TQOUT -- torque/[Link] s flag for quantities to be
output, 1;
o => no output
1 -> air-gap torque
2 -> air-gap torque and d-axis, common
flux
3 => as 2 plus d-axis magnetizing cur-
rent.
co1. 8, OMOUT -- speed/q-axis flag for quantities to be out-
put, K;
o => no output
1=> rotor shaft speed in rad/sec
2 => as 1 plus q-axis, common flux
3 => as 2 plus q-axis magnetizing cur-
rent.
col. 9, THOUT -- flag for output of rotor position (mech.
rad.) for all machine types, except types 1
and 2; or torque angle (elee. rad.) for
types 1 and 2, M.
eols. 10-15, M NODE -- name of the node at which the air-gap tor-
que ;s coupled to the analog network.
page 9E-9
NOTE: MNODE also serves as a flag. When the field is blank. TACS.
RJ and DCOEF define the mechanical system for the machine.
column
row 1 I
2 o LMUQ 0 0 0 0
3 THETAM 0 1 LMSQ FLXSQ FLXRQ
J
S
A
T
Q
NOTE: The following fields can be left blank when the option of total
saturation is used or when q-axis saturation is not desired.
col. 29, JSATQ q-axis saturation flag.
cols. 30-43, LMSQ saturated, q-axis, common inductance.
page 9E-ll
column 1 •
row 1 16 16
2 NUM2 N U M3
3
4 SH ARE
E. 2. 3. d. 2. Initialization Subgroup
The following records are included only when automatic (coupled) initiali-
zation is specified (INITUM = 1 1n the general-specification record). For the
purpose of illustration, the synchronous machine will be taken as "mandatory".
a. record 1 - initial-value and TACS.
column 1 3 5 7 9 11 345
III 1 1 2 2 2 2223 3 3 3 3 4 4
7 9 I 3 5 7890 2 4 6 8 0 2
row 1
2 AMPLUM ANGLUM <= synchronous machine
2- - AMPLUM - - 0 -<a d.c., induction machine
3 BUSF BUSM <= d.c., synch. machine
3- blank BUSM - -<= induction machine
column
row 1 I
2 RESIS LLEAK 0
3 1 CUR
4 BUSI BUS2 2
5 XTACS
C
U
R
a
U
T
F. 1. Available Variables
For purposes of description, the available variables will be discussed in
three groups: I} variables associated with the U.M. mechanical system; 2}
"standard" electrical U.M. variables; and 3) S.M. Type-59 variables. For each
set, the output will be in SI units or per unit, depending upon the units used
in the simulation.
The mechanical variables which can be displayed directly for a machine are
the air-gap (electromechanical) torque and the speed and relative angle of the
rotor mass. When the electrical analog is used for the mechanical system, cur-
rents between nodes and injection currents at nodes are interpreted as torques;
and node-to-ground voltages are interpreted as speeds.
3. the flux-linkage associated with the common inductances Lmd and Lmq .
F. 1. 3. a. Mechanical Variables
The mechanical variables available are torques, speeds and air-gap (elec-
tromechanical) torque angle. The specific variables are
1. the shaft torque between masses i and (i + 1);
2. the air-gap torque of the synchronous machine;
3. the air-gap torque of an exciter associated with the synchronous ma-
chine on the same mechanical system;
4. the air-gap torque angle of the synchronous machine in electrical de-
grees (this angle is +90 degrees at no load);
5. the absolute angular velocity (speed) of the masses in the mechanical
system in rad/sec.
NOTE: All torques are given in Newton-meters or per unit.
F. 1. 3. b. Electrical Variables
The S.M. Type-59 data formats permit use of two quadrature-axis excitation
(or field) coils and two direct-axis coils in addition to the required, three-
phase armature circuit. The variables which may be displayed are (all currents
in amperes or per unit)
1. armature phase (or coil) currents m:: the O-d-q domain armature cur-
rents;
2. the field current which is identified as the 'first' direct-axis coil
current;
3. the d- and q-axis damper currents (the 'second' direct-axis coil and
the 'first' quadrature-axis coil);
4. the 'second' q-axis field-coil current 1"eddy current" coil);
5. the d- and q-axis flux-linkages associated with the common inductances
Lmd and Lmq respectively (units of volt-sec or per unit).
page 9F-3
F. 2. 1. Record 1 flags
The flag assignments for record 1 are shown below and are identified with
the variable names used for output selection in the Dynamic Synchronous Machine
module (Sect. 1.62, .p 34t). Note that the U.M. algorithm does not perform the
functions flagged by the variables JMIC (cols. 16-20) and JFV (cols. 46-50) of
the S.M. module; so the fields corresponding to these flags are left blank in
record 1. The effect of the flags as described below is obtained when non-zero
values are entered for them.
column
row 1 IS I IS I 15 I IS I IS I 15 I IS I 15 I 15
2
3 JPAR JETM JETEJIABC JSAT
4 EXTEND I I I
cols. 1-6, Text the word 'EXTEND' must be entered to iden-
tify the format of the output-flag records.
cols. 11-15, JPAR -- causes the O-d-q domain circuit parameters
to be listed (see fig. 1, p 1.63- 6).
cols. 21-25, JIDQO -- causes the armature currents in the O-d-q-
domain to be listed.
NOTE: Armature currents cannot be simultaneously listed for the phys-
ical coil form and the O-d-q-domain. A non-zero value for the
flag JIDQO forces JIABC (cols. 61-65) to be internally set to
zero regardless of the value contained in record 1 for JIABC.
cols. 26-30, JFI causes thejield current (first record of
the untrarisformed coils) to be listed).
cols. 31-35, JD2 causes the current of the direct-axis dam-
per coil (second record of the untransform-
ed coils) to be listed.
Page 9F-4
The U.M. algorithm always uses an electrical analog to calculate all me-
chanical variables. For the standard U.M. data format, the e.1ectrical analog
of the mechanical system is specified by the user. When data in S.M. Type-59
format is read, an electrical network is internally constructed to represent
the mechanical components of the rotor-system masses. The names entered on the
mass records of an S.M. Type-59 data set are used to identify the nodes of the
hidden electrical network.
Calculated values for any mechanical system are labeled as node or branch
voltages (for mass or intermass speeds) and/or branch currents (for torque) as
specified in Section 1.8. In the case of S.M. Type-59 data input, only the
node voltages representing mass absolute speeds can be displayed. For standard
U.M. data input, the mechanical system is spedified by the user; so that any
conventional EMTP voltage or current may be displayed.
(see LMUD)
- JSAT 1-2
~(both fluxes are
flux, q-axis main FLUXMQ obtained)
(see LMUQ)
-
speed, mass 'j' See NOTE ? 1 or 3 col. 'j' of request
record 2
rotor speed OMEGM JSAT 1-2
electromagnetic torque TQGEN JETM 1-9 eols. 51-55 of re-
, quest record 1
torque angle THETAM JETE 3 cols. 66-70 of re-
quest record 1
torgue, exciter JETE 1
torque, intermass: See NOTE ? 2 or 3 col. 'j' of request
masses 'j' and record 2
'j = l'
NOTE: Mass speed and intermass torques are identified by the names on the
mass records, columns 71-76. I ~
Page 9G-3
RS FO ,- - - -, Al XL
AO
F 7 1----04-
Ii N AiLs
T ~R ~a I
~---o·---------
MSI
a-iId
NA
TOe
oM t
u
r
1--{}--+-iCl--c)--t
BO
0 UH e
1r S~
~-O----('~
3e E
Mechanical
Network
The fault is represented by switches which are opened and closed under the
control of TACS signals. The. infinite bus is established by a balanced set of
EMTP Type 14 (sinusoidal) voltage sources. EMTP Type 14 sources are also used
to control the TACS signals, to provide field excitation and to provide current
equivalent to torque in the electrical analog of the mechanical system at the
machine shaft. The frequency of the latter sources is set to [Link]; so,
over the interval of 0.5 seconds covered by the simulation, their amplitudes
are essentially constant; i.e., the sources behave as d.c. sources. Thus, over
the interval of the simulation, the TACS reference signals (BAll AND BAT2), the
excitation voltage (node FS) and the mechanical torques. (nodes MS1 and MS2) are
effectively constant.
The components of the data file related directly to the simulation of the
synchronous machine are indicated by the circled letters on the listing. The
branches of the electrical network representing the mechanical system (mechani-
cal network) are specified in the same manner as for the other electrical sub-
networks and along with them (group C). The equivalent torque sources (group
£) are specified to be current sources by the entry of '-I' in columns 9 and
10.
Machines modeled in the U.M. algorithm are defined to be sources of EMTP
Type 19. The text string 'UM' in the record containing '19' in columns 1 and 2
(see group F on the listing) is not read during data input. The string serves
to aid in reading the list. The information contained in the second record of
the General Specifications (group F) is as follows:
a) a blank appears in column 1, indicating that all variables and parame-
ters are to be taken as specified in SI (physical) units;
b} a '1' appears in column 2, specifying that automatic initialization is
to be carried out.
c) a blank appears in column 15, indicating that compensation, rather
than prediction, is to be used in interfacing the UM module to the 3-
phase network.
Note the blank record which is required for termination of the General Specifi-
cation group.
The non-zero entry in column 2 of the second record does not trigger ini-
tialization. It does cause the proper incorporation of the U.M. module in the
normal, phasor-solution initialization of the EMTP. In the example simulation,
the initialization process is invoked by the entry of '-1.0' for TSTART {cols.
61-70} in the Type 14 source records.
The data in the machine table (group G on the listing) conveys the follow-
ing information:
a} From record 1,
1) work with U.M. Type 1 (1 in cols. 1-2);
2) two d-axis field coils {2 in cols. 3-4};
3) one q-axis field coil (1 in cols: S-::6);
4) output the electromechanical torque, TQGEN (1 in col. 7);
5} output the absolute rotor speed, OMEGM (I in col. 8);
Page 9G-6
c) From record 3,
1) initial condition on the torque angle is not used (blank in cols.
1-14);
2) unsaturated q-axis inductance = 0.0035850 hy (cols. 15-28);
3) no q-axis saturation (blank in col. 29).
d) From record 4,
1) peak value of the initial, armature-terminal voltage • 3030v (cols
1-14);
2) initial phase of the armature-terminal voltage = I5deg. (cols. 15-
28);
3) the type-14 source to be adjusted to meet the 4nitialcondition on
the current in the first direct-axis coil is connected at node
BUSFS (cols. 29-34);
4) the type-14 source to be adjusted to meet the initial condition on
the electromagnetic torque is connected at node BUSMSI (cols. 35-
40) in the mechanical network.
e) From record 5,
1) an additional type-14 source is to be adjusted to meet the initial
condition on electromagnetic torque (MORE entered in cols. 1-4);
2) the source is connected at node BUSMS2 (cols. 35-40) in the me-
chanical network;
3) the torque of the second source is 10 times that of the source at
node BUSMS1 and is of opposite sign (-10.0 in cols. 41-54).
The coil-table records (group H on the listing) contain the following in-
formation:
a) From record 1,
1) armature phase A of the U.M. model is connected between network
node BUSAI (eols. 29-34) and ground (blank in eols. 35-40);
page 9G-7
The only records left in the listing are those specifying node voltages to
be output, plot controls and data-case termination. These are in the standard
EMTP format .
.Table Vllt p 46, gives the beginning of the modified output listing for
the example problem. Output of the voltages to ground at nodes BUSAl, BUSAO,
BUSFS and BUSMG were requested at the end of the input data file. Output of
the currents in phases Band C of the pseudo-transmission line was specified by
a '1' entered in -column 80 of the respective branch records. Output 'of the
coil currents at the terminals of the machine was requested by a '1' entered in
column 47 of each coil-record. Output of electromagnetic torque (TQGEN), rotor
speed (OMEGM) and the torque angle (THETAM) were requested by setting the re-
spective flags to '1' in record 1 of the Machine Table Group.
VTACSI
.------, TR
TACS- 0 I~ V
Exciter
Model
leN
C AI
I r
- - -.J....--1 d ~ ~ I Bl TR
-- 10M tH
I oNA
C
UH
~ I
I S I e I TR
I ~
COLUHN HEADINGS FOR THE 28 EM1P OUTPUT VARIABLES FOLLOW. THESE ARE ORDERED ACCORDING TO THE FIVE
POSSIBLE EHTP OUTPUT-VARIABLE CLASSES, AS FOLLOWS .•.•
FIRST 4 OUTPUT VARIABLES ARE £LECTRIC-NETWORK NODE VOLTAGES (WITH RESPECT TO LOCAL GROUND) I
NEXT 0 OUTPUT VARIABLES ARE BRANCH VOLTAGES (VOLTAGE OF UPPER NODE HINUS VOLTAGE OF LOWER NODE) I
NEXT 6 OUTPUT VARIABLES ARE BRANCH CURRENTS (FLOWING FROH THE UPPER EHTP NODE TO THE LOWER) I
NEXT 0 OUTPUT VARIABLES PERTAIN TO DYNAMIC SYNCHRONOUS HACHINES, WITH NAMES GENERATED INTERNALLY I
NEXT 0 OUTPUT VARIABLES BELONG TO 'TACS' (NOTE INTERNALLY-ADDED UPPER NAME OF PAIR).
FINAL 9 OUTPUT VARIABLES 8ELONG TO UNIVARSAL HACHINES (UM), WITH NAMES GENERATED INTERNALLY I
BRANCH POWER CONSUMPTION (POWER fLOW, If A SWITCH) IS TREATED LIKE A BRANCH VOLTAGE FOR THIS GROUPINGI
BRANCH ENERGY CONSUMPTION (ENERGY fLOW, IF A SWITCH) IS TREATED LIkE A BRANCH CURRENT FOR THIS GROUPING.
STEP TIHE BUSAI BUSAO BUSFS BUSHG 8U8Bl BUSCI BUSHG BUSHP
(Has. H1 BUSBO BUSCO TERRA BUSMG
Speed) (Acceleratioll (Jnter"".s
Torque at HI) Torque, 111-H2) 0tJ
OJ
\Q
BUSHSI 8USHS2 UM-l UI1-1 UH-I UI1-1 UI1-1 Utt-t CD
BUSHG BUSHP TQCEN OHEGH THETAM IPA IP8 IPC
(Torqlle of CTorque of (Electro- (Rotor CTlIrque \0
Source 1) SlIIrce 2) ""Qnetic Speed) Angle) Cl
Torque) I
UH-l UH-l UH-l \0
lEI lE2 IE3
(Field
Current)
o 0.000000 0.292676E+04 0.300000E+04 0.380334E+Ol 0.376991E+'3-0.866803£+03-0.1212a7£+'~ 0.000000[+01 0.316677£+0'
-0.316677E+04 0.316677£+05 0.285010E+05 0.376991E+03 0.106896E+Ol '.236319£+04-0.918935£+03-0.1~4425E+04
-0.376568E+04 0.000000£+00 0.000000£+00
0.000200 0.285936E+04 0.299148E+04 0.380334£+01 0.376991£+03-0.721215£+03-0.133751E+04 0.175184E+00 0.316677E+05
-0.316677E+04 1.316677E+05 0.285008E+05 0.376991£+03 0.106896E+Ol 0.233365E+04-0.150808E+03-8.158284E+04
-0. 376510£+04-0.372960£-81-0.616817E-01 •
2 0.000400 0.211514E+04 •• 296596E+04 0.380334£+01 0.376991E+03-0.571530£+03-0.145455E+04 0.509146£+00 1.316677£+05
-0.316611£+04 '.316671E+05 0.285004E+05 0.316991E+03 0.106896E+Ol 0.22908~E+04-0.518414E+03- •• 171243E+04
-'.376511E+04-•• 645'~9E-Ol-0.134613E+OO
J 0.000600 0.261632E+04 '.292358E+14 •. 380334E+Ol 0.316991E+03-0.418600£+13-1.156334E+04 0.876911E+00 0.316616E+05
-0.316611E+04 0.316611E+05 O.284999E+O~ •• 31699'E+03 0.106896E+01 0.223503£+04-0.402735E+03-0.183230E+04
-0.316513£+04-0.866473E-Ol-0.210212E+00
NOTEI The bracketed leQ_nd. onder th, vari"ble label. were not p"rl of the output 1i.t1nQ.
They were added t. clarif, the interpret",t.n of the .utPlll labelinQ.
TABLE VIII: Listing of the Input File for the Simulation of a Synchronous
Machine Described in the U.M.-S.M. Type-59 Format.
STORE p VIII-l P VIII-2
BE'lN NEW DATA CASE AI 81 CI A2 B2 C2 AJ 8USHI
C THIS IS [Link] VITH ADDITIONS FROH [Link] .tANK RECORD ENDING NODE VOLTAGE OUTPUT REQUEST
. C TEST CASE FOR RUNNI"' Sit TYPE-:I9 WITH THE UH CODE PRINTER PLOT
C THE DATA CASE 19 COPIED FROH BENCHHARK DC-2b WITH HODIFICATIONS I .LANK RECORD ENDING PLOT RECORDS.
e •. TRANSFORltER AND PI-SECTION REPLACED 8Y LINEAR BRANCHES I BEGIN NEW DATA CASE
~ • HACHINE UOLTAGE INCREASED BY A FACTOR OF 500 AND ANGLE +/00 DEGRI 8LANK RECORD ENDiNG DATA CASES.
C • INFINTE 8US VOLTAGE INCREASED BY A FACTOR OF 1001
C • TACS INTERFACING OF FIELD VARIABLES.
POWER FREQUENCY, 50 -@
.000200 .050 :10. :10.
I I I 0 1 -I
C -------- REQUEST FOR CHANGE IN PRINTOUT INTERVAL
10 10 20 20 100 100
TAC9 HYBRID
II VTACSI I .0 -I. 0 I .0
nVTACSI
~LANK RECORD ENDING ALL TACS DATA
C TRANSMISSION LINES :
AI A2 .1
Eel 82 AI A2
CI C2 AI A2
A2 A3 .8052 57.15
82 83 A2 AJ
C2 C3 A2 A3
A2 31.416 'tJ
[<2 31. 416 III
C2 31.41/0 \Q
A3 A4 43.34 m
~3 B4 A3 A4 IJ)
CJ C4 A3 A4 c;)
EcLANK RECORD ENDING BRANCH RECORDS
C NEXT RECORD HAS TOPEN • 80 itS "INUS EPSILN TO AVOID DELAYED OPENING I
I-'
C (HALF A CYCLE I' FOR PR IHE AND BURROUGHS! WSH. 27 FE8 1982.
lSI
113 .001 0 . 07"
~LANK RECOR 0 ENDING SWHCH RECORDS
14M 1120.59' 50. -20. -I.
14114 1120.5' 50. -140. -I.
14C4 1120.59 50. 100. -I.
C UM WITH SM TYPE-59 DATA INPUT
19 UM
S"DATA
BLANK RECORD ENDING GENERAL Ult SPEC
}©
J~
59AI 5/09'.05 ".0 +30.0
5981
59CI
PARAMETER FtTTING
I I 2
e. 001 ..
5.14757
0 . 115
1.0
I. 85
150.'
1.1&
13.8
0.2575
0.051142 0.382/009 O. 197985
/000.0
I. 76
600.0
0.18
120.0
0.18
J @
C --------- MASS RECORD
I 1.0 51.0 I. 0 BUSHI l@
C --------- OUTPUT REQUESTS
EXTEND 0 0
3
C --------- S.H. CLASS 6, TACS INTERFACE SPECIFICATIONS
11VTACSI
FINISH
-~LANK RECORD ENDING ALL Ult DATA
{:
BLANK RECORD ENDING SOURCE RECORDS
Page 9G-l1
The data in group F of the listing is the S.M. Class 3 data (Sect. 1.62, p
34jl). The information contained is:
a} from record 1,
1) one mass on the rotor shaft (cols. 1-2);
2) the rotor mass is mass number 1 (cols. 3-4);
3) no exciter on the rotor shaft (blank in cols. 5-6);
4) two-pole machine (cols. 7-10);
5) machine rated at 150.0 mva (cols. 31-40);
6) machine rated at 13.8 kv rms (cols. 41-50);
7} no-load field current for rated voltage is 600 a (eols. 51-60);
and no saturation is used (the entry is positive).
b) manufactur·er's short-circuit data in records 2 and 3 (the blank record
required for the normal S.M. data when no saturation is specified is
omitted for U.M. data output).
The data in group G of the listing is the S.M. Class 4 data (Sect. 1.62, p
34p). The information contained for mass number 1 (see cols. 1-2) is:
a} all of the external mechanical power is associated with the mass (1.0
in col s. 11-20);
b) the moment of inertia is 50xl0 6 pound-feet (cols. 21-30);
c) the viscous damping coefficient is 1.0 (cols. 61-70);
d) the mechanical node in the internally-generated mechanical network
which couples it to the electromagnetic torque in the machine is BUSMI
(cols. 71-76);
Record group H on the listing specifies the parameters to be listed with
the output. The information contained is:
a) from record 1,
1) EXTEND entered in columns 1-6 indicates that the output specifica-
tions are in the extended format (required by the U.M. module);
2) No output of Park-domain circuit parameters (0 in cols. 11-15);
3) the flag for the field of cols. 16-20 of the S.M. output request
is ignored, so it is left blank;
4) No output of Park-domain armature currents (0 in cols. 21-25);
5) current in the field winding (lEI) will be output (1 in cols. 26-
30);
6) current in the direct-axis damper winding (IE2) will be output (1
in cols. 31-35);
7) current in the quadrature-axis damper winding (IE3) will be output
(1 in cols. 36-40);
8) current in the quadrature-axis, eddy-current coil (IE4) will be
output (1 in cols. 41-45);
Page 9G-13
COlUHN HEADINGS FOR THE 29 EHTP OUTPUT VARIABLES FOLLOW. THESE ARE ORDERED ACCORDING TO THE FIVE
POSSIBLE EHTP OUTPUT-VARIABLE CLASSES, AS fOLLOWS •.••
FIRST 4 OUTPUT VARIABLES ARE ELECTRIC-NETWORK NODE VOLTAGES (WITH RESPECT TO LOCAL GROUND) I
'COLUHN HEADINGS FOR THE 29 EHTP OUTPUT VARIABLES FOLLOW. THESE ARE ORDERED ACCORDING TO THE FIVE
POSSULE EHTP OUTPUT-VARIABLE CLASSES, AS FOLLOWS ••••
FIR8T 8 OUTPUT VARIABLES ARE ELECTRIC-NETWORK NODE VOLTAGES (WITH RESPECT TO LOCAL GROUND) I
NEXT- I OUTPUT VARIABLES ARE BRANCH VOLTAGES (VOLTAGE OF UPPER NODE HiNUS VOLTAGE OF LOWER NODE) I •
NEXT 3 OUTPUT VARIABLES ARE 8RANCH CURRENTS (FLOWING FROH THE UPPER EHTP NODE TO THE LOWER)'
NEXT .• OUTPUT VARIABLES'PERTAIN TO DYNAHIC SYNCHRONOUS HACHINES, WITH NAHES GENERATED INTERNALLY I
NEXT 1 OUTPUT VARIABLES BELONG TO 'TACB' (NOTE INTERNALLY-ADDED UPPER NAHE OF PAIR).
FINAL 8 OUTPUT VARIABLES BELONG TO UNIUARSAL HACHINES (UH), WITH NAHES GENERATED INTERNALLY I
8RANCH POWER CONSUHPTION (POWER FLOW, IF A SWITCH) IS TREATED LIKE A BRANCH VOLTAGE FOR THIB GROUPINGI
BRANCH ENERGY CONSUMPTION (ENERGY FLOW, IF A SWITCH) 18 TREATED LIKE A BRANCH CURRENT FOR THIS GROUPING.
STEP TIHE Al al Ct A2 B2 C2 A3 BUSHI
(H •• s 1 8peed.
[Link] Req.)
BUSHt AI 8t CI TACS UH-I UH-l UH-l 'tI
TERRA A2 B2 C2 VTACSI TQCEII IPA IPB OJ
(H .... 1 Speed. (Field (£lectro- I.Q
Output Request> Voluoe) ",·onetic 10
Torque)
UH-I UH-I UH-I UH-l UH-I \0
IPC lEI IE2 IE3 IE4 Cl
(Field I
~
Current·) ~
0.000000 0.493206E+04 0.126154E-02-0.493206E+04 0.492521E+04 '.47764'E+Ol-0.492999E+04 0.402300E+04 '.314159E+03
0.314159E+030.684382E+02-0.477514E+02-0.206868E+02 0.100000£+01 0.139939E+04 0.684432E+02-0.471514£+02
-0.206918E+02' .309304E+03 8.000000E+00 •• OOOOOOE+OO 0.000000£+00
0.000200 0.47434IE+04 .357789E+03-8.510120E+04 0.473648E+04 0.36223IE+03-0.509812£+04 0.408206E+04 •• 314159£+03
'.314159E+03 .692838E+02-0.444269E+02-0.248570E+02 0.100000E+OI 0.139921£+04 0.692839E+02-0.444269E+02
-0.248510E+02 .309204£+03 '.100167£+00 0.000000£+00 0.755842E-03
2 0.000400 0.453613E+04 .713988£+03-1.525012£+04 0.452914E+04 0.718080£+03-0.524722£+04 0.41250IE+04 •• 314159£+03
'.314159£+03 .698564£+02-0.409277£+02-0.289287E+02 0.100000£+01 0.139918E+04 0.698565E+02-0.409271E+02
-0.289288£+02 .309003£+03 '.300070E+00 0.000000£+00 0.B76436E-03
3 0.000600 0.431096E+04 .106134£+04-0.537830£+04 0.430394£+04 0.107107£+04-0.537502£+04 0.415168E+04 '.314159£+03
0.314159E+03 .701529£+02-0.37266IE+02-0.328869E+02 0.100000£+01 0.139915E+04 0.701530E+02-0.372661£+02
-0.328869E+02 .308804£+03 O.4989~OE+00 [Link]+OO 0.984334E-03
4 0.000800 0.40687~E+04 .141652£+04-1.548528£+04 0.406174£+04 0.141987£+04-0.548160E+04 0.416197E+04 '.314159£+03
0.314159E+03 .701731£+02-0.334583£+02-0.367148£+02 0.100000£+01 •• 139911E+04 0.70173IE+02-0.334582£+02
-0.36114~E+02 .308605E+03 •• 697003£+00 [Link]+OO 0.111153£-02
NOT£I The [Link] leoends under the [Link] labels were not p.r~ .f the output [Link].
The, were .dded t. cl .. rl', [Link] of the output labelino.
page 9G-IS
The components of the data file related directly to the simulation of the
synchronous machine are indicated by the circled letters on the listing.
. . The branches of the electrical network representing the mechanical system
. (mechanical network) are specified in the same manner as for the other electri-
cal subnetworks and along with them (group B).
The equivalent torque source (group C) is specified to be a current source
by the entry of '-~' in columns 9 and 10. The frequency of the sources is set
to [Link]; so, over the interval of 0.8 seconds covered by the simulation,
its amplitude is essentially constant; and the mechanical torque (node MS) is
effectively constant.
r------, TR
AS2
I ~
I GI A
r
Mechanical I E~ m TR
Network U a BS2
MS I f~ t
u
r
IX 6R e
Irq N1
N
TR
u E
I---D----Cll--i e _ _ _ --.J
MGR
:~
C --------- HECHANICAL NETWORK COHPONENTS
'USHG BUSHGR If•• 5 1.0
!\)
~USHGR 8USHG 8USHCR
BUSHG 6.0E+4
C -------- FOR HEASUREHENT OF ELECTROHECHANICAL TORQUE \0
BUSHS BUSHG I. IE-I. Cl
ElLANK RECORD ENDING BRANCHES •.............•...................••••••.••. I
BLANK RECOIID ENDING SWITCHES .... , •..•..........•....•.....•........•.... .....
e --------- SOUIICES·FOR INFINITE aus 0'1
14'USA92 IBO.O 60.' I.' -1.1
149USBs:! IBO.O '60.0 -120.' -1 ••
-1.0
148USC52 lS0.0 bO.'
148U5HS -I 8.000081 0.00001
+120.'
C --------- HECHANICAl LOAD TORQUE (ACTUAL VALUE SET BY 55 INITIALIZATION).
C STEP DOWN IN LOAD TORQUE AFTER 0.1 SECONDS I
149US/15 -I +100.0 0.00001
-I. 0
0.1
}©
C
19 UH
1
--------- UH DATA
J@
BLANK RECORD ENDING GENERAL U.H. SPECIFICATION
}@
C --------- UH HACHINE-TABLE
C --------- UH TYPE 3 (INDUCTION HACH) DATA
3 1 111 I BUSHG 2 0.1885
0.82358
0.02358
C STEADY-STATE INITIALIZATION REQUEST AT B % SLIP I
B.O BUSHS
~
C --------- UH COIL-TABLE
e THE POWER (ARHATURE/STATOR) COILS •
'.063 0.0001911 BUSA2 I
C REHARK. IF NO ZERO CURRENT OF THE POWER COILS IS DESIRED, THEN SIMPLY LEAVE
C THE RESISTANCE AS WELL AS THE INDUCTANCE IN THE CARD ABOVE BLANK.
• • 0103 0.0013925 BUS82 I
0.0&3 0.0003925 BUSC:! I
C THE EXCITATION (ROTOR) COILS I
'.110 0.0012
page 9G-17
d) From record 4,
1) the initial slip is 8 percent (co1s 1-14);
2) an induction machine is simulated; columns 15-34 are left blank;
3) the type-14 source to be adjusted to meet the initial condition on
the electromagnetic torque is connected at node BUSMS (co1s. 35-
40). in the mechanical network.
The coil-table records (group F on thp listing) contain the follOwing in-
formation:
a) From record 1,
1) armature phase A of the U.M. model is connected between network
node BUSA2 (co1s. 29-34) and ground (blank in co1s. 35-40);
NOTES: a) Positive sequence in the U.M. module is always A-B-
C; regardless of the sequence of the external net-
work connected at the coil terminals.
b) Current into the external network at BUSA2 is taken
as the positive reference.
2) the zero-component calculations will be carried out using the re
sistance and inductance values given in columns 1-14 and 15-28,
respectively (see the note after record 1).
b) From record 2,
1) armature phase B of the U.M. model is connected between network
node BUSB2 (co1s. 29-34) and ground (blank in co1s. 35-40);
2) direct-axis, armature-coil resistance is 0.063 ohms (co1s. 1-14);
3) direct-axis, armature-coil leakage inductance is 0.0003825 hy (see
co1s. 15-28).
c) From record 3,
1) armature phase C of the U.M. model is connected between network
node BUSC2 (co1s. 29-34) and ground (blank in co1s. 35-40);
2) quadrature-axis, armature-coil resistance and leakage reactance
are equal to the respective direct-axis values;
d) From record 4,
1) direct-axis, field-coil resistance is 0.110 ohms (co1s. 1-14);
2) direct-axis, field-coil leakage inductance is 0.0012 hy (co1s. 15-
28).
3) the direct-axis field coil is short-circuited to ground (blanks in
both co1s. 29-34 and 35-40);
f) From record 5,
1) the quadrature-axis, field-coil [Link]..istance and leakage reactance
are equal to the respective direct-axis values;
2) the quadrature-axis field coil is short-circuited to ground
(blanks in both cols. 29-34 and 35-40);
page 9G-19
Since one direct-axis field coil and one quadrature-axis field coil were
specified in record 1 of the Machine-Table Group (group E on the listing), no
more data is required for the first machine. The blank record following the
coil-table records terminates the input for machines modeled through the U.M.
[Link].
The only records left in the listing are those specifying node voltages to
be output, plot controls and data-case termination. These are in the standard
EMTP format.
. Table XI, p 57, gives the beginning of the modified output listing for the
example problem. Output of the voltages to ground at nodes BUSAS2, BUSA2 and
BUSMG were requested at the. end of the input data file. Output of the current
in phase A of the pseudo-transmission line was specified by a 'I' entered in
column 80 of the phase-A-branch record. Output of the coil currents at the
terminals of the machine was requested by a 'I' entered in column 47 of each
coil-record. Output of electromagnetic torque (TQGEN), rotor speed (OMEGM) and
the torque angle (THETAM) were requested by setting the respective flags to '1'
in record 1 of the Machine Table Group (group f).
COLUHN HEADINGS FOR "fHE 23 EHTP OUTPUT VARIABLES FOLLO~. THESE ARE ORDERED ACCORDING TO THE FIVE
POSSIBLE EHTP OUTPUT-VARIABLE CLASSES. AS FOLLOWS •.••
FIRST J OUTPUT VARIABLES ARE ELECTRIC-NETWORK NODE VOLTAGES (WITH RESPECT TO LOCAL GROUND) I
NEXT 0 OUTPUT VARIABLES ARE BRANCH VOLTAGES (VOLTAGE OF UPPER NODE HINUS VOLTAGE OF LOWER NODE)I
NEXT 4 OUTPUT VARIABLES ARE BRANCH CURRENTS (FLOWING FROH THE UPPER EHTP NODE TO THE LOWER) I
NEXT 0 OUTPUT VARIABLES PERTAIN TO DYNAHIC SYNCHRONOUS HACHINES, ~ITH NAMES GENERATED INTERNALLY I
NEXT 0 OUTPUT VARIABLES BELONG TO 'TACS' (NOTE INTERNALLY-ADDED UPPER NAHE OF PAIR).
FINAL 8 OUTPUT VARIABLES BELONG TO UNIVARSAL HACHINES (UH), WITH NAHES GENERATED INTERNALLY I
DRANCH POWER CONSUHPTION (POWER FLOW, IF A SWITCH) IS TREAtED LIKE A BRANCH VOLTAGE FOR THIS GROUPINGI
DRANCH ENERGY CONSUHPTION (ENERGY FLOW, IF A SWITCH) IS TREATED LIKE A BRANCH CURRENT FOR THIS GROUPING.
STEP UHE DUSAS2 DUSA2 BUSHG BUSA2 BUSHG BUSHG BUSHS UH-l
([Link] DUSAS2 BUSHGR TERRA DUSHG TQGEN
Speed) (Il."ping (Acce1er.tin9 (Source (E1ectro".gnetic
Torque) Torque ,It H) Torquit) Torque) ."
Q/
I.Q
UH-t UH-l UH-I UtI-! UH-l UH-l UH-l
OHEGH THETAH IPA IPB IPC lEI IE2 111
(A ot or (Aehtive \0
SpeRd) Ronr An91e) G"l
I
o 0.000000 0.180000E+03 0.11948IE+03 '.113416E+03-0.103866E+03 0.525503E+OI 0.000000E+00-0.135659E+03-0.140914E+03 N
0.173416E+03 0.1853'8E+OO-'~I03866E+03 0.104913E+03-8.104672E+OI 0.523455E+O~-0.1281~4E+03 lSI
0.000500 0.176812E+03 0.116244E+03 0.173416E+03-0.113482E+03 0.525503E+01-0.516792E-02-0.135659E+03-0.140'09E+03
\ 0.173416E+03 0.812106E+00-0.113492E+03 0.919398E+02 0.215418E+02 0.504133E+02-0.129516E+03
2 0.001000 0.167360E+03 0.166764£+03 0.173416E+03-0.119082E+03 0.525502E+OI-0.119130E-Ol-0.135659E+03-0.140903E+03
0.113416E+03 0.958814E+00-0.119082E+03 0.151131E+02 0.433681E+02 0.484683E+02-0.130250E+03
3 0.001500 0.151919E+03 0.151311E+03 0.113416E+03-0.120464E+03 0.525502E+OI-0.228129£-01-0.135659E+03-0.140892E+03
0.17341bE+03 0.104552E+01-0.120464E+03 0.5b805bE+02 0.636581E+02 0.465015E+02-0.130951E+03
NOTE: The [Link] le9Rnds under the ~.[Link] 1.bR1s were not [Link] of the output 1istin9.
They werR .dded to [Link] the [Link] of the output 1.belln9.
Page 9G-21
a) a blank appears in column It indicating that all variables and parame-
ters are to be taken to be 1n SI (physlcal) units;
b) a '1' appears in column 2, specifying that automatic initialization is
to be carried out.
,c) a 'I' is entered in column 15, indicating that prediction, rather than
compensation t is to be used in interfacing the UM module to the three-
phase network •
•
RM .-----, XL
AS2
AI
BSl
RM ~I
a
XL
BS2
t
~ I
e
RM I C2 XL
L .20rqu!... --'~
VL
Mechanical
Network
Note the blank record which is required for ter:mi.!)ation of the General Specifi-
cation group.
The non-zero entry in column 2 of the second record does not trigger ini-
tialization. It does cause the proper incorporation of the U.M. module in the
TABLE XII: Listing of the Input File for the Simulation of a Doubly-Fed
Induction Machine.
p XII-2
BEGIN NEW DATA CASE
p XII-I
C COHDINATION OF CASES· [Link] AND .[Link]
C DOUBLr FED HACHINE WITH EXTERNAL ROTOR VOLTAGE SOURCE
C AUTOHATIC SS FoR UH TYPE 4 ( 3-PHASE [NO. HACH.)
C POWER COILS NON-COHPENSATED (PREDICTION USED).
·C STEP ON INPUT TORQUE AT 0.02 SECONDS
C --------- ROTOR COILS
'.110
0.110
0.0012
0.0012
8USBt
BUSCI
8USAI
BLANK RECORD ENDING ALL UH DATA
I
• 1
I
J
C RATING I 720 KVA ,4.2 KV, • POLE ( 8~.b7 % EFFICIENCY AT IILANK RECORD ENDING ALL SOURCES •...••.••.••••.•••••••••.••..••••••••..••
C __________ REQUEST FOR OUTPUT OF NODE VOLTAGES
C 0.94b PF AND. 14.0E+3 NH. ) KIPP TORQUE • • ~.09E+2 MH. 8LIP·2.~X)
ABSOLUTE U.H. DIHENSIONS. 2D, 2. ~O, 60 --@ IIUSA82BUSA2 9U5Al 8USHG
BLANK RECORD ENDING NODE VOLTAGE OUTPUT SPECIFICATION •••••.•••••••••.•..
C TIHE SET
0.0002 D.9 PR INTER PLOT
I 2 I • I -I o eLANK RECORD ENDING PLOT RECORDS ...•••••••••••••••••••••.•.•••••••••••••
C -------- REQUEST FOR CHANGE IN PRINTOUT INTERVAL BEGIN NEW DATA CASE
~oo :500 ~OOO 2~OO BLANK DATA CASE
10 90 100 I 110 390
}~
C --------- ROTOR EXTERNAL RESISTANCES
BUSAI BUSASI t .E-O~
BUS81 BUS8S18USAI 8USASI
BUSCI 8USCSIDU5AI BUSASI
C -------- TRANSHISSION LINES
BUSA2 BUSAS2 "OE-4 18 .• I
I
BUS82 BUSBS2BUSA2 BUSAS2 I 'tI
BUSC2 8USCS2BUSA2 BUSAS2 III
C --------- CONNECTIVITY OF EHTP FOR ELECTRIC NETWORK \Q
BUSAS2 I. IE+b CD
BUSB82 BU5AS2
BUSC82 8USAS2 U)
:r
C .--------- HECHANICAL NETWORK COHPONENTS G)
DUSH," BUSHGR .• :54B I
BUSHGR DUSHG BUSHGR N
9USH," [Link]+7 N
C -------- FOR HEASUREHENT OF ELECTROHECHANICAL TORQUE
BUSHS BUSHG I. DE-II
BLANK RECORD ENDING 8RANCHES ••.•••••.• : ••.•......•......••..•..•••.•••••
BLANK RECORD ENDING SWITCHES ••••.•••••........•...••..•..••.••••••••••.•
C --------- SOURCES FOR INFINITE BUS -t.o
148USAS2 JOOO.O bO.' 0.'
148U5882 JOOO.O bO.' -120.' -1.0
148USCS2 JOOO.O 60.0 +120.' -1.0
C --------- J-PHASE SOURCES AT AOTOA SIDE (ACTUAL FREQ SET BY SSI.
I'!BUSASI
I 49US8S1
14BUSCSI
[Link]
JOB.b
J09. 6
1.2
\,2
J. 2
+30.'
-90.'
+I~O. 0
-I.'
-J. 0
-\'O
}@
C --------- HECHANICAL INPUT TORQUE (ACTUAL VALUE SET BY S51.
148USHS -I 0.000001 0.00011 -1.0
C -------- STEP ON INPUT TORQUE AT T • 0.02
148USHS -I J900.. 0.00001 +0.02 Jev
C --------- UH TYPE. ([Link] DATA
19 UK
I I
8LANK RECORD ENDING CLASS 1 UH DATA
}CD
~
C UH-l HACH TA8LE
" II I BUSHG ;! '.0188
'.123:;B
0.02J~B
2.0 BUSHS
C UH-l COIL TABLE
~
C --------- STATOR COILS
lIUSA2
0 •• t2 0.0012 BUS9:!
0 .• 12 0.0012 BUSC:!
page 9G-23
COLUMN HEADINGS FOR THE 29 EHTP OUTPUT VARIABLES FOLLOW. THESE ARE ORDERED ACCORDING TO THE FIVE
POSSIBLE EHTP OUTPUT-VARIABLE CLASSES, AS FOLLOWS ....
FIRST . . OUTPUT VARIABLES ARE ELECTRIC-NETWORK NODE VOLTAGES (WITH RESPECT TO LOCAL GROUND)'
NEXT 0 OUTPUT VARIABLES ARE BRANCH VOLTAGES (VOLTAGE OF UPPER NODE HINUS VOLTAGE OF LOWER NODE)'
NEXT 7 OUTPUT VARIABLES ARE BRANCH CURRENTS (FLOWING FROK THE UPPER EHTP NODE TO THE LOWER)'
NEXT 0 OUTPUT VARIABLES PERTAIN TO DYNAKIC SYNCHRONOUS MACHINES, WITH NAHES GENERATED INTERNALLY.
NEXT 0 OUTPUT VARIABLES BELONG TO 'TACS' (NOTE INTERNALLY-ADDED UPPER NAHE OF PAIR).
FINAL 9 OUTPUT VARIABLES BELONG TO UNIVARSAL MACHINES (UH), WITH NAHES GENERATED INTERNALLY.
BRANCH POWER CONSUMPTION (POWER FLOW, IF A SWITCH) IS TREATED LIKE A DRANCH VOLTAGE FOR THIS GROUPING.
BRANCH ENERGY CONSUMPTION (ENERGY FLOW, IF A SWITCH' IS TREATED LIKE A BRANCH CURRENT FOR THIS GROUPING.
STEP TIKE BUSAS2. BUSA2 BUSAI BUSHG BUSAI BU8A2 BU8B2 lIU8C2
(KIss BUBASt 'BUSAS2 BUSBS2 BUSCS2
Speed)
UH-t "C
BUSHG BUSHG BUSHS UH-t UH-I UI1-1 UH-l QI
BUSHGR TERRA BUSHG TQGEN OHEGK THETAH IPA IPB l!l
(o. .. p inq (Acce1erltinq (Source (Electro .. aqnetic (Rotor (Relath. 111
Torque) Torque H H) Torque' Torque) Speed ) Rotor An91.)
\D
U"-1 UH-\ UI1-\ UH-I G'}
IPC lEI IE2 IE3 I
0.000000 0.300oo0E+04 0.716~63E+04 0.267233E+03 O.184726E+03-0.21950IE+04-0.1~1688E+03-0.101892E+04 '.111061[+04 I'.)
NOTE: The bracketed 1eqends under the u.r1able labels were not part .f the output 11stin9.
Thev were added to c1arifv the interpretation of the lutput [Link].
Page 10-1
a) specify PK and OK at the node. The EMTP then will solve for VK
and THETAK. This is ordinary load modeling of conventional, single-phase load
flow usage by system planning departments. or, alternatively,
b) specify PK and W. The EMTP then will solve for OK and 'I'HETAK.
This is ordinary generator modeling of conventional, single-phase load flow
usage by system planning departments. Or, alternatively,
c) Specify 'I'H.E'IAK and OK. The EMTP then will solve for PK and VK.
This thi I'd and final option is seldom used.
For those who intend to terminate execution once the load flow is complete
(Le., for '!MAX non-FOsi tive) , life is particularly simple. No EMTP source
cards ate required, and FOwer constraints can be applied to any node of the
net'NOrk. The only program limitation is that the source table (List 4) must be
sized to equal or exceed the total nllTlber of power-constrained nodes of the
net'NOrk. This is because one source is automatically, internally defined for
each power-constraint card as it is read in overlay 9.
Page 10-2
When a transient simulation is to follow the EMTP load flow (i.e., if '!MAX
is positive), the user should U"lderstand that his po\ro1er constraints will be
forgotten once the time-step loop is entered. With po\ro1er constraints applied
only to nodes with 'JYpe-14 voltage sources, the angle and/or magnitooe of this
source will be automatically adjusted prior to entry into the time-step loop,
and adjusted to correspond to the load flow solution. 'Ibis mayor may not
resul t in approx imate continued observance of the steady-state po\ro1er constra ints
during the transient simulation, of course 'lbe result is a function of
nonlinearities, and of unpredictable transients, which are quite beyond any
general SlImIary. '!he user should simply keep in mind that load flow constraints
only provide for the automatic, internal setting of constants (e.g., generator
angles) at time zero, and have no other direct effect on any subsequent
simulation.
A power constraint of the EMTP load flow may only be applied at a network
bus. '!he user can not constrain a line flow, nor can he constrain a group of
line flows (the familiar area interchange control) , directly. Neither is there
any automatic adjustment of transformer or phase shifter taps at the present
time. But certain limits on voltage magnitooe and angle at a po\ro1er-constrained
node can be observed. First, at a load bus that normally would have both A<
and OK fixed, the reactive-power constraint will only be maintained wi thin
user-specified limits on voltage VK, and the real-power constraint will only
be held wi thin usera-specified limits on the angle THETAK. Second, at a
generator bus that normally would have both A< and VK fixed, the real-power
constraint will only be held within user-specified limits on the angle ~.
'!hird and finally, at a bus that normally would have both CJ< and 'I'HE:'mK
fixed (\\Iho knows a good, short name for such a bus?), the reactive-power
constraint will be held only within user-specified limits on voltage VK.
Conspicuous by its absence in this list is the popular choice of system planners
for generators: the maintenance of voltage VK with limits on reactive power QK.
'!hus far, there has been a mixture of talk about network busses and
individual nodes.'Ihese mayor may not be synonymous, for purposes of EMTP load
flow usage. '!he p:>ssible difference is due to multi-phase constraints. '!he
user can gang three nodes together, and control them as a unit, if he likes. In
this case, all three voltages are assumed to be balanced, positive-sequence
page 10-3
For each netw::>rk bus that is to have a power constraint, there is one EMTP
data card that specifies the associated local control parameters. Following the
last such data card, there is an extra card of overall control parameters, which
shall be called the miscellaneous data card of the load flow. '!his data
structure is summarized as follows:
card for first power constraint of load flow
< < Etc. > >
Card for last power constraint of load flow
Miscellaneous data card for load flow
Ole 3-phase bus requi res only one source card, if the user accepts the 3-i:tlase
logic that this implies. Alternatively, each phase could be controlled
separately, thereby requiring three EMTP data cards. In any case, taken
together, all such cards consti tute data peculiar to the EMTP load flow - data
that affects no other aspect of the simulation. '!his data follows the blank
-card ending sources (Section VII), and. it precedes the initial condition cards
for the electric network (if any; see Section XI) and the node voltage output
requests (Section XII).
If the user wants such EMTP load flow capabil i ty, he must declare his
intention early, before the miscellaneous data cards. '!his is done using a
special-request card reading "FIX SOURCE" (see Section II-A).
All data for the EMTP load flow are read wi thin overlay 9 by the single
EMTP load flow module, SUBROtJI'INE FXSOUR. Module" FXSOUR" conta ins all
logic for the network solution that observes the user-specified power
constraints. An impedance matrix algorithm is used, but with a complete
simul taneous solution (rather than the adjustment. of one equation at a time) ,
which allows the exploitation of the already-calculated and triangularized nodal
admittance matrix [YJ. '!he solution is iterative, then, with convergence less
than certain, and not always speedy. But, for practical, realistic cases of
corrmon interest, perfo Illlance has been found to be good, so any user who reall y
wants to begin his transient simulations with given power flows is urged to give
the EMTP load flow a try. As long as X/R ratios are reasonable (do not try the
EMTP load flow for purely resistive networks!), and a solution exists, and the
guess is not unreasonable, then there would seem to be a good chance of success.
Iterative convergence of the EMTP load flow is monitored on WNIT6, where
the largest correction of each iteration is displayed, 20 numbers per line, as
these are calculated. '!here also is an option (see the load flow miscellaneous
data parameter NNNOur) for the parallel output of the numbers of the power
constraints that. prodoced these largest corrections. Numbering of this
identification corresponds one-for-one with the user-inputted data cards. As an
example of such output, consider the first eight columns of the first two rows
of twenty, which might appear as follows (taken from BENCmARK OC-26):
Max del-v: .2192 .2158 .1861 .1597 .137 .1176 .1013 .0896
Source No. -2 -2 -2 -2 -2 -2 -2 -3
Page 10-4
'!he variable changes are always posi tive (absoute values are used), with any
negative sign shifted to the integer 2nd row where there is more room. '!his was
the case for 0:-26 (the largest initial corrections were in fact negative as
shown) • Note that convergence is slow (a characteristic of the "crurmy" Z-
matrix iteration that is used), and that the generator having the WC)rst
correction is always the same (DC-26 involves just a single load flow source).
If program output goes to the disk, then the user will not see such output U'ltil
later, so timing is irrelevant. But if WNIT6 output goes to a canputer
monitor, then the timing of the display is im{:Ortant. At most 20 iterations (a
full line) will occur between such load flow outputs, thereby assuring the user
that the canputation is progressing. '!he user has control over the frequency of
this output (variable NFLDtJl' of the load flow miscellaneous data card \Itlich
will be described shortly). FOr some canputers (those allowing overprinting
wi th the "lH+" carriage control characters), the user can see the result at the
end of each iteration, \Itlen one more mmber is added to the output buffer (a
full output line) •
It is im{:Ortant that the load flow user check for convergence, since as
presently implanented, the EMTP simulation will continue \Itlether the iteration
has converged or not! Should not all of the user-suppl ied control tolerances be
met, a warning message will be printed. But execution will not be stoFPed.
'!he load flow user may have special interest in knowing the solution at his
power-constrained busses. SUch special output is possible via variable NPRINT
of the load flow miscellaneous data card (the final card of load flow data) •
SUch output precedes the phasor branch flows, with the following being a
representative sample taken from the solution to BENCHMARK DC-26. NOte
convergence in 133 iterations, and truncation on the right (the reactive (:Ower
column is missing):
Exit the load flow iteration loop with counter NEKITE = 133. If no warning
Fbw Node Name Vol tage mag tegrees Real 'fOwer Reacti ve 'fOwer
4 8 Al 0. 113901E+02 -30."002 0.399872E+02 -0.450736E+01
5 9 Bl 0.113901E+02 -150.0002 0. 399872E+0 2 -0. 450736E+01
6 10 C1 0. 113901E+02 89.9998 0.399872E+02 -0.450736E+01
Yet there really is nothing special to see, since such phasor values have always
been available via the regular steady-state printout (e.g., by the display of
injections \Itlich follow phasor branch flows) •
Exanples of EMTP load flow usage can be found in standard test cases
BENCfMARK DC-2S and 0:~26, which involve synchronous machines. Since the
'JYpe-59 S.M. is represented by nothing other than three 'lYPe-14 sinusoidal
sources in the steady-state, it is trivial to awly power constraints to these
using EMTP load flow cap:ibility. '!he U.M. is not quite so simple, due to its
generality; but it, too, is now compatible with the EMTP load flow for induction
and synchronous modes, as documented in Prof. LaUW" s paper (Ref. 22, May 1984) •
First, there must be one data card for each power constraint. Ordering of
these cards is arbitary. Each such data card is to be keyed according to the
following rules:
Page 10-5
C 1 2 3 4 5
C \3456781901234\56789011234567890123456178901234567890121
CI 1--1 1 1 1-
121 A6 1 A6 I A6 1
CI I 1--1
E16.0 I
I
E16.0 I
I-
... below
Continued
NK Bt.51 Bt.52 Bt.53 PK or (J< OK or VI<
678
134567890112345678190123415678901
1 I· 1 1 1
I E8.0 1 E8.0 1 E6.0 1 E6.0 1
1 1 1 1 1
VMIN VMAX TlfotIN 'I'ffw\AX
Bt.52 (colunns 9-14) is the 2nd of up to three names of network nodes that
are involved in this power constraint. See BUS1.
VMIN (co1l1t1ns 53-60) is the minimlltl vol tage W, for those cases where
voltage is not fixed. 'lhat is, this input is used for constraint type NEK = 0
or 2. 'lhe keyed value is to be in units of peak voltage. A blank or zero
means that no minimlltl will be imp:>sed.
VMAX (collltlns 61-68) is the maximlltl voltage W, for those case!? where
voltage is not fixed. 'lhat is, this input is used for constraint type NEK = 0
or 2. 'lhe keyed value is to be in units of peak voltage. A blank or zero
means that no maximlltl will be imp:>sed (internally, infinity becomes the limit) •
".IH-1IN (co1l1t1ns 69-74) is the minimlltl angle 'lHE'I1\K for those cases where
the angle is not fixed. 'lhat is, this input is used for constraint type
NEK = 0 or 1. 'lhe keyed value is to be in units of [degrees]. A blank or
zero means that no minimlltl wi 11 be imp:>sed (internally, '1lflIN is set to minus
infinity) •
'1lflIN (coll1t1ns 75-80) is the maximlltl angle 'IHETAK for those cases where
the angle is not fixed. 'lhat is, this input is used for constraint type
NEK = 0 or 1. 'lhe keyed value is to be in units of [degrees]. A blank or
zero means that no maximlltl will be imp:>sed (internally, 'l'HttIN is set to
infini ty) •
'lhe interpretation of this power constraint card confirms only the first 4
of 6 total floating p:>int parameters (co1lJt1ns 21-68). 'lhe following
illustration has been taken from the 1st half of BENCHMARK DC-25:
C 1 2 3 4 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C
FIX.
1--------------------
2. 803E+09 1.383E+09 2. 000E+04 2.500E+04 1 MH:Al MIlCB1 MIlCC1 2803
-
After the last such power constraint card, add the following miscellaneous
ata card of the load flow, which is recognized by the leading blank field (co1s.
-8 unused):
C 1 234 5 6
C 3456781901234561789012341567890121345678901123456781901234561789012341
C --1---1- 1- 1 1 I ·-1 1
1 18 1 18 1 18 1 18 1 ES.0 I ES.0 1 ES.0 1
C I I 1 --1---1- 1 -1----1
C mNour NITERA NFLDur NPRINT RALCHK CFITEV CFITEA
NFLOtJI' (collJnfls 25-32) is the buffer size for accunulating the output
that is associated with the interactive convergence monitoring (the largest
correction at each iteration). kly non-PJsitive value, or any value in excess
of 20, will be set equal to the default value of 20. Since exactly 20 nunbers
fit on a line, a value of 20· corresponds to w:liting for a line to be· filled
before the user is shoW'1 any of the contents. Positive values less than 20
generally should be used only for computers having electronic monitors that
honor the "lH+" carriage control (for overprinting), since this is the device
that is used to avoid line feeds after outputs of partial lines. A value of 20
is always best for solutions that the user is not w:ltching.
NffiINT (co1unns 33-40) is a binary flag that allows for the selection or
suppression of special tabular printout for the nodes with power constraints.
Key unity to obtain output of such values (VK, 'lliE'I1\K, PK, CJ<), or zero (or
blank) to suppress it.
C 1 2 3 4 5 6 7
C 3456789012345678901234567891312345678913123456789012345678901234567890123456
C ------1-
Load flow iter. 1 500 20 0 0.10E-02 1 1
Page 11-1
These cards are used only if the user wants to supply initial conditions himself.
The transients program starts from correct initial conditions as long as everything
was zero at t <'0 or if an ac steady-state existed at t < 0 (the latter is simply
indicated by TSTART <0 on sinusoidal source cards)
Ini tial condi tiona that are neither zero nor ac steady-state must be supplied as
input. Any initial conditions that are provided through input will override the
respective zero-or ac-steady-state initial conditions computed by the program.
There are two cases where the user might want to supply the initial conditions:
a) RULES:
(1) In networks containing branches with distributed parameters, only
dc or ac-steady-state solutions can be used as initial conditions.
In this case, all initial voltages and currents must be specified as
phasor values x(O)+jy(O), where x(O) is the instantaneous value at
t = 0 (note that the magnitude of the phasor quantity is the crest
Talue and not the rms value). Punch the steady-state frequency into
the very first card with anini tial node voltage on it.
-::*::-=)-:::~:-:-i:""'is-Gd,·,,-:-i..[Link]-l-I&~\D ltd ~e ~f'QrTI ~e iJ\il:io.Q [Link] whene'\le1' possib\e) i:hM i5 for Qt s\ead~·£bie
~ we\\ CiS ~r at. [Link].::s.s\crte .1.1'\ -\.~ lo:l-\.er [Link]) \1Se Ctlsi"e f~ciiortS w\\'" ~ \0'111 -\T~\I..~l\~ ~
s''''\I.\aie dt Stl\.\.T"C~. ~ "- (:). 00\ t\~ -.No"l"ked.. ve~ U)~ \"1\ ~~~ IN\. ~~ ~\[J)C. ~c:~~~ h\:e~-\\~.
Page 11-2
See rule 1 why phasor values must be given. This card must be
punched in case of non-zero terminal voltages, even if all currents
are zero. For multiphase lines, punch a card for each phase in same
sequence as branch cards were read in.
As for the future, plans are to expand the initial condition input
capability so as to handle all possible EMrP components under all possible
conditions. Yet, it is not expected that the user will actually punch such
ini tial condition cards himself, manually_ For one thing, the operati on is
tricky and error prone at best, based on BPA experience; for large, cases, it
is extremely tedious; and for non-sinusoidal past history of distributed
components or del~ lines, the data is voluminous and impossible to calculate
by hand [Link]~. So, such initial condition cards will be punched by the EmP
itself, as terminal conditions of a simulation which has been stopped by the
user. This capability is seen to be a crucial ingredient of 8 real-time
EmF simulator package, which will be fully interactive. Stay tuned!
====================================================
Retraction of plans for initial-condition completion
====================================================
The preceding hopeful paragraph remained true until the spring of
1981, when a new concept of interactive control was discovered. This
is what we now refer to as "EMTP simulators" ---- implemented for our
VAX-ll using shared COMMON. See the 38-page memo which begins Vol. XI
EMTP Memoranda for a complete description (Ref. 8, 17 July 1981,
pagination IEEO). Separate program "EMTPSPY" provides the
interactive control and observation.
The time response of the electric network being solved is available for the
user's inspection via one of the following three procedures:
- "LUNIT6-output"; tabulated decimal numbers. on the line printer.
- "batch mode plotting"; be it printer plot. Calcomp plot or screen plots
(highly dependent of the computer system in use; refer to section I-F for
more detailed information).
- "PL4-file"; can be used for later processing on printer. plotter or screen
via interactive plotting programs TPPLOT andWlNDOWPLOT (if such feature is
provided for the computer system in use; refer to section l-F for more
detailed information).
The user can only look at variables for which an output request has been made
as part of the simUlation run. The procedure for doing this depends upon whether
a conventional single deterministic simulation is involved. or on the contrary.
a statistical overvoltage study is of concern.
Values for vol tages. currents. powers and energies are computed by the simulation
part of the EMTP program at discrete time instants t - O. tot. 2tot. •..• Such values are
then either printed on LUNIT6. (with frequency controlled by the miscellaneneous
data parameter "lOUT") or they are written to disk via logical unit number 4. (with
the frequency "IPLOT tt ) for purposes of later plotting after the simulation is
finished (see section II-B for details on miscellaneous parameters lOUT. !PLOT and
IeAT). In both cases. any variable to be output must be specified by the user.
Following output request exist :
- node voltage output
- branch output (branch voltage, branch current, power or energy)
Let us now discuss in more detail how to obtain the required output.
As explained in .section I-I. the user must input one or more cards specifying
all the node names for which he wants to have printed or plotted node voltage
output.
Distinction should be made between two cases: all nodes, or node selection;
- If all node voltages are requested, the user should punch one specification
card with a ttlt~ in column 2. Do Dot terminate with a blank card.
- If a selective list of the node voltages is required. the user should list
the node names on one or more cards which have the first 2 columns blank.
See figure. All cards must have columns 3 to 8 non-blank. The list is
terminated bya blank card.
XII The OUtput apecification carda - 2
Note: Only the first of the 13 potential fields per card: must be
non-blank. All other fields may be randomly left blank.
~ NAM1 NAM2 NAM3 NAM4 NAM5 NAM6 NAM7 NAMa NAM9 NAM10 NAMll NAM12 NAM13
12 A6 A6 AS AS AS AS AS A6 A6 AS A6 AS A6
PARAMETERS :
TY= -1 -+ request for only current output
-2-+ request for only voltage output
-3 -+ request for both voltage and current output
-4 -+ request for power and energy output
-5 -+ request to calculate voltage differences between a pair of node names,
irrespective whether or not these two nodes are actually connected
via a branch
XII The OUtput specification carda - 3
1234567890123456789012345678901234567890 ••••
-2BRCH1 BRCH2
BUS1 BUS4 BU9
-3BRCH5
BLAJIK CARD TERMlll'ATINO OUTPUT REOUEST
1234567890123456789012345678901234567890 ••••
-101 F3
1
The printed heading for branch-variable output consist of a pair of node names,
one above the other; This ordering (upper to lower) indicates the polarity of the
output. Suppose that node "u" represent the upper node, and "1" the lower node
of the pair, then:
a) The branch voltage output is v.,(t) - v.(t)- v,et)
b) The branch current output is i.,(t)
For non-switch elements, power and energy output represent the consumption (loss
or storage) of the branch and the net flow into the branch from the time t - 0 up
to the time in question.
For switches, the power and energy flow through the switch:
c) The switch power output is p.,(t)-p.(t)-P,(t)
d) The switch energy output is np.,(~)d(~)
Plotting creates no special problem, unless output for parallel branches should
be requested. Nevertheless, only· the first current (energy) output of the 2
parallel branches/switches is accessible to the user. As a practical restriction
this limitation is not serious. One can always insert a near-zero resistance
branch. thereby eliminating any parallel connection. Another method is to alter
the node name sequence when specifying the branch/switch.
,
For example, should the power pet) and energy E(l), in addition to the branch
current and voltage. be desired, the configuration shown below could be used.
Resistance R2 is chosen to be "small" according with the rule concerning sys-
tem-dependent minimum values (see Section IV-A). Current output (a i-punch in
column BO) is requested on the branch card for resistance R z• Resistance R, can
be chosen very large. and branch voltage output is to be requested for it (a 2-punch
in column BO). The nonlinear element has a 4-punch in column Bo, to give its power
and energy consumption.
XII The OUtput specification cards - 4
In general, there are five possible. groupings of variables for EMTP printed
output of the time-step loop. In order of appearance, these are:
1) voltages (both node and branch)
2) branch/switch currents.
3) S.M. variables.
4) TACS variables.
5) U.M. variables
COl..... heading. for tile 20 DIl'P output variabl •• follow. The. . are cliyl _ _ tile 5 _albl. el. . . . . . . follow.
Pir.t 5 output variable. are electric-network voltage differencea lupper voltage .inu. lower voltage):
Next 6 output variabl. . are branch current. (flowing f...,. tile uppal' node to tile lower node):
Pinal 9 outpu·t yariabl •• pertain to Type-19 [Link]. COII(>Oft8I\ta I _ a are. generated. internally):
Step Tt.e BUS-At BUs-al BUS-C1 aUS-III BUS-IIO BUS-AI aUS-Bl BUS-C1 BUS-Ill BUS-MO
aus-AO BUS-eo BUS-CO TERRA
o 0.0 1.56413 -.30745 -1.25677 1.0 1.0 1.38494 -.95793 -.42701 0.0 0.0
1.01 1.00124132 1.0 .93787 1.386 -.95877 -.42721 -2.826 0.0 0.0
1 .001 1.25370608 .317284401 -1.5709433 1.00000302 1.0000025 1.40049668 -.50888659 -.89163009 .012094107 .010000262
1.00999974 .997905631 1.0 .93787 1.40049668 -.50888659 -.89163009 -2.8259503 .85956£-4 -.00481942
2 .002 .763603075 .891559332 -1.6551247 1.00000988 1.0000075 1.22097729 .010653511 -1.2316108 .015338089 .010001714
1.00999829 .994660197 1.0 .93787 1.22091729 .010653511. -1.2316108 -2.8258183 .309395£-3 -.0092568
3 .003 .167906931 1.34760378 -1.5156333 1.00001841 1.0000125 .870655506 .528248848 -1.3989244 .018762&45 .010005857
1.00999414 .9912314911 1.0.93787 .870655506 .528248848 -1. 3989244 -2.8248425 .001999525 -.01265851
4 .004 -.45063432 1.60600319 -1.1551614 1.00002854 1.00001751 .399835869 .970563338 -1.3703792 .021776117 .010014326
1.00998567 .988209557 1.0 .93787 .399835869 .970563338 -1.3703792 -2.8235957 .004025981 -.01505822
5 .005 -1.0090049 1.64759793 -.6388854 1.00003997 1.00002252 -.12650205 1.27567094 -1.1491889 .023944838 .010028569
1.00997143 .986026593 1.0 .93787 -.12650205 1.27567094 -1.1491889 -2.8218048 .006841813 -.01548113
XIII. TYPE-1 SOURCE IEFINITIONS: EACH TIME STEP, I VAlliE PER SOURCE
Section VII-A explained that 'lJ'Pe-1 sources are empirically defined by the
user, and can [Link] as many as the user wants. Actually, such sources can
first be defined empirically this way, and then possibly modified analytically
by user-supplied FCRTRAN of SlBROUTINE AN.1>.LYT. First, consider the empirical
definition (the next two paragraphs) •
'lYPe-l sources of Section VII-A are empirically defined, with the user
obliged at each time step to supply one source value (a nunber) for each source.
SUch nunbers are read as 10E8.0 information, with the data of a new time step
always beginning on a new card as shown. USe as many cards as necessary (11-20
Type-1 sources will require two such cards per time step, 21-30 will require 3,
etc.) •
C 1 2 3
C 3456781901234561789012341567890121
C 1 1 1 1 (one nunber per
ES.0 1 E8.0 1 E8.0 1 E8.0 1 Etc. 'JYPe-1 source, in
C 1 1 1 I ••••• order of sources)
C 1st 2nd 3rd 4th
Within each time step, order of the source values is critical. It is the user's
responsibility to see that order of these source values corresponds to input
order of the 'JYPe-l sources. Remember, relative order is the only way the
program can associate nunerical values with sources. If there is a time beyond
which all source functions are identically zero, such input cards can be
terminated by a 9999-card (keyed in columns 5-8). For sample usage, refer to
BENClfv1ARK OC-6 and OC-42.
Rule 1 : Variables are available for plotting only if they have been previously
requested for output as per Section XII-A.
Rule 2 Any number of plots can be made from any one solved data case. Up
to four curves per plot are pennitted. Only ~urves of the. same type
(among the five different classes: node voltage, branch voltage,
branch current, branch power, branch energy) can generally be plotted
on the same graph.
Rule 3 Two graphing modes are available for batch-mode plotting, as the
user is assembling his card deck of plot [Link]:
a) A graph just on the Calcomp pen-and-ink plotter. '!his will
be referred to hereafter as the ttCALOOMP PLOT" mode of
operation, after the special reques.t card bearing this
text. See Section Xlv-B-9 •
b) A graph just on the line printer. 1his will
be referred to hereafter as the "PRINTER PLOT" mode of
operation, after the. special request card bearing this
text.
'ftle user is free to switch back and forth between these two modes, during
the course of his plot requests (see Section Xlv·-B-9 ). "CAI,OOMP PLOT"
is of course the most accurate and the nicest, \¥hile ''PRTh'TER PLOT" is
generally the least demandi~ of computer job time (not to [Link] the
much faster actual plot time).
Rule 4 Branch or switch current, power, or energy plots for two or more elem~~ts
which are connected in parallel are not possible at the present time. As
plot branches are identified only by terminal node-pair names, the
program will always pick the first of the two or more qualifying
[Link] which it finds in the output vector. Refer to Section XII-A
for a remedy, should this restriction bother the user.
page 14A-2
Rule 5 Table space for plotting is limited by program dimensioning (see "VARDIM",
Sect. I-G). List 13 (LSIZ13) provides working space for all program
versions. The "ROOT20" [Link] of card 4 (Sect. I-G-2) has influence
only if raw plot data points are stored in virtual memory (if LUNIT4 < 0 ).
Eule 6: !.there are 13 different types of cards which may be used in requesting
batch-mode graphs from the D!TP; the plot cards as a group or class
of data will generally consist of a controlled mixture of these types:
Hl. card for the directing "CAICCMP PLCYI'" output. '!he user
can choose among "s:REEN PLOT" I "PEN PLOT" I and the
canbination of both of these, which is "OCREEN PEN".
11. card for changing the pens that are used to draw each
curve and the grid of a "[Link] PLOT". It is the
"PEN CHOICE" request that redefines such choices.
12. Unused.
Of the. above card types, only the plot specification card of number 3
iD actue.:l.l.l [Link] to produce a plot; there will be one graph for
each such card. A detailed description of the format and precise
function of all of these cards will be found in Section XIV-B, under
the numbers which are used above.
Rule 7 ~e one to four curves which can appear on the same graph are identified
by the following symbols and node names:
Wle of apec1al
4 0 X 1~ -..,8 " -72 "BlIA1H5" request.
*
IIIt8reecUOIl of 2
or IIIOre <:U"eB
. .. .-.. ~1 .~ 'r .:
In the upper right- hand corner of every plot, there will be a legend
which shows the symbol, the curve number, and a sample line drawn by
the pen - for each curve. An illustration for a case with three
curves follows:
Rule 9 The user has control over whether all plots are to be positioned end-to-
end horizontally (down the length of the graph paper), or are also
to be lined up vertically as well (as [Link] by the paper width).
For example, consider the following contrasting situations:
00 • • • • • • • • • • • • • 0 • • • 0 • • • • • • • • 0 • • • • • •
•••••••••••••••• 0 • • • • • • • 00
Fig. 2. Plots
positioned
vertically
as well as
horizontally.
fMl Plot
#3 Etc..
~
0·0 •••••••••••••••••••••••
Recall that default values exist for these, assuming that they are not
re-defined by the. user. In June of 1977, CDC translations were using
10., 1.0, and 8.0 inches for these, respectively. Using these
just-stated values would give the horizontal positioning of Fig. 1 above,
regardless of the actual width (height) of the plot paper. On the other
hand, changing "SZPLTII to 24.0 inches would result in the positioning
of two plots vertically as shown in Fig. 2 above ---- again regardless of
the actual width of the plot paper. Of course if the actual paper width
is less than "SZPLT", the pen will attempt to move off of the paper
(not a very satisfactory situation). It is the user's responsibil1 ty to
see that the paper is at least as wide as the "SZPLT" value which is
being used, then.
Page 14B-1
NoCA.t~~"~II\.-:".:~,
~'?,',' ... ~ .........•....
..~.~ ... ,
This is the only plot card type actually required in order to produce a
graph; there will be one graph produced on the Calcomp and/or line printer
for each such plot card. !lhe card format is as follows (see following page for
diagram):
r 1d-
voH:'S~
r V(ltto.~
2".1
,. .
£X"MPlE:
I'f"l.·~i. oa'\t>.o-o .SOt).SO 'l\Q.~e ~~\l~ fIve ,~. tY(t~ ,~~, \ffL" ~t~ 9~~ u\\11
\9\{2.()%.~\:·~~.~ 1\\ 1\1. ~\ ~2 lU.\tQ..\?~ ,-
Cols. 5-7 1he desired horizontal scale "HPI" i:a time units
(whatever they may be, from the col. 4 request)
per i:ach.
For example, if the user punches "3.0" in column~
5-7, and "4" in column 4, then he will get a
time axiS with scaling 3.0 msec/i:ach •
A blank or zero field has special significance,
as a request for extended floating-point precision
for plot-card input fields (see Section XIV-B-1).
Cklls. 8-11 The beginning time "EtlIN" where the time axis
will start, in units of whatever the user has
selected by his column-4 punch.
Cklls. 12-15 1he final time ''[Link]'' where the time axis
will end, in units of Whatever the user has
selected by his column-4 punch.
1he curves will be plotted from the left graph
limi t "HMIN" to the rig.'lt graph limit "HMAX"
only; these limits themselves will generally
lie somewhere in the study time-range of zero
to "~"o
Page 148-4
Cols. 25-30 Network node names are read from the four AfJ
fields which are contained in the columns 25-48.
31-36 'lhese identify the curves to be plotted, as
37-42 follows:
43-48 i) For node-voltage plots, the name or names
of the nodes in question are to be punched.
Any of the four name-fields can be left
blank, if not needed.
NCRV ----- Leave blank if all curves are to be plotted on the same
graph.
A nonzero integer between 1 and 4 will be taken to
mean the number of curves on the same graph. Such usage
is rare.
BUS1, BOS2 ------ node-pair names for the first branch or switch which
is to have its variable plotted on the graph.
BOS', BJS4}
BOS5, BUS6 --- Similar meanings for the 2nd, 3rd, and 4th branches
mS7, BUSS or switches.
,
If anyone of the four node-pair identifications contains two blank words
(12 blank characters), the request is simply ignored.
:
... j ..·:"HtJ. ··· j
I-II 1N _ .. I ..
.•. ~'i
I
HM.A;V
.
•
~~
,.J ..•.. : . .
. ,.. [Link] ::
.'
.. i.· ..
t i ;
E" . 10:' I'
1ft .. ... ~ ..•
.. E 1'':'' 10 .
4...... . .\:J • .
Exception: For a situation where the user desires to use both the "BRANCH"
option of Point 4 and also the option just described, it is the
present extended-precision card which is to be deferred:
1. Plot specification card with blank cols. 5-7, and
"BRANCH" punched in columns 25-}o.
2. ~en the branch-variable name card of Point 4.
3. 1nen (finally) the extended-precision card immediately above.
'!be bottom margin and vertical-axis height of a Calcomp plot are installation
dependent, t~ough typically set to default values of 1.0 inch and 8.0 inches,
respectively. Either or both of these parameters can be changed by the user,
as per a special request card having the following fomat:
~",!- .. ,""t!~I~·c·t;a. 2 :.~=,=, ~:::fI:::!=::~;;;:::n:::i 1X:~=~Ii::~
'"a..>-
t-
-z
Z
....,
IJ)
Q)
4:
.0..
.n
.sp"ial
~~e,~
';/0 d
~ ..
~E.l6tn
~ !E-4.0 £4.0
Cols. 8-11 ------ "BEGIN", the new lower margin in inches, read
using FA.O format.
Cola. 12-15 "SPAN", the new graph height (vertical axis span) in
inches, read using E4.0 format.
All plots requested after input of this card will have this specified bottom
margin and vertical-axis height, unless subsequently changed by another sucr~
card at a later stage of the plot-data input cards.
The spacing between successive Calcomp plots is initially set by the program
at the start of each new data case to an installation-dependent value of ''KSEPII
inches (an integer; usually equal to 2 inches). att such graph separation
can be altered by the user at any stage of the plotting, by means of a card
having the following format:
1 ....... ~RGIN
•
Page 148-8
Should the tolerance field "EPS" be left blank or punched with a. value
of 0.0001 (inches) or less, the EMTP sets the tolerance ~ identically
to zero, and no smoothing at all occurs; the associated smoothing operations
are completely bypassed, and all raw data pOints are plotted on the Calcomp.
preceding any plot card, the user can change the mode of batch-mode
graphing between the alternatives of character plotting (with WNIT6 line
printer output) and vector-graFt'lic (calCoolp) plotting. Choose one of the two
following declarations:
C 123
C 13456789~123456789~1234567890
C 1---------------------
PRINTER PLOI'
CALCCMP PLOI'
page l4B-9
Initialization at the beginning of each new data case will set the program to
"CALCCMP PLOT" mode, so if this is 'what the user wants, he need not declare
anything. But the user wanting a character (line printer) plot must always use
a "PRINTER PLOT" declaration before the first such plot card. Within the
vector-graphic (calComp) alternative, there may be additional choices, too (see
Point 113 immediately below). .
C 1 2 3 4 5 6 7
C 345678913123456789012345678901234567890123456789012345678901234567890123456
C
Request for character (line printer) plotting.
-1--------------------
I PRINTER PLOT
Request for "ca1Comp" (vector-graphic) plotting. 1 CAlCCMP PLOT
C 1 2 3 4 567
C 345678901234567890123456789'111234567890123456789012345678901234567890123456
C - 1----------
Choose the screen as target for CalCanp output. 1 SCREEN PLOT { If a vec
Cancel screen as target for Calcanp (now paper). I PEN PLOT { If a vec
Oloose both screen and paper for ca1canp output. I SCREEN PEN { If a vec
Point 11: Card for changing the pens and the grid status
Different curves of any plot may be drawn with different pens, if desired.
Common usage is~to either vary the boldness. of black lines, or else to plot in
color (with each curve being a different color). Such a choice of pens can be
changed at will by the user ---- from plot to plot, if desired.
The option of a pen-drawn grid for plots is also available. Common usage is
for plotting on unruled (blank, pure-white) paper. Grid lines are drawn. every
inch, both horizontally and vertically, as extensions to the "tic" marks of the
axes.
The requested pen choices and grid specification will remain in effect
throughout the data case in question, until altered Qy another such request card.
Before the first appearance of such a card within any data case, the program
automatically provides the following initialization:
ICPGRlD = 0 ( KPEN( I) = 1 for all I )
That is, there will be no grid,andall curves will be drawn with pen number 1,
unless an explicit request to the contrary follows.
It is not uncommon for the user to desire extensions to the basic plot
capability of the Point 3 format. For example, he may want:
- - the plotting of more than 4 curves on the same graph, or
- - the plotting of different variable types (e.g., node voltages
and branch currents) on the same graph, or
the addition of a vertical offset for one or more curves of
a .graph, or
suppression of the vertical-axis labeling (leaving just the
vertical line with tic marks).
All of these operations are possible,Qy careful use of the powerful (but tricky)
"SUPERIMPOSE" card.
I ' ..
:SUPf..R1MP.O~E,
1 1 ~
:':18 :
I , '
18
;
'MPL4 MPLS:
With this underlying information now in hand, let us consider several cases of
novel (but not uncarmon) usage:
Usage 1: Suppose that the user wants to plot more than four EMTP
variables on the same graph. He simply places these on as
many different plot specification cards ~Point 3) as he
may require or desire, and then these are preceded by the
appropriate "SUPERIMPOSE" card.
As an example of this usage, consider the required data cards
for seven node voltages on the same graph:
SUPERIMPOSE 3
..... I. D.O aD. -20. 2 •• NOOEI NOOE5 "00E9
t .... a. 0.0 al. -20. 20.NODE3 NODE"
I .... I . 0.1 ao. -20. [Link] BLUE
Usage 2 Suppose. that the user would like to mix different plot-variable
classes (e.g., node voltages and branch currents) on the same
graph. Separate plot specification cards (POint 3) would be
constructed for variables within anyone class. These would
then be preceded by the appropriate "SUPERBD?OSE" card.
As an example of this usage, consider the data cards which
will plot two node voltages and one branch current on the S8!Ile
graph:
SUPERIMPOSE 2
I~" 8. 0.0 aD. -20. 20.NOOE3 NOOE~
19 .. a. D.a aD. - ... 0 ... OBUSK BUS"
page 148-13
Usage 3 Suppose that the user wants to compare two or more curves
which are similar. If such curves were plotted to the same
scale on the same plot, it would be difficult to distinguish
one from the other. One possible remedy is to offset one
or more of the curves [Link]. In the case of three curves,
there would be3 separate plot specification cards (POint 3);
the vertical. offset for each is produced by adding the
appropriate constant to both "VMIN" and "VMAX" of columns
16-24. As usual., such plot specification cards wo~d be
preceded by the appropriate "SUPERIMPOSE" card, in this case
having a "3" punched in column 32.
SUPERIMPOSE 3 I
I~ a. 1.0 aD. -20. [Link]
I~' a. 1.0 ao. -25. 15.MODE2
I" I. 1.0 ao. -30. 10.NOOE3
SUPERIMPOSE I I
.,' a. I.D aD. -20. [Link] NOOE9
As for time-axis scaling, it is assumed that the user has enough sense to
keep this the same for all superimposed plots, if this is what he really wants
(and it normally is). There are exceptions, however, such as comparing different
segments of the same curve. If the time-axis scaling is varied wi thin a group
of superimposed plots, the user is simply advised to be careful, and to remember
what he did, since only the time axis of the first plot-specification card will
be drawn on the graph.
I -
i : ;
I
;
';'(!) I liN !,,-I
I - , Z .. ' CATH !Itt
I , I 3 + Lon'J •
+- .. _.i __ ' .. _~ ...•.
--+ .. ~
.--. -~ . --.-'_.- .
! -~---- - ,-. '
~ _)~-.------..:.---=..-----.:.----~:...-/ I . ;-
- - I
, I
.,
...!.'
. , ,,--
-, ,-
/ -- -- -. ._- '. -. . .
I
. , -
I
••• "
: p_
.
••••
.
:. -!.
)
- I
,
. ' . .
' ___ ~ __~ __. ___ ~ ..__ .J..____ ~_~_j~, __ .. ~_
_______ .. _. __
• • • 0 • ~ • • 8 0 0 0 0 ~ ~ ~ 0 0 0 0 • • 0 •
page 148-15
Point 15: Card for plotting one EMTP var iabl e v s. another
Historically, all EMTP plotting was done with one EMTP variable
on the vertical axis (ordinate), and with time on the horizontal axis
abscissa). But, subject to some restrictions, and with use of the
special request "X-Y PLOT", the user is able to plot one EMTP
variable as a function of the other, as first described in Ref. 8,
Vol. VIII, 27 January 1979, pages PROV-9 onward. The following
description is reproduced from that presentation.
Rules for the::.ew "X-Y PLOT" feature are really quite simple, su:ccarized
by the following:
Rule 1 So~e of the old ~ batch-mode plotting ca--ds arp. ~onoredt and some
ar~ not. We bave:
a) The ca--:ls which are honored i:[Link] the case t1 tle and graph
subbcadin; cardsTsee· !iule 6, ?~1.:lts 1 and 2 on page 4.0 a
of the User's Manual). ':he same goes for the I!?~ CSO!G:E"
card of :Foint 1 1, and the pr...::lt ~ee.d cards of Point 10 •
Fi=.allj, the ''[Link]'FI'' reques,,; of Point 4 is ace ept ed if :n
space is required for spec1f1eati~n of the variables.
b) Other special requests or teatu:es in the list are ~ honored,
so should not be u.-; ed by 1:he US er.
Page 14B-16
Rule 2: Three special, new ca:t'ds sigDal the requ~5t tor "7.-Y PLOT" usage:
Card , :
,
E&.d - Eg.O E8.0 ES.O E:2 .. Q.
I
can only be accessed via this .. .. ~ . .. ....!... ~ .. ... .. • • o. .... ..... .. .. .. . .. ....
EMTP data classification,
using the special request card
(see right) which switches
t P-.. ~ f~ ~... r:: i ... I'!oI' ..
" .. ... ..... .. . ..
o. • • • :] "e"
. .. ....
.. .. .. .. ...
from plotting to Fourier series . ~~ ~. ( r: ~'I~
( 3-12) special request word "FOURIER ON"
(25-32) Number of harmonics which are to be printed, NFOUR.
If left blank, 30 will be printed (default value).
For KPL equidistant points in the fundamental period,
only KPL/2 harmonics are computed. If the user
punches a larger NFOUR, it will automatically be
reduced to this maximum.
Next come "plot cards", each of If'lJ
1- " 1"'1· III:.
I'!
.'.
I~
11I1;:
~1 .
t!:! IlU!I :::I!
·e .~~ · .. ... ...... ......... ..
• ...¥
:.II: &::ill :1: JI
I ~ i, ,.
which identifies one EMTP variable I" it II'! III
"
"'1:1 "'\111:
.. . ..~ ~ . · . .. . .. . -I- •
~
.i ·l '1'" ..
I.!., ... iii .. iii
and a time window over which the
Fourier analysis is to be performed.
Columns 16-24 and 31-80 can be ~~ . '~ ~. · .. .. . .... . "" ~I~
"
~~
COLUMN HEADINGS FOR THE 1 EMTP OUTPUT VARIABLES fOLLOW. THESE ARE ORDERED ACCORDING TO ...
c POSSI~LE
FIRST
EMTP OUTPUT-VARIABLE CLASSES, AS FOLLOWS ••••
1 OUTPUT VARIABLES ARE £LECTRIC-~lETwORK NODE VOLTAGES (WITH R£SPECT TO LOC~L GROUND)'
NEXT 0 OUTPUT VARIABLES ARE BRANCH VOLTAGES (VOLTAGE OF UPPER NODE ~INUS VOLTAGE OF LOwE~
~EXT 0 OUTPUT VARIABLES ARE BRANCH CURRENTS (FLO~ING FROM THE UPPER EKTP NODE TO THE LO~ER
fiEXT 0 OUTPUT VA~IABLES PERTAIN ~O DYNAMIC SYNCHRONOUS MACHINES, WITH NAMES G£NgRAT£D INTE
FINAL 0 OUTPUT VARIABLES BELONG TO 'TACS' (NOTE INTERNALLY-ADD£O UPPER NAM£ OF PAIR).
BRANCH POWER CONSUMPTION (POWER FLOW, IF A SWITCH) IS TR£ATED LIKE A BRANCH VOLTAGE FOR THIS C
BRANCH £NERGY CONSUMPTION (~NERGY FLOW, 1F A SWITCH) IS TREAT£D LIKE A BRANCH CURRENT FOR THIS G
(
.*
FOURIER SERI£S STARTED. NrOUR.
PLOT CARD, 0.100£+01 0.100E+01
1~
0.800E+01
1 fOURIER ON
1 143 1. 1.0 8.0 VALUE
10
BEGIN FOURIER SERIES CALCULATION USING 8 EQUIDISTANT POINTS. BEGINNING TWO POINTS.
0.3400000000£+01 0.9495292000£+00 ENDING TWO POINTS = -0.4000000000£+00 -[Link]
(
COEFrICIENTS OF RESULTANT FOURIER SERIES, WITH -CO~PL£X AMPLITUDE- BEING THE SQUAR£ ROOT
or ~H£ SUM OF THE SQUARES or THE TWO PRECEDING £NTRIES. THE FINAL COLUMN APPLIES TO THIS AMPL:
, HARMONIC COSINE SINE COMPL£X FRACTION or
\.
NUMBER COEFFICIENT COErrICIENT AMPLITUDE FUNDAM£NTAI.
o 0.9999952500£-01 0.0000000000£+00 0.9999952500£-01 0.08574891
( 1 0.9999990764~+00 0.6000008972£+00 0.1166190049£+01 1.00000000
2 0.9000000000£+00 0.5000010500E+00 0.1029563524£+01 0.99284369
1 0.8000009236E+00 0.4000008972£+00 0.9944194194E+00 0.76696626
( 4 0.6000004750E+00 0.0000000000£+00 ~,60000047S0E+00 0.51449631
3LANK CARD TERMINATING PLOT SPEC. CARDS, IBLANK CARD ENDING PLOT CARD!,
(
I'
page 148-20
Point 17: Card to turn off Fourier Analysis, and return to plotting.
If the user wants to return to conventional
EMTP plotting after the use of Point 16 Ilmm~I1ID~fJ1
=================================================================
BACKGROUND AND DOCUMENTATION OF EMTP FOURIER SERIES COMPUTATION
=================================================================
The Point 16 and Point 17 features were implemented very
hurriedly by WSM on September 29th and 30th, 1980, just as this manual
was going to press. It was a rush job, in response to Bob Hasibar's
immediate need. Hermann had written a little self-contained Fourier
analysis program many years ago, and it is his coding which formed the
basis of the new EMTP feature. The first three pages of Hermann's
five-page writeup dated 30 October 1972 are reproduced below as added
documentation of the formulas used:
page 148-21
_~x
""
"'
'-'he program will compute the values a o ' ••• am (cosine-coefficiel,ts) and b '
o
b. (~ine-co~ff1c1ents) of Eq. (1), as well as the magnitudes Co, ••• C ' with m
..
-._. $
' ' ~
°1 = ~ a~ + b~ ~
n
If n is even, then m = 2'
n-1 :J!.4 0'\,:.:
m ""
-r- .'.~ 7-";·
... :" -
series ..
-~~.",:~
m
p(x) • 2:
i-o
Q..
~
-coa(ix) +
•.•.• -!.
passes through the n g1 ven pOints ("exactly," except tor round-off errore) ADd--' -.-'.;~
provides a smooth interpolation between points with the least possible nuaber
~"" of harmonics.
Perm of I8ta Deck Page 14B-22
1'7'
'. , . : ; : eo:. ~ : :~;-~:.~. 0:
.. . ,"
~ lx) :- e.i t th:.. .. ~.q cr.:.'b' .. ~ ~ ~)k +~ "t~lt)( + G ~ ~tl\l" (; ~ 'M....[Link] .. (; 't~lifal.(;,%~cM.'f(..
was used to generate 8, 9 and 20 values at equidistant points to define one
period of the periodic function. '!'hese pOints were used as input to generate
the coeffiCients, which agreed wi til those at tile original tWlction as shown on
p. 3.
Example B: The curve was taken from a study described in E. J. Dolan, D. A. Gillies,
•
and E. W. Kimbark, "Ferroresonance in a Transfonner Switched with an EFT Line,"
IEEE Trans. on Power Apparatus and Systems, Vol. PAS-91, May/June 1972, pp. 1273-1280.
:.$:,. .,
FOURIER A.. ALYSIS ~~b..~\e A.: ~~~ \l.\~ .
. " t . ~ ,
a EQUIOISTANT POI~TS
RECO~O O~
3.3999~99
ORDINlTES IN
.8~SS282 -[Link] ••• ao -.It3 .. JI44 .'. Z.I'.": "~ ;~..•"'SZ"
. ~£
-.3999999 -1.5&5&85& -- .. -:.: .---- .... "-- - -. "
-~-
'.;';:':';
.
. " , ' .....
"
"0.':'> ':! .
'
FOURIER :OEFFICIENTS
_.t-- HARMONIC ·COS-COEFF.
:. o .tOtIOO
! .'
I 1.080000
2 .gOOIOO
3 .800100
i It • 0000
.. L ... J .i
I
...._{ \;\\U..\~
, . Page l4B-23
• -0 -FOURIEit A~AL 'SIS
~ --:
J '
FOURIER COEFFICIENTS
:.11- ...
• HARMONIC COS-COE". SIN-:OEFF.
a •• oaOI8 [Link]
I
1'-
' 1 •• 000100 .&100.0
or'
· '- 2 .90DIOO .;00000
~- .., 3 .80~0'0 .... 0000
4 .&00000 .80'000
! •
FOURIER A~ALYStS .. .1.
t
RECORD 01:' ORDINATES IN 211 [QUIlISTANT POINTS
3.3999999 3.9985&50 2.1 335581 -.Z222683 -.9123345 -.ooooor'
.6979&39 .1.32515 -.8817&09 -.9534801 -.20'0001 .•• 3796~
-.456 .. 355 -1.094.824 -.90;9809 -.1~99999 -.6 .. 9 .. 687 -1.45Q9024 ..J
-1.2243 .. 22 .871.544
-
- .
~
I
FOURIER :OEFFI:tENTS I
HARMONIC COc)-COEFF. SI ~.::>:: FF • M4~NITUOE
0 .100000 0.0111000 • 100000
,. ~ o.
I 1.000000 .500000 1.166'90
.oJ __
. -, Z .900aoo .;00000 1.0295&3
I . 3 .800000 .1t10000 .894427
-~~~.
•
_.'
It
5
.6001nO .800000 1.000000 :i
...--.. .8001'0 .000000 .000000
J & .0080.0 •• 10000 .OeOO08 -. ..~i
J, 7 .000800 -.000000 .000600
.--- :- •• - -- .-. 0::
..
'---',
-'.-
....
~':
;
..
. ~' .... ~ __ ; ~~ _1_ -f '.~~:, ~
. 1 .. ;---+-.,.. r
-~- ;.- .'-
A blank card is used to signal the end of all data cards that
are associated with plotting. This then also completes the data for
the data case be i ng set up.
page 15-1
15 )
Statistical distribution of peak voltage for branch "GENe " to "Cl "
Interval vol tage vol tage in Frequency ClInulative
nunber in per unit physical units (densi ty) frequency
4 0. 2000000 0. 60600000E+0 2 0 o
5 0.2500000 0. 75750000E+02 2 2
21 ) - - - . - - - -
SlMMARY SlMMARY SlMMARY Stn1ARY Stn1ARY Stn1ARY Stn1ARY St.r-1M
21 ) - - - -
The following is a distribution of peak overvo1tages among all output nodes
'!his distribution is for the maximun of the peaks at all output nodes with
Interval voltage voltage in Frequency CUmulative
nunber in per unit physical units (density) frequency
36 1. 80000013 13. 54540eJ00E+03 0 0
37 1.85000013 13. 56055eJ0eJE+03 2 2
38 1.900001313 0. 575700eJeJE+03 1 3
Page 15A-1
Here the colunn heading "Grouped data" should more .pro};:erly read
"Compartmentalized data," except that this more pro};:er name is too long. So
the name was shortened as shown. '!he formula for the sample mean involves
division by the nunber of samples !<NT, whereas the sample variance involves
division by one less than this. See any statistics text book for a
justification of these formulas, which are merely stated here for convenient
reference:
KN1"
-x - ~
-2
CO -
J: 1
'!he EMTP itself only .produces line .printer tabulations of the statistical
distribution. But the user of a flexible canputer work station can easily
convert such output to vector-graphic plots using another window. For Apollo
usage, see .program "STATPLOT" in Section I-F-1-g.
Data cards to produce the statistical tabulations just described can take
one of two general forms, de};:ending up:m whether control parameters are being
changed or variables for tabulation are being named. '!hese two a1 ternate data
structures are explained in the following two subsections.
C 1 2 3 4
C 34567890123456789012341567890121345678901123456781
C I I I 1
STATISTICS 1l\'m I 18 1 FS.0 I FS.0 1
C 1 1 1 1
C MCDTAB AINCR XMAXMX
MODTAB (columns 25-32) controls the type of output tables that will be
produced. "1" will produce only single, individual tabulations, "2" will
produce only the grouped (Sl.Jo1MAAY) tabulation, and "3" will produce both of
these types of tabulations. '!here will be no grouped (St.J't'IMARY) tabulation for
a group consisting of a single variable, however, since this would be identical
to the individual tabulation for that variable. Hence only use "2" for a
group of two or more variables.
AINCR (columns 33-40) is the per unit compartment size for statistical
tabulations. First defined by the STARTUP file (see Section I-E-2, card 2,
variable 10), that positive value can be altered for any tabulation. Or, by
aJ::Pending a minus sign, the user can request statistical tabulations using a
fixed nunber of comparments. If AINCR is defined to equal a negative integer
-NCCMP, exactly N:CMP compartments will be used in each statistical
tabulation. unless the first compartment is filled, there will be one more row
in the table, however. '!his is because the last zero compartment preceding the
first nonzero compartment also is shown, for perspective.
XMA»1X (columns 41-48) is a per unit value that is expected to bound all
variables that are to be tabulated statistically. First defined by the STARTUP
file (see Section I-E-2, card 2, variable 9), this bound can be redefined if
needed (unlikely) • Of the three variables on the card, XMAXMX is the least
likely to be used. Most often, columns 41-48 will be left blank or keyed with
a zero (meaning no change) •
C 1 2 3 4 5 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890123456
C
MCDTAB, AINCR, XMAXMX = 3 -10.000
1-----------------
10.000 ISTATISTICS 1l\'m
C 1 2 3
c \34567890123415678901123456\78901213456781
ell
12\ E12.0 \ A6
\
\ A6
I
I A6
I
\ A6
I
\
.... Etc. throLgh
the BlE10 field
c \- \ \- \ 1 1 of cols. 69-74.
c 1 EASE 1 BlE1 1B1E2 1 BlE3 1 BlE4 1
IBROPT (cols. 1-2) is the type code for all variables of this declaration
(all variables named on the card) • IlJe toa lack of space, the name (IBROPI')
could not sho\rttl in the format .imnediatelyabove. USe type code "0" for node
voltages, "_1" for branch voltages, "-2" for branch currents, "_3" for
branch or swdtch .powers, and finally, "_4" for branch or switch energies.
BASE (cols. 3-14) is the base variable value that is to be used for the
per unit statistical tabulation of all variables on this data card. '!he units
should agree with those of all variables on the request card, of course. If
AINCR is positive, a blank or zero value for Bl>.SE will be given special
default values. For voltages (IBROPT equal to either zero or -1), the default
value will equal the voltage of the user's first '!YPe-14 source card (see
Section XIII, data field IiMPLITUDE of colunns 11-20). 01 the other hand, the
defaul t value of unity is assumed for currents (IBROPT = -2), powers (IBROPI' = -
3), and energies (IBROPT = -4). '!his is all for positive AINCR. However, if
AINCR is negative (indicating the desire for a fixed nunber of canpartments) ,
[Link] cols. 3-14 will be ignored, and the program performs its O\rttl calculation
as follows:
BASEV' = YMIN ! Assurne that minimun can be used for per unit base
IF ( YMIN .EQ. 0.0 .OR.! If 0 min, or if max to min ratio is too
I YMAX / YMIN .Gl'. 3.0) Bl>.SEV' = YMAX ! big, use max for base
BlEI (cols. 15-20) throLgh BlEl0 (cols. 69-74) are devoted to the
specification of node names that identify the variables to be tabulated
statistically. Each name represents 6-character, altbanuneric information.
Note that the final 6 colunns of the card (cols. 75-80) are never read as a node
name. There are two distinct cases, depending on the value of IBROPI'. First,
if IBROPT = 0, then the variables in question are node voltages, and these are
simply named using one name for each node. Blank data fields are ignored
wi thout caranent in this case. 01 the other hand, if IBROPT is negative, this
is the second case, which is for branch variables. In this case, the names are
taken as ordered pairs: (BlEI, BlE2), (BlE3, BlE4), etc. 'Ihese pairs of
names identify the branch voltages, branch currents, branch/switch powers, or
branch/swi tch energ ies that the user wants to tabulate statistically. My
pair of two blank names will be ignored without cOITITIent.
Page 15B-3
variable groups are defined by the user, who has complete freedom to group
together whatever variables of whatever type he wants provided this does not
exceed the program storage limit of 200 variables for each group. By
definition, a group consists of all variables that the user has defined on the
present single data card plus any imnediately preceding cards with "CCNr."
keyed in colunns 76-S0. The special mark "CClfl'." is an abbreviation for
"continued on the following card," then. MY data card not containing "CCNr."
will terminate a group, and the following request card will begin a new group.
If "CClJT." is not used, a data card and a variable group are synonymous. The
"CClfl'." mark is required only for one of two reasons. Either a single card
does not have adequate space to name all variables, or the user wants to mix
variable types (IBROPI') within the group. For simplicity, it has been assuned
that the base value Bl\SE is the same for all cards defining the group. It is
the user's responsibility to see that this restriction is observed.
C 1 2 3 4 5 6
C 34567S901234567S901234567S901234567S9~1234567S9~1234567S9~1
-1 l~~. SENDA TERMA
-1 SEND: TERMC OOI.D.l\ NEUI'RL
STATISTICS ~~ 1 0.0 ~.~
ASW1~ Bs-l1~ Cs-l1~
STATISTICS m~ 3 -2~. ~."
-3 TERMS Bs-ll
-2 "• SENDB TERMS HOI.D.l\ NEUI'RL
-4 0. TERMS Bs-ll
card 2: Two branch voltages are requested: First bet\oJeen nodes "srnoc"
and "TERMC n, and second bet\oJeen nodes nHOLna." and "NEurRL". The base
voltage for the output tabulations for these two branch voltages is blank, which
means that the AMPLITUDE inputted on the first type-14 sinusoidal voltage
source is to be used as the base voltage. Following the two single, individual
tabulations, there will be the grouped tabulation.
card 4: The statistical tabulation of three node vol tages has been
requested. '!he nodes are named "ASW1~", "BS>l1~" and "C9'l1~". Since no
base voltage was keyed, a default value will be assigned as explained for
card 2. '!here will be no grouped tabulation after the three ind-ividua1
tabulations due to the change of card 3.
Interpretation of the input data confirms the variable type code in words,
and the base value PASE nunerically. Exanples drawn from the solution to
BENCHMARK DC-24 fo11o~:
C 1 2 3 4 5 6 7
C 345678913123456789012345678901234567890123456789012345678901234567890123456
C 1-------------
Statistical output of branch voltage ~.1~~0E+03 1-1 100. GENA Al {
Statistical output of node voltage ~.3030E+03 I ASW10 BSWI0
Statistical output of branch current 0.l0~0E+01 1-2 0. GENB Bl
Statistical output of .branch power 0.1000E+01 1-3 B1 BSWI
Statistical output of branch energy ~.1~00E+01 1-4 0. B1 BSWl
Page l5C-l
Variable switching times (roth closing and opening) for each energization
are normally requested, since this is critical information controlling the
solution. It is variable ISW of the "STATISTICS n or II SYSTEMATIC"
miscellaneous data card (Section II-C-l or II-C-2) that controls such output.
Chly variable (not fixed) switching times are displayed, with the switching time
in seconds following the switch [Link]. As an illustration, consider the fi rst
such output fran the solution to BENCHMARK DC-24:
The heading that precedes the output of each energization looks somewhat
like the heading for the time-step loop output of a single, conventional
simulation. This is because variables are identified in the same way by pairs
of 6-character names. en the other hand, rather than a step number and time on
the left, it is nReference angle" that will be labeled. As an illustration,
consider the energization heading fran the solution to BENCHMARK DC-24:
C 1 2 3 4 5 6 7
C 3456789~123456789~l23456789~1234567890l23456789~123456789~1234567890l23456
C
GENA GEOC
1-------------------
ElIDA Bl
Reference angle AI Cl AHl BEWl
GENS ENDA
Bl Al~
Extrema for each energ ization are automatically provided, and the preceding
heading applies to these, of course. It is the peak of the absolute value that
is actually shown, although a minus sign is appended if the extremum occurred as
a negative number. Below such extrema will be found a parallel display of the
times at which the extrema occurred. As an illustration, consider the first
such output of the solution to BENCHMARK DC-24:
C 1 2 3 4 5 6 7
C 345678901234567890123456789~1234567890123456789~12345678901234567890123456
C -1-----
141.9164096 -72.1873524 -35.0598126 372.1266197 -4
1. 257471517 -1.8597131393
Times of max ima : .002 .13141 .0127 .£l051
.02 .1317
Page l5C-2
SWitch -Al0
4. 458140l3E-0l
- to -ASW10 -
switch closings per colunn
SWitch -B10
1.40277773E-01
- to -8&110 -
switch closings per colunn
Colllllns Coll111ns
S 10 15 20 2S 30 S 10 15 20 2S 30
4 I I
X 1 A •
X 1 • A
X 1 A •
X 1 A •
A* 1 A •
1 * A 1 • A
A • 1 A •
1 A* 1 • A
1 * A 1 A •
1 A* 1 • A
1 A * 1 * A
1 • A 1 A *
1 8. ""00E-03 A • 1 1. """"E-02 * A
1 • A 1 * A
1
1
A
A*
• 1
1
A*
~*
1 A* 1 A
1 A * 1 A*
1 * A 1 A *
1 * A 1
1
• ~
A* * A
X 1 A *
X 1
1
A •
* A
X
X 1 A *
Time (scale = 6.66666667E-04 Sec/line) Time (scale = 1.44337567E-04 Sec/line)
Page 16-1
Interactive EMTP execution means that the program will execute while the
user waits. 'Ibis is to be contrasted with batch-mode execution, wherein
execution will be performed at some later (usually indeterminate) time •.
Interactive EMTP observation means that the user can see what is happening
- during his interactive execution. 'Ibe user certainly should be able to observe
UJNIT6 line pr inter output as it is generated, since this is simple. For
simulations (the most imp::>rtant case of program usage), the user also should be
able to produce graphs of output variables as the simulation progresses. SUch
plots should be capable of automatic advancement as the simulation progresses,
I ike a strip-chart recorder for analog computers. Finally, the user should be
able to examine internal variables of the program --- variables that otherwise
would be inaccessible. All of these capabilities constitute interactive
observation, which is to be contrasted with a canplete lack of all knowledge
during batch-mode execution. Note that interactive program. execution does not
imply interactive observation. It is not uncOlIlllOn for a minicomputer terminal
to be tied up with interactive EMTP execution while the user waits but sees
nothing, since the LUNIT6 output is frequently sent to disk rather than to the
screen.
Interactive EMTP control means that program execution can be modified "on
the f1 Y," while the EMTP is executing. 'Ibis is to be contrasted wi th batch-
mode execution, where changes can only be made before the job sutmittal, or
after the sol ution has been returned. It should be noted that interactive EMTP
execution and observation do not imply interactive control. on the other hand,
one can not conceive of interactive control without interactive execution and
observation.
'Ibese three concepts of interactive EMTP use --- execution, observation,
and control - are combined by the EMTP feature named "SPY" for short. SPY
allows nearly complete observation, and also substantial control, during
interactive EMTP execution. SUch usage is requested at the time program
execution begins (see Section I-C, or 'lNI-A below) •
When some surrmary phrase such as "interactive usage." of the program is
mentioned, what does it mean? Now that observation and control are available
via SPY', interactive execution no longer qualifies as "interactive usage" of the
EMTP. As used today, "interactivity" and "SPY" are EMTP synonyms.
Although in theory most modern canputers can supp::>rt most SPY' functions, it
is the scientific workstations with variable character fonts, scrollable
windows, and graphics that are ideally suited for SPY' usage. Most mainframe
computers either will not allow such operation, or are controlled by
organizations that make such operation so expensive or so inconvenient that it
is the user who will not want to consider it. In between these two extremes,
there are minicomputers that mayor may not be suitable, depending. upon the
p::>litics of those who operate them. MY reader who is unsure about his own
computer system is advised to consult the installation-dependent information of
Section I-F.
Details of SPY' usage follow in the remainder of this section. Where an
illustration is required, Apollo will always be used, since SPY' has been the
most fully developed for such scientific workstations of Section I-F-l.
page l6A-l
Before EMTP execution begins, the FOtential user of SPY should consider his
STARTUP file. Section I-E-2 describes such variable initialization. Of the
more than 100 parameters that are user-definable via this file, perhaps'a third
or more apply to SP'{ , and many must be set as execution beg ins. '!he best
exanple of this is the configuration of the vector-graFhic plotting window. For
most computers, installation-dependent log ic to configure the plot window can
onl y be performed once, at the start of execution. So, make sure SI'AR'I'UP
values are reasonable before execution begins.
For this and al1 other EMTP dialogue involving key words of one type or
another, capital letters (rather than lower-case) are required. O1ce inside
SPY, the user is able to remove this restriction by the "CASE" command if he
wants, but this does not help at the very beginning. It is generally
recommended that the user set his CAPS LOCK key as execution begins.
Chce SP'i execution has begun, input will normally shift from the EMTP
output window to the SPY window. . Apollo provides a good il1ustration, as shown
on the next page. Execution began in the bottom window with the smal1 character
font. '!he initial choice "SPY" was also sent in this window, after which the
top two windows were opened automatical1y by the program. All subsequent
keyboard input is via the SPY window (above and to the left). '!he window to the
right of this has no input pane, and is used solely for vector-grap"lic output of
the "PLor" COll1TIand of SP'i.
SP'i dialogue is initiated by short key words called SPY conrnands. Some 68
different such commands exist, and several of these (MTA, CD, BREAK, and PLor)
can be seen in the SPY window on thefol1owing page. It is the usage of this
special SP'i language that will dominate the remainder of this present chapter of
the Rule Book.
PLOT: TIME O. 8.
PLOT: ROLLV DtNCHMARK OC-4
--- Toggle to "ON" (ROLling vector plot) [Link]
?LOT: SPY
SPY: GO
SPY: LOCK
SPY: PLOT
PLOT: CHOICE
Type-4 entries (node voltages)
GEN TRAN,
Type-8 entries (branch voltages or powers) 0.00
GEN TRAN TRAM TRAN LOADG
Type-9 entries (branch currents or energies) :
TRAN GEN TRAN TRAN LOADG
PLOT: NAME
SEND NODE NAME (END. LAST) ["GEN "]: GEN
SEND NODE NAKE (END. LAST) ( "TRAN ... ] : END
SEND BRANCH VOLTAGE NAMES (END, LAST) [ TRAN , LOADG ] : GEN
SEND BRANCH VOLTAGE NAMES (END, LAST) ( , ] : END
SEND BRANCH CURRENT NAMES (END, LAST) [
SEND BRANCH CURRENT NAMES (END, LAST) [
]
)
:
:
TRAN
END
-[Link]
"0
PLOT: TIME O. 8. Graph NUMber 3 I1-Jun-S7 OS.52.2G DI
\.Q
PLOT: ROLLV NaMes : GEN GEN TRAN TRAN (1)
--- Toggle to "ON" (ROLling vector plot)
PLOT: SPY Y-Min . Y-..ax . dYJinch = -so. 80. 40. .....
0'1
SPY: GO T-Min . T-Max . dT/inch = 8.0 IG. 1. G »I
I
r-J
SPY: LOCI<
SPY:
~T"'CP:,<l 0 . Ell
Reinitialize pointer: NEYVrC, KPTPLT, IND8UF = 51 8 4343
TIMVAL. NFORSP, KPLT, MXYPL = B 19B8 B
5ee 5.e 16.79816244 3.057499669 3.05749967 19.85626211 3.957499669 -.2884e3828 -.288661396 -.563318E-3
6eO 6.0 12.26216725 54.94912105 54.94912987 67.21188829 54.94912105 -.094557817 .1742561973 .1733191918
700 7.0 -1.96663234 54.73987731 54.73987708 52.77324497 54.73981731 .0067690665 .2441152359 .231812,1817
800 8.0 -8.922464 -1.26238835 -1.26238837 -19.1848524 -1.26238835 .2998957397 .3114929427 .9116325599
Reinitialize pointer: NEYVEC. KPTPLT, INDBUF = 51 8 8969
TIMVAL. NFORSP, KPLT, MXYPL = 9 369 9
900 9.9 -14.1962557 -49.9727923 -49.9727922 -63.779948 -49.9721923 .9869213399 -.141225996 -.143249948
1000 19. .6916922079 -59.3361124 -59.3367121 -58.7351101 -59.3367124 -.994491717 -.251191635 -.241459241
HOe 11. .9201629552 -.619571675 -.619571651 .3995993883 -.618571675 -.321194545 -.346896322 -.92424872
-- -- ---- .... --
,.._ ........ "...'" ",.,.,.,..,.. .... ,.. ",,,-,,,..fnnnnn '[Link]: ... .,.,
page l6B-l
XVI-B. Oppor tun i ties for SPY Dialogue: the Keyboard Interrupt
When the interactive EMTP user desires some new observation or control of
the program, he will key one of these carmands. At some point, this keying will
be complete, and the user will want SPY to irrmediately service his request.
Some special signal, called a keyboard interrupt of SPY, or simply a user-keyed
interrupt, will exist for this purp:>se, and will be activated.
For flexiblecomp,lters (e.g., Apollo), the SPY user will not even be aware
that a special keyboard interrupt signal has been sent, since the normal
carriage return key (abbreviated hereafter as <CR» serves this function. But
Ywhatever the signal, once the keyboard interrupt has been sent, how quickly can
or will the EMTP .respond to the user's request? 'lhe answer may depend both upon
Ywhere prog ram execution is located at the time of the request, and also upon the
size of the data case being solved. Barring installation- dependent
improvements, the EMTP only checks for SPY inp,lt at certain prearranged places,
of Ywhich the following are the most important:
1. Each time a new data card is read by SUBROUI'INE CIMIIGE. Since data
cards generally will be read at a rate of several per second, it will seem to
the user that SPY inp,lt is accepted instantaneously during data input.
2. Each time a new lTrPF overlay is entered. Depending upon the overlay,
this mayor may not provide quick response to a user request. Some overlays are
passed through quickly, whereas others may involve substantial computational
effort. Between the end of source cards (UTPF overlay 5) and the beginning of
output variable requests (UTPF overlay 15), there may be noticeable delay in
responding to SPY inp,lt, then.
'lhese opportunities for SPY inp,lt assume that SPY is not intentionally
skipping some opportunities for user input. 'lhe STARTUP file does control
such attentiveness by SPY in the form of variable MAXFDG, which normally
should be unity. O1ly the exper ienced user is advised to tamper with this, and
any changes should only be for very good reason. O1e such reason might be that
the comp,lter being used could involve unusually large overhead checking for
keyboard interrupts, and the user might not want to slow the simulation
needlessly.
When using a speedy computer with adequate real memory (to minimize
paging) , and [Link] the program will be checking for user-keyed interrupts several
times a second, the response to SPY corrmands and associated data will appear
to be nearly instantaneous. 'lhe user has the impression that there is time-
sharing of the computer between theEMTP simulation and SPY. '!his is the way it
should be: an illusion. In fact, there is no time sharing at a11.
page l6C-l
The user Who wants specific information about. a single specific SI?':{ command
is referred to the program itself, since this provides such information
interactively. As an illustration, consider What happens When the user first
sends the SI?':{ corrmand "HELP", followed by the subcommand "GO" (Which is SI?':{
comnand mmber eleven):
SI?':{: HELP
Available key-word responses to the "SI?':{:" prompt are as follows:
Nl'.MES STOP PLOl' HELP EXAMINE DEr05IT SWITCH APPEND
SAVE RESTORE GJ EX:HO FIND LIST SF.{ BREAl<
WHEN CCMMENT @ ROLL TYPE VERIFY FILE SLEEP
SOURCE CASE WAKE CA'11\r..cx:; BEX3IN STEP DEBl.(;
M'11\ RAMP TIME TEK BRAN:H YFCRM N:>Y FAC'!UR
N:>F RLC LNUSED BtE SIZE LIMIT 10m NODE
N:>NLIN SPACE WNIT4 SERIES LOCK [Y] [F] NOROLL
$ UNUSED 8M fDNK HEADING TACS WAIT V-I
MENU DICE FCNT OVERVI&l
Send "OJERVIE.W" for conmand-independent general information.
KEY-WCRD OF INTEREST (AlL, NEXT, '!UP, ear, 8.'\CK, OVERVIEW): GJ
KEY WCRD NO. 11: "GO" - - --
This command can be issued in response to the " SI?':{: " prompt to terminate
several sequences, such as one Which might have begun with "RESTORE". In
this case, there would exist preceding transfers of control from overlay 16
to overlay 20 ("KA'l1\IG"), and then back to overlay 16 again. As a second
example, "GO" cancels the "lOCK" command (Which disables time-sharing and
holdS control within SI?':{). Third, it can be used to begin the EMTP solution
following the "01\'11\" command (for data card input at the beginning of
program execution). Finally, "GO" cancels the suspension of execution
Which accompanies the "SLEEP" conmand.
KEY-WCRD OF IN'iEREST (AlL, NEXT, '!UP, Bar, 8.'\CK, OVERVIEW):
how does the user transfer such output from the screen to the disk?
Unfortunately, this operation is installation-dependent, so only general
guidelines can be given here. For ~rkstations with scrollable windows (e.g.,
Apollo) , just use "cut and. paste" to create a disk file. '!he next-best
alternative is redirection the SPY output channel to disk. For those systems
that do not separate SPY dialogue from llJNIT6 output, this merely requires
send ing all llJNIT6 output to disk. For sane systems ( e.g. , IEC VAX), one can
simply assign a file externally. FOr others, one can use the "DISK" option at
the beginning of program execution. If the user is unsure about what to do for
his own computer system, he is advised to consult with Program Maintenance.
Reading about his computer in Section I-F may also be helpful.
'!he SPY user will normally key capi tal letters (see the "HELP" and "GO"
of the preceding illustration). Yet there are times when lower case text is
desi red (e.g., for plot label ing), and it sometimes is a aggravating to set and
release the "CAPS LOCK" key of the keyboard ~ SF.{ key words can be made
insensitive to case by means of the "CASE" coomand. '!his toggles the binary
control of the t~ possible states.
Under the assumption that the user has all "HELP" output available to him
both in printed form and as a disk file, the fo11owing explanation wi11 be
organized in more general fashion, and will not repeat a11 of the details.
volllne is simply too great ("save a tree in the Ardennes"), and content is too
subject to change.
Appl icable to a1l input loops wi thin all SF.{ comnands is the use of "SPY"
to return to the It SF.{: " prompt. For example, this is the way the just-
displayed loop of "HELP" ~u1d be exited. Since this ~rks everywhere, and is
assumed to be known by all users, it is implicit. '!hat is, it is not listed
among alternative responses, generally.
"DATA" will be the first SF.{ conmand that the average user will issue. It
tells the EMTP that the user is ready to specify an EMTP data case that next is
to be solved. '!he following illustrates usage for the interactive solution of
BENCI+1ARK OC-4:
SF.{: [Link]
SEND EMTP DATh FILE NAME (CCNTROL) OC4.
46 = cards read. llJNT10 limits KCARDl, KCARD2 = 5489 5534
SPY:
The user sent "DC4." (see the right side of the 2nd line), to \J1ich SPY
appended the missing, impl ied file type "OAT". SPY then connected the disk
file [Link].T, read the contents, and stored these 46 card images in positions
5489 throu:Jh 5534 of the program data card cache (\J1ich uses llJNT10). If some
different directory, disk, or even computer (of a network) were required for the
file of interest, this would be required, of course.
Page 16C-3
"GO" is the SF.{ conmand that will order a resumption of an EMTP simulation
after it has been suspended. Since SF.{ begins with the simulation suspended,
"GO" will be sent early in the typical SF.{ dialogue.
"SI'EP" will toggle the binary flag that controls whether or not the
simulation will be suspended at every possible opportunity. The main use for
this is diagnostic, although it is critical to certain other applications as
well (e.g., the plotting of Section XVI-E).
There is considerable similarity in the usage of all such commands for the
observation of EMTP tables. In all cases, the user enters an interactive loop
in which he requests one or more additional rows or entries of the table being
considered. When the user has seen enol,):Jh, he sends "SP':{", and the loop will
be exited (there will be a return to the "SP':{:" prompt). Simple table output
is requested by sending a beginning and an ending row mmber using free-format
(USing a blank or comma separator) • Key words are recognized alternatives,
however. "All" will display the entire table, "'lOP" will display row one,
"BOT" will display the last row, "NEXT" or just a carriage return will
display the following row. In order to truncate an on-going display, send the
user-keyed interrupt.
Several EMTP tables have too many columns for an 80-column display without
wrap-around. kly such EMTP table has been split into two or more subtables
among which the user can choose. Chce inside the display loop for the table
command of interest, sending "E:)ITAA" will change to the next subtable, and
sending ".HFAO" will refresh the current table heading. Such alternation among
subtables is cyclic, so after the last subtable will come the first subtable
once again.
Row name name-K name-M I<BlE MBlE LGTH NR KODEBR KOCSEM LITYPE IMODEL INDHST
1 LIN001 GEN TRAN 4-3 1 -1 0 0 0 o 0
2 R-mag 'mAN TERRA 3 1 1 -2 0 0 0 o "
3 LIN003 LQbJX; 3-2 1 -3
TRAN 0 0 0
"
4
5
LIN004
LIN005
LOAIG TERRA
GENXX TERRA
2
5
1
1
1 -4
1 -5
0
"
0
0
0
0 ""'" "'"
Not shown is the "BRAN:H" command, followed by "AIL" (which [Link] normally
be seen to the right of the heading, had it not been cut off to narrow the
display.
Note that the beginning and ending times of available. plot data (here zero
throlXJh 150 msec) are shown as plotting is entered. '!he "MENU" subcarmand
displays the 30 possible subccmnands that are honored within plotting. For ease
of printing, this tabulation has been narrowed to only six columns, versus eight
on the screen. Note that "HELP" is not one of the subccmnands. If the user
wants details of any of the IIPLOI'" subcarmands, he should exit and use the SPY
"HELP" corrmand • .
'IWO types of plots are possible: character plots and vector-grap'lic plots.
It is the II MODE " subccmnand that toggles the binary selection between these
two. If vector plotting is available for the computer system of interest, it
will normally be the beginning choice, since it should usually be preferred (due
to the higher resolution). If in doubt about the default decision, consult
variable LTEK of the SI'ARTUP file (Section !-E-2). For a 3-window
configuration, any character plot of SPY ·PLOI'II will appear in the SPY window,
whereas any vector plot will appear in the separate vector plotting window. '!he
width of the character plot can be changed by means of the "SET COLUMN"
subcommand (80 and l32-column plots are carmonly used) •
'!he user can exit and re-enter SPY "PLOI'" without any loss of plot
variables or parameters. that have already been selected. '!his non-volatile
memory is to be contrasted with that of early versions of the separate
interactive plotting program "TPPLOI''' (inclooing the BPA version throlXJh May of
1987) •
Mother difference from the separate interactive plotting program "TPPLOT"
is that no plot file need be specified. When one uses SPY "PLOT", it is only
the data already stored in the program's plot buffer that can be plotted. Hence
the familiar specification of a disk file of interest is dispensed with (except
for the exceptional case of Section XVI-E) •
'!here are several binary control parameters that can be toggled between the
two possible states using key words. '!he revised status of such variables is
illustrated by a single standard message in which the function is summarized
within parentheses on the right. As an illustration, the first input of
"EXTREMA" wi 11 resul t in the prog ram response:
page l6C-6
There normally will be a need for manual variable sealing only if a single
plot is to mix different types of EMTP variables (e.g., both voltages and
currents) , or variables of the same type but variables that have been drawn from
different sides of a transformer. 'Ihis is because of the wide variation of the
nLInbers that are involved involved. Well, not only can the user scale plot
variables linearly ,via the "EAC'lOR" subcorrmand) , but he also can provide a
constant offset if desired (via the "OFFSET" subcomnand). 'Ihe tw:> prompts
associated with these options appear as follows, and should be self-explanatory:
PLOT: FAC'IDR
SEND VEC'IOR OF MULTIPLIERS, separated by ","
PLOT: OFFSET
SEND VEC'IOR OF OFFSETS, separated by ","
In order to cancel any such usage, and return to the natural, initial seal ing ,
use the "RESCALE" subcorrmand •
PLaI': lABEL
SEND SUPER-TITLE [Sample I-line su ••• ] :
SEND VERl'ICAL AXIS £.ABEL (Vol tage in kV ••• J :
SEND CASE-TITLE LINE I [ ••• ] :
Much as for the preceding "N/V>1E" carmand, the. beginnings of old definitions
are shown within square brackets. If these are to be reused, they can be
.accepted by a simple <CR>. '!bose. \oJho do want to use the case title are referred
'to the "HELP" carmand for details of display (the "PLAYBACK" subconmand) and
selective modification (some lines can be accepted without change \oJhereas others
are changed) •
UROLLV" and "ROLLC" are used to turn vector and character plots,
respectively, into strip-chart recorders that will "roll" automatically along
with the simulation time. Which command is appropriate will depend upon which
mode of plotting is in use ("MODE" chooses bet\l\leen the two). Normally, the
"ROLLV" or "ROLLe" subconmand will be the last input to plotting before a
return to "SF.{: " prompt (by sending "SE¥" in response to the "PLaI':"
prompt) • Remember that the time scale of the subsequent roll ing plot will be
determined by the last plot before the roll command, so this should be chosen
carefully. As for other attributes of the rolling plot, some can be changed on
the outside using the "TEK" command of SPY. '!he prompt will appear as
follows :
page l6C-8
SP':{: TEK
>< To tamper with the ROLLing vector plot, send choice.
>< OPl'ION (MARK, IE LAY , PLOT, OVERIAP, MENU) :
For a quick [Link][\ary of the options shown, send "MENU". 'Ihe subcarmand "MARK"
will immediately identify the curves by applying the appropriate letters ("a",
"b", etc.). USe "OVERLAP" to modify the overlap bet~en successive pages of
the continuing plot (parameter CNRLAP of the Sl'ARTUP file). . "DELAY"
allows modification of the size of the buffer that controls relative
instantaneity of the rolling plot (parameter l<SI..CWR of the Sl'ARTUP file).
Finally, "PLOT" transfers the user to the "PLOT:" prompt of "PLOT" -
plenty of rope with 'Nhich the user can hang himself (be careful of this one) •
So much for the SP':{ command "'lEK" • Yet another SP':{ cornnand that controls a
rolling plot from the outside is "NOROLL" (to terminate the rolling) •
"SMOOTH" is used to mod ify the tolerance 'IOLRCE that allows for the
discarding of plot points. 'Ihe initial value is installation-dependent, since
it comes from the Sl'ARTUP file.
"EXTREMA" and "lEVEL" are not really a logical part of plotting, since
plots are unaffected by these subconrnands. But because implementation of the
associated functions was much easier inside of "PLOT" than i t ~uld have been
on the outside, these t~ corrmands are subcorrmands of "PLOT" rather than SP':{
corrmands. At issue is the interactive tabulation of minima and maximun (in the
case of "EXTREMA") or level crossings (in the case of "lEVEL") of plot variables
over the time range of interest. Normally there is no such output. Sending
either corrmand will toggle the associated binary switch that controls such
tabular output prior to a plot. M illustration of the "EXTREMA" table
follows:
MPLOT Name-l Name-2 Minimun Maximun T of min
4 GEN -6.92995E~1 7.00000E~l 3.00000E~0
2 TRAN -5.98629E~1 6.47100E~1 3.00000E~0
9 TRAN LOA!G -2. 02090E-0l 2. 49046E-0l 3.00000E~0
Actually, one column is missing on the right due to lack of space --- a colunn
entitled "Tof max" (the time of the maximun) • As for the first column, the
magni tude gives the variable nunber in the output vector, and any minus sign
means a reversal of polarity compared with the output vector. 'Ihe display of
"lEVEL" is transposed compared with this, with unlabeled columns corresponding
to the plot variables. For the same three plot variables just shown, an
illustration follows:
Levels sought 1.S0000E+00 -2.00000E+00 3.14000E-01
1st hit time 1. 54935E+00 7.ll894E-0l -9.99.900E~3
"X-Y PLOT" toggles the binary control variable that chooses between normal
plotting as a function of time and the plotting of one variable against the
other as time increases. Since the program begins with normal plotting, the
first such use is a s~ tch to X-Y plotting. For those with vector plotting
capability, X-Y plotting should .be JX>ssible. But there is not yet any such
capability for the character mode of plotting. It could be provided upon
demand, but thus far there has been no demand. Imnediately after the switch to
X-Y plotting, there will be a prompt for a horizontal axis title. The following
illustrates this:
PLOT: X-Y PLC1f
--- Toggle to "ON" (X-Y plotting)
SEND X-AXIS IABEL [ ••• )
The only other difference from a conventional plot will occur after the time
span of interest is specified. At this point, the user will be prompted for
limits of both the horizontal and vertical axes before the plot is produced.
The following is illustrative:
PLOT: TIME 0 4
REVISE X-min, X-max [] (OLD) : -100 100
REVISE Y-min, Y-max [] : -100 100
Much the way modern computer operating systems allow interactive user
commands to be built into disk files for execution as a group, so S~ allows the
modulari zation of commands. Disk files of spy commands will be called "command
files" (following the IEe VAXNMS name). Such command files can be executed by
preceding an identification of the file by the "@" symbol (again modeled
after VAX/VMS). Alternatively, there is a batch-mode connection to such files,
too (see $S~ of Section XVI-D) •
page 16C-ll
There are· ten special, reserved corrmand files that can be accessed by a
single decUnal digit (variable from 0 through 9). This is quicker than keying a
typical file name. To check on the existence of one or more of these, use the
"FILE" corrmand, of ~ich the following is an exampl e:
SP'i: FILE
File number: 1 2 3 4 5 6 7 8 9 0
INCLSP'i? .~T: X X X X X X X
An "X" indicates existance of a given file, whereas a blank indicates
nonexistence. This display also shows the real name of the disk files (the 5th
w::>uld be named INCLSP'i5.~T) •
usage of ccmnand files can not be nested (Le., no such command file can
itself contain an "@" corrmand). But other user aids are allowed, including
EMTP comnent cards ("C ") • The SP':{ "CQt1MENr" comnand controls whether or
not such lines are seen in the SP':{ window (the initial choice is for such
echoing) • In-line carments are also allowed, and are to be encouraged (they
make the sequence of comnands much more understandable to a human) • The Apollo
symbol "{" has been reserved for this role --- to mark the place where all
input records will be truncated. For an example of such usage, see
INCISP'[Link].T in the next paragraph. In case the user is so sure of the
correctness of both his program and his comnand file that he does not want to
see conmands as they are executed, he can use the conmand "VERIFY", which
toggles the binary switch that controls such output. Finally, a pounds sign
("@#") can be used for reserved blanks, should such be needed.
When a comnand file ends (usually when input is halted by a hardware end-
of-file, although the software construct "EOF" will accomplish the same
termination), control is returned to the keyboard. But where? What should the
prompt be? Because SP':{ is not smart enough to remember, it. simply displays a
good guess, namely the frequent "SP':{:" prompt. Just remember that this mayor
may not be correct, depending upon where SPY' control was at. the instant data of
the corrmand file was exhausted. '!here may be one erroneous prompt.
Page l6C-12
"TYPE" allows for the inspection of a cOlTllland file before that file is
executed. Actually, any ASCII disk file can so be inspected, inclooing EMTP
data files. But the most corrmon use will be for corcmand files. If there is any
question about the content of a corcmand file, it is better to find out before
execution (i.e., before it may be too late to make a correction) • An
illustration of such usage follows:
SP'l : TYPE 2
Line 1 C Begin lNClSP'i2.I:AT SP'i corcmand file that illustrates
Line 2 C the use of an argll\1ent (albeit trivial) •
Line 3 HELP
Line 4 %%%%%%%% { Argll\1ent is to be the SF':{ corcmand of interest
Line 5 SP'l { Exit the "HELP" corcmand, returning to "SPX':"
Line 6 C Bottom of lNClSP'[Link]\T; EOF comes next
SP'i:
Note the argll\1ent (the a percent .signs on line 4). If the user \\/ants to obtain
information about the "PLOT" command of SP'i, he need only send "@2 HELP".
This is particularly useful if the user has access to just a single terminal of
a time-shared comp.1ter. For a more flexible ~rkstation such as Apollo, the
utility is limited because the operating system provides for multitasking, and
the user could independently view the file via the system editor.
The "EXAMlNE" conmand began with keyboard orientation, but has since been
converted into a structure that is better adapted for use within corrmand files.
For ~rkstations having windows, this is no handicap, since a corrmand file can
be edited at the same time the program is executed. Specific rules of usage for
"EXAMINE" could be figured out from the "HELP" text, of course. But for the
casual user who wants to begin operation rapidly, it is easier just to copy and
modify some established cOlTllland file that already uses the feature. As an
illustration, consider INCLSF':{l.~T, which contains considerable explanatory
annotation. ft'ost of this concerns definition of the variables that are to be
observed ("EXAMllJE" input). At the end, there is the command to display the
variables ("W>.MES"):
Pag.e l6C-13
'Since the in-line corrments explain most of this, such description will not be
repeated here. However, this says little about the different SP':{ prompts to
which these lines are responses. '!he result of "@2" should docunent the
prompts better than words:
SF.{: EXAMINE
CHOICE (TABLE, WIDTH, ClTI', NE.W, AID, COP':{, FCRM, SHa-l) Ct1I' 0
COOICE (TABLE, WIDTH, ClTI', NE.W, AID, COP':{, FCRM, SHCl'l) AID
SEND EMTP VARIABLE: ISTEP
SEND EMTP VARIABLE: '!MAX
SEND EMTP VARIABLE: llJNIT4
SEND EMTP VARIABLE: T
SEND EMTP VARIABLE: N:[Link]
SEND EMTP VARIABLE: '!WOPI
SEND EMTP VARIABLE: END
CHOICE (TABLE, W>IDTH, cur, NE.W, AID, COP':{, FCRM, SHCl'l) TABLE
Row Name INTOt1I' LOCOur IMIN !MAX 6 = NlMEX
1 ISTEP 1 45 1 1
2 TMAX 0 20 1 1
3 LUNIT4 1 119 1 1
4 T 0 18 1 1
5 NCHl\IN 1 77 1 1
, 6 '!WOPI 0 19 1 1
CHOICE (TABLE, WIDTH, Ct1I', NE.W, AID, COP':{, FCRM, SHew) : FCRM
Triplets of (index, width, text). NUMEX = 6.
1 5 ISTEP 2 6 [Link] 3 6 LUNIT4 4 6 T 5 6 NCHAIN
6 6 '!WOPI
SEND K-index, K-width (END, SHew; "-KENO use") 1 6
SEND K-index, K-width (END, SHCl'V; "-KENO use") 2 8
SEND K-index, K-width (END, SHCl'V; "-KEND use") 3 7 -6
SEND K-index, K-width (END, SHew; "-KEND use") SHew
Triplets of (index, width, text). NUMEX = 6.
Page
,
16C-14
After the variable definition of II EXAMINE" , the user can request the
display of variable values at any .later time. 'As already seen, this is done by
the SP'f corrmand "N.l>IMES", which results in a display of the variable headings
as well as the current variable values. If only current variable values are
wanted, a <CR> should be used instead. A final variation of observation is
provided by the SP'f corrmand "ROLL" , which "continuously" (at every SP'f
opportunity) watches the output variables, and only produces an output if one or
more variables has changed since the last check. If one of the variables being
exanined is expected to change every time step, beware (the output can be fast
and voluninous)! To cancel such "ROLL" operation, use "NOROLL" (which also
will cancel any rolling plotting).
'!he "LIST" and "FIND" commands are useful in determining what the
available variable names are, and where such data is stored in the computer
memory. Consider first several lines of a representative "UST" display:
SP'X': LIST
Row Symbol WOrd Vector? 'Ascii? Next 687 Symbols
Number Name Address (Yes=l) (Yes=l) : 10,12
10 'It:LOCK 1204348 1 1
11 ABUFF 1187434 0 80
12 Cll 1201032 13 13
The heading (lines 2 and 3) shows that 687 distinct symbols are available to the
user. Had the user sent "ALL" instead of "113,12" in response to the prompt
of the heading, he w:>uld have received all 687 rows instead of just rows 113
throlXjh 12. '!he "WOrd Address" colunn shows the result of memory location
Page l6C-l5
"DEPOS IT" allows the user to change the contents of any cell of the EMTP
tables. Of course, sane changes to a-tTP variables will be canmon enoll3h that
special code has been written. for that purpose. An example is the SP.{ command
"lOUT", which shows the user the current value of this variable at the same
time it prompts him for a revised value. If such a dedicated canmand exists,
and will perform the desired modification, it is preferable. But often no such
specialized ccmnand exists, in which case " DEfUS IT" must be used.
The just-mentioned "SAVE" and • RESTORE" commands of SP't are for use
during a single program execution. The resulting storage of EMTP tables is
volatile, and it will disappear if either execution is terminated, or if the
computer crashes. Should the user ~nt to save tables permanently, then it is
the SP't "SLEEP" command [Link] should use. This is nothing more than an
interactive connection to the batch-mode feature involving integer miscellaneous
data parameter MEMSAV= 1 (see Section II-B). 'Ib restart such a sleeping EMTP
simulation, use the SP't "WAKE" corrmand, which is the interactive equivalent
of the batch-mode "START AGboIN" request (see Section II-A).
The "WHEN" command allows the user to delay table saving or restoring
until some later, user-specified time. The following illustration is typical:
SP't: WHEN
SUPPLY TMAX FOR "SAVE" & ·RESTORE" [0.00000000E+00 ] :
Within brackets will be seen the current time for such delayed table hand I il'¥3 •
If "WHEN" has never been used before, this will be zero as shown (meaning no
delay) •
Variable selection and scaling information for the "DICE" display must be
buil t into the data case just. as \WOuld be required for batch-mode usage.. In
case changes to such data are desired during execution, edit the disk file of
data cards in a separate window (assllIling the user has a \WOrkstation such as
Apollo) , and then reload the file using "M'l7\". When doing this, just be
careful not to add or remove any cards prior to the requests for statistical
tabulation, since the card number of the first request for statistical
tabulation must remain unchanged.
The EMTP itself only provides for llJNIT6 character output of the
statistical resul ts. But users of a flex ible workstation such as Apollo should
have the nicer, vector-gra~'lic alternative, thanks to the inspiration and
research of Mr. E. J. Michelis of KEMA (Arnhem, The Netherlands). '!his involves
the simultaneous usage of a separate supporting program "SI'ATPLOT", and "cut
and p:1ste" cap:1bility of the operating system software. For details, refer to
the Apollo Section I-F-I.
The termination of a ftDnte carlo study will depend upon what more the user
wants by way of output. USing SPi, the user will from time to time issue a
"DICE" corrmand, in order to see how smooth resul ts have become. Cl1ce he is
satisfied that distributions are close to assymptotic limits, it only remains to
be decided how execution is to be terminated. The quickest way would be an
operating system interrupt via the keyboard (e.g., VAX,/VMS C'IRL-Y or Apollo
C'IRL-Q). Equally effective and nearly as quick is the "SPin stop command.
But either of these quick ex its will result in a loss of the snall character
plots of switching times that normally conclooe statistical tabulations. There
also would be a loss of the case summary statistics. In order to avoid such a
loss, the SP':{ corrrnand "DEPOSIT" should be used to set variable NENERG equal
Page l6C-18
to the current energization mmber, thereby allowing a natural exit of the Monte
Carlo loop after completion of the current energization. 'Ihis nunber should be
one of the last outputs to tuNIT6 (at the end of the last line that begins:
"Random switching times for energization nunber") • 'Ihe final consideration is
about possible table saving. Rather than ending execution definitively, one can
put the ftbnte Carlo simulation into hibernation by setting MEM~V = 1. at the
same time NENERG is altered, if the input data (integer miscellaneous data
card) did not set this switch at the very start.
Ideally, one ~uld prefer FCRTRAN-like capabil ity for the mathematics of
SP'f. Eventually this may come, much as it already has for 'mCS (thinking of
'mCS supplemental variables) • But SP'f "APPEND" usage is just in its infancy,
and something more like assembly language is all that is being provided now.
Numerical values must be stored in one of a fixed nunber (presently 58) of
special registers that are identified by a nunber. Arithmetic is performed only
on one or more of these registers. Finally, conditional execution depends on
the relative size of t~ register contents.
()jce inside the "APPEND" corranand, a list of the available subcorranands can
be generated by sending "MENU". The result is as folloYJS:
page l6C-l9
SPY: APPEND
>: MENU
IF GOTO LNUSED CCMP END LIB lOOK MAP
L~ USE AID SUB MUL DIV COP':{ SET
!NIT KILL CARD KEY TAGS MENU
"While this is an imposing list, it is possible to understand the overall idea
rather quickly by means of a few examples and the summary description of a few
- general classes of operation.
Whereas registers are referred to by nunber, most often only two [Link]
are involved. For example, one can add the. content of one register to another,
or one asks Whether one register is equal to another. For most such usage, the
two registers of interest are referred to as primary and secondary [Link],
respectively. Symlx>ls are used in that the user first defines these two
registers using "tags" such as PRI=3 and SEC=4 (to have register [Link] 3 be
the primary register, and register mmber 4 be the secondary register. Other
tags are possible, as illustrated by the following "APPEND" line that uses
four tags to describe an addition operation:
ADD PRI=34 SEC=44 LEN=3 INC=l
The "ADD" is the "APPEND" comnand for addition, with the four tags giving
the location and extent of this operation. Vectors are involved, and the tag
[Link]=3 says that these are of [Link] three. Just as FCRTRAN DO-loops can skip
cells, so can such vector operations, altho~h such is not bein; done in this
example (the tag INC=l says that consecutive registers are involved. By
definition of the addition comnand, the primary register is to have the
~ secondary register added to it. Hence registers 44, 45, and. 46 are to be added
to registers 34, 35, and 36, respectively. Tags must be separated from the
comnand (if any; here, from the "AID") and from each other by one or more
blanks. '!he comnand· (if any) must come fi rst , and must beg in in col unn one.
'!hereafter, tags can be placed in any order, and are free-format (except that
imbedded blanks wi thin a. tag are not allowed, since blanks terminate one tag and
start another) •
"IF" usage allows for the conditional execution of the following command,
if and only if the content of the primary register is related to the content of
the secondary register by the appropriate relational operator. Identical to
FCRTRAN, six relational operators are recognized:
• LT. • I.E. .NE. • EQ. .GE. .GI'.
and these must appear somewhere to the right of "IF" (a tag is not used for
these operators, note). Just be sure that the relational operator has one or
more blanks before and after it, and no imbedded blanks (between the bounding
periods). As an illustration, consider:
IF PRI=4 • LT. SEC=42
This is equivalent to the FORTRAN condition
IF ( REG (PRI) • LT. REG (SEC) )
Should the cond i tion of the relational operator not be satisf ied , then the
following "APPEND" comnand (line of the corrmand procedure, usually) will be
discarded. unl ike FORTRAN, the following statement Which is to be cond i tionall y
executed must always occupy the following line (it can not be added to the line
carrying the "IF", nor can it extend to several 1 ines via continuation) •
page 16C-20
"SET" allows the user to load registers with constants. This is a vector
operation, beginning with the primary register. The value of the constant is
defined using the "VAI.;=" tag. AA illustration follows in the next paragraph.
"COPY" allows the user to transfer the contents of one append reg ister to
another. The transfer is from the primary to the secondary register, and a
vector operation Ltags "LEN=" and "INC=" are appl icab1e) •
Page l6C-2l
"KEY" allows register definition from the keyboard. '!his would normally
only be used in the middle of a conmand file. '!hree tags control the operation.
First, "PRI=" and "LEN=" define the range of contiguous registers (a
vector), and also the nunber of free-format values that are to be read from the
j...eyboard. Finally, "MES=" defines a prompt of up to 80 colunns, without any
imbedded blanks. Wi thout such a prompt, the. EMTP user might not know that he
was supposed to key some nunbers. Or, in the case of two or more requests, he
might not know which of the mul tiple inputs was involved. As a degenerate
special case of "KEY" usage, rather than from the keyboard, the required input
can be read from the following "APPEND" line (of a ccmnand file, normally).
USe "MES=NONE" as special request for this in-line data, which may sometimes
- be simpler or clearer than the use of "SET" for load ing reg isters wi th
nunerical values.
"W>.p" , "I..Q.l>..D" , "!NIT" , "KILL", "COwiP" , and "USE" all are corrmands
that are associated with coomunication bet'oNeen append registers and the outside
~rld ( i .e. , either EMTP tables, or a synchronized parallel process. Yet such
usage is still highly experimental, and it is not simple. Further, it is
dependent upon comp.1ter. As a consequence, it is not reccmnended for anyone
other than program developers at the present time. O'l the other hand, it should
be understood that such capability is seen as one possible way to improve the
present CSP (concurrent sequential processing) capability of the present "~CS"
corrrnand of SPY. Refer to Section XVI-C-12 for additional ccmnent about the idea
of CSP.
Some EMTP variables can be changed instantly from one value to a completely
different value without difficulty. kl example ~uld be the flashover voltage,
or the closing time, of a switch. For such cases, the "DEFOSIT" ccmnand of
SPY is appropriate, since this is the way it operates: instantl y and
discontinuously.
O'l the other hand, there are variables that must only be altered slowly and
snoothly. kl example :might be the inductance of some series R-L-C branch. In
order to avoid abrupt changes, the "AAMP" ccmnand was devised. It allows the
user to specify an arbitrary nunber of beginning and ending times, and beginning
and ending parameter values, for linear variations that will occur each time
step. Storage for such usage is appended to the U.M. working space after any
normal machine storage, so any such intensive user might consider augmenting
List Size 25.
'!be "SERIES" comnand provides special logic to connect with the "AAMP"
command for the variation of series R-L-C branches only. '!bese are ccmnon and
imp::>rtantenoll3h to deserve special logic of their own. Altholl3h discontinuous
variations are also allo'oNed, the snooth, ramped change is the more useful and
common, probably. At any point prior to overlay 12, the user must declare his
intention to tamper with seriesR-L-C branches by issuing the "SERIES"
declaration. '!ben the program will pause in overlay 12 to allow the user to
select those branches that he might later want to vary. '!be help command
provides more details of this high-level command.
Yet before the potential user becomes too excited about the p::>'oNerful idea
of ramping EMTP parameters, it should be p::>inted out that many variables are
effectively inaccessible to him. Altholl3h he can go throll3h the motions of
ramping such variables, the result will not be what it should be because other,
unknown program variables that det=end upon the .ramped variables are not being
modified at the same time. '!he classic case is the time-step size DELTAT,
up::>n which many, many other var iables det=end. Do not try to ramp DELTAT as
shown in a following example, since no good can come of it.
'!hose
¥.ho are not familiar with internal program structure (i.e., EMTP
FCRTRAN) are to be discouraged from using "RAMP" for any but the simplest
case. Even the veteran develot=er may need to think a little, and use some trial
and error. '!here are two supporting SPY corrmands that should be considered at
the same time, namely "SERIES" and "YFCRM". '!he fi rst of these should always
be used if the parameters of a series R-L-C branch are being ram}:ed, since then
page l6C-23
the nodal admittance matrix [Y] will be appropriately modified each time step,
and that matrix will also be retriangularized. Unfortunately, such quality
support for other components is lacking, so if the user knows that [Y] formation
and triangularization are required at each time step, he must request it
himself, manually. .
'!here are three basis prompts of "RAMP", and these are nested in the
order shown:
SP'i: RAMP
SEND "T-begin", "T-end" (END, SHQ\1, REWIND) :
SEND "F-begin", "F-end" (END) :
SEND EMTP VARIABIE:
Actually, the final prompt is from "DEPOSIT" to which this "RAMP" logic
junps in order to [Link] and identify the variable. Just as with "DEFOSIT", a
,vector response is acceptable. An example would be "'I'X(3:.5)", which would
resul t in the simultaneous ramping of three consecutive cells of the '1'X
vector. '!he order of nesting is intentional. Variables can be specified one
'after the other as long as both time (the outer loop) and ramp value (the middle
loop) remain applicable. When this ceases to be true, send "END" in response
to that inner-most prompt and there will be a return to the middle prompt for
beginning and ending parameter values. If these "F" values are changed, there
will be an automatic return to the inner level for more variables. on the other
hand, if times must be changed, or if the user is done specifying ramps, sending
"END" in response to the middle prompt will return to the outer prompt for
times. To erase all previous usage., send "REWIND". To produce a slltlnary table
of all ramps, send "SHCl'l", of which the following is an illustration:
It is always prudent to produce this output as the very last operation prior to
returning to the "SP'i:" prompt (by sending either "SP'i" or "END"). '!his is
because it is much easier to spot errors from such a table than it is by
reviewing the voluninous input. Note that whereas the user inputs beginning and
ending subscripts, the table show the beginning index ([Link] for a scalar) and
the length of the vector that is being ramped. '!he final 1 ine reminds the user
of when the first ramp will begin and the last ramp will end.
page l6C-24
"HEADING" is the corrmand to produce a new heading for the time-step loop
output in theWNIT6 window. It may be that the user has many output variables,
and can not remember which is which. E.\1en if the window can be ·scrolled
backward to find the normal head ing , it may be more convenient just to
regenerate the heading via this command.
"SIZE" and "UMIT" are two simple utilities related to EMTP List Sizes
(see Section I-G). Both result in displays of 27 nunbers, with 10 nunbers per
row. '!he difference is that "SIZE" shows the current actual burden on EMTP
tables, where as "UMIT" shows the table dimensioning. .Just as with case
surcmary statistics, if no figure is available, .a"-99.99" should be displayed.
'!he fo11owing illustration was produced during the solution of a slightly
modified version of BENCHMARK DC-4:
SP'i: SIZE
5 5 6 2 9 0 695 1 10
18 9 -9999 -9999 -9999 0 0 23 o
o o 6 1 -9999 -9999 -9999
SP'i: LIMIT
252 300 500 100 2500 40 1375 1750 75 160
50 50 5000 -9999 -9999 40 4 5 1600 660
100 150 4000 3 400 50 50
"lDNK" is the SP'i corrmand that rings the bell of the computer monitor.
'!here will be a subsequent prompt for the duration or amplitude (precision is
impossible due to the installation-dependent nature) as shown by the following
example:
SP'i: HONK
SEND SEVERITY LEVEL OF ALERI' (l TO 10) : 3
Audible alarm began at ll-May-86 08.54.1 3 bells.
'!he convention is that zero produces no response, while 10 indicates a disaster
(wi th this latter warning continuing indefinitely until suspended by a user-
keyed interrupt). '!he user will normally avoid the use of ten, which was
designed for internally-generated program alarms (e.g., when program storage for
plot data has overflowed). As for the mode of usage of "H(lIJK", it will almost
always be in a corrmand file, for those cases where there is a need or desire to
attract the attention of the operator (who may not be looking at the monitor) •
SF.{: EX:HO
SEM> DESIRED OPERATION (BFXiIN, FILE, SHew) : SHew
Compacted listing (between "/") of 21 stored ccmnands follows.
/ TIME / BJW.X:H / AU. / SF.{ / FILES / 'IYPE 1 / @l / HEADING
/ LIST / 255,260 / Sl":{ / SIZE / LIST / l, 5 / SF.{ / LIMIT / BREAK
/ -150 / GO / fCHO / SHew
SEND DESIRED OPERATION (BFXiIN, FILE, SHew) :
In this case, II fCHO" was first requested some 21 SF.{ corrmands earlier, when
SF.{ inp.1t began to accl.J'llulated. At that. first usage., the response to the prompt
was "BFXiIN" to begin the accl.J'llulation. '!his time, the request was to
II SHew" the accl.J'llulation to date. 'Ib terminate such accl.J'llulation, send "FILE".
'!here will be an opportunity to save the accl.J'llulation in a disk file, but this
probably would never be most convenient for the worstation user having "cut and
paste" capability. If no disk file is desired, send just a <CR> in response
to the prompt for a file name.
"$" is the SF.{ comnand to send the inp.1t line into "CIMPGE" for processing
as a conventional $-card of batch-mode usage (see Section I-D). Cl"lly the
dollar sign in coll.l1ln 1 is mandatory, with all other characters of the line left
for "CIMAGE" usage. For an illustration, use "@9" (INCLSl":{9.D\T).
Due to practical complications, the production user most likely will have
no explicit, manual use for the four SP':{ conmands of this present section (see
the heading). '!hey are associated with reforming the nodal admittance matrix
[YJ of the time-step loop, and with retriangularizing it. In idealistic theory,
whenever the user modifies the computer storage of some network parameter (e.g.,
by using "DEPOSIT", or CSP of "'l1\CS", or a synchronized parallel process of
"APPEND") , he should have [Y] reformed and also retriangularized. '!hen all
would be well forever after, right? Right in theory, but wrong in practice
today, unfortunately. rue to the dependence of other program variables on the
one being changed by SP':{, such reformation of [YJ can only be successful in
certain cases. It will take a lot of reprogranming before the time step DELTAT
can so be modified. So, only researchers should be using these functions
explicitely for a while.
Yet the production user may well be exploting the log ic of these functions
implicitely, without even knowing it. For example, the "R1>MP" and "SERIES"
coomands connect with the code just mentioned. Hence there is no question about
the possible removal of unused features.
There is a batch-mode connection to SPY, for those users who can foresee
all details of SPY input in advance, before EMTpexecution beg ins. For example,
a user [Link] have no interest in interactive observation and control.
tbwever, SPi might provide some special control that might be needed for the
data case of interest. A second example of usefulness is for the documentation
of SPi capabil i ty using standard test cases. '!he user is referred to BENClf1ARK
DC-56 and DC~57 as illustrations.
page 160-2
$SP'i (keyed in colunns 1-4 of an EMTP data card) is the key that allows
SP'i conmands to mixed with normal EMTP data. 'Ibis request must precede a block
of SP'i comnands, and $SP'iEND must follow that block to mark the end. As an
illustration of such usage, consider data cards extracted from BDK:lfWU< OC-56:
14GEN 70. .1591549 -1. .
$SP'i { Request of "CIMAGE" ($-card) to begin batch-mode SP'i connection
IEBU::; { 1st SP'i COllllland is trivial, unnecessary request to change OIAGIOSTIC
o { Do-nothing level change, since without this, the IPRSP'i level would be 0
==< < Etc. (some 57 lines have been omitted to save space) > >=
BREAK { It is the latter: no more "@" cards read until "BREAK" occurs
TIME {Trivial SP'i COIIIIIand just to demonstrate that we. have "SP'i:" prompt
STOP { This SP'i comnand will terminate execution of the data case
$SP'iEND { Bound on in-line SP'i COIllTlandS; back to batch-mode program data
B~ card ending all electric sources
It is seen that a large block of SP'i COIlIIlands has been inserted after the last
EMTP source card, before the blank card end ing such sources.
'!he location of $SP'i usage within an EMTP data case is critical, since
this defines the point at which the program begins reading. the SP'i cOIllTlands.
'!his does not imply that all SP'i conmands will be read at this point, however.
'!he user generally will delay the input of other commands by some device such as
a "BREAK" comnand followed by "WAIT" and "BREAK" (to inhibit further input until
the break point has been reached). A good illustration is provided by
BENCHMARK DC-56.
Plotting via the EMTP is simple enolgh. Begin EMTP execution, and select
SPi, of course. '!hen key the following SPi corrmands, in order:
1) DATA - Request of EMTP for specification of disk file
2) disk file - contains a single $OPEN card (see below)
3) STEP- - - Instruct SPi to halt the simulation everywhere
4) GO - - Beg in EMTPexecution. Repeat this 4 times!
5) SPACE - SPi corrmand allowing management of memory
6) PLOT - It is plot data storage that we will manage
7) READ - - We want to read plot data p:>ints into memory
8) ALL - - Time range of data to be loaded (the whole file)
9) 1 Handle every N-th time step, where N = 1 here
10) 0 No offset for memory storage of the plot data
11) SPY After plot p:>ints are all loaded, exit to "SPY:"
For an ill ustration of such execution that connects and loads the plot data
of the file named OC3T054.PL4 (created by .solving BENCIJt1ARK DC-3), send the
SPi corrmand "@0" as the first SPi [Link]. 'Ihat is, inspect and test the
cornnand file INCISPi0 •.Ob.T, the last entry of the "FILES" display. '!he disk
file that is named in step 2 contains just a single card: a $OPEN statement
that connects the desired ".PL4" disk file of raw plot data p:>ints to unit
WNIT4. 'Ille mul tiple "GO" cornnands merely serve to step past unwanted SPY
break points to where EMTP data normally should be read, in UTPF overlay nunber
1. The new-case head ing should appear , and after it, the interpreted copy of
the $OPEN card that is contained within the disk file of step 2. 'Ille
remaining SPY cornnands serve to load this data from disk into the EMTP's virtual
manory, and finally exit from the "SPACE" command (step 11). When execution
of the cOlmland file ends, there will be a "SPi:" prompt to which the user can
respond with "PLOT" as the plotting begins. Hereafter, details are no
different than have already been docunented in Section XVI-C-4.
page l6E-2
Under \!bat circunstances might a user not want to do his plotting this way,
using the EMTP? First, there is little or no speed incentive for small ".PL4"
files. Since starting the big EMTP is slower than starting the small, separate
program "TPPLOT", and since the EMTP requires special steps as just listed, use
of the EMTP in such cases is probably more trouble than it is worth. . Second,
there may be a space problem for trulyenonnous ".PL4" files. Remember that
"TPPLOT" has no limit on the size of the ".PIA" file, whereas the EMTP does
(since all such points must be loaded into memory) • If a properly dimensioned
version of the EMTP is not Lmmediately available, the resizing of tables
represents an added complication. 'ttlird, the EMTP has no built-in hard copy
connection using calCCXnp plots the way "TPPLOT" does (the "COP':{" conmand).
Whereas some computers may have hardware and an operating system that
automatically provide hard copies of the screen, this is not tD'liversal, and
usage of it may not be as convenient. In conclusion, SP':{ "PLOT" is a powerful
new tool, but it is not a general replacement for other froms of EMTP plotting
(inclooing "TPPLOT") for all users in all cases.
$OPEN provides an al ternate, newer, even more flexible fonn of such SP':{
plotting. Rather than burying the file-connection command in a separate file
(see "disk file" of step 2 above) , this command can be sent directly through the
SP':{ window. 'ttle $-comnand of SP':{ allows this more tD'lified treatment.
Otherwise, not much is changed. For an illustration, see lNCLSP':{9.O\T (try
"@9") •
XVII. JHARTI setup - 1
The supporting routine JMARTI setup can generate only one model (travelling
wave model) and is only valid for conventional overhead lines.
The generated LUNIT7 punched card output immediately is in the proper input
format to be used for a subsequent transient run, as explained in section IV-D-3.
Input data cards for .JMARTI setup involve an imbedded LINE CONSTANTS data case
following the initial JMARTI declarations.
Let us discuss the above card formats in more detail now. Whenever appropriate,
distinction between the transposed and untransposed case will be clarified.
Parameters :
.~ I~E E
I~ ~~ tE Ic ~ fE l~ IC :~ ~! Ie f~ tn* IC I'. ~~f~ t! I~ IE r!l«
BRANCH SENJ(1) REC( 1) SEND(2) REC(2) SEND(3) REC(3) SE/ll(4) REC(4) SEl'l:(5) REC(5) SEND(6) REC(6)
A6 A6 A6 A6 A6 A6 A6 A6 A6 A6 A6 A6
The node names should be placed in pairs (sending end, receiving end), phase
per phase.
When specified, these node names will also appear in the LUNIT7 punched output.
When omitted, the user himself will have to enter the desired node names in
the punched output file.
R
FREOTRAN F o 1 ?
1---
C I
H FREQSS 1 ?
A S 1---
o FREOINIT R T DE(PN 1 iTF
1--1-
FB.2 Fl0.2 A10 FB.3 13 13 12 12
'--'--
XVII. 3MARTI aetup - •
t!l~I~
I!
tll!l(" fE i( I ~ ~'l~ tll!l( ~. Ie l"
R FREQSS F 0 1 0
H C I ~
o FREQINIT A S iDE( PN 0
R T
t-
FB.2 F10.2 Al0 FB.3 13 13 12
~
This is the only card one needs. Such request is generally recommended for
the non-experienced user.
S.b Explicite definition of fitter parameters
This option should be selected by the experienced user. who wants to have
control over some (or all) of the individual fitting parameters.
Three different types of parameters can be specified on the different fitter
cards:
- miscellaneous data
- parameters for Zc fitting
- parameters for At fitting
Let us discuss these three card formats in more detail now.
XVII. JHARTI setup - 5
Parameters :
IPUNCH controls whether or not branch cards will be punched after the fitting.
Value zero will produce JMarti branch cards. whereas unity will omit such
output.
GMODE is the conductor conductance in the modal domain (the same as phase to
ground conductance in the phase domain. if such conductance is assumed to
be the same for all phases, and if there is no mutual conductance between
phases. The default value is 3.E-B mhos/km (equivalent to [Link]-B mhos/mile).
The units of length should agree with those used within LINE CONSTANTS data.
NEXMIS will normally be left blank. A nonzero value indicates the mode number
for which a different fitting card is to be supplied. A blank means that
all modes of characteristic impedance Zc will use the same fitting card.
A nonzero value gives the mode of interest. For example. NEXMIS = 3 means
that the characteristic impedance of the third mode is to be fitted using
parameters specified on a new fitting card.
EPSTOL is the error tolerance for fitting, in percent. The fitting error is
evaluated in a least-squares sense, and averaged over a range that excludes
initial or final asymptotic regions (by 0.001%). The default value for
blank or zero is 0.30%.
XVII. JHARTI aetup - 6
NORMAX is the maximum order (maximum number of poles) to be allowed for the
rational function approximation. Blank or zero is given a default value
of 30.
IFWTA controls tabular printout of the fitting. The value unity will result
in the display of a table comparing the magnitude and phase angle of the
rational approximation with the therortical values as a function of frequency
(rows of the table). Zero will suppress such output.
IFPLOT controls graphical printout. The value unity will produce a character
(line printer) plot comparing the magnitude of the rational approximation
with the theoretical value as a function of frequency. Zero will suppress
such output.
IFDAT controls possible tabular printout of transmission circuit parameters
as a function of frequency. The value unity will result in such a display.
whereas zero will suppress such output.
INELIM is a switch controlling logiC of the fitting process. The value zero
means that order increases of the approximating function will end if and
when the error becomes five times larger than the previous minimum. On the
other hand. unity allows increases of order regardless of whether there is
improvement. This is within limits represented by parameters NORMA}{ or
EPSTOL. of course.
5.b.3 Parameters of Al fitting
18 E8.0 18 18 18 18 18 18 E8.0
Parameters:
All variables except the first and the last have meanings that are identical
to those for Zc (see preceding section XVII-B-2). The first. NEXMIS. differs in
that a minus sign is required to indicate a mode of Al rather than a mode of Zc.
The final parameter is a new one in cols. 65-72 named AMINAl. Data points with
magnitude less than AMINAl will be discarded during the fitting process. Blank
or zero is given a default value of 1/20.
6 BLANK ~ terminating JMARTI
XVIII. NODA SETUP and ARMAFlT - 1
The importance of more precisely simulating transmission transients is increasing due to the economical
incentive of using more accurate modeling in design as well as protection studies. For switching, fault,
and fault-clearing surge studies, the most important and also the most difficult part. of the simulation is
the inclusion of the frequency dependence of a transmission line. The frequency dependence of modal
propagation has been investigated widely, and some models have been already installed in ATP-EMTP
like SEMLYEN SETUP (see Chapter XXII) and JMARTI SETUP (see Chapter XVII). But all of
them only take into account the frequency dependence of the modal propagation and ignore the
frequency dependence of the modal-transformation matrices (hereafter those models are referred to
modal-domain line models), although the frequency dependence of the matrices can be significant in
many cases. Especially, it is demonstrated when modeling vertically-arranged overhead lines and
underground cables.
The modal-domain line models successfully reproduce the modal-domain frequency dependence.
Nevertheless, when the frequency dependence of the modal-transformation matrices is heavy, the use
of constant modal-transformation matrices causes an error and numerical instability. The inclusion of
the frequency-dependent modal-transformation matrices can be achieved by either applying convolution
to the matrices [1,2] or direct phase-domain approaches [3-6]. The practical implementation of the
transformation-matrix convolution could be complicated in terms of eigenvalue tracing by mode
crossing (at some frequency, two or more eigenvalues become equal) [7]. On the other hand, the direct
phase-domain approaches avoid the modal transformation itself, but the application of recursive
convolution to a phase-domain response is difficult because Qfthe time-domain discontinuities of the
response due to modal traveling-time differences.
The NODA SETUP is one of the direct phase-domain approaches developed by Dr. Taku Noda [5].
The line model uses an ARMA (AutoRegressive Moving-Average) model for the time-domain
realization of the phase-domain convolution, and. the phase-domain discontinuous response is
accurately reproduced by the ARMA model, taking advantage of the one-sample-delay nature of the Z-
operator. In ref. [5], further improvements to the line model are made. The improvement to
convolution allows each ARMA model to use its own time step interfacing with the external circuit by
a linear interpolation technique, and thus the model is designated as IARMA (interpolated ARMA)
model. A steady-state initialization method is also developed in the reference in order to make possible
such as fault calculations. The matrix stability conditions presented in ref. [5] is not installed in the
present version of the NODA SETUP, because it requires more investigation for the accurate evaluation
of eigenvalues.
The usage of the NODA SETUP andARMAFIT is illustrated using an example: 500-kV double-circuit
overhead line of which the conductors are vertically arranged.
2 - xvm. NODA SETUP and ARMAFIT
XVIII-2.A Overview
The modeling of a transmission line (overhead lines and cables) using the NODA SE TUP requires the
following two steps :
1. Calculation of the frequency-dependent line constants of the transmission line, hereafter referred
to frequency data, using CABLE PARAMETERS or LINE CONSTANTS supporting routine
in ATP. The result is written in •AFT file (ARMAFITfile). Note that CABLE CONSTANTS
cannot be llsed to make the . AFT file.
2. Fitting the frequency data in the •AFT file with IARMA models for the time-domain realization of
the frequency dependence using an independent program ARMAFIT. The result is written in . PCH
file (punch-out file).
F or fitting the frequency data a foreign line constants calculation program might be used, because
ARMAFIT is independent ofATP. This is important, because a certain transmission-line configuration,
which is not supported neither by CABLE PARAMETERS nor LINE CONSTANTS, can be fitted using
ARMAFIT, if the frequency data is prepared in .AFT file by a user-made line-constants calculation
program. The format of .AFT file is illustrated in Section XVllI.2.C. The computational steps to
create model data for EMTP simulation is given schematically in Fig. 1.
In order to use the line model for a time-domain simulation, the name of • PCH file is specified in a
branch card in anATP data case unlike other line models. (Using other line models such as SEMLYEN
SETUP, JMARTI SETUP. PCH file has to be pasted as branch cards using $INCLUDE) Because the
. PCH file remains outside of the data case, the • PCH file can be used by other data cases by simply
specifying the file name.
A 500-kV double-circuit overhead line of which the conductors are vertically arranged is used to
illustrate the usage of the NODA SETUP. The conductor configuration is shown in Fig. 2.
24m
• •
i
gw
•• 16m
~
• gw AS 160
80m i a(I)O
17m
o c' (4)
TACSR810
• •o
65m i b(2)O
18m
b' (5) x6
sep. = 0.5 m
55m i 0
c (3)
0
a' (6)
45m
line length = 100 km
I
Fig. 2 500-kV double-circuit overhead line
The line length is 100 km. Each of the ground wires is a single conductor AS 160, and each of the
phase wires is a bundle of 6 conductors TACSR 810 of which the separation is 0.5 m. Fig. 2 shows the
frequency dependence of the first-column elements of the voltage modal-transformation matrix A.
Because the frequency dependence of Au and A41 elements is heavy (about 16%), the proposed phase-
domain model is advantageous than model-domain models. Switching-surge and fault-surge
calculations of the line are carried out in Chapter III.
0.8
-------------------
-8
.a 0.6
The following data caseVERT500 . DAT calculates the frequency data of the example line and writes
them into file VERT500 . AFT, using ATP. It uses the CABLE PARAMETERS supporting routine.
First comes keyword BEGIN NEW DATA CASE as usual, and keyword NODA SE TUP follows. The
next line specifies the name of .AFT file to which the frequency data is written, and VERT500 .AFT
is specified in the present example. Then, keyword HOMOGENEOUS LINE follows. Lines enclosed
by keywords HOMOGENEOUS LINE and NODA SE TUP END are simply copied into the . AFT file,
and thus the description ofthose lines are provided in the next section IT-D. Those lines contain fitting
parameters. Next comes a standard CABLE PARAMETERS case describing the line configuration,
which has two frequency cards. The first frequency card determines the range of frequency
logarithmically scanned for the subsequent frequency-domain fitting using ARMAFIT. In the example,
from 1 Hz to 1 MHz with 10 points per a decade. The second frequency card specifies a frequency at
which the velocity of all the natural modes of propagation are determined. Usually, a value which is
larger by 2 decades than the highest frequency of the frequency scan may be recommended. Finally
comes BEGIN NEW DATA CASE and BLANK to terminate the ATP execution.
The contents ofVERT500 . AFT is shown below. The lines between keywords HOMOGENEOUS
LINE and NODA SETUP END in the .DAT file are copied into the first part of the .AFT file as
mentioned in the previous section. First comes HOMOGENEOUS LINE to declare that the present
transmission line is simulated by a homogeneous line model. Other line models, for example CORONA
XVIll. NODA SETUP and ARMAFIT - 5
LINE to include corona branches, would be added in the future, but only the homogeneous line model
is supported for now. (If keyword KIZILCAY F-DEPENDENT is specified here, the frequency
characteristic of an admittance element can be modeled as an ARMA model or as a Laplace s-function
model to be used as a KIZILCAY F-DEPENDENT element in a branch card in an ATP data case,
although the format of the following parameters and data is different.) From the second to sixth lines
are fitting parameters which can be placed in a free format separated with space' 'or comma ' , ' .
There is no distinction between space and comma, and contiguous space or comma are treated as one
separator. The second line specifies a time step, with which all the ARMA models in the line model, is
synthesized. If a negative value is specified, then an appropriate time step is automatically determined
by ARMAFIT as in the following equation:
where
f min : lowest frequency,
fmax : highest frequency,
N : number of total frequency points of the frequency scan,
and fmin = 1 Hz, fmax = 1 MHz, N = 60 in the present example. The meaning of the above equation is
that the time step is determined by the sampling theorem using a frequency which is [Link] higher than
the highest frequency. The third line specifies the minimum and maximum orders
N min , NJ1W{ of the ARMA models which represent the elements of the propagation-function matrix
H(jm). The fourth line specifies those of the characteristic-admittance matrix YO(jm). From author's
experience, Nmin = 4 and NUJI.X = 16 is recommended for the propagation-function matrix. Because each
element of the characteristic-admittance matrix has smoother frequency characteristics than the
propagation-function matrix, Nmm = 1 and NJ1W{ = 12 is recommended for the characteristic-admittance
matrix. If desired fitting accuracy cannot be obtained, the maximum order may be increased for
achieving better fitting by user. In the fifth line, the values of the error tolerances are specified:
EA , EMl , EM2 , and Nitr . The description ofthe error tolerances is
The author recommends EA = 3 %, EMl = 0.5%, EM2 = 3 %, and ~tr= 3 as in the example. ARMAFIT
uses a linearized least-squares method presented in refs. [10] and [13] by the author for the fitting, and
the stage of an nonlinear improvement using the Newton-Raphson iteration is added purposing better
fitting. It improves the solution obtained by the least-squares method by the Newton-Raphson
iteration. It is important that if the iteration does not converge, ~tr should be set to O. For theoretical
background, consult [10, 11, 13, 14]. The sixth line provides the symmetry information of line
configuration for ARMAFIT. In the example line, phases 1 and 4, phases 2 and 5, and phases 3 and 6
are respectively symmetrical with a reference .line which is usually the tower supporting the wires. If
there is no symmetry in the line configuration, keyword NO SYMME TRY is placed here. The symmetry
information is used to reduce the number offitting. Because the proposed line model is a phase-domain
mode~ the computation time of the frequency-dependence synthesis is in proportional to n2 (n : number
of phase wires). Thus, the reduction of the .fitting time is important, although the linearized least-
squares fitting method is quite fast. The theory is presented in refs. [14,15].
The next two lines specifies the number of phase wires n and the line length l. In the present example,
the number of phase wires is n= 6 (the ground wires are eliminated using a matrix manipulation
assuming zero voltage), and the line length is I = 100 km.
XVIII. NODA SETUP and ARMAFIT - 7
In the next part, N sets of line constants are provided, where N is the total number of frequencies of the
frequency scan :
(1) frequency
(2) characteristic-admittance matrix Yo
(3) voltage transformation matrix A
(4) inverse of voltage transformation matrix A-I
(5) propagation constant 1
Frequency is specified on the first line in each set. Then, characteristic-admittance matrix Yo, voltage
transformation matrix A, and inverse of voltage transformation matrix A-I are provided in the following
matrix form :
where n is the number of phase wires, and xi] is the (i, j) element of matrix X. At last, propagation
constant 1 is provided in the following vector form :
where Y i is the i-th element of vector 1. After N sets of the above line constants, keyword 2ND
FREQUENCY CARD. SAME OUTPUT FOR IT FOLLOWS: comes to declare that the same set
of line constants follows in order to calculate the velocity of the natural modes of propagation.
ARMAFIT is an MS-DOS application requiring Salford DBOS DOS extender. To execute ARMAFIT,
type as follows on a command line :
C:>ARMAFIT F [Link]
F_NAME. AFT is the file name containing the frequency data. If the file name is TEMP. AGF, it can. be
omitted as:
C:>ARMAFIT
8 - XVIII. NODA SETUP and ARMAFIT
Files TEMP. PCH and TEMP. AGF are created by the execution. TEMP. PCH contains the fitting
results, i.e. the coefficients ofthe identified ARMA models of the transmission line, and it is used in
subsequent transient calculations. TEMP .AGF (ARMAFIT graph file) contains information used by a
small plotting program PGVGA to show the graphs of the fitting results. Iffile name TEMP. PCH is not
desired, -p option can be used to specify the name as :
may be appropriate. VERTSOO • PCB is created instead of TEMP. PCB. If one needs more information
during the fitting, shelhe can modify the debugging level of the execution using -d option. Bigger
value provides more information, and the default is zero. To execute the present example with
debugging level 2, type :
C:>ARMAFIT [Link] -[Link] -d2
To modify file name TEMP. AGF, -g option can be used in the same manner as the -p option.
In order to visualize the fitting results using PGVGA, • AGF file has to be converted into . PG file that
can be read by PGVGA. For this purpose, a small converter AGF2PG is used. PGVGA and AGF2PG are
compiled by Borland C/C++ compiler and thus does not require the Salford DBDS DOS extender. To
convert F _ NAME .AGF to F_NAME • PG, type as :
C:>AGF2PG F [Link] > F [Link]
If TEMP .AGF is always used, batch file G is prepared to simplify the above two steps into one step.
Thus, typing as
C:>G
Other command line options : - t to request transformation matrices output, - S to request step
responses are available. -? option invokes the following help screen :
usage : ARMAFIT [fil.e name] [options]
[fil.e name] : specifies input fil.e name, when [Link] is not desired
File VERTS 0 0 • PCH created from VERTS00 • AFT using ARMAFIT is shown below. If one prepares
another fitting program, this section would help, or otherwise can be skipped. First comes the copy of
the first line of .AFT file, In the present example, it is HOMOGENEOUS LINE, The second line
specifies the number of phase wires, Then, the identified ARMA coefficients of the elements of the
propagation-function matrix HUro) and of the characteristic-admittance matrix YoUro) follow, First
comes HUro), and then YoUro) comes next, and the element order is (1,1), .. " (l,n), (2,1), .. " (2,n),
(3,1), .. " (3,n), .. " (n,n) for HUro), and (1,1), (1,2), .. " (l,n), (2,2), .. " (2,n), (3,3), .. " (3,n), .. " (n,n)
for YoUro) considering the symmetry of conductor configuration,
C PHASE (6,6)
SAME AS 3, 3
C
C *** CHARACTERISTIC ADMITTANCE MATRIX [YO]
C
C PHASE (1,1)
3.98666E-07 {~step
1 {optimum order
o 4.010927595142271E-03 1.000000000000000E+OO
1 -4.010921931909.790E-03 -9. 999965918383292E-01
C
C PHASE (1,2)
10 - XVIII. NODA SETUP and ARMAFIT
C PHASE (6,6)
SAME AS 3, 3
C
C
F or each element of H(jro), the first line contains the time step and the fastest traveling time of the
element. The fastest traveling time is the traveling time of the fastest mode included in the element, and
the value is evaluated at frequency specified by the second frequency card. The second line is the
determined model order, and then the identified ARMA coefficients follow. For the illustration of the
format of the ARMA coefficients, the following ARMA model is used:
The order of the above ARMA model is 3, and the coefficients are specified as follows:
0 ao 1.0
1 at bt
10 alO b2
11 au b3
If the frequency characteristics of element Hif is identical to element Hid considering the symmetry of
conductor configuration, SAME AS i, j replaces the above format to avoid duplication.
For each element of Yo(jro), the first line contains the time step. The second line is the determined
model order, and then the identified ARMA coefficients follow in the same manner. If the frequency
characteristics of element YOy is identical to element YOId' SAME AS i, j also replaces the format to
avoid duplication.
The above parameters are placed in a free format separated with space I I or comma ','. There is no
distinction between space and comma, and contiguous space or comma are treated as one separator.
XVIII. NODA SETUP and ARMAFIT - 11
C --------------------------------------------------------------------
C 1 2 345 6 7
C 34567890123456789012345678901234567890123456789012345678901234567890
C BUS1 BUS 2 Noda Line FILE NAME SHOW X
C --------------------------------------------------------------------
-lSND1 RCV1 Noda [Link] F_NAME.PCH SHOW 1 { 1 of n }
-2SND2 RCV2 { 2 of n }
-nSNDn RCVn n of n }
An n-phase transmission line requires n branch cards in the same manner as other line models. The first
column of the branch cards is occupied by minus sign -, and the second column by phase index (1, 2,
... , n). Specify the two terminal nodes ofthe branch by 6-character alphanumeric node names using
columns 3 to 8 and 9 to 14. The order of the two pairs of phases follows the rule of CABLE
PARAMETERS or LINE CONSTANTS supporting routine. Only on the first line, keyword Noda
Line is required in columns 25 to 33, and . PCH file is specified using columns 35 to 46. Keyword
SHOW is also required only on the first line in columns 47 to 50, and a digit in column 52 controls the
amount of information printed out on screen. Bigger digit shows more information of the line model.
3000 100km
~~----~
Ip.u, I
~ ... 0
~
o
0
~
0
I I I
phase lA
1 -
phase IB
o
V I I
phase
I
Ie
-
0.4
0.2
=
ci.
& Ot-----i-,
S
~
-0.2 phase 2A
-0.4
A fault calculation of the example line is also carried out to illustrate the use of the Noda Setup. Fig. 6
shows the circuit diagram of the. calculation, and corresponding ATP data case FAULT. DAT is listed
below. During a normal operation, phase a of the first circuit is short-circuited to the ground through
one ohm resistance representing a tower-footing resistance. Fig. 7 shows the calculated results at the
receiving end.
~--~
~ ~
1 p.u.
o 10 20 30 40
time, milliseconds
o 10 20 30 40
time, milliseconds
KIZILCAY F-DEPENDENT model (see Section IV-H) enables to represent a high-order rational
admittance function specified by the coefficients of numerator and denominator polynomials given
either in form of Laplace transform or Z-transform. This linear branch is used to model low-order
network equivalents and any other power system component, when frequency data can be fitted using
any suitable approximation program like ARMAFIT. Besides fitting frequency data of transmission lines
as described above, ARMAFIT can also be used to fit the given frequency characteristic of an
admittance element. The result of ARMAFIT is the model data for KIZILCAY F-DEPENDENT,
XVllI. NODA SETUP and ARMAFIT - 15
which can be directly included in a data case using $INCLUDE request. ARMAFIT detennines gainK
and (a, b or A,B)-coefficients for the desired fonn of the admittance function shown below:
• in Laplace domain:
• in z domain:
Ao + A 1z -1 + ... + Amz-m
Y(Z) = K--------------------
Bo 1
+ B 1z- + ... + B z-n
n
The input data are entered line-wise using a text editor in free format. Numbers or letters in a line are
separated by blank' '. Any line starting with' c. 'is interpreted as comment line and a curly bracket
, { 'in any data line designates the position a comment starts, i.e. data or text in that line following' { ,
will be discarded by ARMAFIT. Input data will be entered line-wise in the given order, when comment
lines in between are omitted. Input data depending on the type of rational function are as follow:
5. line: ARMAFIT stops increasing the order of the model, when SD becomes smaller than the
permitted error E. ARMAFIT uses linearized least-squares (LS) method proposed in Refs.
[5] and [8]. Although the linearized LS usually gives good accuracy, further improvement
of the fitting accuracy may be achieved using the Newton-Raphson iteration. It is
recommended for the first time to set the maximum number of iterations to zero to omit the
iteration, because the Newton-Raphson method sometimes does not converge. After getting
a good modeL it is worth to try to improve the fitting accuracy using NR-iterations.
6. line : N f lines of frequency data should be available following this line. Pre-defined gain K is a
factor, which is multiplied with the magnitude data.
4. line min max {min~ and maximum orders of the rationa~ function
For the z-domain fitting only the data in 2. and 3. lines are different from s-domain fitting. Lower case
letter I z I is also accepted. Appropriate time step At should be selected, which does not violate the
sampling theorem. The same time step must be used in the subsequent EMTP simulation.
XVIII-4.C Example
The frequency characteristic of the input admittance of a series RLC circuit is used to illustrate fitting
by ARMAFIT to create a KIZILCAY F-DEPENDENT model. The frequency response of the series
RLC circuit was measured experimentally by Dr. Taku Noda and is shown in Fig. 8. The approximate
values of elements are:
0.01
0.001
'0
.s:::
-E
>-
-0.0001
1E-05
100
-
CD
~ 50
0>
CD
-
"C
CD
0> 0
c:
co
CD
I/)
co -50
..c:
0..
-100
1E3 1E4 1E5
Frequency (Hz)
The contents of input data files SAMPLE1S • AFT and. SAMPLE1Z • AFT for ARMAFIT fitting are
shown below.
- s-domain fitting:
C SAMPLE1S . AFT
C
C To execute A:RMAFIT, type as : "A:RMAFIT [Link]". ARMAFIT reads
C this file, and generates files "[Link]" and "[Link]". The fonner .is
C the punch-out [Link] used as KIZILCAY F;..DEPENDENT branch cards, and the
C latter .is a file containing: the [Link]: result. The [Link]: result may
C be [Link]:med by [Link]: "G", .iIlVok:[Link]: a batch. file "[Link]" to convert
C "TEMI?AGF" to "[Link]" and to execute a small plotting: proqram. "PGVGA"
C (VGA [Link] of ProGrapher 3.4). "[Link]".is the .input to "PGVGA".
C To replot the [Link]: results, [Link]: "[Link]" .is preferred to bypass the
C [Link]. To fulfil this procedure., the [Link]: files are [Link]:
C A:[Link] [Link]
C [Link] data converter (from *.AGF to *.PG)
18 - XVIII. NODA SETUP and ARMAFIT
- z-domain fitting:
e [Link]
e
e To execute AlU!IAFIT, type as : "AlU!IAFIT SAMPLEIZ .AFT". AlU!IAFIT reads
e this file, and generates files "[Link]" and "[Link]". '!'he former is
e the punch-out fi1e used as KIZILCAY F-DEPENDENT branch cards, and the
e latter is a file containing the fitting resul.t. The fitting resul.t may
e be confirmed by typing "G", invoking a batch file "[Link]" to convert
e "[Link]" to "[Link]" and to execute a small p10tting program "PGVGA"
e (VGA version of ProGrapher 3.4). "[Link]" is the input to "PGVGA".
e To rep10t the .fitting [Link], us:[Link] "[Link]" is preferred to bypass the
e conversion. To [Link] this procedure, the following files are required:
e ARMAFIT . EXE fitter
e [Link] data converter (from * .AGF to * .PG)
C [Link] vector-plotting program
XVIll. NODA SETUP and ARMAFIT - 19
The contents oftheARMAFIT output files SAMPLEl.S. PCH and SAMPLE1Z. PCH are given below,
respectively:
,- WDBOS· PGVGA
-- - - ~ - - - - - -I!lIilI:!- ~
] . . . . . . . .1
I
I
-.Ofr ................................. ..................................
,
-1I
-60 1 a 3 4 5 6 ?
ORDER
ORDER-Ale characterlstlc ( dt = -1.00E+OO )
1E-qn~OOA----------------------------~1E~+~O=4.--------------------------.1FE+'05
FREQUENCV Utz]
[Link]-t'IAOHlTUOE characteristic ( dt = -1.00E+OO )
0r-----------------4~~:-----------------~
j
j
J.. -90
~
jW -180
JIll
II!'!
-l!
F -a?O~ ______~__~~__
.. ~
...~.h~..~
..~-~~-
I -~
-36lb,...,u..--u--------------------TP
... IO·+!-.'uor.r.-----------------TPi
...IO<+05:
-1 [Link]'o' [Hz]
1 [Link]-PHASE characteristic ( dt = -1.00E+OO )
U sing the present example, a switching-surge simulation is carried out by applying a step voltage of
10 V to the series RLC circuit modeled by a z-rational admittance function given above. The contents
of corresponding EMTP data are as follow:
ro +---------------------------------- 2f}00
8 1000
6 o
4 ·1000
Fig. to Step response of the series RLC circuit modelled by KIZILCAY F-DEPENDENT
22 - XVIII. NODA SETUP and ARMAFIT
XVIII-5 References
[1] A. Ametani, Refraction coefficient method for .switching-surge calculations on untransposed transmission
lines (Accurate and approximate inclusion of frequency dependency), IEEE PES Summer Meeting, C
73-444-7, 1973.
[2] L. Marti, Simulation oftransients in underground cables with frequency dependent modal transformation
matrices, IEEE Trans., Power Delivery, vol. PWD-3 (3), pp.1099-l110, 1988.
[3] G. Angelidis and A. Semlyen, Direct Phase-Domain Calculation of Transmission Line Transients Using
Two.,Sided Recursions, IEEE Trans., Power Delivery, Vol. 10, No.2, pp. 941-949, April 1995.
[9] T. Noda, Development of a Transmission-Line Model Considering the Skin and Corona Effects for
Power Systems Transient Analysis, Ph.D. Thesis submitted to Doshisha University, 1996.
[10] T. Noda, N. Nagaoka, and A. Ametani, Fault-Surge Calculations using the Phase-Domain ARMA Line
Model, Trans. lEE ofJapan, Vol. 116-B, No. 11, pp. 1409-1414, 1996.
XIX. Supporting. routine. - 1
Supporting routines are used to translate some input data. which is known for the
user. to some other output data which directly can be used in. an EMTP application.
One group of these supporting routines is treated in this chapter. while other
supporting routines are treated in some separated chapters. '
The supporting routine "XFORMER" can be used to derive a linear [R]-[wL] repre-
sentation for single-phase transformers (both 2- and 3-winding transformers), using
test data of the excitation test and short-circuit test at the rated frequency.
Exci tation losses can't be taken into account by this model. On the other hand,
these losses can be neglected for a single-phase transformer, recall. The
short-circuit losses can (and should) be taken into account, however.
Stray capacitances are ignored in this representation, which therefore is only
valid up to a few kHz. On the other hand, the model is not valid for extremely
low frequencies either. The latter is mainly due to the fact that the XFORMER
model uses admittances internally without first separating the resistive and
inductive parts. At DC conditions, this mathematical manupulation then results
in non-zero off-diagonal resistive elements, which indicate induced voltages in
the secondary winding. At DC, of course, such voltage induction is physically
impossible.
Non-linear behaviour can't be included in the "XFORMER" model proper. Such behaviour
(saturation or hysteresis) could be taken into account, however, by adding type
93, 96 or 98 elements, connected to the proper transformer terminals (i.e. those
windings that are closest to the core) in the electrical network, during the
steady-state or transient run. In such case, however, it would be mandatory to
specify lex = 0, since otherwise, the magnetizing inductance will be taken into
account twice. On the other hand, of course, lex = 0 is impossible, since this
would result in an admittance matrix being singular. Hence. XFORMER will not be
able to take saturation into account properly. Usage of BCTRAN is desirable in
such case. Alternatively, for the two-winding transformer, this problem can be
circumvented by using the saturable transformer component (which explicitely takes
into account the saturation). In the 3-winding case, however, the saturable
transformer component can become numerically instable for unknown reasons.
The punched card output of XFORMER can be used immediately as input branch cards
for mutually coupled R-wL elements (TYPE 51, 52, ••• ) in the electrical network
(Section IV-C). Do not forget to set the miscellaneous parameter XOPT (to be used
during the transient run) equal to the value of the rated frequency used to perform
the excitation- and short-circuit test. Indeed, all input data are only valid at
this implicit frequency. Further, note that it is impossible (even useless) to
try to reset the value of this frequency!!
The following will. explain the input data-deck structure for all possible "XPORMER"
cases.
The only differences between the input rules for a 2-winding and a 3-winding
transformer are the following:
- (pOint 4) Number of terminal nodes, mentioned on the "BRANCH" card.
- (point 5) Number of cards "NC" in the grouping specifying the electrical parameters
of the transformer.
- (point 6) The output for a 2-winding transformer only contains TYPE 51-52 branch
cards, whereas the output for a 3-winding transformer contains TYPE
51-53 branch cards.
Suppose that a user wants to model a single-phase, 2- or 3-winding transformer
using the XFORMER supporting routine. His data deck then should have the following
structure:
1. BEGIN NEW DATA CASE
2. XFORMER - special-request word
(transfers control to the proper overlay)
3. SERASE - request (optional)
(erase all card images that might exist in punch buffer)
4. BRANCH - card (optional)
(name the terminal nodes of the transformer windings)
'5. "NC" data cards
(specify the electrical parameters of the transformer)
NC = 2 for the 2-winding case
NC = 4 for the 3-winding case
6. SPUNCH - request (optional)
(flush contents of punch buffer of preceding XFORMER case)
Remark that the data of points 4, 5 and 6 may be repeated as many times as
desired. Each such grouping is a separate data case within the "XFORMER It
setup, corresponding to a different transformer.
11JJ}JJiJJ~lJJJJJIJj~lJJJJJiJJ~lJJJJJ1JJ~lJJ}JJiJ~~lJJ~JJi~~~lJJJJJfJJ~lJJ{IJIJJ~
BEGI N NEW DATA CAS
2. Next comes the "XFORMER" card, a special-request card which serves to transfer
control to the overlay in question.
3. Next comes the optional "$ERASE" card, a special-request card which serves to
reset the punch buffer (LUNIT7).
11JJJJll~J~lJJJJJJJJ~lJ4JJJiJ~~lJJJJJiJ~~lJ1JJJ1J~~lJJlJJ1J~~lJ1JJJ1JJ~lJJJJitJ~~
$ERAS
NOTE: This optional $ERASE card should be used whenever punchcard output is requested
as input for the electrical network.
4. Next comes the optional "BRANCH" card. which serves to name the terminal nodes
of the transformer windings. Thus. each winding will be interpreted as a branch
between "BUS1" and "BUS2". Since all of these branches will be represented as
TYPE-5x elements. mutual coupling can be taken into account.
NOTE: This optional card should be used whenever punched card output is requested
as input for the electrical network.
The card format is slightly different for the 2- and 3-winding cases. In the
FORMAT diagrams. "HV" stands for high voltage, "LV" stands for low voltage. and
"MEn" stands for medium voltage.
XIX.A "XFORHER" to derive [R]. [wL] ot .ingle-pha.e tran8former. - 4
a) Iha 2-winding ~:
I~ I" IE Ie
I :;I~ i~ '~I( I~ r! Id~l( l!t~l( I! I~ IE 'I I~I( l' rH~ ~. 'It~l(
BRANCf A6 A6 A6 A6
b) ~ 3-winding ~:
I:; I- IE Ie
~* tcl~ Ie :~ Ie f!
BRANO
I"
A6 A6
'* I~
A6 A6
i"l-
A6
I-I'
A6
:~ l- IE ~ ct~l( ~~ ~!I~ 'c!5lc
5. Following are data cards, specifying the electrical parameters of the transformer.
These cards can be split into two parts:
- The first card groups excitation data and the output specification request.
This card is slightly different for both 2- and 3-winding transformers
(parameter "NW" in column 1).
- The second group of cards contains short-circuit data. The number of cards
in this second grouping depends on the number of windings. For the 2-winding
case, only one card will be needed, but for the 3-winding case, 3 cards are
needed.
5.1. F2rst comes one card, containing both the excitation data and the output
specification request. The only difference between the 2- and 3-winding cases
is the value of the parameter "NW".
I~
I~ Ie t<lc
E9.0 E10.0
~ IMAGN SBASE
XIX.A "XFORMER" to derive [R). [wL) of single-phase transformers - 5
Parameters:
NW Number of windings.
=2 2-winding transformer
=3 : 3-winding transformer
VOLT2
IMAGN-I u SBASE 100
Note that the case of "lMAGN = 0" will result in an error message. In such
case, the user is adviced to use the BCTRAN model (section XIX-C). Further,
it is accurate enough to use the magnitude of the value of the exciting current
rather than the exact (but smaller) magnetizing current.
5.2. Cards containing short-circuit data. For the 2-winding case, only one card
will be needed, but for the 3-winding case, 3 cards are needed.
Parameters:
VOLT1: Rated RMS voltage (in kV) of winding 1 (high voltage side).
VOLT2: Rated RMS voltage (in kV) of winding 2 (low voltage side)
Parameters:
VOLTi: Rated RMS voltage (in kV) of winding "in.
PLOSSij: Short-circuit losses (in kW) at rated frequency.
ZSCij: Magnitude-of the short-circuit impedance (in percent) of the transformer
between winding "in and winding "j".
Note that this percent value is implicitly frequency dependent, since it is
measured at a very specific frequency: the rated frequency. Further. following
formula should be used:
USB"lJ
ZSCi ._~
J I,,, VOLTi2
6. Next comes the optional "$PUNCH" card, a special-request card which serves to
activate the puncher (LUNI'I7).
11JJJJjJJJ~lJ1JJJJ4J~lJ1JJJjJJ11JJJJJJ4J~lJJJJJi4J~lJJJJJi4J~lJ1JJJ14J~lJ1JJliJJ~
$PUNC
NOTES: 1) This optional card should be used whenever punched card output is
desired.
2) Since both the resistance- and inductance matrix are in Ohms, at the
rated frequency, one should use XOPT = "rated frequency" during
transient runs using this punched output as branch card input.
Note that the data of points 4, 5 and 6 may be repeated as many times as desired.
Each such grouping is a separate data case within the "XFORMER" setup, corre-
sponding to a different transformer.
8. If the user wants to shut off the EMTP at this point, a "BEGIN NEW DATA CASE"
card, followed by a blank card should be entered next.
short-circuit impedance:
U,/l 8.3
Z'/l-]= 16 =.518 Ohms (at SO. Hz)
. ,/l
The short circuit test was performed using 16 A rather than the normal HV current
Ino.. Hence the value for the losses should be modified:
I slt,ao",)2
P sit, aD", • P sit. ",X ( - I - -
slt,In
where the index "nom" refers to nominal conditions and "m" refers to actual measuring
conditions.
Since I • 6300. 16 71 A
[Link] 377 •
we find (16.71)2
P s/l, aOln - 0.095x 16 - 0.1 0363KW
These values can not be traced back in the punched results. This is because the
full admittance matrix is inverted, resulting in non-zero off diagonal values in
the resistance matrix. Further details can. be found in the Theory Book.
The card deck representing the XFORMER input, then would result in the following
card sequence:
2 6.460 .0063
c
C .377/.220 voltage ratio. PLOSS12 • • 10363 KW. %SC12 • 2.296 ,. PB%12 • • 0063
C
.377 .220 .10363 2.296 .0063
SPOMCH
BLANK CARD ENDING XFORHEX
BLANK CARD ENDING ALL CASES
For the sample input data of the preceeding paragraph, the output appears as
follows:
in [kW)
Iapadance based on
[percent) [MYA)
6.30000000E-03 MYA.
lapadance . .tria a. required for transient .tudie•• with reactance X in _ at the _ r frequency.
R x R X R X
8igh 0.9212619E-Ol 0.3493188£+03
Low -0.5411077£-01 0.2037411E+03 0.3157658E-Ol 0.1189555E+03
Short-circuit input iapadancas follow --- obtained free the just-printed iapadance . .trix by rever•• COIIputation. Thb represents
sort of a check on the ~utation:
8igh -- Low 0.37071 0.36138
Repeat the preceding calculation. only this t i _ the starting point will be the iapadance . .tria with aU a l _ t . rounded to
approxi_taly five deei. .l digits:
High -- Low 0.37070 0.37938
1234567890123456789012345678901234567890123456789012345678901234567890123456789
TYPE 51-52-53 punched output cards can be used immediately as branch cards
representing the transformer. Don't forget to put XOPT (miscellaneous data card)
XIX.A "XFORMER" to deri •• [R]. [wL] of single-phase transformers - 10
equal to the value of the rated frequency (transformer testing frequency) during
a transient simulation. Further, be sure that the free-fromat separation- and
continuation characters are compatible between XFORMER and the transient run. For
more details, see Section IV-C.
Recall that XFORMER can not deal with non-linearities (such as saturation and
hysteresis). This could only be done via external addition of a. saturation curve.
But in such case, XFORMER proper should deal with lex = 0, wich is impos~ible.
XIX-B. "OBSERVE PARALLEL MONTE CARLO" for Parallel "STATISTICS" - 1
The philosophy and theory behind OPMC is covered in Ref. [52]. so such
information will not be repeated here. Instead, the presentation here will be
limited to an explanation of the interactive dialogue that is possible following
the program prompt, which appears as follows:
key (INIT, SHOW, END. ADD, EDIT, USE, WAIT, GO, SHOT, WIDTII, CARD, HELP, QUIT):
User alternatives, most of which are shown in parentheses, will be explained one
at a time in following paragraphs.
"INIT" (short for "initialize") is the appropriate first command if no
correctly-structured disk file [Link] already exists. Alternatively, it
can be used to erase all history from such an existing. legal, history file.
"SHOW" will produce a display having one row for each EMTP process that has
submitted information since the previous initialization. For example:
USERID Starting time La.t-ahot time XNT NENERG INDHCB Eztrema and .witch time • • tored here --)
The 6-byte USERID is from either the STARTUP file or a subsequent "USER
IDENTIFICATION" declaration. Note that lower case is preserved. This label
must be unique for any such parallel Monte Carlo simulation, since it identifies
the process. The "Starting time" is the same figure that is a part of the
heading that begins the LUNIT6 output of a simulation. The "Last-shot time" is
the time at which a row of the table was last updated, at the completion of
another energization. Variables KNT and NENERG show the number of the last-com-
pleted energization and the terminal number of such energizations. INDMCB is
the index to RAM-based storage of the energizations. Finally. history of the
energizations is stored in the disk file having the 40-byte name labeled "Extr-
ema and switch ••• ", which was taken from theSOPEN card connecting this file to
LUNIT2. Should the user want more information, he should send "SHOW ALL", which
will append more information after the just-explained table. An illustration
follows:
Proce.. JJP'I1LL created "START AGAIN" table. named .• //c/vam/[Link]
XNTSUM KSWTCH NTOT IBR KSTAT JJLAST LSIZ23 JJFULL
182 6 25 15 10 6 4000 2
Shown first is the file name of the "LABCOM" tables (normally there will be
just one). About following integers, KNTSUM is the sum of all energizations
(sum of rows in the KNT column), KSWTCH is the number of switches, NTOT is the
number of nodes, IBR is the number of branches, NSTAT is the number of output
variables, JJLAST is the last row of the table (visible only if it has not been
made inactive by USE), LSIZ23 is the dimensioned limit to RAM-based storage of
the energizations, and finally, JJFULL is the process number mentioned in the
first line. The command "SHOW TOP" will display three hidden records at the
beginning of the table. An illustration follows:
Columns! 12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678
Hisc. data - 6 25 15 10 6 4000 2 //c/wsm/[Link]
File locks -1 11 1
Inactivity" 1
XIX-B. wOBSERW [Link] ttOlfTE CARLOw tor Parall.l ·STATISTICS· - 2
Should the user want to "EDIT" these rows, they are numbered -2 (miscel-
laneous data), -1 (file locking flags), and 0 (inactivity flags). If a number
follows the "SHOW" command. (e.g., "SHOW 5" or "SHOW ALL 5"). it will be
interpreted as the repetition time in seconds for the display. The loop will
continue until it is broken by the user-keyed interrupt of SPY. This assumes
that the user-keyed interrupt is available for the computer of interest. If
not, perhaps a computer-dependent interrupt of the process will be required.
The "END" command will conclude either a single process, or all parallel
processes, at the end of the on-going energization or energizations. For a
single process, follow the command by the process number (e.g., "END 3" to put
process number 3 to bed. By definition ,. the process number is the row number
in the "SHOW" display. To put all processes to bed, send "END ALL". The
response of OPMC is to reduce NENERG to KNT. The EMTP checks for such a change
after each energization except the first, and it will modify NENERG accordingly,
resulting in a premature end to the energizations and a beginning of statistical
tabulations. if any.
The "ADD" command will punch EMTP data cards for subsequent statistical
tabulation of all energizations of all parallel processes. More preCisely, it
will create the cards to combine (hence, "ADD") all such raw data. during a
subsequent execution of EMTP. The user takes possession of these cards follow-
ing a $PUNCH request. To the computer-created cards must be added the tabula-
tion requests that are desired by the user. of course. This is done by manual
editing prior to use of the data cards.
The "EDIT" ,command allows the user manually to replace any single row of
the central statistics file [Link]. Follow the command word by the
process number (the row number of the "SHOW" display). There will be two
prompts for the 99-column line in two parts.
Send bytes 1-56 (through INDMCB) for line 6 :
Send file name (bytes 59:98) to complete row :
Note that the two blanks preceding the file name, columns 57 and 58, are not
redefined.
The "USE" command will toggle the activity status of a row of the central
statistics file without affecting the associated process in any way. Follow the
command by the process number (the row number of the "SHOW" display) that is to
be modified. A subsequent "SHOW" will illustrate the modified status. A row
that was visible will become missing (inactive), whereas a row that previously
was missing will become visible (active). In the preceding illustration, row
number 3 was missing because it had been made inactive by means of a "USE 3"
command. The next time a new process would be added to the table. it would fill
the las t such inactive row before a brand new row would be appended to the end.
"WAIT" is like "END" except that it results in process hibernation rather
than termination. The hibernating status of a process is indicated in the
"SHOW" display by a minus sign applied to the maximum number of energizations
"End" • To reactivate a hibernating process. use "00".
"GO" is like "END" except that it cancels the hibernation of "WAIT". Such
activation may require a few seconds (up to five for Apollo) actually to take
effect, however.
XIX-B. 'OBSERVE PARALLEL MONTE CARLO" for Parallel "STATISTICS' - 3
"SHOT" is like "END" except that it allows the user to change the maximum
number of energizations NENERG at the end of the on-going energization. There
will be a subsequent prompt for the new NENERG (either one ora full vector for
all processes). If "SHOT ALL" is used, a subsequent implied "SHOW" will confirm
the modified NENERG for all processes.
"WIDTH" allows the user to adjust the column width of the output. The
command is to be followed by the maximum column width, which must not be less
than 79 to avoid rejection. This is the same as the special-request word
"TRUNCATE OUTPUT LINFS". Without any such declaration, the truncation width is
set equal to the output width KOL132 as defined by STARTUP at the start of a new
data disk file (not by SSTARTUP or SWIDTH, however). To see the full row of the
"SHOW" table requires 102 columns, with any smaller figure truncating the
40-byte file name on the right. The full width of "SHOW TOP" requires an extra
8 columns (i.e., 110).
"CARD" results in the conversion of the UNFORMATTED output file of a process
into 80-column FORMATTED output cards. Follow the command by either the process
number (the row number of the "SHOW" display) or by the file name following the
tag "FILE=" (e.g., "CARD FILE=[Link]). This is the input. The output will
be punched cards (access bySPUNCH). For the inverse operation (for FORMATTED
input and UNFORMATTED output), use "CARD READ", after which the user must con-
nect his own input and output files using SOPEN. As a prompt will clarify,
these involve units 87 and 88, respectively, and these must be followed by "GO"
to actually perform the conversion. The "CARD" command is useful if the Monte
Carlo simulation has been split between two or more incompatible computers or
operating systems. Of course, in FORMATTED form, results can be exchanged
between any two EMTP computers, whereas UNFORMATTED output files generally can
not be. Punched cards provide a universal medium of exchange, after which "CARD
READ" restores the original, computer-dependent UNFORMATTED form. Also, the
"CARD" command allows for [Link] inspection and mechanical editing of output
files, should this ever prove to be necessary or desirable.
"HELP" produces explanation of the sort now being read.
"QUIT" will exit "OPMC" in civilized fashion, returning to the opening EMTP
prompt after the case-summary timing line that generally is of no interest (ig-
nore it).
XIX-C. -BCTRAH- to deri.e (1). [R) or [R). [wL) of .ulti-ph••e [Link]~er - 1
Excitation losses can be taken into account by this model. although these losses
can be neglected for both single-phase transformers and three-phase low-reluctance
transformers. Some more explanation related to the zero-sequence excitation test
for three-phase transformers seems to be desirable:
The short-circuit losses can. and always should. be taken into account.
into account the excitation losses. Since at DC these losses are zero, no non-zero
resistive elements can occur at DC anyway. Therefore,at DC conditions. no voltage
can be induced from one winding into the other, which is physically correct.
Non-linear behaviour can't be included in the "BCTRAN" model proper. Such behaviour
(saturation or hysteresis) can be taken into account, however, by adding type 93,
96 or 98 elements , cormected to the proper transformer terminals (i. e. those
windings which are closest to the core) in the electrical network, during the
steady-state or transient run. In such case, however, it is mandatory to. specify
[Link] = 0, since otherwise, the magnetizing inductance will be taken into account
twice. Another possibility is to switch over to the "saturable transformer model"
(section IV-E), which seems to work fine for all types of 2-winding transformers,
but which can become unstable numerically for the 3-winding cases. The reason for
this instability is not yet understood, but reordering the winding sequence might
solve the problem.
Since this model uses the admittance formulation internally, the magnetizing current
can have any value (even zero). On the other hand, of course, if the user specifies
too little magnetizing current, the admittance matrix becomes nearly Singular, so
that the [R]-[u..i..] output option becomes useless. Always use the [A]-[R] output
option in such cases. Recall that [A] equals the inverse of [L]. Further, note
that the floating-point miscellaneous data parameter EPSLIN (see Section II-B) is
used asa .singularity tolerance.
The punched card output of "BCTRAN" immediately can be used as input branch cards
for mutually coupled, high-precesion PI-circuit elements (high-precision TYPE 1,
2, ••• ) in the electrical network (Section IV-B) . This is explained in section
XIX-c-4. Assigning node names not only establishes the type of connection. (WYE or
DELTA), but also the phase shift (clock system) for a three-phase transformer (see
example in section XIX-C-3).
Further, don't forget that all input data are only valid for the rated frequency
at which all tests have been performed. Also note that it is impossible (even
useless) to try to reset the value of this frequency!!
The following subsection will explain the input data-deck structure for all possible
BCTRAN cases. Next will follow a .single-phase and a three-phase transformer example.
In the last subsection, applications of BCTRAN output will follow. It should be
stressed that all formulas to be used are in accordance with lEe Publication 76-1.
- 1-phase transformers:
- leave all fields for the zero-sequence input parameters blank.
use only the single-phase, positive-sequence power rating.
set the flag "NP" =
1 on the excitation test data card (point 4)
use the winding voltages, devided by SQRT(3) (point 5)
assign only node names to BUS1 and BUS2 of phase 1 (point 5)
leave flag "ID" blank on all short-circuit test data cards (point 6)
XIX-C. -BCTRAH- to derive [A). (R) or (R). [wL) ot multi-phase [Link] - 3
- low-reluctance transformers:
- the excitation behaviour depends on the winding connection. If no
DELTA-windings occur, the zero-sequence excitation current IEXZERO
will be low, and the corresponding losses LEXZERO can be neglected.
However, if a DELTA-winding occurs, it has to be opened during the
zero-sequence excitation test. The excitation IEXZERO will become
important and the corresponding losses LEXZERO have to be taken into
account.
value of the impedances (short-circuit impedance, magnetizing impe-
dance) equal in both the posi ti ve- and zero-sequence mode.
- set the flag "NP" = 0 on the excitation test data card.
(point 4)
- for the winding voltage, the connection (WYE or DELTA) is important
(point 5)
- assign node names to BUS1 and BUS2 for all three phases (point 5)
- take "care for flag "ID" (point 6)
- high-reluctance tr~formers:
- in this case the zero-sequence excitation current will always be high,
and hence, the corresponding losses should be taken into account. In
addition, the excitation behaviour depends on the winding connection,
the same way as for the low-reluctance transformer.
- the value of the impedances (short-circuit impedance, magnetizing
impedance) is different in both the positive sequence and zero sequence
mode.
set the flag "NP" = 0 on the excitation test data card.
(point 4)
- for ..the winding voltage, the connection (WYE or DELTA) is important
(point 5)
assign node names to BUSl and BUS2 for all three phases (point 5)
take care for flag HID" (point 6)
In general, an input data-deck for the "BCTRAN" supporting routine has the
following structure:
Remark that the data of points 4 through B may be repeated as many times as
desired. Each such .grouping is a separate data case wi thin the BCTRAN setup,
corresponding to a different transformer.
11JJJJ~i~JJ1JJJJJ{lj~IJJJJJjlJ~lJJJJliJJ~IJJ1JJiJJ~lJJJJJi~J~IJJJJlIJJ~IJJJifl~J~
BEGI N NEW DATA CAS
2. Next comes the "BCTRAN" card, a special-request card that serves to transfer
control to the overlay in question.
11JJJJ~JJ~J1JJJJJIJJ!lJ1JJJ1JJ~IJJJJ~JJJ~IJJJJJIJJ~lJJJJJIJJ~IJIIJJIJJ~IJIJiJIJJ~
ACCESS MODULE BCTRA
3. Next comes the optional "$ERASE" card, a special-request card which serves to
reset the punch buffer (LUNIT7).
11JJJJjJJJJ1JJJJJ{JJ~lJJJJJIJJ~lJ~JJJ1JJ~lJJ1JJ{JJ~lJJJJJIJJ~IJiJJJtJJ~IJJJiJIJJ~
$ERAS
NOTE: This optional card should be used whenever punched output is requested.
XIX-C. "BCTRAN" to deri.e [AI. [Rl or [Rl. [wLI of multi-ph•• e [Link] - 5
4. Next comes one card containing excitation test data, construction data, the
rated frequency, and the output requests:
II
I~ I'~! I ~ tfl~l( I~ I'~' r!~! ~ ,t f I( I: ~ E td~l( ~ It! ~.I' rl ie I·r!II tlhl< r!I~I<
Parameters:
FREQ rated frequency (in Hz) at which all tests are performed. Note that
this value is necessary only to allow either [A]-[R] or [R]-[uJ...] output. For
this conversion, the value of w = [Link] is needed.
[3v LV
three phase : lEX POS - I .... SiOS 100
=
where lex measured excitation current (nominal conditions - phase value)
VLV =
rated line voltage on LV side (see card 5)
SPOS =
power base
Note that if both IEXPOS = 0 and IEXZERO = 0, the [R]-[uJ...] output request will
generate an error message. Indeed. in such cases, the admittance matrix becomes
singular, so it can not be inverted!!! In such case, only the A-R option
should be used. Note. that [A] = [L]-l.
IEXZERO : the exciting current (in percent) in the zero-sequence excitation test.
NP =1 : IEXZERO = blank
I :[3v Ly
three phase: IE XZ E RO -;1 [Link] 100
Note that, if both IEXPOS = 0 and IEXZERO = 0, the [R]-[uL] output request
will generate an error message. Indeed. in such cases, the admittance matrix
becomes singular, so it can not be inverted!! In such cases, only the A-R
option should be used. Note that [A] = [LI-i.
5. Next come exactly "NW" data cards, one for each transformer winding. These
cards can be read in arbitrary order, since each card bears its own winding
reference number. The card format is displayed next:
, I: ~ !~ If IE
: t'! € I~ !e :, l'~ E 'fl~f( ,. ~! ,C ~I- l'~ E tE Ie I~ !~f! fE I( f( : . I~I= rEI* ,~l~
1* I- 'EI~C
I _
E10.2 E10.2 A6 A6 A6 A6 A6 A6
Parameters:
Note that V is the rated nominal line-line value to be used in all former and
following per-unit calculations.
NOTE: 1) If the values differ in the three phases. the average value should
be used.
2) If the winding resistances are not known. their value can be derived
automatically from the short-circuit losses "Pij" (see group 6), only
if the following three conditions are fullfilled at the same time:
- NW .LE. 3 (see group 4)
- Pij > 0 for all short-circuit tests {see group 6}
- IL ) 0 on FIRST short-circuit card (see group 6)
XIX-C. "SCTRAN° to derive (A). (a) or (a). (wL) of [Link] tranaformer - 8
BUSi : node names of the terminals of the winding "k" in each one of the three
phases. One pair of node names is needed per phase.
NOTE: 1} If a terminal is connected to ground. then use a blank field for the
name of that terminal.
2} By assigning names to the winding terminals. the punched card output
can be used directly as branch card output for a subsequent transient
simulation.
3) Assigning node names not only establishes the type of connection
(DELTA of WYE) but also the phase shift (clock system) for a three-phase
transformer.
Example:
L>c,
C2 x
A1
A
C2 92
81
A2
Cl
92
A1
x
91
x
S
Note that on the DELTA side a path to ground should exist. in order to avoid
"floating subnetwork" warning messages. This problem is discussed in extensive
detail in section IV-E-3.
6. Next come exactly "NW*(NW-l}/2 tt cards. one card for each short-circuit test
between a pair of windings. The cards can be read in arbitrary order. since
each card bears its own pair of winding reference numbers. The card format
is as follows:
I~ I~ f I E
~.l ~ rfl~ I( .~ f~ I! I~ I' 'fi~ I( I" 'fl~l( I'~' l~~1 'fi~l( I- .~ rE :( l~ !€ 'El~lc ~~l ~ ,E [fie (
Parameters:
XIX-C. -BCTRAH- to deriYe tAl. tal or cal. C~l of multi-phase transformer - 9
Pij : short-circuit loss or load losses (in kW) in the positive-sequence test.
Take care of the following
single phase Pij = Pah
three phase : Pij = Pah
- Under certain conditions, the winding resistance "R" (see preceeding group 5
data) can be calculated from the load losses. See parameter "R" of the
preceeding group 5 for more details.
ZPOSij : short-circuit impedance (in percent. at rated frequency) in the posi-
tive-sequence short-circuit test for winding "in with winding "j" shorted.
II •• 51'05
for three-phase: ZPOS= r:.
31 ,II
,#"J
-,-100
v NY
where Iah = nominal current on HV side (line value)
Ush = measured short-circuit voltage on HV side (nominal
conditions,line value)
SPOS = power base
VHV = rated line voltage on HV side{see card 5)
SPOS power base value (in MVA). used for "ZPOSij"-referencing.
ZZEROij short-circuit impedance (in percent. at rated frequency) in the zero
sequence test for winding "in with winding "j" shorted.
Note: This parameter should only be specified on the FIRST short-circuit test
data card.
7. A blank card comes next. to terminate the input of short-circuit test data.
8. Next comes the optional "$PUNCH" card, a special-request card which serves to
activate the LUNIT7 punching of branch cards:
11JJJJIJJJJ1JJJJJIJJ~IJJ~JJJ~J~IJJJJJIJ~~lJJJJJIJJ~IJJJJJIJ~~lJIJJJ)J~~lJJIIIIJ~~
$PUNC
XIX-C. "BCTRAH" to deri.e [Al, [Rl or [Rl, [wLl of [Link] tranaformer - 11
Notes: 1) This optional card should be used whenever punched card output is desired.
2) This punched output will use the high-accuracy fixed-format notation for
TYPE-1-2-3 elements.
3) We refer to section Xlx-c-4 for rules to be followed when inserting the
punched card output in an electrical network simulation.
Remark that the data of points 4 through 8 may be repeated as many times as
desired. Each such grouping is a separate data case wi thin the BCTRAN setup.
corresponding to a different transformer.
9. To end all "BCTRAN" cases, a blank card should be entered next.
10. If the user wants to shut off the EMTP at this point, a "BEGIN NEW DATA
CASE" card, followed by a blank card, should be entered next.
a. Data setup
Consider the case of a one-phase transformer with both primary and secondary
winding grounded at one terminal node. The other terminals are called "P1" and
"Sl" for primary and secondary, respectively. Finally. the following data were
obtained by measurements on this transformer (at 50 Hz):
Power rating S 0.0063 MVA
Excitation losses [Link] 65 W
Excitation current lex 1,85 Amps
Short-circuit losses [Link] 95 W
Short-circuit current ISh 16 Amps
Short-circuit voltage USh 8.3 Volts
Voltage rating Vpria/Vsec 220/377Volts
The values for the actual input parameters will be derived hereafter:
IT =2 because the excitation test was made at the low-voltage winding, having
reference number 2.
J = 2
XIX-C. "BCTRAH" to [Link]. [Al. [al or [al. [wLl of multi-phase tranaformer - 13
where the index "nom" refers to nominal conditions and "m" refers to the
actual measuring conditions.
6300
S ince I sh •nOll = 377 = 16 .71 A
we find (16.71)2
1 6 - O,10363kW
c
P ./[Link].. - 0, 095x
The supporting routine "BCTRAN" will calculate the magnetizing shunt resistance
(iron core loss) too. In order to verify the output. the user can check this
parameter very easily:
v2s 220 2
R ..olla - P - '65- 744 ,620hm
a... 10..
Note that EMTP calculates a value R-self = 747,01
Input data cards for the "BCTRAN" processing of this case then could appear
as follows:
C -----------------------------------------------------------------------------
C Ezcitation data
C 3456789
C -----------------------------------------------------------------------------
123456789 123456789 123456789 123456789 123456789 123456789 123456789
2 50. 6.4603 0.0063 0.065 1 2 2-1
XIX-C. -BCTIIAN- to deri". [A]. [It] or [It]. [wL] of lIIulti-phaa. tranaformer - 14
1.21766 H1
2.12702 L1
cC Short
-----------------------------------------------------------------------------
circuit data
C
C -----------------------------------------------------------------------------
3456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
1 2 .10363 2.2994 0.0063 1
BLANK LINE ENDING SHORT-CIRCUIT TEST DATA
$PUllCH
BLANK LINE ENDING bctran
b. output
co-ent card. JIUI'IDCJ) - 1. e data://B/TRArD/[Link]
Marker card preceding ·...wDITP data ca••• B!GIII WEW Jl,\TA CASE
r=-.t card. IIUMDCD - 3.
co-ent card. IIUMDCD - 4.
ee -----------------------------------------------------------------------------
(input data [Link] to excitation and .hort-circuit t •• t ••
co-ent card. JIUI'IDCJ) - 5.
e perfo~ _ 13/02/84 _ a l-pha.. [Link] . . . r I
e
c-nt card.
-
IIUMDCD • 6.
c-nt card. JIUI'IDCJ) 7. e Power rating: 0.0063 IIIIA
cc-nt card. IIUMDCD • I. C Yol tage rating: 220/377 VOl U
c - n t card. JIUI'IDCJ) • 9. C Excitati_ 10.... : 65 W
c - n t card. IIUMDCD • 10. C Excitation current: 1.85 A
c - n t card. JIUI'IDCJ) • 11. e Short circuit 10.... : 95 W
c - n t card. IIUMDCD - 12. e Short circuit current: 16 A
c - n t card. IIUMDCD - U. e Short circuit voltage: '.3 Y
c - n t card. JIUI'IDCJ) - 14. e -----------------------------------------------------------------------------
canerat. trllftSfo . . . r (a).(L) or (A).(a). ACCESS IIODVl.! BCTRAN
Er••• all of 0 card. in the punch buffer. SEllASE
c - . t card. JIIIIIDCI) - 17. e -----------------------------------------------------------------------------
c - n t card. IIUMDCD - 11. e Eacitati_ data
c - n t card. JIUI'IDCJ) - 19. e ----------------------------------------------------------------------------
c - n t card. lIIJIIDCIJ - 20. e M567!9 12M54789 12M56719 12M56719 12M56789 12M56789 12M56789 12M56789
Excit. card. 2 5.00E+Ol 6.462+00 6.3OE-03 2 50. 6.4603 0.0063 0.065 1 2 2-1
Winding card. 1 2.11E-ol [Link]+OO "81 1.21766 Bl
Winding card. 2 1.27E-Ol [Link]+OO "1.1 2.12702 1.1
Excitat1_ t . . t _ f .... winding n _ r 2. Magnetizing ~ is placed aero. . winding"-r 2.
Pod tt_ .~ca zero .~ca CloJOad dalta
10.. (W) I~ca (per.,....t] Rating (IIIIA) I~ca (percent) . .ting [IIIIA) in
IIUMDCD - 24. e ------------------------------------------------------------------------
JIUI'IDCJ) • 25. e Short circui tdata
co-ent card. JIUI'IDCJ) - 26. e ---------------------------------------------------------------------------
co-ent card. JIUI'IDCJ) - 27.
e M56789 12M56789 12M56789 12M56789 12M567" 12M56719 12M56?" 12M56789
Short t . . t. I 2 1.0U-Ol 2.3OE+00 1 2 .10363 2.2994 0.0063
1 2 0.10363 2.29940 0.006 2.29940 0.006 0
Short t. •• t. o o [Link]+OO [Link]+OO IBIAIOC Lin DlDIIIG SIIO&T-CIIlCIIIT TEST Jl,\TA
ILOSS - 1
a •• [Link] . .tria value. [Link] froe load 10•••••
Shunt [Link] for representation of ezeltation los •••.
Place tha .hunt [Link] . . tri. aero•• winding 2 vith a-•• lf [~) • 7.47008966£+02 and [Link] (aha) • [Link]+OO
Branch card. vi th (A). (a) in "ida (SVIIITAGE. 11. fixed foraat are c .... ted next. II. . a SPIIIICII data card to . _ a copy of tha ••
an UlN1T6. !latria [A) is the inver•• inductance _tria in [l/henri •• ). _ . . . . . (II) 1& .... istance . . tria in (aha.).
Branch carda "ith (a). (wL) in vida (SVIIITAGE. 11. fixed foraat .... c ....ted next. II. . a SPIIIICII data card to . _ a copy of the.a
on UlNIT6. Radian frequency w corresponds to the input f~ l'ItEQ" 5.00000000E+Ol Hz.
_ _.t for flushing of punch buffer. IsPIIWCB
A [Link] of eo-col-. card i_g........ baing flushed [Link] buffer '011_.
1234567890123456789012345678901234567890123456789012345678901234567.901234567.9
USE RL
C ---------------- « ca. . ._rator ») ----------
SVnt'TACE ... 1..-
1L1 747.00896590667
USE Nt
1 866.71803330735 .18554656040922
2 -1485.197977718 0.0
2547.6262427514 .06318876613197
SVINTlIGE. O.
SUIUTS. -1 •• -1.
USE RL
C ---------------- « ca•• _rator ») -----------
SVINTAGE. 1. '
1L1 747.00896590667
USE Nt
1 866.71803330735 .11554656040922
2 -1485.197977718 0.0
2547.6262427514 .06318876613197
SVINTlIGE. O.
SIlKITS. -1 .• -1.
USE RL
C ---------------- « ca •• aeparator ») __________ _
SVINTAGE. 1.
lL1 747.00896590667
USE RL
SIlKITS. 0.50E+02 • O.
IBI .18554656040922 354.0518885064
2L1 0.0 206.40271389066
.06318876613197 120.45061844065
SVINTAGE. O.
_ITS. -1 •• -1.
USE RL
c ---------------- « case _rator ») -----------
SVINTIIGE. 1.
lL1 747.00896590667
USE RL
_ITS. 0.5OE+02 • O.
1 .18554656040922 354.0518885064
2 0.0 206.40278389066
.06318876613197 120.45061844065
SVINTAGE. O.
SIlKITS. -1. ~-1.
USE RL
c ---------------- « ca.. ._rator ») -----------
SVINTAGE. 1.
lL1 747.00896590667
USE RL
_ITS. 0.5OE.02 • O.
1 .18554656040922 354.0518885064
2 0.0 206.40271389066
.06318876613197 120.45061844065
$VINTAGE. O.
SUIIITS. -1. .-1.
USERL
C ---------------- « _ _ _ rator ») -------••••
••••••••• ( End of UnHT7 punched card_ as flushed by SPllllCII request ) ••• - •• -
Note: 1) The shunt resistances representing the excitation losses across winding
2 are added automatically.
2) The "SUNITS. -1.. -1." request is used to toggle back to the normal XOPT
and COPT values used further in the network.
a. data setup
direct measurements:
Excitation losses 18.112 kW
Excitation current 2.39 A
Excitation voltage 11.01 kV
Short-circuit losses 192.53 kW
Short-circuit current 153.1 A
Short-circuit voltage 35.213 kV
homopolar measurements:
Excitation losses 115.325 kW
Excitation current 500. A
Excitation voltage 1.183 kV
Short-circuit losses 8.825 kW
Short-circuit current 70. A
Short-circuit voltage 2.86 kV
The values for the actual input parameters are derived hereafter:
11.05)
1.-2.39 ( 11.01 -2.4074A
LEXPOS-18.1l2c~:~~r -18.244kW
XIX-C. -BCTRAH- to dar1 •• [A). [a) or [a). [wL) of ault1-ph•• e tranaforaer - 17
Note that this is only half of the value, adviced by the "Rule of Thumb".
SZERO = 35. (MVA)
LEXZERO = 3353.93 (kW)
Upgrading to nominal conditions is necessary for the homopolar excitation
losses too:
Card k = 1 (HV-winding)
VRAT = 76.21 (kV); line-to-ground value, because the winding is WYE-connected
(132././3>
Card k = 2 (LV-winding)
VRAT = 6.38 (kV); line-to-ground value, because the winding is WYE-connected
(11.05//3)
R - R (11.05)2 - 000959
2 1 132 .
~~
BUSH BUSL
BUS1-S BUS2-S S
BUSH BUSL
B US1-T BUS2-T T
BUS1-T BUS1-S BUS2-T BUS2-S BUSH BUSL
1=1
J =2
P12 = 192.53 (kW)
The direct short-circuit test was performed under nominal conditions
1234567890123456789012345678901234567890123456789012345678901234567890123456789
c <++ • • • • )
carda punched by aupport routine on 07-Feb-91 09.49.30 <•••••• )
e ACCESS MODULE IICTIlAII
C SEltASZ
eel PRzol I EXPOS I SPOSI LEXPOsl IEXZEIlol SZEllol LEXZEROIIPITIW
C 2 50. .1311 35. 18.244 49.15 35. 3353.93 0 2 2
C C kl VRATI III I
Ibusl11INo211 1N1111 lms2 11bual11INa21
C 1 76.21 BUS1 RBUSH IIUS1 saUSH &US1 TBUSB
C e kl VltATI R21 Ibuoillbuo211 busillbus211buaillbus21
e 2 6.38 BUS2_RBUSL BUS2_SBUSL [Link]
XIX-C. -8CTRAH- to deri.e [A). [I) or [I). [wL) of aulti-phaa. trenaformer - 20
Note: 1) Observe the mutually coupled shunt resistances representing the excitation
losses across winding 2. Although these values are calculated by EMTP,
resul ts can be verified easily:
direct: 11010 2
R"..d- 18112 -6693
homopolar: 3x 1183 2
R ... 1t - 115325 - 36.41
XIX-C. -BCTRAN- to dar1.a [A). [R) or [R). [wL) of .[Link] tranaformer - 21
Then it follows:
1
R. - 3(R ... h + 2R ... ct ) - 4474
153.09)2
P .[Link].. - 8.825 ( 70/3 - 379.94kW
Indeed, we had to upgrade the losses, since the homopolar short circuit
test was not performed under nominal. conditions.
$VINTAGE, 0
Use this [R]-[u..L] option only if the per unit excitation current is sufficiently
large. In case of a near-zero excitation current, the admittance matrix [A] =
[L]-l is near -singular and hence can't be inverted to produce an [L] matrix. The
[A]-[R] notation should be used in such case.
Section II-A-42 explains the reason for the "CHANGE SWITCH" feature in considerable
detail. and that introduction will not be repeated here. Nor will there be any
explanation of former switched-R and switched-L element formats. which can be found
in Rule Books printed earlier than the 1982 removal of such elements.
Following the "CHANGE SWITCH" request. the user can place an old EMTP data in its
entirety. if this is most convenient. What the program. does is discard all input
cards through the first blank card (for a complete. data case, this would be the
blank card ending branch cards). Then it reads cards that are assumed to be switch
cards, until the blank card terminating these. All later cards. through the
following "BEGIN NEW DATA CASE" separator card. are also ignored. So. it is only
switch cards that are considered. and only the switched-R and switched-L elements
among these are actually processed. Other switches are ignored. This illustrated
by the second subcase of BENCHMARK DC-14. which contains informative comment
information:
Punched output includes the original switch cards on comment cards as documentation
for the Type-98 and Type-99 elements that follow. Other comment cards label the
new data. This is illustrated by the beginning of the punched output from BENCHMARK
DC-14:
fterk.r cerd preceding new ~ dete ce... IIEGI" WEW DAT~ CASE
C_nt card. 1nMlJCD. &3. C 2nd of 2 ."...,.••• [Link] old Type-9l. 92. or 93 to p....do-nonlln•• r.
convert .wltehed-R.L card. to pseudo-nonlinear. ~GE SWITCH
Thi. code wiil reed date typeo 91-Ti. . -Dependant R. [Link]•• and 93-SwitchBd Inductor. S"ch old data will be con. . rtad.
and punched as paeudo-nonl1near [Link] to ... t .adarn EMTP requlr.-entsa
Type-91: piectlVb. Unear reolotor .1LEn RIGHT 0.3E6
CINIracterlotlc. 0.0 lCD. 0.0 lCD.
[Link]. 0.3 200. 0.3 200.
[Link]. 0.1 150. 0.1 150.
CharacterloUc. 1000. 150. 1000. 150.
[Link]. 9999 9999
Type-91: ptectlVtoe Unear restotor 91 "ODEI "ODU COPTL COPYl! • 25E6
C....,nt card. 1fUPIDCD· 77. C Type-92 .witched-It .1 ...nt foll0w0 Ito be converted):
c.-.mt cerd. InIIIDCD. 78. C 3451789012345678901234567890123456789012345178901234517890
Type-92: .witched [Link] 92JD~Y~ LMO"~ 8.5 [Link] 3.5E5 3
C....,nt cerd. IItIMDCD· 80. C Type-93 owitched-L el . . .nt followo Ito be converted):
Type-93: SWitched inductance 93SENDA "EUTRL 4.2 2.5 0.7 3.3 1
Reque,t for [Link] of punch buffer. SPUNCH {Flush the punched-card output of equivalent [Link]-nonllnear el..ent.
XIX-D. "CHANGE SWITCH" to Convert Former Switched-R.L Element. to Type-99. 98 - 2
J\ lhUng of80-colWIII card l_ga. now beIng [Link] frOlO punchbuffar fallow •.
123456789012)45678901234567890123456789012)4567890123456789012)456789012)456789
••••••••• ( End of IJJNIT7 puncheel card ••• fIlla_by SPUNCH [Link] ) •••••••
XIX-E. ·OLD TO HEW ZHO· to update pre-"H39." ZnO data card. - 1
It is the user's responsibility to pick up the punched cards (via $PUNCH request).
since otherwise, there is no output.
XIX-F. DATA BASE HODUl.E - 1
The network section within the module is fully described in what is called a
template. This template uses fixed values in combination with module arguments,
pretty much in the same format as a normal network would be represented for EMTP
purposes. Details on both argument definitions and creation of templates will be
discussed further in this section.
Such module can have fixed values in combination with variables or arguments,
referring to both numerical values and node names. For numerical data, some of the
parameters in such module can have fixed values, whereas other values should be
treated as parameters. Parameter values will be allocated when referring to the
module in question. This is done by the extended and powerful SINCLUDE command.
On the other hand, node names always should have unique names throughout the network
under study. This can be obtained either by user allocation (extended SINCLUDE
command). either by automatic name generation (treatment of dummy node names).
After a while, one will end wi th a lot of modules. Then it will become difficult
to have an overview of all existing models. Further it will become difficult to
remember the meaning and the number of arguments per module. Most of these problems
can be handled by using strong standardisation in module naming. Further, usage
of a relational data base (such as DBASE III) would be useful.
The input format for the .supporting routine "DATA BASE MODULE" contains two
different sections:
an "argument declaration list"
a "template"
XIX-F. DATA BASE ttODULE - 2
The named arguments will have a value allocated through the. SINCLUDE argument
list (sections I-D-19 and I-K). Currently, the number of named arguments in such
list is limited to 35. The named arguments can be defined in any arbitrary order
and a mixed sequence of node name arguments and numerical arguments is allowed.
But the sequence of arguments in. the argument declaration list of the template
should correspond to the sequence of allocated values and node names in the SINCLUDE
argument list. Further, it is the user's responsibility to guarantee the uniqueness
of node names throughout the entire network under simulation. This is rather easy
to obtain for connection points but it becomes extremely cumbersome for internal
node names within the module. For internal node names (i.e. nodes inside the module,
without any link to the rest of the network), the feature of "dummy arguments" can
assist the user in obtaining unique node names allover the network under study.
A "template" is nothing else then the EMTP input representation of the module
or network section under study. Hence all rules applicable to the normal EMTP input
format are also applicable to this templates. The only difference is that in some
places, arguments (parameter names) rather than actual values are used. This means
that there is a. combined use of both actual values and arguments. Further. the "/
card" feature is in use (see section I-J: EMTP data sorting by class).
The input file for the supporting routine "DATA BASE MODULE" should show
following card sequence:
Let's discuss the input cards one by one now, in more detail:
1.. "BEGIN NEW DATA CASE" special request card, specifying the NOSORT option,
somewhere on the very first .input card (the position of the word NOSORT is
unimportant). This card is always used to indicate the beginning of a new program
run. Hence this special request card can be thought of as a case separation
marker.
2. "DATA BASE MODULE" request card. This special-request card transfers program
control to the supporting routine that searches the user's raw data for the
character strings of all arguments of interest and establishes numerical pointers
for all arguments in order to speed up later usage with the empowered SINCLUDE
command, allowing the transfer of arguments ( see sections I-D-19 and I-K).
3. SERASE card. This card is used to clear the buffer that holds punched card
output (see section I-D-17).
4. Argument declaration list (ARG, NOM, DUM). The argument declaration list defines
whether an argument is named or dummy. For named arguments, further specification
is needed in order to make the difference between node name parameters or
numerical parameters. Let t S discuss the declaration of all three argument types
separately:
Remarks :
- The sequence in this argument list later should correspond to the sequence
of allocated values in the SINCLUDE argument list.
- In order to avoid a "length mismatch error", the length of the argument name
must be equal to the length of the allocated name specified in the SINCLUDE
argument list. In order to adjust the argument length, following symbols can
be used:
"_" (underscore) in the argument name
"II" (pound sign) in the allocated name
- Automatic phase indication is possible too. In that case, only the first
five digits of the name field are free for parametric usage. The sixth (utmost
right) digit remains fixed in the template (see point 5. further in this
section)
XIX-F. DATA BASE MODULE - 4
4c. Dummy arguments should always refer to internal node names of the module.
Declaration (free-format.):
ARG namel, value 1 , ••••
NUM value!,
DUM dummy!, dummy2, ••••
Remark:
- Dummy argument names DON'T appear in the ARG-list, nor the NOM-list.
Consequently no value will be allocated via the SINCLUDE argument list.
- The sequence of dummy names in the DUM-declaration list is purely arbitrary.
The name allocation will be generated automatically, based upon a three-digit
root name, followed by a unique three-digit serialization number.
- In order to avoid a "length mismatch error", it is important that the argument
name contains six digits. In order to adjust the argument length, following
symbol can be used:
"_" (underscore) in the argument name
5. Template (/BRANCH, ISWITCH. ISOURCE ••••• ).
A "template" is nothing else then the EMTP input representation of the module
or network section under study. Hence all rules applicable to the normal EMTP
input format are also applicable to this template. The only difference is that
in some places, arguments (parameter names) rather than actual values are used.
Further, the "I" card feature is in use (see section I-J: EMTP data sorting by
class). The separator cards must be specified with the reserved symbols (BRANCH,
SWITCH, SOURCE) to recognize the place where the data module information has
to be copied to.
e.g. all template information mentioned under IBRANCH will be placed before the
separator card:
BLANK card ending BRANCH cards
e.g. all template information mentioned under /SOURCE will be placed before the
separator card:
BLANK card ending SOURCE cards
XIX-F. DATA BASE HODt1LE - 5
Automatic phase indication is possible too. In that case. only the first five
digits of the name field are free for parametric usage. The sixth (utmost
right) digit remains fixed in the template.
5c. Dummy arguments, always referring to internal node names of the module.
In the template. dummy arguments referring to node names should be placed in
the zone reserved for such variables in normalEMTP input cards . Since by
definition. the length of argument name and allocated name are both equal to
six, the positioning of names remains unchanged.
7. Comment cards.
This combined case separation marker is used as a flag, indicating that the
data card input for themodularization is terminated here. The number of comment
cards needed is controlled by variable KASEND in the "startup" file.
B. SPUNCH card.
This special request command is used to flush the contents of the punch buffer.
which now contains numerical pointers for all arguments used in the template.
as well as the template itself.
The usage of these pointers will speed up later processing of the template via
the empowered SINCLUDE command (see section I-D-19). certainly when actual
values and names should be allocated to the arguments .
1X-[-3. EXAMPLE
Benchmarks documenting this usage are: DC36 (template creation) and DcB (usage
of the created punch file). Nested usage is explained in DC5B. The best way to
discuss the possibilities of this powerfull tool is to illustrate its usage for
a simple example, which represents a 6-valve thyristor bridge used in HVDC stations.
The electrical scheme of this circuit is represented in Fig.l.
XIX-F. DATA BASE MODULE - 6
,- '200
I0Il3
RESIS 1.0
'\.l1S
a) Following file is an example of the corresponding input needed for the DATA
BASE MODULE supporting routine.
BEGIN NEW DATA CASE ---- NOSORT
DATA BASE MODULE
$ERASE
AJlG, _IIODE, _KIIWS, _PLUS, _FIRE,RESIS,CAPACI
HUH,RESIS,CAPACI
DUM, KID1, KID2, KID3, KID., __HIDS, __KID6
/BtWfCH - -
C3 Begin with anode reactors and parallel resistors (6 paira):
..ODEA KID1 RESIS CAPACI
-IIODEA-KID1 1.0
-IIODEB-KID3 RES IS
-IIODEB-KID3 1.0
- ..ODEC-KIDS RESIS
-HODEC-KIDS 1.0
:"PLUS KID. RESIS
PLUS KID. 1.0
-PLUS-KID6 RES IS
-PLUS-KID6 1.0
-PLUS-KID2 RESIS
-PLUS-HID2 1.0
C3-"[Link] the snubber circuits. across valves and anode reactors:
IIODEA KIIWS 1200. 0.1
:NODEB:KIIWS 1200. 0.1
_HODEC_KlNUS 1200. 0.1
_IIODEA_PLUS 1200. 0.1
HODEB PLUS 1200. 0.1
-NODEC-PLUS 1200. 0.1
C3- Nextcome the valves:
/SWITCH
11 KID1 KIIWS FIRE2
11-KID3- KINUS -FIRE.
11-KIDS-KINUS -FIRE6
11-HID.- HODEA -FIRES
11-KID6-IIODEB -FIRE1
11-I1ID2-NODEC ::::FIRE3
BEGIN NEW DATA CASE
C Just a comment card
$PUNCH ( Flush critical portion ot answers tro. preceding tirst subcas.
BEGIN NEW DATA CASE
BLANK
A listing of SO-column card images now being flushed from punch buffer follows .
...............................•.....................•.......••..•••.••........
1234567890123456789012345678901234567890123456789012345678901234567890123456789
...................•.......................................•..•........••....•.
IWID 2 2 2 2 33 4 4 4 5 5 6 6 6 7 7 8 8 8 9 9 10 10 10 11
11 12 12 12 13 13 14 14 15 15 16 1617 17 18 18 19 1921 21 21 22 22 22 23
23 23 24 24 24 25 25 .25 26 26 26
IWIG 1 5 6 -1 1 -1 1 5 -3 1 -3 1 5 -5 1 -5 3 5 -4 3 -4 3 5 -6 3
-6 3 5 -2 3 -2 1 2 1 2 1 2 1 3 1 3 1 3 2 4 -1 2 4 -3 2
4 -5 1 4 -4 l' 4-6 1 4-2
XBEG 3 28 39 9 3 9 328 9 3 9 3 28 9 3 9 3 28 9 3 9 3 28 9 3
9 3 28 9 3 9 3 9 3 9 3 9 3 9 3 9 3 9 9 65 3 9 65 3 9
65 3 9 65 3 9 65 3 9 65 3
KENO 7 32 44 14 7 14 7 32 14 7 14 7 32 14 7 14 8 32 14 8 14 8 32 14 8
14 8 32 14 8 14 7 14 7 14 7 14 7 14 7 14 7 14 14 69 8 14 69 8 14
69 8 13 69 8 13 69 8 13 69 8
XTEX 1 0 0 1 1 1 1 0 1 1 1 1 0 1 1 1 1 0 1 1 1 1 0 1 1
1 1 0 1 1 1 1 1 1'1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 111 1 111
/BRMCR
C3 BEGIN WITH ANODE REACTORS AND PARALLEL RESISTORS (6 PAIRS):
_WODEA.-KID1 RESIS CAPAC I
Remark that besides the entire template.• the punch buffer now contains numerical
pointers for all arguments used in the template. Lets discuss the meaning of all
five these pointing vectors:
KARD : This can be thought of as the record number of the template. Remark that
some card numbers (e.g. 1. 20 •••• ) seem to be missing. In effect. these
card numbers refer to so-called "I"-cards (e.g. card l=/branch. card
20=/switch, etc).
KARG : Named arguments have a positive value for KARG. whereas. dummy arguments
show negative KARG-values. Positive KARG values refer to the. position of the
current argument name in the ARG declaration list,. whereas negative KARG
values refer to the position of the current argument name in the DUM declaration
list.
KBEG : First position, taken by the current argument name on the specified card
in the template.
KEND : Last position. taken by the current argument name on the specified card
in the template.
KTEX : Flag. indicating whether the specified argument refers to a numeric value
(0) or a node name (1).
Once created, it is important NOT to though the created punch file again. Even
simple insertion of comment lines would ruin. the pointer setup.
c) Next data set illustrates how this module named \WSM/[Link] then should be
used in network simulations:
F1RE2
'2110 ,.. f'IIIf;6
0.'
'.0 '.0
IOCIICIloO
JICHODII
;ooa,c
PUIS
Note that specifying TEXNAM = XYZ519 (STARTUP file) would have the same effect.
In such case, one can ommit the $DUMMY specification.
[Link] Interpretation of Input data carda. I Input data card l_ga. are . _ bal_. all eo col ...... character by charecter
o 1 234 5 671
012345671901234567190123456789012345671901234567190123456789012345678901234567190
.005
'-I
C eSUFFIX • • PCB
4.0
"i.c. data. 1 -1 1 1 1 -1 0 0 0 0 1 -1 1 -1
PrlntDUt : 5 5 20 20 0 0 5 5 20 20
1:1ectric ... ~rk. too. Bolt TACS data flrat ••• TACS IIYBIlIU
F....-foraet TACS .uppl_tal variable daf1nad. 99 FIUl 0 TtllEX
Free-foraat TACS .uppl_ta1 variable daflnad. 99 FlRE2 • TllIEX
Fr. .-foraet TACS .uppl..antal variable daf1nad. 99 FIRE3 0 TllIEX
TACS .DUree. 0.0001.00 0.0001:+00 0.0001:+00 13~
TAeS .uppl_tal devlee type 52. 9. FIRE452+UJrITY 1. O. O. TllIEX
TACS .uppl_tal device type 52. 98 [Link] 1. O. O. TllIEX
TACS .uppl_tal device type 52. 91 FIRE652+UJrITY 1. O. O. TllIEX
Blank card t .... lnating all TAeS data card.. 8lAJrK card end. all TACS data
c:o..ent card. JrUIIDCJI 0 22. C
c:o..ent card. JIUMDCD 0 23. C llere the root . - 1 • •et to XYZ and the [Link] b .et to 519 • •0 the _ r l n
c:o..ent card. JrUIIDCJI 0 24. C ~ node _ . atarc. at _ r 520.
c:o..ent card. JrUIIDCJI0 25. C
c:o..ent card. JrUIIDCJI 0 26. C SDIMtY .XYZ519
c:o..ent card. JrUIIDCJI 0 27. C
c:o..ent card. JrUIIDCJI 0 21. C 8y ....... of the following SIJrCLUDI: requeat. the routlna [Link] 10 i n c l _
c:o..ent card. JrUIIDCJI 0 29. C Par the ..,.tendon ·PCB·. the ~ 'SVFFIX .... 18._ in the beginning of th
cc-nt card. JrUIIDCJI 0 30. C
c:o..ent card. JIUMDCD 0 31. C 'IIICLUDI. POIISX. ACIIOD. "'IIIVS. IIPWS. 'FIRIE. 5000 •• 3.0
Serie. R-LoC. 5.0001:+03 0.0001:+00 3.0001:-06 AClfOMXYZ520 5000. 3.0
sari•• R-L-C. 0.0001+00 1.0001:-03 0.0001:+00 ACIIOMXYZ520 t.O
sarie. R-L-C. [Link]+03 0.0001:+00 0.0001+00 ACIIOU8XYZ522 5000.
sari. . a-LoCo 0.0001:+00 1.0001:-03 0.0001E+00 ACIIOU8XYZ522 1.0
sarie. a-LoCo 5.0001:+03 [Link]+OO [Link]+OO ACIIOJlCXYZ524 5000.
sari. . R-LoC. 0.0001+00 1.0001:-03 0.0001:+00 ACIIOJlCXYZ524 1.0
sari •• a-LoCo 5.0001:+03 0.0001+00 0.0001:+00 PWSXYZ523 5000.
sari •• R-LoC. 0.0001+00 1.0001-03 0.0001E+00 PWSXYZ523 1.0
sarle. R-L-C. 5.0001:+03 0.0001:+00 0.0001:+00 PWSXYZ525 5000.
sarie. R-LoC. 0.0001+00 1.0001:-03 0.0001:+00 PWSlIYZ525 1.0
sarie. R-L-C. 5.0001:+03 0.0001:+00 0.0001E+00 PWSXYZ521 5000.
sari. . R-LoC. [Link]+OO 1.0001:-03 0.0001:+00 PWSXYZ521 1.0
sarie. R-LoC. 1.2001:+03 [Link]+OO 1.0001:-07 ACIIOM IIIJrDS 1200. 0.1
Sed. . R-LoC. 1.2001+03 0.0001+00 1.0001:-07 ACIIOUB IIIIIVS 1200. 0.1
S.r:l•• R-L-C. 1.2001+03 OaOOOE+OO 1.0001:-07 ACIIODC JUIIVS 1200. 0.1
sarie. R-L-C. 1.2001:+03 0.0001:+00 1.0001:-07 ACIIOM PWS 1200. 0.1
sari.. R-L-C. 1.2001+03 0.0001:+00 1.0001:-07 ACIIOU8 PWS 1200. 0.1
sari. . R-L-C. 1.2001+03 0.0001E+00 1.0001-07 ACIIODC PWS 1200. 0.1
Blank card ending brancha•• In. JrTOT 0 18 12 8lAJrK card ending BlUUfCB carda
Valva. 0.0001:+00 0.0001:+00 0.0001:+00 • FIXU· llXYZ520 "IIIVS FIRI:2
Valva. 0.0001:+00 0.0001+00 0.0001+00 • FIRE4" llXYZ522 "IIIVS rIRlE4
Valva. 0.0001:+00 0.0001E+00 0.0001+00 • FIRE6" t1XYZ524 IIIIIVS FlRE6
Valva. 0.0001:+00 0.0001+00 0.0001+00 • FIRE5· llXYZ523AC1fOM FIRES
Valve. 0.0001+00 0.0001:+00 0.0001+00 • FIREl· llXYZ525ACJrOUB rIRlEt
Valva. 0.0001:+00 0.0001+00 0.0001:+00 • FlaE3· llXYZ521AC1'1ODC FIRlE3
Blank card ending • .,i tcha•• XSWl'CII • 6. 8lAJrK card ending SWITCH carda
Node names are left-justified in their field, whereas numerical values are
right-justified in the field specified by the argument name in the template.
XIX-F. DATA BASE MODULE - 11
- All cards are sorted and put under the section they belong; branches are added
to the branch card grouP. switches to the switch card group and sources to the
source card group. This can only happen when separator cards are properly used:
e. g. BLANK card ending BRANCH cards
BLANK card ending SOURCE cards
na.t.e..:.. all template information mentioned under /BRANCH will be placed before the
separator card
BLANK card ending BRANCH cards
all template information mentioned under /SOURCE will be placed befC?re the
separator card
BLANK card ending SOURCE cards
Combined usage of ordinary input cards and include file;
- if the SINCLUDE is placed in the branch card section. and if the include file
contains card types other than "branch" • an additional /BRANCH card should follow
the SINCLUDE command. in order to specify the nature of the input card.
(e.g. MINUS-terra 1 Ohm resistance branch - see example)
("include comes first. then .sorting by class")
All values (named as well as dummy arguments) are allocated as was pre-defined
in the template and argument list.
XIX-G ·SATUJIA· TO DERIVE ( .... 0 PEJ\.KVALUE CURVES - 1
Both approaches are possible. and will be discussed separately. because of the
differences in data entry.
The punched results (1\1. i) then can be used in the saturable transformer component
model (section IV-E) or in the nonlinear inductor (type-98 pseudo-nonlinear reactor
or type-93 nonlinear inductance) that can be added externally to linear transformer
models obtained via BCTRAN (section XIX-C) or XFORMER (section XIX-A).
In general. an input data-deck for the supporting routine SATURA has the
following structure:
Remark that the potnts 3 through 6 may be repeated as many times as desired.
Each such grouping then is considered as a separate data case. corresponding
to a different saturation curve.
For an example of such input, the reader is referred to benchmark DC13 (first
subcase) or to section XIX-O-3. Because of the possibility of two different
approaches, two different data entries will be discussed next:
Only card type 4 and 5 will be discussed. All other cards are self-explanatory.
____------5
4
>
Q)
CI
.B
"6
>
Vl
:::E
0::
RMS current i
Fig.l: I , V ) curve, specified by break points
RMS RMS
Card 4. The card format for the per unit base specification card :
I- If
I~ l' If I~ f·~· IE Ie ~* r~ Ie i~ If IE I ~f~i~ r~f~IC ~~H fSiC rf
FREQ YBASE SBASE KTHIRD
Parameters:
VBASE: single-phase base voltage (in kV) on which the input break points are based.
SBASE: single-phase base power (in MVA) on which the input break points are based.
Only one breakpoint per card can be specified. One should start by specifying
the break point closest to the origin (omitting point (0. ,0.). though). and
then moving continuously away. The curve must be single-valued. Successive
slopes should be non-decreasing. The slope defined by the last breakpoint will
be extrapolated to infinity (cfr. fig. 1). Values are in per unit, based on
the previously-specified single-phase base :
S"a..
I"a .. = V-(kA)
"a••
IIMS(pu) -IIMs(A)11 "a•• (A)
V ItMS(pU) - V IMsCkV)IV "a•• CkV)
The card format to be used is as follows
I~ If IE
I~ '~if i( I~ l~lf ' Ef~ H rE f~IE isle f_i~ :~ f- IE 'E i~lc :~ic f: 'Eicic
E16.0 E16.0
11J1JJJiJJ~1~JJJ~lJJJJJJJJ~lJJJJJJJJ~lJ1JJJjJJ~lJJJJJiJJ~lJ1JJJjJJ~lJ1JJ1JJJ~
999
111(0 = i j
L(n)dn
k=2,3 ....
Cll
v
c
£
v
:l
"0
.!:
]
c
Cll
E
...v
Cll
.!:
Card 4. The card format for the per unit base specification :
I~ IE IE
I~ 14l~ IE tE Ie I~ .,l! ~E tff£ I' t( I' I' II
tH* f!~E f£ tEfW I d~IC .,l' t*lc
FLAG [Link] SCALL KTHIRD
Parameters :
FLAG: = -1; special request flag for (I,L) data entry (as opposed to (I RMs , VRMS)
data entry, explained in point 2.a).
SCALI: multiplicator for the current coordinate of the input breakpoint, in order
to obtain results in Amps.
SCALL: muliplicator for the inductance coordinate of the input breakpoint, in order
to obtain results in Henries.
~: II both SCALI and SCALL are btank. or zero, the supptied characteristic is
understood being specilied in units 01 Amps and Henries, so that no conversion
is necessary.
lfJ:J.:U.: Atthough lor the (I,L) data entry, the origin point (0. ,0) 01 the saturation
curve appears in the printed output, this vatue witt be omitted in the punched
output.
I~ I€
f~ rft~l( • f~f~ IE r! tf f!lf 1* f' I~ I~I( ~H~I( ~~ rf
'k Lk
E16.0 E16.0
The same recommendations as in point 2.a. are valid. This card grouping should
be terminated by the same special flag card, as explained in 2.a.
XIX-G -SATURA- TO DERIVE (V.i) [Link] CURVES - 6
XIX-G-3. 3. Example
Uex lex P ex
KV A KW
22.76 8.20 206.21
24.29 11.35 240.26
25.64 15.50 270.13
27.00 21.16 311.00
27.50 24.68 323.03
28.47 31.63 355.48
29.10 38.30 385.41
32.50 80.97 560.00
1 ....... 'VI1u2... - ( 3U
u p )2
u
Hence. the above measured Table 1 reduces to following saturation
characteristic :
XIX-G "SATURA" TO DERIVE ( .... 0 [Link] CURVES - 7
Table 2:
Uex 1_
KV A
22.76 3.65
24.29 5.66
25.64 8.23
27.00 11.60
27.50 13.70
28.47 17.78
29.10 21.66
32.50 46.40
When converting this characteristic into input data for supporting routine
SATURA, we first need to convert to per unit values for the equivalent phase.
Sbase = =
750/3 250 MVA
Vbaae = 27 kV
~= 9259A
I base = 3.27
The input data (table 3) can be obtained from. table 2, using the following
conversion formulas
Table 3:
VRMS(PU) IRMS{pu)
0.8430 0.3942 E-3
0.8996 0.6113 E-3
0.9496 0.8888 E-3
1.000 1.253 E-3
1.019 1.480 E-3
1.054 1.920 E-3
1.078 2·333 E-3
1.204 5.011 E-3
The input file for supporting routine SATURA then looks as follows:
BEGIN NEW DATA CASE
C input data for supporting routine SATURA
C Excitation test results for 3-phase transformer
C UBASE • 27 kv (RKS. equivalent phase)
C SBASE • 750/3 • 250 HVA (equiYalent phase)
C Ibase • 250 / 27 • 9.26 kA
C
C 345678901234567890123456789012345678901234567890123456789012345678901234567890
C 1 234 567 8
$ERASE
SATURATION
50.0 27.00 250.0 1 o
.3942 -3 .8430
XIX-G -SATURA- TO DERIVE ("4I.i) [Link] CURVES - 8
.6113 -3 .8996
.8888 -3 .9496
1.253 -3 1.0
1.480 -3 1.019
1.920 -3 1.054
2.333 -3 1.078
5.011 -3 1.204
9999
$PUNCH
BLANXLINE ending .aturation data
BEGIN NEW DATA CASE
BLANX LINE ENDING ALL CASES
Next. check the darived curve by In4apendant rever •• ~tation. "'a_tnq sinuaoida1 voltage Ifluxl at the level of each point •
. . . current h found ..... rically. TIlle curveahould be _ 1 to the original I-V pointe inputted.
Row CUrrent In P.U. Vol tag. in P.U.
2 0.00039420 0.14300000
3 0.00061130 0.89960000
4 0.00088880 0.94960000
5 0.00125300 1.00000000
6 0.00141000 1.01900000
7 0.00192000 1.05400000
,8 0.00233300
0.00501100
1.07800000
1.20400000
A Hating 'of 80-col.... card i_gee ...... l>[Link] fluahacl froe punch buffer follow •.
1234567890123456789012345678901234567890123456789012345678901234567890123456789
c <•• ++++) carda punched 'by .upport routine on 29-~un-89 09.04.57 <•••••• )
C SATIJIlATION
C 50.0 27.00 250.0 0
C .3942 -3 .8430
C .6113 -3 .8996
C .8888 -3 .9496
C 1.253 -3 1.0
c 1.480 -3 1.019
C 1.920 -3 1.054
C 2.333 -3 1.078
C 5.011 -3 1.204
C 9999
5. 16187950E+00 1. 02460498E.02
1.23418337E+01 1.09339815E'02
1. [Link] 1. 15416950E+02
2.48062758E'01 1. 21542703E+02
3.14592838£+01 1.23852014E+02
XIX-G -SATUlIA- TO DERIVE (V. i) PEAXWU,UE CURVES - 9
3. 9175439O!+01 1.%8106009!+0%
4.95865689£+01 1.31023033£+02
9.726277331+01 1. 46337414E+OZ
9999
---------< End of LUNIT7 punched card. a. flushed by SPUNCH reque.t ) ______ _
'air
-; s = saturation flux
"r = rated flux
i mw
After the flux 'II1(t) exceeds saturation flux "' .. the last slope of the non-linearity
is determined by the air-core inductance Lalr (the additional flux travels in air).
LaIr" 1-10' w 2 • AI ./
1_ = 68000 A + 97 A = 68097 A
XIX-H. -HYSDAT" to create type-96 [Link] inductor [Link] - 1
The punched results (1\1. i) can be used for the type-96 hysteretic inductor
(section V-D). Up to now, only one curve shape (corresponding to ARMCO Mo) can
be selected. With some care, supporting routine SATURA (section XIX-G) can be
used to generate hysteresis loops for other materials, it should be noted.
In general, an input data deck for supporting routine HYSDAT has the following
structure :
I~ IE Ie
I" f~'E 'E ~(
. " l'~! f' tE f< IEI~IC ~E ~~ l,f<l~ rf~~f( 'E Ie
ITYPE LEVEL
IS IS
Parameters:
ITYPE: type code specifying the magnetic core material of the inductor.
= 1: ARMCO Mh oriented silicon steel
(perhaps, other alternatives will be provided later).
CURSAT FL XSAT
ES.O EB.O
Parameters:
li.!J:1£.: By definition. the positive saturation point is the point of the first
quadrant where the hysteresis loop changes from being multivalued to being
[Link]. One suggested 'WO.y of determining values for botii these
coordinates from normal or DC magnetizing curves is as follows. [Link]
at the right (i.e. linear part) on the normal magnetization curve. a
straight-edge is used to extrapolate this line back to the left. The point
~here this straight line and the actual curve first begin to diverge is then
taken as the positive saturation point.
It is recommended to use the DC magnetization curve. since this is more
readily available than hysteresis loops.
'"
,.
t
n«5o.i'.". ~"""""'''i.",
XIX-H-3. Example
6. 5625OOOOE.01 7.52941176E-01
1.12500000£+02 8. 64705882E-01
2.07812!iOO1·02 9.411764711-01
5.00000000E·02 1.00000000£+00
6. 87500000E+02 1.00588235E+00
9999.
A listing of Io-colu.n card [Link].s now being flushed fro- punch buffer follows.
1234567890123456789012345678901234567890123456789012345678901234567190123456719
The supporting routine "ZNO FITTER" can be used to derive a true (as opposed to
pseudo) non-linear representation (type 92 branch card) for a zinc-oxide surge
arrester. starting from manufacturer's data for the surge arrester.
The model can be used successfully to represent both gapless arresters as well as
arresters equipped with series passive gaps or shunt passive gaps. Series active
gaps (i.e. current limiting) can llQt be represented adequately by means of the ZNO
model described here.
There is some application of the present model to silicon carbide (SiC) arresters,
although serious (perhaps unacceptable) approximations must be made. No dynamiCS
of the gap can be provided. Hence the possibilities of such usage will not be
emphasized. In essence, such usage represents the SiC block very accurately ("two
exponential segments appear to provide a very adequate fit") while ignoring totally
the dynamics of the gap (the .gap modelling after flashover). In the original EMTP,
a dedicated SiC surge arrester model (type 94 branches) did exist. Data acquisition
was too complicated and not sufficiently documented. Hence, support of that model
was terminated.
The basic constraint equation for ZnOmodelling is resistive, and is highly nonlinear
(exponential):
i.P(_V )0
V r./
where "i" is the arrester current, "v" is the arrester voltage. and "P". "Vret".
and "q"are constants of the device. Typically one picks the reference voltage
"V ret " to be twice the rated voltage, or something close to this. In theory, the
choice is arbitrary (it is an extra parameter, note). However, a good choice of
Vret normalizes the equation. and prevents numerical overflow during the expo-
nentiation. Constants "p" and "q" are unique parameters of the device.
flashover). while the gapless arrester requires only one such (I.V) characteristic
(before flashover). The calculation of the exponentials. fitting the user-specified
(I,V) characteristics can be automated via the separate supporting routine ARRDAT.
"ARRDAT" fits exponential curves in the log-log plane using the least-squares
approach. There are two options for the determination of the number of exponentials
(curve segments) that are to be used. Variable NEXP (miscellaneous data cards)
is used as a flag to select between both options.
1. the user may specify the number of exponentials or curve segments. and the
boundaries of the segments.
2. the program can determine the number of exponentials or curve segments auto-
matically, based on the maximum permissible relative fitting error specified
by the user. This is the more common case.
An optional "BRANCH" card allows the user to name the terminal nodes for the Type-92
branch cards that will be punched. Punched results are immediately in the correct
format to be used for nonlinear branches of type 92 (section V.E). For an example.
we refer to DC39.
In general, an input data deck structure for the supporting routine ARRDAT has the
following structure:
i~1
~
( Illt I'~ ~I ( IE
I~
r EI~I ( I~ IE '
,i~ 1~lt ~ E
if
tlt~l( f· ,tiE
'U* ' .1< ·'if
IE
re ~I c
ZNO FITTEr;
XIX-I. -ZHO FITTER- to Punch Type-92 nonlinear branch carda - 3
•
3. $ERASE (optional)
$ERASE request is optional, and serves to clear the punch buffer
I~ IE
~i~ ·elf If Ie .~~ El-IE ~CI ( l~fE IE Ie I: ~E 'fl~ Ie I~ H~ fE 1m !~I' fE Imlc I'f_ 'f~ ~ ,.,' iEls
BRANCH SEND( 1 REC(l) SEND(2 REC(2) SEND(3 REC(3)
A6 A6 A6 A6 A6 A6
~: [SEND(i},REC(i}] are the terminal ends (sending end and receiving end) for
phase i. The usual naming convention is used. A blank for a name indicates
direct connection to ground. The number of phases is specified by variable
IPHASE on the miscellaneous data card (see point 5, card number 1).
~~ IE IE
:1- I'fe IE leff lEi! I~ff IE~! I( I ~ ~E I
i' e~f rE!~ lei! rE~~~C : "f~ I(~*
!
NEXP
'EI9C
IPHASE ERRUM
'* ~
IPRZNO
!~I'
VREF
,
VFLASH
'E,*
Parameters:
NEXP: flag to select between the two possible fitting options.
<0: request for the automatic determination of the number of exponential
segments. The user will specify the (I,V) characteristic (see point 6)
>0: number of segments, requested by the user. He will specify both the (l,V)
characteristics as well as the boundaries of each exponential segment
manually (see point 6 data).
IPHASE: the number of phases of the arrester bank for which branch cards are to
be produced. If left blank or keyed with zero, the value will be changed
to unity, meaning that a single arrester is to be modelled. If IPHASE > 1,
only one phase will be punched explici tely • For all other phases, the
reference branch option is used. Do not forget to use the optional BRANCH
option, specially designed to allocate node names to the nonlinear branches
in the punched output.
ERRLIM: this value only has meaning when flag NEXP < O. ERRLlM is the maximum
relative error permitted during the automatic determination of the number
of segments (assuming that the user has keyed NEXP negative). A blank or
zero field will be converted to the default value of 1/20. The relative
XIX-I. "ZNO FITTER" to Punch Type-92 nonlinear branch cards - 4
error is: ERROR = ABS (Cl - C2) / Cl, by definition. where Cl is the value
of the current as specified by the user, and C2 is the value of the current
as predicted by the exponential approximation.
IPRZNO: controls diagnostic printout •. Suggested values are between zero and three.
The amount of printout increases with the variable value.
VREF: the reference voltage (RMS value) that will be used to scale the voltage
data points (see point 6. card grouping that specifies the (I. V) char-
acteristic). The idea is to produce numbers close to unity for exponentiation.
thus avoiding numerical overflow. If left blank or keyed with zero, the
value will be changed to twice A2 of card number 2 immediately below.
Beware: 1) VREF is used for all (I,V) characteristics, both before and after
flashover.
2) When Vret is ill conditioned (Le •. V/Vret too far from unity), the
fitter will redefine Vref, after giving the user a proper warning.
VFLASH: the gap flashover voltage in units of [volts]. This is a peak (or cres t)
value, not an RMS (effective) value. Leave this field blank, or key with
zero if the arrester is to be gapless.
Card Number 2;
,~ !E IE
If tEI~!( " ~ . 'EI~I( If Ie .~
f~IE I~ic I~ ~~~ E tl ~I' I (I~I\. ·~I f rH~,e ~ l~,E rmlc
"
A1 A2 A3 A4 A5 AMIN
E12.0 E12.0 E12.0 E12.0 E12.0 E12.0
Parameters:
Al: is a divider used for the scaling of voltage points. For example. Al could
be used for the voltage rating of the arrester upon which the input data are
based, in order to convert the specified voltage points into per-unit values.
This is in units of [volts] RMS.
A2: This really is just a multiplicative scaling factor for the voltage points,
that can be used creatively in more than one way by the user. For example,
A2 can be used to convert the arrester voltage points from per-unit to
[volts]. Alternatively, the user could produce the characteristic of an
electrically similar arrester having a different voltage rating. The
properties of similar arresters do not change with rating, provided a
proportional number of blocks is used to obtain the new rating. Note that
if VREF is maintained proportional. to A2, then similar arresters will have
identical parameters at all ratings.
A3: is a multiplier used for the additional scaling of voltage points. For example,
it can be used to obtain a minimum characteristic (maximum energy) from a
maximum characteristic (maximum voltage). The most commonly used value is
unity. however.
XIX-I. ·Z"O FITTER" to Punch Type-92 nonlinear branch ca.d. - 5
A4: is a current multiplier that is used to obtain results for arresters with a
number of columns that differs from that for which the data points are known.
An even (homogeneous) current distribution is assumed among all columns.
A5: is a flag signaling the existence (or lack of it) of additional data describing
the arrester after flashover of the arrester passive gap.
a) If zero oruni ty, the arrester is gapless. and no additional data follows;
b) If negative, additional data follows (to represent dissimilar material
for a shunt or a series passive gap) . See point 7 (cards to [Link] the
flashover behaviour).
c) If positive but not unity. there is no further data. Instead. the
original input data representing the situation before flashover are to
be used to represent the characteristic after flahover, simply by
multiplication of the voltages by A5. This is to represent similar
material for a shunt or a series passive gap.
AMIN: is the minimum current above which the exponential approximation of the
arrester characteristic begins. For currents I < AMIN, a linear rather than
an exponential approach is used in order to speed up the solution, and also
in order to avoid numerical problems (underflow during exponentiation). Even
if fitting a straight line that passes through the origin, do not leave AMIN
blank or zero, since the logarithm of zero is not defined.
a) For the most common case of NEXP .negative (see card 1 of miscellaneous data),
the program automatically determines the number of segments ,and there is to
be only one data group, containing an arbitrary number of data pairs (I ,V} . A
blank card will terminate the grouping that defines the non-linear characteristic.
b) But for positive NEXP, there are to be NEXP segments. For each segment, a card
grouping containing an arbitrary number of data pairs (I, V) is to be specified.
Each such group is to be terminated by a blank card.
In both cases ,each card can contain only one data pair (I, V), using following
format:
IE E
I:: f!ft If Ie i ~ ~tl' rft< i ~ rfl~ I~ i~ I~ Iff~ f- 1~lc ~ ~~! rff~l( ~! rfi«
CURRENT VOLTAGE
E12.0 E12.0
Points always must be in order of increasing current and voltage. The inter-
pretation will confirm the unscaled (I, V) point, as specified by the user.
9. $FUNCH
As with other supporting programs t SPUNCH is used to create the Type-92 branch
cards that represent the Zno arrester being processed. If the user wants such
output. it is his responsibility to request. it. Further, do not forget either to
use the optional BRANCH specification card (see point 4). in order to be sure. that
the node names will be included in the created type-92 branch cards. The punched
output is particularly valuable because it includes comment cards that label the
Type-92 branch parameters. As an example. consider the punched output from the
solution to the first subcase of BENCHMARK DC-39:
1\ [Link] of 80-colwtn card i_g•• now being flWlhed troa punc:h buffer fall_a.
12345678901234567890123456789012345678901234567890123456789012345678901234567890
11. BLANK
XIX-I. "%NO FITTER" to Punch Type-92 nonlinear braftch cards - 7
According to the data provided above, the following values are assigned:
1) A1 = 1000 / [2 is the original rating of the arrester in [volts] (rms);
2) A2 = 192000 is the desired rating of the output in [volts] (rms);
3) A3 = 0.962 is the scaling factor for obtaining the desired maximum energy
characteristic;
4) A4 = 3.0 since the original data are given for a single-column arrester, this
factor of three will convert them to the desired 3-column device;
5) A5 = 0.89286 since the arrester before flashover contains 12% additional blocks;
6) AMIN = 1.£-3 [amperes] would be a common default choice, which is about the end
of the leakage current region.
Finally, the same data will be fitted with a relative current error of 1/20, which
means that ERRLIM = 1/20.
XIX-I. "%NO FITTER" to Punch Type-92 nonlinear branch carda - 8
This model internally uses the compensation method. Unlike other situations using
the compensation method for a multiphase ZnO surge arrester, the phases do NOT
need to be separated by stub lines.
XIX-J. Congert aaturable tranaformer carda to linear equi9alent [R].[L] - 1
This supporting routine can be used to convert data lines for the SATURABLE
TRANSFORMER model (IV.E) into a coupled [R]. [L] equivalent (type 51.52.53 branches) •
The user should be carefull. however. because some inherent limitations exist
for the conversion routine:
- Although the SATURABLE TRANSFORMER component can take non-linear behaviour
into account, the type 51.52,53 equivalent branches can not: they only provide
a LINEAR equivalent. Of course, the user can add the non-linear behaviour
as an external branch, but this is tricky (zero magnetizing current is not
honored) •
- Although the SATURABLE TRANSFORMER component can process transformers with
zero magnetizing current, type 51,52,53 can not. This situation is similar
to the XFORMERmodel. Recall that only the BCTRAN model can process zero
magnetizing current, because it has the AR-notation available.
- The data lines for the SATURABLE TRANSFORMER model should be self-contained
(Le. no reference component usage that copies the data of a preceding
transformer) .
- For the ATP4 version, the punched output is not immediately usable because
the free-format output form is incorrect with respect to the node names: the
user himself should add separating commas inbetween the fields of the node
names. Please refer to punched cards of this model with XFORMER punched cards
for comparison. This is a bug that has to be cleared in next program releases
(see section J.4).
XIX-J.2. Example
Following example is an extract of benchmark Dc-67, where only the first subcase
is used.
BEGIN NEW DATA CASE
CHANGE TRANSFORMER ( Special-request word transfers to special conversion code
$ERASE ( Rewind (erase) buffer of punched cards as _ prepare to punch more
TRANSFORMER .005 [Link] 1.E4 3
.005 30. {1st point of (current. flux): characteristic
.01 40. {2nd point of (current. flux): characteristic
.02 45. (3rd point
0.1 50. (4th pOint
5.0 100. (5th and final point of (current. flux) char.
9999 Special terminator bounds characteristic (current • 9999)
lGElfT OPEN 5.0 5.E4 50. ( 1st of 2 winding cards
2LOADFF 20. 2.E5 100. ( 2nd and final winding. card
BLANK card ends saturable TRANSFORMER components to be [Link] to tRl. [Ll.
$PUNCH { Flush the punched-card output of just-created TJpe-51. 52 ••••
BEGIN NEW DATA CASE
BLANK
11 listing of liD-col.... card i_gaa now being flushed f..- punell buffer follows.
123456789012345671190123456789012345671190123456789012345678901234567190123456789
XIX-J.4. Usage
The next case will show the same example. but now in the [R]. [L] representation.
with use of the punched card. There is a necessary manual manipulation needed.
because of program bug.
BIGIH HEW DATA CASI
$WIDTH. 79. ( lIequeat narrow. 80-column LUXIT6 output aa an illuatration
BIGIN PEAK ~V! SEARCH. -1. (Tiae of -1 ia requeat to read .following card
0.5 1.5 2.5 3.5 ( Limit extrema to theae 2 aubrangea
PRINTID truHBIR WIDTH. 10. 2. ( Requeat aax preciaion of 6 number. in 80 by tea
.010 6.0
1 1 1 1 1 -1
5 5 20 20 100 100
GEN GENT 1.1-3 3
LOADFF 1.0E3 3
C 1 2 3 4 567 8
C 345678901234567890123456789012345678901234567890123456789012345678901234567890
[Link]... 5.90663934426231+03.1.27950819672131+06 ••••• (reaark extra coaaa'a
[Link].... 1.18032786885251+04.2.45901639344261+06$ (following type code and
2.36265573770491+04.5.11803278688521+06 ••••• (node namea
OPEN 1.17
BLANK card fintahing all branch carda
BLANK card endingnon-exiatent switch carda
HGEN 70. .1591549 -1.
BLANK card terminating program aouree carda
1 ( Requeat for all node voltage output a
C PUNTIR PLOT
C 193 .5 0.0 4.0 LOADFF GEN GENT
BLANK card terminating plot carda
$WIDTH. 132. ( Done with 80 columna. ao return to wide. 132-column LUXIT6 output
BIGIH NEW DATA CASI
BLANK
XXI- A. Purpose & applications - 1
The "LINE CONSTANTS" supporting routine can be used in the following circum-
stances:
-"Line Constants" stand alone: this option can be used to derive the resistance.
inductance and capacitance matrix (both symmetrical components and phase com-
ponents) for any given configuration of overhead conductors, at any frequency
between 0.0001 Hz and 500 kHz.
- "Line Constants" mutual coupling request: this option can be used to calculate
the mutual coupling between a 3-phase power carrier and a parallel communication
line.
- Frequency scan option: this option can be used to derive the zero and positive
sequence resistance, inductance and capacitance values over a predefined
logarithmically-spaced grouping of frequencies.
- PI-circuit output request: this option can be used to derive either a nominal
PI-circuit (or short line equivalent. valid for transient phenomena) or an
equivalent PI-circuit (or long line equivalent, valid to describe steady state
conditions only). (See section XXI-E for more details).
-K.C. Lee or Clarke output request: this option can be used to obtain a constant
parameter, travelling wave line model. Note that this output can be used to
'prepare branch cards in the input data for typical cases of electric network
simulation (see sections IV-D-1 and IV-D-2):
- K.C. Lee model: untransposed case
- Clarke model: transposed case
- JMARTI output request: although this involves imbedded usage of line constants,
we like to refer to this output option here too, since it will result in a
frequency-dependent travelling wave line model. Note that this output can be
used as branch cards in the input data (see section IV-D-3). More details on
the imbedded usage of line constants within the JMARTI setup can be found in
section XVII.
11JJ1JJ1JJ~lJJ1JJiJj~llJJJJiJJ~lJJ1JJJJJ~lJJ1JJJJJ~lJJlJJJJJ~lJJ1JJJJJ~lJJ1JJIJJ~
BEGI N NEW DATA CAS
2. Next comes the "LINE CONSTANTS" card, a special-request card which serves to
transfer control to the overlay in question:
11JJ1JJJJJ~lJJlJJtJJ~lJJJJJIJJ~lJJJJJiJJ~lJJJJJIJJ~lJJJJJJJJ~lJJJJJiJJ~lJJJJJJJJ~
LINE CONSTANT
XXI- B. -LINE CONSTANTS- stand alone cas. - 3
3. Following are special request cards. For this "stand alone" case, only two
requests can be applied, namely "METRIC or ENGLISH".
Illi~~llJmmmmummmmmmmmmmmmmmmmmmm~
11JJJJJjJJJ1JJJJIIIJ~IJJJJJIJJ~IJJJJJIJJ~llJJJIIJ~~IJJlJIIJJ~IJIJJIIJJ~IJJJJ'IJ~~
ENGL IS
These keywords can be used to request either "Metric units" or "English units"
for input/output purposes within the "LINE CONSTANTS" supporting routine.
Defaults: ENGLISH
4. Following are "NC" conductor cards, used to define the geometry and some of
the fundamental electrical properties of the line under study. It is possible
to use two different options:
- single conductor - option
- automatic bundling - option
Use one such card for each physical conductor or 'regular' bundle. It should
be noted that the meaning of the variables on the conductor card can have a
different interpretation, depending on whether one is using the "single
Conductor-" or the "automatic bundling-" option. This difference will be stressed
where needed during the discussion of the meaning of the variables.
If one wants to input a "regular bundle". the "automatic bundling option" should
be preferred. By definition, a regular bundle consists of identical component
conductors, uniformly spaced around the Circumference of a circle.
In case of the single conductor option, following card format should be used:
IX = 3 specify for REACT the GMR/R - ratio. The internal inductance is NOT
corrected ror s~ errect.
(GMR = geometric mean radius, R= physical radius)
(GMR/R = 0.7788 for a solid conductor).
IX = 4 leave field REACT blank in this case. Note that the internal inductance
will be corrected for skin effect and the calculation of the
self-inductance will be based on tubular conductor geometry.
HORIZ: horizontal distance (m or foot) from the center of the conductor to some
reference line. Use the same reference line for all conductors and bundles
within the same data case !
VTOWER: vertical height (m or foot) of the center of the conductor above the ground,
at the tower.
VMID : vertical height (m or foot) of the center of the conductor above the ground,
at midspan.
NOTES: - In case that both, Vl'OWER and VMID, are specified, the average height,
as used for internal calculation will be set to:
v = 2/3 x VMID + 1/3 x Vl'OWER
- In case that only Vl'OWER or VMID is specified, the average height
as used for internal calculation will be set to this value.
In this case. the variables SKIN, RESIS, IX, REACT and DIAM all apply to one
component conductor within the "regular bundle". Recall that in such case. all
component conductors within the same bundle are assumed to be identical.
The variables HORIZ. VTOWER and VMID all apply to the position of the fictious
center of the bundle with respect to the ground.
The variables SEPAR, ALPHA and NBUND describe the bundle geometry.
XXI- B. "LINE CONSTANTS" .tand alone case - 6
Parameters:
HORIZ: horizontal distance (m or foot) of the center of the regular bundle to some
reference line. Use the same reference line for all conductors and bundles
in the same data case t
VTOWER: vertical height (m or foot) of the center of the regular bundle above the
ground, at the tower.
XXI- B. ·LINE CONSTANTS· .tand alone ea.e - 7
VMID : vertical height (m or foot) of the center of the regular bundle above the
ground, at midspan.
NOTES: - If both VTOWER and VMID are specified, the average height as used
for internal calculation will be set to:
v = 2/3 x VMID + 1/3 x VTOWER
- If only VTOWER or VMID is specified. the average height as used for
internal calculation will be set to this value.
SEPAR: distance-separation (cm or inch) between the centers of two adjacent component
conductors within the same bundle.
ALPHA: angular position of the center of one component conductor of the bundle.
As reference, the horizontal line is used. Positive angles are measured
counter-clockwise.
I~ I~ 'E
.~ 1~1( I ~ ~ .. l~ 'Ef~ l~ I~ tflSiC ~ ~~ E I~ I ~f' ~E
'*1
tE rd~ ~I r! 'I.
Parameters:
RHO resistivity (Ohm-meter) of the homogeneous earth (Carson theory)
FREQ discrete frequency (Hz) at which the line parameters will be calculated.
FCAR : flag, used to control the number of correction terms in Carson's earth-return
formula for the impedance.
=0 : no correction terms added
=1 in column 28: calculation uses highest accuracy
=blank= calculation uses highest accuracy
Beware: ATP uses character checking here. Consequently, the interpretation of
a zero and a blank is different. This is in derrogation to the rest
of the input (where zero or blank usually have the same meaning)!
lCAP : Control flag. specifying whether the capacitance matrix [C] or the susceptance
matrix u{C] (per km or per mile) should be requested. The actual output
further also depends on parameter ICPR:
ICAP=[Link]=lOOOOO inverse of u{ C ]
010000 inverse of u{ Ce]
001000 inverse of u{C.)
000100 u{C]
000010 u{C e ]
000001 u{C.]
lCAP=[Link]=100000 inverse of [C ]
010000 inverse of [C e J
001000 inverse of [Cs]
000100 [C ]
000010 [Ce]
000001 [C.]
DlST : specifier (cols 45-52) not really needed: all results are expressed per
unit of length.
lZPR : printout control parameters for the series impedance matrices [Z]= [R]+ju{LJ
or their inverse:
=100000 [Z]
=010000 [Ze]
=001000 [Zs]
=000100 inverse of [Z ]
=000010 inverse of [Ze]
=000001 inverse of [Zs]
ISEG : a flag. used to indicate whether ground wires (if any) are to be treated
as being continuous or segmented:
=0 continuous ground wires
=1 : segmented ground wires
9. Next comes a "BEGIN NEW DATA CASE" card to begin a new EMTP data case.
10. Next comes a blank card ending all EMTP cases.
XXI- B. "LINE CONSTANTS" atend alone caae - 9
-- 7.85 m
--
.-----.
tower : 30.5 m
o
midspan : 23.20 m -- 12 m
-...
I
u
SEPAR = 0.4 m
ALPHA = 0 degrees
tower: 21.63 m NB = 2 conduct/bundle
midspan: 9.83 m
l' u
////////////////////////////////////////////
Fig.: Riomaior-Cedillo 400 kV line
The earth resistivity equals 250.0 Ohm-meter and all line data are requested
at 50 Hz. Let's document the use of both options: "manual bundling" as well as
"automatic bundling" for this simple example. The input data deck then looks as
follows:
XXI- B. "LINE CONSTANTS" stand alone case - 10
Line conductor table after sorting and in! Ual proce. . ing.
Table Ph•••
Row NWlber
Skin effect
a-type
Resistance
R l_/ke)
Reactance data specification
X-type XI_Ike) Dr GfIR
Di_ter
I ce
3.1_
, Rorizantal
X l_trs'
11.100
Avghe!ght
Y l_trs,
13.763
Ii_
1
2
3
1
2
3
0.23100
0.23100
0.23100
0.05220
0.05220
0.05220
4
.. 0.000000
0.000000
0.000000
3.11000
3.11000
-0.200
-12.200
13.763
13.763
4 0.23100 0.05220 4 0.000000 3.11000 12.200 13.163
5 2 0.23100 0.05220 4 0.000000 3.11000 0.200 13.763
6 3 0.23100 0.05220 4 0.000000 3.11000 -11.800 13.163
0 1.46000 7.150 2S.633
8 0
0.50000
0.50000
0.36000
0.36000
4
. 0.000000
0.000000 1.016000 -7.850 25.633
Matrices are for earth resistivity - [Link]£002 ot>e-. .tero and frequency 5.00000000!.01 HZ. correction factor -
1 .00000000£-06
Capacitance _trix. in units Qf [farads/_ter) for the oyot. . of equivalent phase conductors.
Rows and colwms proceed in the SAIM order as the sorted input.
1 9. 993860E-09
2 -1.258703£-09 1.020865£-08
XXI- C. "LIME CONSTANTS" [Link] the mutual coupling option - 11
.lOpeclanc:e _tri". In Wilt. of (aha./_t.r ) for the .l'.t_ of equIvalent p ..... conductors.
Rows and c o l _ proceed In the . _ order as the ..ort ... Input.
1 8.437393£-02
4.8217681-01
2 5.863546£-02 8.633031£-02
1.580488£-01 4.720861£-01
3 5.663409£-02 5.863546£-02 8.4373931-02
1.2089111-01 1.5804881-01 4.'21768£-01
sequence surge [Link] AUenuation velOCitY wavel_th bda_ _ctance SU.. ceptance
_gn1tlldelolla) angl.(deqr.) db/ ... "'/aec ... _ / ... aha/... liii0/...
Zero: 5.56866£+02. -7.31242£+00 1. 58014£-03 2.21602£+05 4.432041+03 2.009631-01 7.70139E-ol 2. 56669E-06
Positive: 3.10816£+02 -2.321621+00 3.78381£-04 2.9Z376E+05 5.847511+03 2.705771-02 3.33150£-01 3.45989£-06
Blank card taraineting frequency card••
Blank card endIng "LIn COftSTANTS" ....... IBLAIIIt CARD ENDIIIG I'Il£OUDCY CARDS
BLAIIIt CARD ENDIIIG LIn COftSTANTS
Most of the cards used in this option also appeared in the "stand alone" case.
For the conductor cards, only a small remark with respect to the variable "IPHASE"
will be necessary. Also the "mutual coupling" option request on the frequency
card needs some explanation. For the detailed description of all other variables,
we refer to the previous paragraph, dealing with the "stand alone" case {section
XXI-B} .
4. Just as in the previous paragraph, conductor cards are used to define the
geometry and some of the fundamental electrical properties of the .system under
study (= three-phase power carrier line. parallel to a communication line).
Again it is possible to specify a single physical conductor ora regular bundle
(see sectionXXI-B-l. card 4).
IPHASE: indicates the phase number of the physical conductor or regular bundle.
Conductors having the same phase number are to be bundled in a 'non-regular'
bundle.
= 0 : ground wire
= 1. 2. 3 : phase number
= 4 : communication line
The meaning of all other variables. as well as the card format remained
unchanged.
!-
If IE
. ~ ~~I f If Ie l'ft 'E I. I' tH~I( I- f' l'~ E I~ I' I~I( l'H ~* rEl*
F8.2 F10.2 A10 6 11 6 11
Parameters:
FREQ discrete frequency (Hz) at which the line parameters will be calculated.
XXI- c. ·LINE CONSTANTS· [Link] the mutual coupling option - 13
FCAR : flag, used to control the number of correction terms in Carson t s earth-return
formula for the impedance.
=0 : no correction terms added
=1 in column 28: calculation uses highest accuracy
=blank= calculation uses highest accuracy
Beware: ATP uses character checking here. Consequently, the interpretation of
a zero and a blank is different. This is in derrogation to the rest
of the input (where zero or blank usually have the same meaning)!
lCAP matrix or the susceptance matrix (per km or per mile) or their inverse:
lCAP=O,ICPR=100000 inverse of u.{C ]; unreduced system
010000 inverse of u.{C e]; equivalent phase conductor system
001000 inverse of u.{Cs]; symmetrical components only
000100 u{C]
000010 u.{C e]
000001 u.{C.]
ICAP=[Link]=100000 inverse of [C ]
010000 inverse of [Ce]
001000 inverse of [C.]
000100 [C ]
000010 [Ce]
000001 [C.]
DIST :specifier (cols 45-52) not really needed: all results are expressed per unit
of length.
ISEG : a flag, used to indicate whether ground wires (if any) are to be treated
as being continuous or segmented:
=0 continuous ground wires
=1 : segmented ground wires
IZPR : printout control parameters for the series impedance matrices [Z]= [R]+ ju.{L]
or their inverse:
=100000 [Z J
=010000 [Ze]
=001000 [ZI]
=000100 inverse of [Z ]
=000010 inverse of [ZeJ
=000001 inverse of [Z.]
MUTUAL: request for calculation of the mutual impedance of a three-phase transmission
line, parallel to a communication line.
=1: obtain this output as printed output.
7.85 m
tower : 30.5 m
midspan : 23.20 m
12 m
~--. • • •
SEPAR = 0.4 m
ALPHA = 0 degrees
tawer : 21.63 m NB = 2 conduct/bundle
midspan : 9.83 m
////////////////////////////////////////////
Fig.: Riomaior-Cedillo 400 kV line with parallel telephone line
The earth resistivity equals 250.0 Ohm-meter and all line data are requested at
50 Hz. Let's document the use of the "mutual coupling" option only. The input
data deck then looks as follows:
4
.. XIOIIII/ICII) OR Gl'IR
0.000000
0.000000
I QII
3.11000
3.11000
) X IIITIIS)
-12.000
0.000
13.763
13.763
IfNIE
. 3
S
3
4
1
O.Z:UOO
0.50000
0.23100
0.05220
0.36000
0.05220
4
4
.
0.000000
0.000000
0.000000
3.11000
1.46000
3.111000
12.000
4.000
-12.000
13.763
[Link]
13.763
iL 6
7
8
2
3
0
0.2:UOO
0.23100
0.50000
0.05220
0.05220
0.36000
4
4
. 0.000000.
0.000000
0.000000
3.111000
3.11000
1.46000
0.000
12.000
-7.850
13.763
13.763
25.633
9 0 0.50000 0.36000 4 0.000000 1.46000 7.850 25.633
FOLLOWING i'lATRICES ARE I'OIt EARTH RESISTIVITY" 250.00 0IIII-11 AND nEOUI:NCY. 50.00 HZ. COIlIU!CTION FACTOR· 0.000001
PlUTUAI. IItPEIIAI'ICE POSITIVE- 0.02017 OIII'I/ICI'I NEG.\TIVE- 0.011166 omI/lCI'I ZERO- 0.4930 omI/lCI'I
BLNIJ( CARD TERIUNATING fltEOUEIICY CARDS. IBLNIJ( CAIID ENDING I"REQOEIICY CAIIDS
BLNIJ( CARD TERIIINATING LINE-CONSTANTS CASES. ULAN!( CAIID ENDING LINE CONSTANTS
XXI- D. Logarithmically-spaced grouping of frequencies - 16
Most of the cards used in this option also appeared in the "stand alone" case.
The special request card "FREQUENCyfl needs some explanation, as well as the
"frequency scan" option on the frequency card. For a detailed description of all
other cards, we refer to section XXI-B, dealing with the "stand alone" case.
3. For this case of LINE CONSTANTS, besides the requests METRIC or ENGLISH (as in
the "stand alone" case) also the FREQUENCY request can be applied using the
following card format:
Il~JJJ~jJjJ1JlJJijJ~~lJllJJtJ~~lJJ1JJjJ~~lJll1JtJ~~lJllJJtJJ~lJJJJJjJ~~lJlJJJ{J~~
FREQUENC
Caution: in older program versions, this extra line was mandatory. From ATP4
onwards, this extra card just is neglected: it will not disturb the input
sequence.
XXI- D. Logarithmically-spaced grouping of frequencies - 17
6. The frequency card wi th "frequency scan" option only contains following variables:
I~ IE IE
,; f!~E Ie I: tl I( I ,~, I ~ I' t!l~ tIl! I' Ilt, Ie I,l' tll~l( t! tl Ie
FB.2 F1O.2 A10 13 13
I\.
Parameters:
FCAR : flag, used to control the number of correction terms in Carson's earth-return
formula for the impedance.
=0 : no correction terms added
=1 in column 28: calculation uses highest accuracy
=blank= calculation uses highes.t accuracy
Beware: ATP uses character checking here. Consequently, the interpretation of
a zero and a blank is different. This is. in derrogation to the rest
of the input (where zero or blank usually have the same meaning)!
DIST :specifier (cols 45-52) not really needed: all results are expressed per unit
of length.
ISEG : a flag, used to indicate whether ground wires (if any) are to be treated
as being continuous or segmented:
=0 continuous ground wires
=1 : segmented ground wires
Marker card preC:tI,Ung new EMTP date ca... IEG!1f IfEW OAT'" CAS!
Coapute overhead 11ne constanta. UeU - 90 LIN! CONSTMTS
Requast for . .tric ,not English) units. MET1tIC
Request for frequency-loop printout.
Co..ent card. ,1RJMDCl). 6. C --- A~TIC auKIILIIfG. PREQUI!JfCY SCl\If REQUEST -----
C~t card. NUMDCD - .,. C 1 2 3 4 5 6 , 8
C~nt card. NUMDCD - I. C 3456789 123456789 123456719 123456719 123456719 123456719 123456789 123456789
Line conductor card. 2. 310E-ol 5. 220E-02 .. 1 0.231 0.0522 4 3.18 12. 21.63 9.13 40. O. 2
Une conductor card. 2. 310E-Ol 5. 220E-02 4 2 0.231 0.0522 4 3.11 O. 21.63 9.13 40. O. 2
Line conductor card. 2.310E-Ol 5. 220!-02 4 3 0.231 0.0522 4 3.11 -12. 21.63 9.83 40. O. 2
Une conductor card. [Link]-01 3.600E-Ol 4 0 0.5 0.36 4 1.46 7.15 30.5 23.2
Una conductor card. [Link]!-01 3.600E-Ol 4 0 0.5 ·0.36 4 1.46 -".15 30.5 23.2
Ilenk card tareinating conductor cards. lLAN1C CAaJ)!IID!1fG CONDUCTOR CAIIDS
COIIIIent card. NUMDCD - 15. C 1 2 3 4 5 6 7 8
c - . . t card. NIII'IDCD - 16. C 3456719123456719 123456789 123456789 123456719 123456789 123456789 123456789
Frequency card. 2.500E+[Link]-02 [Link]+OO 250. 0.01 1 Z 3
Une conductor tebla after aorting and initial proceaaing.
Table
2
3
Pha..
Row Nuaber
1 1
2
3
Skin .ffeet
R-type
0.23100
0.23100
0.23100
Reaiatance
R 'aha/ke)
0.05220
0.05220
0.05220
Reactance data .specification
X-type
4
4
4
Xlaha/ke) or CMR
0.000000
0.000000
0.000000
I
-
Dl_ter
3.11000
3.11000
3.11000
)
HOrizontal
X ,etra)
11.100
-0.200
-12.200
lI"g height
Y letra)
13.763
U.763
13.763
If_
In both cases a data deck for a "Line Constants" case requesting PI-CIRCUIT
output is composed out of the following sequence of data cards:
3. The optional special request card "BRANCH" better can be used whenever punched
nominal PI-circuit output is desired as branch cards for following
applications: - mutually-coupled RLC branches
- CASCADE PI (only for steady state)
This card names the nodes of all the branches representing the line. The card
format is as follows:
XXI- E. ·LINE CONSTANTS· requesting lumped PI-circuit output - 20
BRANO A6 A6 A6 A6 A6 A6 A6 A6 A6 A6 A6 A6
BUS1 BUS2 BUSl BUS2 BUS' BUS2 BUSl BUS2 BUSl BUS2 BUS' BUS2
phose 1 phose 2 phose .3 phose 4 phose 5 phose 6
Parameters:
Enter a pair of points (BEGINk,ENDk) for each phase k. So, one card can handle
up to six phases.
rJIJJlJJJ~IJIJJJJJ~~IJJJJJJJ~~IJIJJJJJJ~IJJ1JJIJ~~IJIJJJIJJ~IJJJJJIJ~~IJJ11IJJ~~
$ERAS
6. The frequency card with PI-circuit output request specifies the frequency for
which line constants are to be calculated. Also the control parameters for
PI-circuit output need to be specified on this card.
km
or N
miles
Parameters:
FREQ frequency (Hz) for which the line constants, as well as the exact PI-circuit
matrix (using the short line equivalent) need to be calculated.
XXI- E. ~LINE CONSTANTS· requeating lumped PI-circuit output - 21
FCAR : flag, used to control the number of correction terms in Carson t s earth-return
formula for the impedance.
=0 : no correction terms added
=1 in column 28: calculation uses highest accuracy
=blank= calculation uses highest accuracy
Beware: ATP uses character checking here. Consequently, the interpretation of
a zero and a blank is different. This is in derrogation to the rest
of the input (where zero or blank usually have the same meaning)!
lCAP : control flag, specifying whether the capacitance matrix [C] or the susceptance
matrix u{C] should be output by any IPlPR or PUN=44 request. ICAP=l means
[C] output, whereas lCAP=O means uiC] output.
DlST : length (Ian or mile) of the transmission line section. The resulting
Pi-circuit output (be it the equivalent or the nominal Pi) values are for the
full line length.
lPlPR: request to calculate the equivalent Pi-circuit.
1000 shunt admittance and transfer admittance matrix of
the unreduced system
0100 shunt admittance and transfer admittance matrix of
the symmetrical components of the system of equivalent
phase conductors (perfect transposition assumed)
0010 shunt impedance and transfer impedance matrix of
the unreduced system
0001 shunt impedance and transfer impedance matrix of
the symmetrical components of the system of equivalent
phase conductors (perfect transposition assumed)
Recall that the eQuiyalent Pi-circuit (long-line. equivalent) correctly
describes the steady state conditions of a line at its terminals (i.e. for
one specific frequency and a specified length). This equivalent Pi-circuit
can nQt be used !s:u: transient phenomena. Accordingly, no punched card output
is possible. One can only obtain a transfer admittance or transfer impedance
and a shunt admittance or shunt impedance matrix.
lSEG : a flag, used to indicate whether ground wires (if any) are to be treated
as being continuous or segmented:
=0 continuous ground wires
=1 : segmented ground wires
PUN=44: request for automatic punching of the EMTP branch cards for a nominal
PI-circuit representation of an untransposed transmission line. Only the
system of equivalent phase conductors is Withheld; output of the unreduced
system is not available.
Recall that the nominal Pi-circuit (short-line equivalent) ~ be used for
transient phenomena (although a travelling wave model generally should be
preferred). On transient network analyzers, distributed parameter lines are
approximated as cascaded connections of short-length nominal. Pi-circuits with
lumped elements. Accordingly, punched card output, readily usable with
transient network simulations. For this purpose, do not forget to use the
optional card "BRANCH" (point 3).
XXI-E. -LINE CONSTANTS- requesting lumped PI-circuit output - 22
NOTES: 1) If one wants to use this output as the branch card input for a
mutually-coupled R-L-C-branch or a CASCADE-PI ce1, take care of the
following:
- output is in double-precision format ($VINTAGE.1)
- R in Ohm for the specified section length.
- X in Ohm for the specified section length. so use XOPT = FREQ
(FREQ = frequency at which the PI-circuit data are being
calculated) •
- When ICAP=O, field "C" is expressed in 1J,DIho (or pS) for the
specified section length. so use COPT=FREQ. On the other hand.
when ICAP=l. field tiC" is expressed in llfarad (or pF) for the
specified section length. so use COPT=O.
2} Only in the case PUN = 44 (nominal Pi-output), this frequency card has
to be followed by a tI$PUNCH" card, in order to have punched output being
printed.
Line conductor card. 5.000£-01 3.600£-01 4 0 0.5 0.36 4 1.46 7.115 30.5 23.2
Line conductor card. [Link]-Ol 3.6ooE-Ol 4 0 0.5 0.36 4 1.46 -7.115 30.5 23.2
Blank card [Link] lng conductor cards. BlANX CAJt.D END lNG CONDUCTOR CARDS
Ca-ent card. HUMDCD - 17. C 1 234 5 & 7 I
C.,...,nt card. HUMDCD - 18. C 345&789 12345&789 123456789 123456789 123456789 123456789 123456789 U3456789
Frequency card. 2.500£+02 !i. 000£+01 1. 380E+01 250. 50. 13.8 1 1 IEQUIVALEN
aow
1
2
3
-
Line conducto .. tabla .ftar .o..ting and initi.l [Link].
Tabla 1'tIa••
..
1
2
3
Skin .[Link]
a-type
0.23100
0.23100
0.23100
aaaiatance
a 1_/laol
0.05220
0.05220
0.05220
aeactance data apac1f1caU...
x-type
4
4
4
XI oM/laI I or _
0.000000
0.000000
0.000000
Di_t...
I ca I
3.18000
3.18000
3.18000
BO .. b ... t.l
x l_t"'l
11.Il00
-0.200
-12.200
AVV llaight
y l_t".1
13.763
13.763
13.763
-
4 1 0.23100 0.05220 4 0.000000 3.18000 12.200 13.763
5 2 0.23100 0.05220 4 0.000000 3.18000 0.200 13.763
Ii 3 0.23100 0.05220 4 0.000000 3.18000 -11.Il00 13.763
7 0 0.50000 0.36000 4 0.000000 1.46000 7.8!iO 25.633
8 0 0.50000 0.36000 4 0.000000 1.46000 -7.8!iO 25.633
Long-line [Link] _trices fo .. 11ne length - 1. 38000000E+Ol kll_t .... follow.
Th. [Link] of 2··1 equal ••cti... of length 6.90000000E+00 kll_t .... eacb .... involved in thia [Link] •
Two ti_. tlla shunt [Link] _trb. in unita of 1 - . ) fo . . .: r - t .. ical ~to of tIIa equivalent pha •• conductor
The .WI of tlla two equal .hunt _ittanca• • t both t . . .1nel.. 0" it.
o 2.173615E-10
in_.....
Rows proceed in the .equence 10. 1. 21. (0. 1. 21 • •tc.: col ...... proceed in tlla . _ c e (0. 2. 11. (0. 2. 11. ate.
printed to canfo. . to the DlTP input fo .... t.
3.542110E-05
8. 988147E-07 2.604039£-06
5. 189245E-07 -1.503449£-06
2 -8.988092£-07 5.331448£-11 -2.604045£-06
5.189341£-07 4. 774715E-05 -l.!i03440E-06
o 2.773025£+00
1.062745£+01
._ce -
Transfer illpedanca _trix. in uni to of 1 - ) fo ...:r-trical ~to of tlla [Link] pha•• conducto ..
Rows proceed in the (0. 1. 21. (0. 1. 21 • •tc.: c o l _ proceed in t I I a . _ (0. 2. 1). (0. 2. 11. etc.
-1.169266E-01 -3.315320E-Ol
-4.648683E-02 2.022785E-ol
2 9.872209E-02 3. 733762E-ol 3.409443E-ol
-7.801802£-02 4.597351E+00 1. 859759E-01
1234~678901234~678901234567a901234~678901234567890123456711901234567890123456789
SVINTAGE.
lBEC.S END.S 1. 16436023E+00 6.654040351+00 4.33273578£+01
2BIG.R END.R 8.09169334E-Ol 2.18107312E+00 -5. 45697875E+00
1.191358341+00 6.514788751+00 4.42585510E+Ol
38EG.T EHD.T 7. 815!i0386!-01 1.668297268+00 -1.4122112478+00
1I.09169334E-01 2 .1III0731%E+00 -~. 456978751+00
1.164360238+00 6.654040351+00 4.3327357118+01
SVINTACI. 0
---------< End of LUHIT7 punched cards •• flushed by SPUNCH request )-------
Blank card t .... inat1n9 frequency card.. IBLANX CMD ENDINC FREOUENCY CMDS
Blank card ending wLlNE CONSTANTS- ca.... BLANX CMD ENDINC LIN£ CONSTANTS
XXI- F. Constant-parameter. travelling-wave line model - 24
This model is valid for both non-transposed as well as transposed lines. Also
the special case of a double-circui t three-phase line wi th zero-coupling inbetween
the two three-phase circuits can be modelled without much problems. The punched
cards, automatically generated by this supporting routine can be used immediately
as branch cards for transient line simulation studies (see sections IV-D-l and
IV-D-2.) •
4. As for the conductors cards, only use the "single conductor"- option. The
"automatic bundling"- option does NOT work properly and hence is not allowed.
For more details, we refer to section XXI-B-l, card 4.
6. In this case, the frequency cards contain a request for output for a con-
stant-parameter, travelling-wave line model, applicable for both transposed as
well as untransposed lines. Since the variables in use are different for both
the transposed and the untransposed case, both cases will be discussed separately
in the following. The main difference lays in the value of flag "MODAL".
Beware; This LUNIT6 output format can not be used immediately for branch card
input. No SPUNCH output is created. The user himself should put the
output in the correct type -1,-2,-3 branch card input format (see
section IV. D) .
The input card format is as follows:
<1 IE
1- ~ ~I ( • L'fE f- f· Ie ~~~ E 1~ I~ Ie f! f~le IE rf
FB.2 F10.2 A10 F8.3 0
M
RHO FREQ FeAR OIST I
0
D
km : metric A
miles: english L
Parameters:
FREQ discrete frequency (Hz) at which the line parameters will be calculated.
FeAR : flag, used to control the number of correction terms in Carson t s earth-return
formula for the impedance.
=0 : no correction terms added
=1 in column 28: calculation uses highest accuracy
=blank= calculation uses highest accuracy
Beware: ATP uses character checking here. Consequently, the interpretation of
a zero and a blank is different. This is in derrogation to the rest
of the input (where zero or blank usually have the same meaning)!
DIST: length (km or mile) of the transmission line section. The resulting Pi-circuit
output (be it the equivalent or the nominal Pi) values are. for the full line
length.
ISEG : a flag, used to indicate whether ground wires (if any) are to be treated
as being continuous or segmented:
=0 continuous ground wires
=1 : segmented ground wires
Beware; Unlike for the Clarke model, for the K. C. Lee model, this punched card
output can be used immediately as type -1, -2, -3 branch card input (section
IV.D).
metric : km A
english : miles L
Parameters:
FREQ discrete frequency (Hz) at which the line parameters will be calculated.
FCAR : flag, used to control the number of correction terms in Carson I s earth-return
formula for the impedance.
=0 : no correction terms added
=1 in column 28: calculation uses highest accuracy
=blank= calculation uses highest accuracy
Beware: ATP uses character checking here. Consequently, the interpretation of
a zero and a blank is different. This is in derrogation to the rest
of the input (where zero or blank usually have the same meaning)!
DIST : length (km or mile) of the transmission line section. The resulting Pi-circuit
output (be it the equivalent or the nominal Pi) values are for the full line
length.
ISEG : a flag, used to indicate whether ground wires (if any) are to be treated
as being continuous or segmented:
=0 continuous ground wires
=1 : segmented ground wires
TR through this variable, the user can request either the full complex
transformation matrix, or its real part only.
=0, blank or -2 (This option is recommended for transient simulations):
The eigenvectors (= columns of the complex transformation matrix) will
be rotated closer to the real axis, so that their imaginary part is assumed
to become negligible.
=-9: The full complex transformation matrix will be used. This option is
recommended for steady state calculations. In addition, when using the
punched cards. it is adviced to make the special request "EXACT PHASOR
EQUIVALENT" (for details. please refer to Rule Book sections ILA.53.
IV.D.l as well as the second subcase of DC11).
XXI- F. [Link]-parameter. travelling-wave line model - 27
=-1 The user needs to define his (her) own current transformation
matrix, immediately following the first frequency card.
IIJ1JJJJJJ~IJ1JJJIJlI1JJIJtJJlI1JJIJJjJj~IJIJIJjJllljlJJJjJJ~IJllfJjJJI1JJJJllj~~
E13.0 E13.0 E13.0 E13.0 E13.0 E13.0
The elements of the modal transformation matrix should be entered row by row.
For a given row, the real part of the matrix elements of all columns comes
first. Then, on a following card, comes the corresponding imaginary part of
the same row of the transformation matrix.
Remark that in both the transposed as well as the untransposed case. the results
are given in per unit of length. We refer to section IV-D for further usage of
these data.
2
3
2
3
0.20000
0.39200
0.27300
0.05850 . 0.000000
0.000000
1.76530
3.17500
30.000
2.300
211.333
14.133
Frequency card. 2.50011+02 5.0001.01 2.0001.01 1250. 50. 1 20. 1-9 {[Link]
Mode llea1atance Reactance sua_tance The .urge 1apedance in unitaof I _ I V.1ocity Attenuation
_a/Ica _ _ /1ca ./ke real laeg [Link].. ke/.ec napera/ke
2.9784341-01 1.164.. 95E.00 1.922786E-06 7 ...... 5971.02 -9.8131671+01 7. 782211E+02 2.082804E+05 1.898398E-04
2 2.690953£-01 5.0661291-01 2.2345SZI-06 4.'1647111+02 -1.U"707J!+02 ".7614901+02 2.8596041+05 2.7366711-04
3 1.2979781-01 4.5162631-01 2.6238161-06 4.190580J!+02 -5.902"151+01 4. 1488D4J!+02 2.8572111+05 1.548'851-04
ligenvector aenix ITi) for cur .... t tr.... fo .... Uan: I_pha• • • ITil*I--'. Firat the ....1 pert • .-- by ...... :
4.9976491767247251-01-7.608751482350712E-01 3.59028"278S08403J!-ol
5.545877590750385£-01 6.3737138596008721-01 4.610924103355744!-01
Ii. 321750846115239£-01 1.13250562461176211-01-7.96819"3554209191-01
Finally. the l_ginary ;P8rt. ...... by ...... :
-'.6277236413578701-02 1.568574765713728J!-02 1.061193645195082£-01
-9.59493610332'411£-02 2.0238415262361771-02 6.0745781802030651-02
1.6732486446065251-01-3.667968276727409£-02 9.Z8428496735301ZE-OZ
Z·.urge In the pha•• doeain. hdat ...ce and the 1aeginary part of IT!) are l_red.
5.9480485913032411+02
1.129215862564355£+02 6.0214068005325621+02
1.488880907099826E+02 1.077553906402578J!+02 5.3104"50153118761+02
A [Link] of 80·col ..... card i . .g •• now being f1uahed fro. punchbuff.r follow •.
1234567890123456789012345678901234567890123456789012345'78901234567890123456789
$VINTAGE. 1
-lBEG.5 ENO.S 2.97843£-01 7.78222£002 2.0B2BO£00!>-2.00000£001 1 3
-2BEG .• END •• 2.69095£-01 4.76149Eo02 2.85960£005-2.00000£+01 1 3
-3BEG.T ENII.T 1.29198£-01 4.14880£002 2.85121£+05-2.00000£.01 1 3
SVINTIIGE. 0
0.49976492 -0.76087515 0.35902843
-0.07627724 0.01568575 0.10611936
0.5!>4!>8776 0.63737139 0 •• '109241
-0.09!>94936 0.02023842 0.06074578
0.63217508 0.11325056 -0.796819.4
0.16732486 -0.03667968 0.09284285
---------( End of LUKIT7 punched card. . . flushed b¥ SPUNCH reque.t )-------
sequence surge 1JIpedance Attenuation velocity wavelength ... lstance "'c'tance SUSceptance
_gnitudel_' angle\degr. I db/ka ke/.ac lea _Ike _Ilea IOho/lea
Zero: 8.82252£.02 -4.49333£+00 9.28354E-04 2.30987£+05 4.61974£+03 1.1111012£-01 1.111885£.00 1.54634£-06
Positive: 3.77637£.02 -3.75160£+00 6.06746£-04 2.94899£.05 5.89798£+03 5.26460£-02 3. 99713E-01 2.82705£-06
Frequency card. 2.700£.01 5.000£+01 2.000£.02 27. 50.I zoo. 1-9 ([Link]
I_pedance aatrix. in unit. of [ohas/lcaeter J tor the .y.t . . of physical conductor••
Rows and coluans proceed in the sa.e order as the sorted input.
XXI- F. Constant-parameter. travelling-wave line model - 30
1 9.8052851-02
6.624066£-01
2 4.4983181-02 '.7197971-02
2.704796E-01 6. 634639E-01
Manual calculatione:
Za - (9.1I05285E-02 + 9.7107971-02 - 9.805285E-02113 - 9.77671911-02 (real P6rtl
C6.624066£-01 -6.634639£-01 + 6.624066£-01113 - 6. 6275901!:-ol U_lnary pert 1
Ze - 14.498318E-02 + 4.5399432-02 + 4.4911318I!:-o21/3 - 4.512193£-02 1.....1 pert)
(2.704796I!:-ol • 2.481790£-01 + 2.7047961!:-01113 - 2.63046U-01 (ieaglnary P6rt)
Zp - 14.3612661-02 • 4.309583£-02 • 4. 3282111!:-02 +
4.3406001-02 • 4.289932£-02 + 4.3095831-02 +
4.392279£-02 • 4.3406ooE-02 + 4.361266E-02119 - 4.3370361-02 (real .part)
(1.042746£-01 + 1.017347£-01 • 9.11447221-02 •
1. 078558£-01 • 1.053094£-01 • 1. 0173471!:-01 •
1.1074811!:-01 + 1.0785581-01 + 1.0427461!:-011/9 - 1.046928£-01 (1aeginary pert)
It should be remarked that the modal values calculated by the program agree
quite well with the sequence values (ground, interline and line) calculated by
hand. They also agree with the values calculated by Semlyen Setup (section XXII-D).
In the latter case, no manual calculation is involved, so maybe this method is
recommendable for the user. We refer to section IV.D.2. for more details on how
to convert these modal results into a format, usable for constant-parameter
travelling-wave models (type -1,-2,-3), in the special case of double-circuit
special transposition.
XXI-F-4. Applications
Punched card output (LUNI'I7)is generated automatically, only for the
untransposed case (K.C. Lee model). For the ful1 transposed case (Clarke model),
sequence values are calculated, but the user should convert these LUNIT6 results
to the proper input format manually • For the special transposition of a double-circuit
line (see section IV.D.2), the user even should perform some manual calculations
in order to obtain the values to be entered in the input format (see section
XXI-F-3). An alternative consists of using the Semlyen Setup code steady state
results (NSS=ll for double-circuit special transposition). More explanation can
be found in the related example of section XXII (Semlyen Setup).
Output is for the constant-parameter travelling-wave model as described in
section IV.D.1 and IV.D.2.
Note: If one wants to use this output as the branch card input for a
constant parameter line model, take care of the following:
- output is in extended precision ($VINTAGE, 1)
R in Ohm/kIn or Ohms/mile, depending on the unit request card
- X in Ohm/kIn or Ohms/mile, depending on the unit request card,
XXI- F. [Link]-parameter. travelling-wave line model - 31
The Semlyen Setup can create two types of models for both conventional overhead
lines as well as underground or overhead cable systems:
- LUNIT7 output for travelling wave modelling
- LUNITB output containing the phase-coordinate PI-equivalent transfer admittance
matrix and half shunt admittance matrix at each frequency within a given frequency
looping.
- in addition, the ordinary LUNIT6 output can contain steady state results and
modal values, pretty much the same way as LINE CONSTANTS does. This output can
be extremely usefull for the special case of double-circuit special transposi tion,
as described in section IV.D.2.
In the travelling wave model, both the propagation response as well as the
admittance response are obtained using modal characteristics, calculated over a
user defined frequency range, under the assumption of a constant transformation
matrix (phase-mode transformation). Then, both the propagation response as well
as the admittance response are approximated in the time domain, using only two
real exponentials, thus allowing usage of recursive convolution methods in the
time domain. The punched card output thus created immediately can be used in time
domain simulations, as explained in section IV-D-4.
The input data deck for a Semlyen Setup depends on whether LINE CONSTANTS
rather than CABLE CONSTANTS is imbedded. First we will discuss the general Semlyen
parameters and then, we will go into detail to clarify the imbedded use of both
LINE CONSTANTS and CABLE CONSTANTS.
IOTX
lOSS
IOFL
6. One single complete data case for LINE CONSTANTS or CABLE CONSTANTS
7. SPUNCH (optional)
8. BLANK and terminating SEMLYEN SETUP
SCLOSE, UNIT = 8, ... if IPUN = 3 on the miscellaneous data card
9. BEGIN NEW DATA CASE
10. BLANK CARD terminating all cases
Let's discuss the card format in more detail now. Wherever appropriate, the
LINE CONSTANTS and CABLE CONSTANTS imbedded usage will be discussed separately.
1. BEGIN NEW DATA CASE card.
2. SEMLYEN SETUP.
11JJJJJ1JJ~IJ~lJJIJlI1IJJJIJJlI1JJJJJJJ~~1111JJIJJtIJJlJIIJl~IJlIJIIJJ~IJ1JJIIJJ~
SEM.. YEN SET U
3. Next, the user can specify following special request cards, in any arbitrary
order: a "BRANCH" card or a "TOLERANCES" card. These cards are recognized by
the leading special request word •
I~
. l'~ E tE fe .~
~.l· t!lc
.~
1( l~~f
1'
fe 1~ ~.
I-
tE Ie IE t!l~le
IE
i~ ~E rH~f( [~ tE Ie I: ~! ~!
i~
Ie
BRANO A6 A6 A6 A6 A6 A6 A6 A6 A6 A6 A6 A6
BEGIN1 END1 BEGIN2 END2 BEGIN3 END3 BEGIN4 END4 BEGINS ENDS BEGIN6 END6
Up to 6 phases can have a name allocated to both terminal ends using this cards.
Be sure to respect the phase order of the LINE CONSTANTS or CABLE CONSTANTS
case:
- For LINE CONSTANTS. the phase order is defined by parameter "IP" on the
conductor cards (see section XXI-B-l).
- For CABLE CONSTANTS (CLASS A + B). the phase order (= order of the node name
pairs) is as follows:
First of all, the order of the ~ system should be obeyed. Recall that
this order is as follows:
- All 3-conductor (i.e. core + sheath + armor) SC coaxial cables must precede
any 2-conductor (i.e. core + sheath, no armor) SC coaxial cables.
- All 2-conductor SC coaxial cables must precede any core-only SC cables.
- For CABLE CONSTANTS (CLASS C) (i.e. overhead transmission lines). the phase
order (or order of the node name pairs) is as follows.
First of all, the order of the circuits should be obeyed. Recall that this
order is as follows:
- First come the circuits with the highest number of phase-wire bundles
- Order to the lowest number of phase-wire bundles.
This card can be used to redefine one or more of the 18 different near-zero
tolerances or iteration limits. used in the iteration algorithm of the Semlyen
code. If no. such card is supplied. built-in default values will be used (see
table 22.1). The card format is as follows:
, 1
, '::j
'1": II 11": 8
4
1 1 111.4 ~
iii
1
I'
1 lEI' fl'::j
OlERANCES 12 E11.0 12 E11.0 12 E11.0 12 E11.0 12 E11.0
I I I I I
N N N N N
D value D value D value D value D value
E E E E E
X X X X X
For each of the five fields. an index and corresponding value can be defined.
The index refers to the variable for which one wants to redefine the value.
Hence. variables can be redefined in any order. Table 22.1 specifies the index
number. variable name. corresponding default value and meaning of the value in
the Semlyen routine. Also recommended values for both cable and overhead line
simulations are quoted in a remark.
XXII. SEHLYEN SETUP - 5
Table 22...l.
Remark:
3c. $ERASE
This card should be used to clear the punch buffer. Use this request whenever
one intends to create punched card output for later use of the Semlyen output
in a simulation run (see section IV-D-4).
4. Next comes the miscellaneous data card, speCifying fitting parameters. The
card format to be used is as follows:
I- I~ IE S
~ f"l< ~ E tE !e 1~I'; .~ I d~~( i~ f~fE 11 ~( I~i- tfl~l( ~,l~ fE '~I~ 1~ IE iff~IC f- f~.E rfiS Ie 2 5E ~ f I.
NOO N
P
N I~ K
1*
S i~ P 1./ P 0
I I IOTX lOSS IOFL
0 s s U0
I N C
N
T
15 15 1:2 I I 12 II 1212 16 16 16
1I II
Parameters:
NOO : This number defines the basic time axis spacing 6t for the step response
fitting;
';0 l
6t-------
NOO NOO.c o
Typical values:
XXII. SEHLYEN SETUP - 7
= 100-300 for overhead lines; in this case, the initial shape of the step
response is rather steep, so we need a lot of points.
= 50-100 for cables; in this case, the initial shape of the step response is
rather smooth, so we don't need much points.
NPOINT : Number of time points defining the time window for time domain fitting
of the step response. Since an exponential Fourier transform is used, there
is no relation between the number of time points (defined by NPOINT) and the
number of frequency points (defined by the frequency looping; last frequency
card of the embedded LINE CONSTANTS or CABLE CONSTANTS case).
Typical values:
= 150 for overhead lines;
= 50 for cables.
These values should be increased in case the fitter is too demanding (see
parameter N2)
NSS : Flag, used to indicate whether or not the phases are assumed to be continuously
transposed:
=0 : untransposed circuit; in the [Link] LINE CONSTANTS or CABLE CONSTANTS
case, THREE frequency cards will be mandatory (see point6).
= 1 : continuously-transposed circuit: in the imbedded LINE CONSTANTS or CABLE
CONSTANTS case, only TWO frequency cards are needed (see point 6).
= 11: special double-circuit transposition (see section IV.D.2 of rule book):
in the imbedded LINE CONSTANTS or CABLE CONSTANTS case, only TWO frequency
cards are needed (see point 6). An illustrative example is depicted in
section XXII-D.
KPS : A flag, indicating whether or not the step response fitting at the steady-state
frequency is desired.
= 0 : no fitting at the steady-state frequency; this is the case for fast
transient calculations.
= 1 : attempt to fit the propagation step-response exactly at the steady-state
frequency; this is the case for calculation of slow transients.
XXII. SEMI. YEIf SETUP - 8
N3 =0 no printer plotting.
=1 a printer plot of characteristic admittance vs. time will be generated,
showing how the frequency-domain-fitted exponentials compare with an
independent inverse Fourier transformation result.
=2 a vector plot will be created, provided that SPY is available and in
use.
=3 both a vector plot and a character plot will be made under the same
conditions as specified above.
N4 A parameter which indicates how the characteristic admittance is to be treated.
= 0 : for all modes, use the fitted time-dependent characteristic admittance.
Make N1 = 1.
= 1 : for all modes, use the constant characteristic admittance (at the
steady-state frequency).
= 2 use the fitted time dependent characteristic admittance for the zero
sequence mode. For all. other modes, use the constant characteristic
admittance calculated at the steady-state. frequency. Make N1 = 1.
= 3 for all modes, use the constant characteristic admittance calculated
at the natural resonant frequency Fres of the power carrier.
1- Co
F r··- 2 "t o -21
with "to = travel time at speed of light.
IPUN : Parameter, indicating whether or not the EMTP branch cards are to be
punched:
= 0 : branch cards are generated on both the line printer and the punch
(LUNIT7) (don't forget SPUNCH ,. following the frequency cards of the
imbedded LINE CONSTANTS or CABLE CONSTANTS case).
= 1 punch only (don't forget $PUNCH, following the frequency cards of the
imbedded LINE CONSTANTS or CABLE CONSTANTS case).
= 2 printer only.
= 3 : phase-coordinate Pi-equivalent transfer admittance matrix and half
Pi-equivalent shunt admittance matrix at each frequency will be written
into LUNIT 8 = 8, which must be opened using It SOPENt, as a formatted
file before ItSEMLYEN SETUP It request. The phase-coordinate Pi-equivalent
matrices must be requested through lOSS and 10FL. Typical value: 4100
octal.
IDOC Flag, indicating whether or not the generated branch cards are to be preceded
by descriptive comment cards. For this purpose, the data cards of ItLlNE
CONSTANTS It or ItCABLE CONSTANTSIt are used,. after conversion to comment cards
(ItC It in column 1).
= 0 no such comment cards will be output.
= 1 : generate descriptive comment cards.
XXII. SEMLYEN SETUP - 9
J~
I~ i~ I~ It iE
t~~( ~ ~( ~~ f~ f~ fe I~I- H 'E Ie I,f~ r~t~fe !~
rfl* .~ It L' rf i(
1 2 3 4 5 6 7 8 9 10 11 12
14 14 14 14 14 14 14 14 14 14 14 14
The relation between such binary specifications and the possible octal
specifications of the miscellaneous data card (see point 4) is simple: separate
the binary bits into groups of three. and then read as an octal number. For
example.
1 0 1 001 1 1 0 1 0 0 (binary) = 101 001 110 100 = 5164 (octal).
6. Following is one single. complete data case for LINE CONSTANTS or CABLE CONSTANTS.
For details. we refer to chapter XXI (LINE CONSTANTS) or chapter XXIII (CABLE
CONSTANTS). Only following important points are repeated here:
- Start this grouping by the proper request word: LINE CONSTANTS or CABLE
CONSTANTS.
- The card format for the frequency cards includes a special length specification
"LENGTH". Further remark that. although the same parameters must be entered,
the format for LINE CONSTANTS and CABLE CONSTANTS differs. Following are the
formats to be used:
l..I1:m CONSTANTS:
FB.2
CABLE CONSTANTS:
- If NSS .,. 0 (see point 4, miscellaneous data card), the line or cable is assumed
to be UNTRANSPOSED, and hence THREE frequency cards are needed:
1. The first frequency card defines the frequency at which the modal trans-
formation matrix will be calculated. Be sure to put the same frequency
value on both the variable FREQ of the first frequency card and on the
tolerance-card (point 3) for variable FMED (index number 10). For hints
on FMED values, we refer to point 3. As far as the card format is concerned,
only RHO, FREQ and LENGI'H should be specified. Leave IDEC and IPNT blank.
2. The second frequency card is to specify the steady state frequency FREQ
at which the resulting line (or cable) model will be used for later
simulations. Be sure to put this same frequency value as STATFR-parameter
in the STARTUP file when making later transient calculations using the
generated punch card output. As far as the card format is concerned, only
RHO, FREQ and DIST should be specified. Leave IDEC and IPNT blank.
3. The third frequency card is to specify the logarithmically-spaced frequency
span to be used for inverse Fourier transformation. All card parameters
should be specified.
Typical settings: FREQ = 1. Hz = starting freq.
IDEC = 5-6 decades
IPNT = 10-20 points per decade for cables
20-30 points per decade for overhead lines
Don t t forget to specify RHO and LENGTH.
- If NSS .,. 1 or 11 (see point 4,miscellaneous data card), the line or cable
is assumed to be TRANSPOSED (Le. the modal transformation matrix is lmown
a priori), and hence only TWO frequency cards are needed:
1. The first frequency card is to specify the steady state frequency at which
the resulting line (or cable) model will be used for later simulation.
Be sure to put the same frequency value on both the variable FREQ of the
first frequency card and the STATFR-parameter in the STARTUP file. As far
as the card format is concerned, only RHO, FREQ and LENGI'H should be
specified. Leave IDEC and IPNT blank.
2. The second frequency card is to specify the logari thmi cal ly spaced frequency
span to be used for inverse Fourier transformation. All card parameters
should be specified.
Typical settings: FREQ = 1. Hz
IDEe = 5-6 decades
IPNT = 10-20 pOints per decade for cables
20-30 points per decade for overhead lines
Don't forget to specify RHO and LENGTH.
XXII. SEMLYEIf SETUP - 12
- Terminate the LINE CONSTANTS or CABLE CONSTANTS data set by Z blank cards:
the first one to terminate the frequency cards, and the second one to terminate
the usage of the imbedded supporting routine (either LINE CONSTANTS or CABLE
CONSTANTS) •
7. Only if IPUN = 0 or 1 on the miscellaneous data card (point 4), the optional
$PUNCH card should follow next. This in order to flush the punch buffer to
LUNIT7 output. The punched card output thus created immediately can be' used in
time domain simulations, as explained in section IV-D-4.
The combined usage of LINE CONSTANTS imbedded in a SEMLYEN SETUP case already
is illustrated in benchmark DC29.
The following example illustrates the usage of a CABLE CONSTANTS imbedded in
a SEMLYEN SETUP case. For the specific CABLE CONSTANTS data, we refer to section
XXIII-C-l; the same class A cable is repeated here. The aim of the example is to
illustrate specifics related to the imbedded use of the CABLE CONSTANTS data in
the SEMLYEN case.
First of all, special attention should be paid to the "BRANCH"-card:
A2RC A3RC
A2SC class A cable A3SC
A2TC untransposed
A3TC
A2RS A3RS
A2SS length = 3000 m A3SS
A2TS A3TS
- the BRANCH card first allocates names to the terminal ends (A2, A3) of the
cores (C) of all three phases (R, S, T):
phase R; A2RC-A3RC
phase S; A2SC-A3SC
phase T; A2TC-A3TC
Only after this list, names are allocated to the terminal ends (A2, A3) of
the sheaths (S) of all three phases (R, S, T):
phase R; A2RS-A3RS
phase S; A2SS-A3SS
phase T; A2TS-A3TS
Further remark the specified tolerances:
# 14 = 30.
# 15 = 30.
# 16 = 30.
# 17 = 30.
# 18 = 100.
Suppose that we want to use the fitting result for the simulation of fast transients.
In such case, the frequency FMED (controlled by the tolerance number 10) should
be calculated as follows:
# 10 = 1/(4*TAU}
= Co / (4*LEN*SQRT{EPS1})
= 300.000.000 / (4*3.000*SQRT{2,3»
= 16.48E3 Hz
{with EPS1=2,3 ; LEN=[Link] m}
Since we assume an untransposed cable (usual case), be sure to specify the same
frequency for the variable FREQ on the first frequency card (specifying the frequency
to be used for calculating the modal decoupling matrix).
INPUT FILE:
===========
OUTPUT FILE:
============
Following is a selection of the generated output:
First comes an interpretation of the input data (only the part related to
SEMLYEN SETUP; the part related to CABLE CONSTANTS is not reproduced here):
....rk.r card preceding new EIIl'P data ca ••• BEeIII IIEW IIJ\TA CASl'!
e.-ant card. JnlMDCD - 3. e
c - . t card. JnlMDCD - 4. e 225 ICY cabl. vi tbout enclosing pipe
C.-ant card. JnlMDCD - 5. c •••••••• ( cl... A _lLaIIPle) ••••••••
C.-ant card. JnlMDCD - 6. C
2nd-ordar frequency-dependent line _eling. SEI'ILYEIf SETUP
Er••• all of 0 card. in the punch buffara SEllASE
Pair. of 6-character bu. [Link] for each phase. IIRMCB A2IIC
A31tC A2SC A3SC A2TC A3TC A2IIS A31tS A2SS 1.355 A2TS A3T5
II_ [Link] [Link].,... 14 15 16 17 18 TOLERAIICES 14 30.15 30.16 30.17 30.11 100.
11- [Link] tol ...an.,... 10 0 0 0 0 TOLERAIICES 10 16.48E.3
c - . t card. JnlMDCD - 12. C 3456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
C.-ant card. JnlMDCD - 13. C -----••••• --// •• //--•• ------++.++.------
Misc. data. 80 50 0 0 3 o 80 50 001 003 0 1 1 1 1 (WORKS PERFECT POll ALL 6 MODES
Transfer control to -CABLE CONSTANTS·, CABLE CONSTANTS
c - . t card. JnlMDCD - 36. Ie f.-.quencyand earth rea1IUYity card. using carson'. " - - , , . earth _1
cc-ent carci. JfUMDCD - 37. C RBO----------.+PREO•• ++ •• +++
Frequency card 1.000E.02 [Link] 0 1 3.00!.03 100. 16. 48E.3 3000.
Prequency - 1. [Link]
Steady-stat. frequency i _ I s . respons •• rotated through delay Uaa X(3) for use in edJWlting by _ for. precise fit at tha
steady-stat. frequency. SBIPTII. 58IFTI - 9.8541051-01 -3.2490361-02
Allplitude 1 Tiaa canst. 1 AllpUtude 2 Ti_ canst. 2 Delay t t .
9.02625251-01 5.75713711-05 9.73747501-02 5.5214755&-04 4.192"85&-04
NOde 1. ti_ step - 1.43330949E-05 5ywbols: ".- - 5eelyen appro.i_tian. ·0· - deaired 1FT outpUt. -.- - intersection
Irror Tt. 0.0 9.736704471-01
.1 •••••••• 1 •••••••• 1 •••••••• 1 •••••••• 1 •••••••• 1. ••••••• 1 •••••••• 1. ••••••• 1 •••••••• 1 •••••••• 1
In! tlalbe IJIIlIIIUF - IIIDIEG 50
0.00000&+00 4.097531-04 0
-2.722301-02 4.2_61-04 0
1.642161-02 4.384191-04 o .
1.108621-02 4.527521-04 O.
-3.530241:-03 4.67085E-04
-1. 054341-02 4.814181-04 .0
-1.180601-02 4. 95751E-04 • 0
-1.113821-02 5.100851-04 .0
-6.916921-03 5.244181-04
-2.01997&-03 5.3875111-04 •
9.100061-05 5.53084£-04
1.'9024E-03 5.674171-04 •
5.081701-03 5.817501-04 O.
7.071551-03 5.960831-04 O.
6.416791-03 6.104161:-04 O.
5.49176&-03 6.24749£-04 O.
6.003531-03 6.39082E-04 O.
7.189531-03 6.534151-04 O.
6.232121-03 6.67749£-04 O.
4.182621-03 6. 82082E-04 •
2.101441:-03 6. 96415E-04
2. 41016E-03 7.107481-04 O.
3.136791-03 7.250811:-04
3.15081&-03 7.394141-04
1.29982&-03 7.53747£-04
-7.402601-04 7.680801-04 .0
-1. 46675E-03 7. 82413E-04
-9.052561-04 7.967461-04
-3.51275&-04 8.110801-04
-5.485971-04 8.254131-04
-1. 211841-03 8.39746E-04
-1. 871331:-03 8. 5407tE-04
-2. 941971-03 8.614121-04 .0
-3.188251-03 8. 82745E-04
-3.515891-03 8. 97078E-04
-2.115351-03 9.114111-04
-9.730601-04 9. 25744E-04 •
-1.232771-03 9.400771-04 •
-2.434181-03 9.544101-04
-3.441461-03 9.687441:-04 •
- 3. 96206E-03 9.830771-04 .0
-3.584601-03 9.974101-04 .0
-2.405091-03 1.011741-03 .0
-1.344311-03 1. 026081-03 .0
-1. 02470E-03 1.04041&-03 •
-1. 279241-03 1.054741:-03
-1. 627141-03 1.069081-03
-1. 701791-03 1.083411-03 *
-1. 491231-03 1. 09774E-03
-1.442011-03 1.112071-03
Nuaber of [Link] • 2 Noraalbed square error par point· 4.04202505£-05
NOde 1. constant characteristic a""ittance - 1.13894909&-01
A liating of 80-cohan card i_geo now being fluohed froot punch bufferfoll_o.
123456789012345678901234567890123456789012341;6789012341;67890123456789012341;5789
Following portion of the output is relevant for the steady state results and
for the generation of section IV.D.2. card formats:
Output:
_e
The foll .... ing "al ..... are CCIIJ>Utecl ,,,o1ng """"tant tranafo ... tion . .trice••
1
2
O. U5279905206665U-03
0.62610448515726921-04
Alplwl
lnaper/aO
0.24387941393874691-02
0.18939274335441741-02
!leta
IracUan./_lI
[Link]
Idb/ai)
'0.221733301134407971-02
0.543827445997356U-03
velocity
Calle/ • ..,)
0.12881745953263778+06
0.16587713963838721+06
3 0.11241937774555872-03 0.17144534951051771:-02 0.97646230827786751-03 0.111324163720737531+06
4 0.1124193777455587!-03 0.17144534951051771-02 0.97646230827786721-03 0.111324163720737531+06
5 0.11241937774555871-03 0.17144534951051771-02 0.976462301127786751-03 0.18324163720737538+06
6 0.1124193777455587!-03 0.171445349510517711-02 0.9764623082778675!-03 0.183241637207375211+06
[Link] . .ri.. [Link] [Link] Equivalent-Pi . .ria. Half equi,,-Pi shunt
Prof. Akihiro Ametani's separate program was added to ATP during the summer of 1994 as
documented in Can/Am newsletters dated July and October, 1994. Such usage, illustrated within
standard test cases DC-27 and DC-28, involves a CABLE PARAMETERS declaration immediately
following the old CABLE CONSTANTS declaration. The following is an adaptation of the
instructions for Prof. Ametani's self-contained program. The summary shall begin with Prof. Ametani's
own description (text moved from Section I) --- slightly modified to suit ATP needs. About limits on
number of conductors, most matrices are seen to be dimensioned (12,12), so the limit is believed to
be 12 (temporarily fixed).
The ATP "CABLE CONSTANTS" routine had originally been developed from 1976 to 1981
by this author, Akihiro AMETANI (Professor at Doshisha University, Kyoto, Japan) under contract
with Bonneville Power Administration, Portland, Oregon, U.S.A. Since then, a number of
modifications have been carried out by various persons. Ametani has found it difficult for himself to
trace all the modifications, and some of the calculated results are not correct. He has kept his own
independent CABLE CONSTANTS which has been modified time by time by himself. He has started
restructuring ofhis own CABLE CONSTANTS since October, 1993, and added new options into the
program. The restructuring has been partially completed, and Ametani has decided to release the new
program named CABLE PARAMETERS through the BPA as an all-new supporting program of
ATP.
The structure and functions of the CABLE PARAMETERS are the same as those of CABLE
CONSTANTS (see ATP Rule Book Chapter XXID). The options of a stratified earth, which was
rarely used, and the crossbonded cable, which was complicated to use, have been deleted in CABLE
PARAMETERS. But several new options have been added:
Furthermore, the option of grounded conductors (parameter "NGRND") has been modified. The
modified version of "NGRND" is completely different from that of "NGRND" in CABLE
CONSTANTS.
Produced by A. Ametani
Dept. Electrical Engineering
Doshisha University
Tanabe-cho, Tsuzuki-gun
Kyoto-pref. 610-03, Japan
Tel. +81 774656325 (6211)
Fax +81 774656801
2 - XXIII Appendix. CABLE PARAMETERS
CONTENTS
1. Introduction
IT-I Outputs
IT-2 Input Data
REFERENCES
1) A. Ametani: "A general formulation of impedance and admittance of cables," IEEE Trans., Vol.
PAS-99 (3), pp. 902-910,1980.
2) H.W. Dommel: Electromagnetic Transients Program Reference Manual (EMTP Theory Book),
B.P.A., Portland, Oregon, U.S.A., August 1986.
3) A. Ametani: Distributed-Parameter Circuit Theory, Corona Pub. Co., Tokyo, Japan, Feb. 1990
(in Japanese).
7) A. Ametani: "A study of cable transient calculations," Sci. Eng. Rev. Doshisha Univ.,
vol. 24, no. 2, pp. 110-127, July, 1983.
XXIII Appendix. CABLE PARAMETERS - 3
I. Introduction
See the initial page, to which material of this section was moved.
B. General Description of the Program
B-1 Outputs
The "CABLE PARAMETERS" program can be used to calculate the following outputs of
Class A: underground/overhead single-core coaxial cable (SC cable in Fig. 1 (a)), Class B:
underground/overhead pipe-enclosed type cable (PT cable in Fig. 1 (b)) and Class C: overhead line (OH
line in Fig. I (c)) as a function of frequency f.
medhun 1
mediwn2
k-th conductor
j-th cable j-th conductor ~----t
D} : I
f--- ,::- i,
:
h
'1!c
hj :: Ii. :
-..: I -.Jk ~
D2 i
( ii ) System COnfiguratiO~... ..,
\ ,'
(5) modal quantities; attenuation constant a [dBlkm], propagation velocity v [mJ Jls], impedance Z
[O/m], admittance Y [S/m], characteristic impedance Zo [0], characteristic admittance Yo [S]
(6) 1t (PI) equivalent model of a cable or an OR line per unit length for ATP simulation
(7) Ametani's distributed line model of a cable or an OR line per unit length: multiphase lossy line
model with transformation matrix at a fixed frequency
AI. First comes a "BEGIN NEW DATA CASE" card (actually optional, as per
Section IT-A).
A4. Next comes one (or possibly more) card upon which is keyed the number of conductors
which make up each SC coaxial cable of the system. One. card will suffice for a system
of up to sixteen cables; two cards are required for 17-32 cables, etc.
A5. Next comes two (or possibly three) cards of geometrical and physical data for each SC
coaxial cable in the system. E.g., for three SC coaxial cables, a maximum of nine cards
would be required.
A6. Next comes one (or possibly more) card which gives the horizontal and vertical location
of the centers of all SC coaxial cables in the system. A single card will handle up to four
SC coaxial cables; two cards are required for 5-8, etc.
A7. Last comes a frequency card, which specifies a new earth resistivity and frequency (or
range of frequencies) for which cable constants are to be calculated.
B4. Next will come one card which gives parameters ofthe pipe.
B5. Next will. come one (or possibly more) card which specifies the location of each SC
coaxial cable within the pipe. One card will suffice for up to 4 SC coaxial cables, two
will be required for 5-8 SC coaxial cables, etc.
B6. Next comes one (or possibly more) card upon which is keyed the number of conductors
which make up each Sc coaxial cable of the system. One card will suffice for a system
of up to sixteen cables; two cards are required for 17-32 cables, etc.
B7. Next come two (or possibly three) cards of geometrical and physical data for each SC
coaxial cable in the system. E.g., for three SC coaxial cables, a maximum of nine cards
would be required.
B8. Next comes one card which gives the horizontal and. vertical location of the center of
the pipe.
B9. Last comes a frequency card, which specifies a new earth resistivity and frequency (or
range of frequencies) for which cable constants are to be calculated.
6 - XXIII Appendix. CABLE PARAMETERS
C4. Next come three cards for each circuit which belongs to the overhead conductor
system. Parameters specified include the number of phases, the number of ground
wires, the number of conductors in a bundle, geometrical data, conductor resistivity,
etc. E.g., considering a system which consists of a single-circuit 500 kV transmission
line and a double-circuit 230-kV transmission line all on the same right of way, nine data
cards would be involved.
C5. Next comes one (or possibly more) data card which gives the height, sag, and horizontal
location for the center of each bundle of each circuit of the system. One card will
suffice for I or 2 bundles, two cards are required for 3 or 4 bundles, etc. E.g., two
coupled single circuits, each of which is supported by its own towers and has a single
ground wire, would require four cards (because there are eight bundles total -- four for
each circuit).
C6. Last comes a frequency card, which specifies a new earth resistivity and frequency (or
range of frequencies) for which line constants are to be calculated.
1 2 3 4 5 6 7 8
12345 67890 12345 67890 12345 67890 12345 67890 12345 67890 12345 6789012345678901234567890
ITYFE ISYST NPC IEART KM:ODE IZFLA IYFLA NPP NGRND P:DATA IYG
1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 1.10 1.11 "- Section number
explaining
I5 IS IS IS I5 IS I5 IS I5 IS IS the parameter
XXIII Appendix. CABLE PARAMETERS - 7
1.1 rrYPE; flag indicating the class of the present data case
1.2 ISYST; flag indicating either overhead or underground for a cable system (Class A and B), and
indicating either transposed or untransposed for an OH line (Class C).
1.3NPC
(1) Classes A and B; number of SC cables which make up the system of interest. Example:
NPC = 3; three-phase SC cable system (the most common case).
(2) Class C; number of transmission circuits which make up the overhead line system of
interest.
The numbers of phase wires and ground wires in a circuit are to be defined in data card
"C4" (NP = number of phase wires, NG = number of ground wires).
1.5 KMODE; flag used to request the calculation and output of various modal quantities of interest.
Presently it is fixed to "KMODE=I," and all the modal quantities described in Sec. IT-I
(5) are calculated and printed.
The format of the impedance and admittance printout is fixed. to:[R], w[L] = [X], [G]
and w[C] = [B], but not [L] and [C].
1.8 NPP
1.9 NGRNP; This parameter describes the number of grounded conductors in an OR line (Class C)
and a cable system (Classes A and B). (In CABLE CONSTANTS, NGRND descnl>es
the grounding conditions of the cable system, and the value of NGRND does not
correspond to the number of the grounded conductors.)
Grounding starts from the most outer conductor to the inner conductors for all the classes
(Classes A, B and C) as illustrated in Fig. 2. At least, one conductor (a core of phase 'a' SC
cable in Classes A and B, phase 'a' conductor in Class C) has to be left (not grounded).
NGRND=3
a b c
4 5
r~ r -:-
II
IIJ--o
o 1 02
<>--111
1
-:-
3
NGRND=4
a b c
4 5
~ ~ ~
II IIJ--o 0---111
o 1 3
-:- 12
1
For Class C (OH line), when conductors 4 and 5 in the above figure are defined as a ground
wire (GW; NP = 3, NG = 2 in data card C4-1 in Sec. 3), then the conductors 4 and. 5 are
automatically grounded and the conductor system is reduced to 3 x 3 from 5 x 5 independently
from the parameter NGRND. In this case, thus, NGRND should be less than 3 (NGRND ~ 2).
Also, the case with ''NP = 3, NG = 2" gives the same result as the case with ''NP = 5, NG = 0,
NGRND = 2"; three conductors are left (not grounded).
1 10 IDATA; flag indicating the type of the input data "AS," "B7" and "C4." This parameter is a new
one; it does not exist in CABLE CONSTANTS.
1.11 IYG; This is a new option to use a distributed admittance model which takes into account a
number of boundary conditions in a cable or an OH line system. The theoretical
background is explained in Appendix 3.
IYG *" 0: distributed admittance model to take into account an extra admittance
such as a cable conductance and boundary conditions, the extra
admittance to be supplied by a user:
This data card indicates the radii and physical constants of the pipe illustrated in Fig. 3.
1 2 3 4 5 6 7 8
1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890
Parameters: medium 1
Fig. 3 A PT cable
Note: rpi < r:{l2 < rp3 in theory. Keep this condition independently from the parameter NPP and from
a specific condition of a given PT cable. For example, even if a pipe has no outer insulator, it
has a corrosion protective covering or produces a thin oxide-film, which is a kind of an
insulator, and thus r p2 < tp3. Also even ifNPP = 0, give an arbitrary value for ~2 andtlJ
keeping the condition rpi < r p2 < rp3 ' and an arbitrary (non-zero) value for £p2.
This data card indicates the location ofeach inner conductor (SC cable) enclosed within a pipe
in polar coordinates, ie. "dk" and "Sk" in Fig. 3. The reference to the angular position Sk (degrees) can
be taken arbitrary, but it might be better to take the horizontal line as the reference and to measure
positive angle as counter-clockwise.
1 2 3 4 5 6 7 8
1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890
dl 81 d2 82 d3 83 d4 84
EI0.1 EI0.1 EI0.1 EI0.1 EI0.1 EI0.1 EI0.1 EI0.1
XXIII Appendix. CABLE PARAMETERS - 11
Parameters:
dk : distance from the pipe center to the center of the k-th conductor [m]
6k : angular position of the k-th conductor to a reference line [deg.]
Note: - Since each SC coaxial cable needs one pair (dk , 60, one card can handle up to four cables.
- Remember to use the same S.c. cable sequence, as the one defined in Sec. P3.3.
1 2 3
12345 67890 12345 67890 12345 67890 1234516789~~234516789~~234516789~\1234516789~12345!6789~
NCPP 1 NCPP 2 NCPP 3 NCPP. NCPP, NCPP 6 .... Etc. (1 entry for each of NPC SC cables) .......
IS IS IS IS IS IS IS I IS I IS I IS I ........ I IS I IS
Parameters:
NCPPk: indicates the number of physical conductors, making up the k-th single-core
coaxial cable of the system
This data card (maximum three cards in one set) expresses the radii and physical constants
(resistivity, permeability and permittivity) ofan SC cable for Classes A (SC cable) and B (PT cable).
1 2 3 4 5 6 7 8
1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890
r1 r2 r3 r4 rs r6 r7
E10.1 E10.1 E10.1 E10.1 E10.1 E10.1 E10.1
1 2 3 4 5 6 7 8
1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890
If the SC cable has armor, one more set of the data is required:
1 2 3 4 5 6 7 8
1234567890 1234567890 1234567890 1234567890 1234567890123456789012345678901234567890
Pa Pa Pi3 €i3
Parameters:
core ( Pc , Ilc )
sheat ( Ps , Ils )
r2 : outer radius of the tubular core [m] (= inner radius of the first insulating layer)
r3 : inner radius of the sheath [m] (= outer radius of the first insulating layer)
r4 : outer radius of the sheath [m] (= inner radius of the second insulating layer)
rs: inner radius of the armor [m] (= outer radius of the second insulating layer)
r6: outer radius of the armor [m] (= inner radius of the third insulating layer)
!lit: relative permeability of the first insulating layer (in general, !lit = 1)
!li2 : relative permeability of the second insulating layer (in general, !li2 = 1)
!liJ : relative permeability of the third insulating layer (in general, !liJ = 1)
It should be noted that an overhead line (OH line; Class C) is a special case of an overhead SC
cable. Thus, an OH line parameter is calculated as an overhead SC cable parameter in this program and
in CABLE CONSTANTS (i.g. ITYPE = 2, ISYST = 1 and NCPPk = 1 for k = 1 to NPC). Only
bundles for phase and ground wires cause a difficulty to deal with the OH line as an SC cable. Because
of the above, this program and the CABLE CONSTANTS program have the following difference from
the LINE CONSTANTS program.
14 - XXIII Appendix. CABLE PARAMETERS
I) It is important to note that the CABLE CONSTANTS code uses another technique than the
LINE CONSTANTS code to take bundling into account. Whereas the LINE CONSTANTS
code first calculates the line parameters for all individual conductors within a given bundle and
then reduces the paralleled conductors to one equivalent phase, the CABLE CONSTANTS
code will immediately handle the bundling (i.e. at input time), using the geometric mean radius
approximation for the bundle.
- Within one circuit, all ''NP" phase-wire bundles count for the same number ("KNP") of
individual physical conductors, all having the same geometry and physical data. All physical
conductors within a bundle are uniformly spaced around the circumference of a circle.
- Within one circuit, all ''NG'' ground-wire bundles count for the same number ("KBG") of
individual physical conductors, all having the same geometry and physical data. All physical
conductors within a bundle are uniformly spaced around the circumference of a circle.
- Data are entered for the individual physical conductor, not for the bundle.
3) Finally, recall the sequence rule for overhead transmission line circuits:
- First take the circuit with the highest number NP (number of phase-wire bundles)
- Stop by taking the circuit with the lowest number NP (number of phase-wire bundles)
Hence, ''NPC'' (total number of circuits, see Sec. 1.3) sets of following three card formats need to
specified next:
1 2
12345 67890 12345 67890 12345\678 9;\12345\678 9~\123451678 9~\123 4 5167 8 9~1123451678 96112345167 89~
NP NG KBP KBG
IS IS IS IS
XXIII Appendix. CABLE PARAMETERS - 15
~234567890
1
1234567890
2 3
~234567890 ~234567890
4 5 6
~I: 8
1234567890 1234567890 12345678901234567890
1 2 3 4
~I: 7 8
1234567890 1234567890 1234567890 1234567890 123456789012345678906 1234567890 1234567890
Pp ].lp Pg ].lg
~
~
a b c
X ISEPp x ~
~ x
Fig. 5 illustrative single-circuit 3-phase overhead transmission line (as seen in CfOSS-
section). The three phase-wire bundles are of four conductors each; there are two
ground-wire bundles, of three conductors each.
Parameters:
NP The number of phase-wire bundles which belong to the circuit in question. E.g., for a
3-phase circuit, "NP" will equal three.
KBP The number of individual physical conductors which compose each phase-wire bundle of
the circuit in question. If there is no bundling ofphase wires, "KBP" will equal unity, and
leave SEPp BLANK.
KBG The number of individual physical conductors which compose each ground-wire bundle of
the circuit in question. If there is no bundling of ground wires, "KBG" will equal unity,
and leave SEPG BLANK.
16 - XXIII Appendix. CABLE PARAMETERS
ROUTp outer radius of the individual tubular conductors which are used for each phase-wire
bundle, see Fig. 6(a). [m]
RINp inner radius of the individual tubular conductors which are used for each phase-wire
bundle, Fig. 6(a). [m]
= 0: solid conductor.
ROUTg outer radius of the individual tubular conductors which are used for each ground-wire
bundle, Fig. 6(b). [m]
RINg inner radius of the individual tubular conductors which are used for each ground-wire
bundle, Fig. 6(b). [m]
= 0: solid conductor
(a) (b)
SEPp separation between the centers of two adjacent individual conductors within the phase-
wire bundle. All 'KBP' conductors of the phase-wire bundle are supposed to be uniformly
spaced around the circumference ofa circle, see Fig. 7. [m]
= blank. : no bundling (put KBP = 1).
SEPg separation between the centers of two adjacent individual conductors within the ground-
wire bundle. All 'KBG' conductors ofthe phase-wire bundle are supposed to be uniformly
spaced around the circumference of a circle, Fig. 7 [m]
= blank: no bundling (put KBG = 1).
resistivity of the material used in each individual tubular conductor of each phase-wire
bundle, see Fig. 6(a). [Q-m]
relative permeability of the material used in each individual tubular conductor of each
phase-wire bundle, Fig. 6(a).
resistivity of the material used in each individual tubular conductor of each ground-wire
bundle of the circuit, see Fig. 6(b). [Q-m]
relative permeability of the material used in each individual tubular conductor of each
ground-wire bundle of the circuit, Fig. 6(b).
XXIII Appendix. CABLE PARAMETERS - 17
.•••......•.• -..
....".# -. , ,
...
! SEP "
..... - - - - - -...... ~
.
... ..
:
.,.
,
,
........
."' ......... .
....
#
#
-.
,
When I-DATA = 1, i.e. the case of an arbitrary cross-section conductor, the following input
data instead of the input data S'P4 and 04 are required.
This data card (maximum 4 cards in one set) expresses the cross-section area, outer-surface
length and dc resistance of a conductor and the thickness of the conductor's outer insulator rather than
the radii of the conductor and the insulator, and the resistivity of the conductor in the data cards AS or
B7 in Sec. S4=P4.
1 2 3 4 5 6 7 8
1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890
Sc 1c Dil Ss ls Di2 Sa 1a
E10.1 E10.1 E10.1 E10.1 E10.1 E10.1 E10.1 E10.1
1 2 3 4 5 6 7 8
1234567890 1234567890123456789012345678901234567890123456789012345678901234567890
Di3
E10.1
1 2 3 4 5 6 7 8
1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890
1 2 3 4 5 6 7 8
1234567890 1234567890 1234567890 1234567890 1234567890123456789012345678901234567890
For a cable consisting of a core and a sheath, 6 data expressing conductor cross-section
(Sc' ~, Dil , Ss, ~ and D12 ) and 8 data expressing physical constants (1\, flc, !lil' fil' 1\, Ils, J.Ii2 and fil)
are required. Thus 2 data cards rather than 4 data cards indicated above are necessary enough. When
a cable is composed only of a core, 3 data for cross-section (Sc' ~ and Ql) and 4 data for physical
constants (R.:, J-lc' J-lil and til) are necessary enough.
Data card C4-2' expresses the cross-section area, outer-surface length dc resistance and
permeability of a conductor, and separation between conductors, while the data related to the above are
expressed as the radii, resistivity and permeability in data card C4-2 as explained in Sec. 04.
1 2 3 4 5 6 7 8
1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 12345678901234567890
Sp 1p SEP p Sg 19 SEP g
EID.l EID.I EID.I EID.I EID.I EID.I
XXIII Appendix. CABLE PARAMETERS - 19
1 2 3 4 5 6 7 8
1234567890 1234567890 1234567890 1234567890 1234567890123456789012345678901234567890
Rp IIp Rg J.l g
For an overhead line with no ground wire, leave BLANK for the data Sg' ~, SEPg' ~ and [Link]-
1 2 3 4 5 6 7 8
1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 12345678901234567890
Parameters:
G: conductance [S/m]
C: capacitance [F1m]
If an SC cables is consisting of a core and a sheath, the data G(I,3) and C(I,3) are left to be
BLANK. See Fig. 10.
For a PI' cable (Oass B), the following data card is required right after the above data card for
the last phase( i.e., after the last card):
1 2 3 4 5 6 7 8
1234567890 1234567890 123456789012345678901234567890123456789012345678901234567890
Gp Cp
E10.1 E10.1
Parameters:
1 2 3 4 5 6
~I:
1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 123456789012345678908
~I: 3 4 5 6
~l:
2 1234567890 1234567890 1234567890 1234567890 123456789012345678908
12345678901234567890
Parameters
If the circuit T is consisting of 3 phase wires and 1 ground wire, 3 sets of G(I,k) and C(I,k) for
the phase wires and a set of Gil, 1) and CiI,I) for the ground wire, which make up one data card, are
required.
The data cards AS and B7 are per phase, and the data cards C4 are per circuit. Thus, "n" sets
of the data cards are required in the case of"n" phases for AS and B7, and in the case of"n" circuits for
C4. The data input is carried out in the following code.
For each of the "NPC" SC coaxial cables of the system,. the horizontal and vertical location of
its center must be specified as illustrated in Fig. 11(a), according to following card format.
1 2 3 4 5 6 7 8
1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890
Parameters:
VERTk : vertical distance (m) between the center of the k-th single-core coaxial cable and the
earth surface. Always use POSITIVE values, no matter whether the system of cables is
22 - XXIII Appendix. CABLE PARAMETERS
underground or in the air. This difference is made by flag ISYST (see point 1.2 in Sec.
t) on the miscellaneous data card.
HORIZk: horizontal distance (m) between the center ofthe k-th single-core coaxial cable and an
arbitrary vertical reference line.
, medium 1
1.),
.5 I
-'
1.)'
u'
c:I' medium 2
1.)'
..,.'
1.)'
c.;::. ,
1.),
=:',, medium 1
..!&I medium 2
~
=:
~
> SC Cable#k
,,
,c .'
HORIZk
This card gives the vertical location ofthe center of the pipe (which encloses all single-core
coaxial cables of the system) with respect to the earth surface as illustrated in Fig. 11 (b).
1 2 3 4 5 6 7 8
1234567890 1234567890 123456789012345678901234567890123456789012345678901234567890
CENTER Blank
E10.1 E10.1
Parameter:
CENTER: vertical distance (m) between the center of the pipe and the earth surface. Always use
POSITIVE values, no matter whether the pipe is underground or in the air. This
difference is made by flag ISYST (see miscellaneous data card).
XXIII Appendix. CABLE PARAMETERS - 23
For each of the ''NP'' + "NG" bundles within each of the 'NCCT circuits composing the
overhead conductor system,. a triplet of numbers giving the horizontal and vertical location (near tower
and at midspan) of the center of the bundle is to be specified (see Fig. 12). At this stage of the data
input, the variable expressing the number of circuits is 'NCCT' rather than 'NPC' which now expresses
the total number of conductors. As for the order in which data have to be entered, following rules must
be obeyed:
First take all phase-wire bundles belonging to the circuit with the highest number of phase-wire
bundles.
bundle #k -
4)
.S
4)
Q
=
bundle#k X
e
ce
4) HORIZk
~ I------------------~~
earth 0; earth 0;
Stop by handling the phase-wire bundles belonging to the circuit having the lowest number of
phase-wire bundles.
Next start handling the ground-wire bundles belonging to the circuit with the highest number of
phase-wire bundles. .
Stop by handling the ground-wire bundles belonging to the circuit with the lowest number of
phase-wire bundles.
This means:
First define the. phase-wire bundle location,. obeying the circuit sequence.
Next define the ground-wire bundle location, obeying the circuit sequence.
24 - XXIII Appendix. CABLE PARAMETERS
1 2 3 4 5 6
~I:
123456789012345678901234567890 123456789012345678901234567890 123456789012345678908
Parameters:
VTOWERk vertical distance (m) near the tower, between the center ofthe k-th bundle and the
earth surface.
VMIDk vertical distance (m) at midspan, between the center of the k-th bundle and the earth
surface.
HORlZk horizontal distance (m) between the center of the k-th bundle and an arbitrary
reference line.
NOTE: Since each bundle needs one triplet (VTOWERk, VMIDk, HORlZk), one such card can
handle up to two bundles.
The "frequency card" of all three classes of data cases has the same format.
1 2 3 4 5 6 7 8
123456789012345 678901234567890 12345 67890 12345678 9012345678 9012345678901234567890
Parameters:
FREQ frequency [Hz] at which cable or line parameters are to be calculated. FREQ should be
greater than zero.
Ifthe automatic looping over a frequency range has been requested by the user, then the
data 'IDEC' and '!PNT' greater than zero have to be input. Otherwise, i.e. in the case of
the normal single frequency calculation, leave BLANK for 'IDEC' and '!PNT.'
IPNT the number of points per decade of frequency space at which the cable or line parameters
are to be calculated. The automatic looping of frequencies is carried out in the following
manner. 8.f= 10lIPNT except IPNT = 3; f= [Link] k x lOn-I; k = 1,2,3, ... , IPNT ; n = 1,
2, ... ,IDEC; fbegin = 8.f, fend = 10IDEC
DIST circuit length in meters. This is needed for several situations that require line length.
Included are NODA SETUP, JMARTI SETUP, and the punching of constant-parameter
branch cards using IPUNCH below.
IPUNCH: Normally leave blank or zero. Value one (1) will result in the creation of ATP branch
cards for a Pi-circuit oflength DIST. Alternatively, value two (2) is for the constant-
parameter, distributed modeling. For either non-zero value, the use of $PUNCH is
required to extract such results from the ATP punch buffer. For node names to be
included, use a BRANCH request of CABLE CONSTANTS before the CABLE
PARAMETERS request. See the DC-28 illustrations.
Examples
(1) IPNT = 1, IDEC = 4; 8.f= 10 Hz, fbegin = 10 Hz, fend = 104 Hz,
f= 10, 10 x 10 = IcY, 10 X 102 = 103 , 10 X 103 = 104
When IDEC x IPNT = 0, the normal single frequency calculation is carried out. Independently
from the above automatic looping, the cable or line parameters are calculated at the frequency
"FREQ" given by the user.
page 24-1
C 1 2 3 4
C 3456781901234561789012341567890121345678901123456781
C 1 I 1 I I I
18 I 18 I E8.0 I E8.0 I 18 I A8 I
C I I I I I I
C Nl'!MAX N13 EPSILN PERCEN ImcCM M?J::?
C 1 2
C 3456781901234561789012341
C 1 1 1
18 1 18 1 E8.0 1
C I 1 1
C KBts Mats REACT
Mats of colunns 9-16 is the node nunber of the other end of this
transmission circuit that is to be omitted from the equivalent.
SUch line cards are to be terminated by a blank card. Parallel lines are
not allowed (the user must parallel them himself) • Node nunbers must be
positive integers, with no "holes" (i.e., every positive integer less than the
largest must be used).
C 1 2 3 4
C 13456781901234156789012341567890123415678901
C 1 1 1 1 1 1
121 A6 I A6 1 E10.0 1 E10.0 1 16 1
C 1 1 1 1 1 I
C 'IEXTA 'IE)cr'B RrHEV XTHEV' NE~TE
NODE of colunns 1-2 (shown poorly on diagram) is the node mmber of the
short circuit data keyed on this card. Although no "holes" in node nunbedng
are allowed, input order is in fact arbitrary.
Page 24-3
TEX'I'B of columns 9-14 is 1ikeTE>a'A, only for the network side of the
equivalent branch that ~11 connect the two3-Iilase busses.
RI'HEV of columns 15-24 is the X/R ratio desired in the final equivalent at
this node. ·J1esistance is ignored during the solution, and is only added back
: into the result using this fixed proportion at the end.
NEG.l\TE of columns 35-40 allows the user to disconnect the generator of the
node. '!his "negates" the normal inclusion (blank or zero will incltrle the
generator, whereas unity will negate it).
The first input card is the miscellaneous data card, which bears six
parameters. '!he associated interpretation in columns 1 throlJ3h 51 (to the left
of the card image) awears as follows:
1 234 5
12345617890112345617890123456781901234567890112341516789101
--1-1-1 1 1-1-1-1
Misc. I 18 1 18 I E12.3 I E12.3 I 18 IXI A4 I
--1-1-1 I 1-1-1-1
NI'IMAX N13 EPSILN PERCEN ImCCM N3C?
Next come line cards for those circuits that are to be omitted from the
equivalent because that will be represented explicitely. '!he 51-column data
card interpetation follows:
1 2 345
12345678901234567890123415678190121345678901234561789101
----------1-1 1
Branch card. K, M, X = 1 14 1 14 I E14.4 1
---------------------1---1 I
KB1.5 MB1.5 REACT
Finally, there are the bus cards giving node number, node names and short
circuit currents. ~e names are not reflected in the data card interpretation,
which follows:
1 234 5
12345678901123456178901234567891012345678901213456781901
----I 1 1 1 1
Thevenin. I 16 1 E13.4 1 E13.4 1 16 I
--I I 1 1 1
NODE RTHEV XTHEV NEG.l\ TE
Page 24-4
'l11e most imp:>rtant output for the serious user will be pmched cards
(coupled R-L branches of 'JYPe 51, 52, ••• ). SUch card images are always written
to the punch buffer. But as explained in Section I-D (see "$PLNCH"), the user
may well require a $PtN::H carmand to save these card images for future use.
'l11is will depend on the program version being used.
Printed output begins with one line for each Newton iteration as it is
performed. 'l11e following is an example (the line has been cut in tlNO to fit
this printed page):
- Done with Newton iteration nlJllber NITER = 1. Largest
correction D4 = 2.22487143E-0l
AltholXJh one iteration only requires negligible time for snaIl problEllls, not so
for larger problEllls such as the 8-node subcase of BDCffotARK DC-14. For those
watching and waiting for the output, the just-described line can provide an
important indication that the comp.1ter is still alive and working on the user's
problElll!
If PERCEN < 1.0 is used to provide staged loading, the user will be
~informed of each change of loading by means of a message such as the following
_(again split in tlNO):
~ Increase admittance by PERCEN to value SCALE =
2. 00000000E-02. Next, solve •••
1234567890123456789012345678901234567890123456789012345678901234
1 XXXXXXXX
2 XXXXXXX X
3 . XXXXXXX X
4 XXXXXXX X
5 XXXXXXX X
6 XXXXXXX X
7 xxxxxx:x X
8 xxxxxx:x X
9 XFFFFFFFXFXXXXXX F F F F F F
10 XXXXXXXX F F F F F F
11 XFXXXXXX X F F F F F
page 25-1
11. A. ~etani, "A highly efficient method for calculating transmission line
transients," IEEE Trans., vol. PAS-95, pp. 1545-1551, Sept/Oct 1976.
Page 25-2
18. IEEE SSR Task Force, "Fi rst bencl'lnark mOOel for com}Xlter simulation
of subsynchronous resonance," IEEE Trans., vol. PAS-96, pp. 1565-1572,
Sept/oct 1977.
22. Daniel Van [Link], Editor, "EMTP Newsletter." Now published quarterly
by LEe of Leuven, Belgiun, issue nunber one appeared during July of
1979. For information about subscription, see Section I-A.
47. H. W. D:lrmIel, "EMTP Theory Book." '.this work was written under a 4-year
contract with BPA dated September, 1981. Following a I-year delay in the
delivery, and then an additional 9 months to resolve copyright problans of
figures, BPA began printing and distributing this work during June of 1987.
xxv EHTP BENCHHARK CATALOGUE - 1
Further subdivisions are based on special request words as found in the Rule
Book.
JMARTI setup:
DCN3.DCN5.DCN6.DCP20
LINE CONSTANTS:
DC29.DC59.DC60,DCN3,DCN5,DCN6,DCP20
CABLE CONSTANTS:
DC27,DC28
SEMLYEN setup:
DC29,DC60
XFORMER:
DC15
BCTRAN:
DCN8
DATA BASE MODULE:
DC36
SATURATION (CONVERT):
DC13
HYSTERESIS:
DC13
NETWORK EQUIVALENT:
DC14
KILL CODES:
DC13
Further subdivisions are based on the models used in the network simulation.
In most cases, these models are referred to, using special request words (as used
in the Rule Book). .
XXV-B-l TACS
TACS HYBRID:
DC1,DC2,DC8,DC19,DC20,DC22,DC30.DC33.DC37,DC38,DC43.DC45,DC47,DC57,
DC63,DCN2.DCN10,DCP17
TACS STAND ALONE:
DC18,DC19.DC20.DC21.DC23.DC46.DCP24
XXV-B-2 USAGE OF LINE MODELS
CONSTANT PARAMETER MODEL (0,1,2) :
DC1.DC2.DC3.DC4.DC5.DC6.DC7.DC9.DC10.DC12,DC16,DC19.DC20.DC22 , DC24 ,DC25
DC26,DC30,DC31,DC32,DC34,DC35,DC38,DC41,DC42,DC43,DC44,Dc45,DC47,DC48
DC50,DC51,DC52,DC53,DC55,DC56,DC57,DC58,DC61,DC62,DC63,DCN1,DCN2,DCN4
DCN7 ,DCN9 ,DCN10,DCNll.DCN12,DCP1 ,DCP10,DCPll ,DCP13. DCP14 .DCP15,DCP16
DCP17,DCP18,DCP19,DCP2,DCP21,DCP22,DCP26,DCP3,DCP4,DCP5,DCp6,DCP7,DCP8
DCP9
KCLEE MODEL (-1,-2,-3):
DC1,DC2,DC7,DC12,DC16.DC24.DC31.DC32,DC37.DC38.DC41,DC47,DC50.DC52,DC61
DC62,DC63,DCN4,DCN7,DCP1,DCP10,DCP13,DCP18,DCP19,DCP6,DCP8
JMARTI MODEL:
DCN4,DCN7
SEMLYEN MODEL:
DC31,DC61
CASCADE PI:
DC9,DC10,DCP25
XXV-B-3 USAGE OF TRANSFORMER MODELS
SATURABLE TRANSFORMER:
DC5,DC25,DC32,DC47,DC51,DC53,DCP11,DCP15,DCP21
PI-CIRCUIT:
DC1,DC2,DCll,DC25.DC26.DC53.DC63.DCN9.DCN10,DCNll.DCP21.DCP26
xxv EHTP BENCHMARK CATALOGUE - 3
[Link].DCP12.DCP13.DCP14.
DCP15.DCP16.DCP17.DCP18,DCP19.DCP2.DCP2l,DCP22.DCP25,DCP26.DCP3.DCp4.
DCP5.DCP6.DCP7.DCP8.DCP9
TYPE 16:
Dc44
IDEAL TRANSFORMER (TYPE 18):
DC25.DC55
TYPE 60:
DC22
SM (TYPE 59):
DC25.DC26.DC47.DC53.DCN9.DCN10.DCN11.DCP21.DCP26
UM (TYPE 19):
DC34,DC35,DCN1.DCN2.DCN9,DCN10.DCN12.DCP16.DCP17,DCP21
FIX SOURCE {LOAD FLOW}:
DC25.DC26.DCP26
ANALYTIC SOURCE (TYPE 1-l0):
DC6.DC42
XXV-B-7 STATISTICAL TABULATION
STATISTICAL SWITCH (TYPE 76}:
DC16.DC24.DC50.DCP13
STATISTICS DATA:
DC24.DC40.nc48
OMIT BASE CASE:
DCP13
I-CARD USAGE:
DC33
FOURIER ANALYSIS:
DC42
POSTPROCESS PLOT FILE:
DC46
REPLOT:
DC54
BATCH MODE PLOTTING:
DC42,DC46
Just a few special rules govern the index that follows. First, when
special request \\Ords are involved, these are capitalized and placed within
quotation marks. '!he presence or absence of quotation marks does not alter the
ordering of entries. '!he same goes for dollar signs ("$") that precede various
such request \\Ords, or slashes (" /"). Page references are not given because the
section nlltlber will generally point the user close enolJ3h. 'Ib translate page
nlltlbers into section nlltlbers, see the explanation at the beg inning of the Table
of Contents (Section e).
"DA~" corrmand of SP'{ to load card cache with EMTP data (Section XVI-C-1)
Data base. See "Sorting" or "$ INCLUDE" or "MTA BASE MODULE."
"0A'I1\ BASE MOWLE" supporting program for $INCLUDE argunents (Section II-A)
Data General version of program (Section I-F-l0)
DC converter. See "Converter" , "valve", and "'D\CS"
DC motor/generator modeling. See "Universal machine (U.M.)"
DCG. See "EMTP Developnent. Coordination Group"
"DESm" request of interactive usage. See:
Corrmand of the separate plotting program "TPPLOT" (Section I-L-l)
Canmand of the separate plotting program "WlNDCWPLT" (Section I-L-2)
Usage wi thin SP'f. See:
SP'{ ccmnand to change diagnostic printout (Section XVI-C)
Subcorrmand of the "PLOT" comnand of SP'{ (Section XVI-C-4)
$DEBm request of "CIMAGE" to change Im5tP (Section I-D)
Deb~ging of problem solutions. See "DIACNOSTIC", "DEBm"
DEC. See -VAX version ••• "
Decimal p:>int ending a file name (defined by STARTUP, card 18, FILTYP):
"file name" option to begin EMTP execution (Section I-C)
"MTA" carmand of SP'f (Section xvr-C-1)
Default List Sizes of program variable dimensioning (Section I-G)
"DEFAULT" request of "JMARI'I SETtP" (Section XVII)
Deionization time of a valve (Section VI-B, Rule 4b)
"DELTA CCNNECTION" of the S.M. armature windings (Section VIII, Class 2)
"DELTAT" time-step size definition. See "Miscellaneous data~
"DEFOSIT" carmand of SP'f to change variables (Section xvr-C-6)
Derivative, canputation using a 'IYPe-59 TACS device (Section III-E-4)
'Devices of 'D\CS control system modeling (Section III-E-4)
"'DIAGNOSTIC" printout for deblJ!J9ing (Section II-A-12)
"$DEBm" for in-overlay diagnostic control (Section I-D)
Dice. See "Randan nunber •••• ", "SI'ATISTICS", "M:>nte carlo"
"DICE" comnand of SP'f for statistical tabulations (Section XVI-C-S)
Dig i tal computers. See "Installation dependent information"
Digitizer, a Type-55 TACS device (Section III-E-4)
Dimensions of EMTP tables. See -Variable dimensioning"
Diode swi tch comp:>nent (Section VI-B)
Directories of data. See "MJdularization •••• "
"$DISABLE" for implicit carmenting (Section I-D.)
Disclaimer of any responsibility for misuse (Section I-A)
Discontinuity (p:>ssible) at time zero from reactors (Section V)
"DISK" option as EMTP execution begins (Section I-C)
"DISK PLOT Dl\TA" to toggle UlNIT4 (Section II-A)
Distortionless transmission line modeling (Section IV-D-1)
Distributed transmission line modeling. See "Transmission line."
Distribution of random nunbers. See "SI'ATISTICS"
"DIV" subcommand of the SF.{ "APPEND" carmand (Section XVI-C-9)
Division sign ("/") used as a special symool. See "Slash"
Dollar-cards ($-cards) of "CIMAGE" (Section I-D)
Dollar-cards ($-cards) executed via SF.{ (Section XVI-C-ll)
Doshisha University. See "Japanese ••• ", "CABLE CCl5TANTS"
"DOT" canmand of interactive plotting. See:
Command of the separate plotting program "TPPLOT" (Section I-L-l)
Canmand of the separate plotting program "WlNDCWPLT" (Section I-L-2)
Double-circuit transmission line representation. See:
Transp;:>sed model with zero sequence coupling (Section IV-D-2)
Recursive convolution modeling (Section IV-D-3, 4)
Page 26-5
"NEXT" canmand for next row of any SP'f table (Section XVI-C-3)
Node names of electric net\\[Link] (Section 1-1-2)
Node vol tage output specification ([Link] XII)
"ooF" carmand of SP'f to cancel ,,~C~.. (Section XVI-C-13)
Non-fatal informative messages. Information about these is scattered
Non-grounded EMTP sources. See 'JYPe-18 source (Section VII-A)
"ooNLIN" carmand of SP'f to display the List-9 EMTP vectors (section XVI~-3)
Nonlinear elanents. See "Resistance", "Reactance"
"N:>ROLL"carmand of SP'f to cancel rolling plots and EXAMINE (Section XVI-C-6)
North IBkota State lhiversity. See "PRIME version ••• "
"ooSORT" request is possible on "BEX:iIN NEW I)\'m CASE" card (Section I-J)
"IDY" carmand of SP'f to cancel a .preceding "YFCRM" carmand (Section XVI-C-13)
NTIC of New ~lhi. See "India EMTP User Group"
"OLD TO NEW ZID" to convert old arrester data to new formats (Section II-A-23)
"CFFSET" request of interactive use. See:
Cormland of the separate plotting program "TPPLOT" (Section I-L-l)
Carmand of the separate plotting .program "WINI:X)olPLT" (Section I-L-2)
Subcarmand of the SP'f"PLOT" carmand (Section XVI-C-4)
Offsets of "VARDIM" input data (card 4). See -Variable dimensioning ••• "
"o>\IT BASE CASE" of "srATISTICS" or "SYSTEMATIC" use (Section II-A-24)
OPEN/CLOSE statement of FCRTRAN, the imp::>rtance of (Section I-K)
"OPEN/CLOSE" signal of valve or thyrister (Section VI-B, I\lle 4c)
$OPEN file sconnection request for "CIMAGE" (Section 1-0)
Order of EMTP inp.1t data cards. See" Structure of ••• "
Oregon State lhiversity. See "Universal Machine", "ax::: version", "UNIX PC"
Oriental language versions of EMTP. If lucky, see canJ;:Uter of interest
/Ol1I'Pl1l' card preceding output requests Wlen sorted by class (Section I-J)
Output scaling specification for statistical tabulation (SectionXV')
Output specification for electric net\\lOrk variables. See:
a) Section XII for detached specification, independent of branch cards
b) Section IV-A for use of colunn-813 punch to request such outputs
CUtput supplanental variables (Type 98) of 'mCS (Section III-E-4)
"PAGE" request to begin the next "PRIN'reR PLOT" on a new page (Section XIV)
Paging of the canp.1ter operating system. See "Virtual manory management"
"PARAMETERFITTlNG" declaration of IJYpe-59 S.M. data (Section VIII, Class 2)
Parenthesis usage with 'mCS supplanental variables (Section III-E-4, I\lle 4)
Park' sequations for IJYpe-59 synchronous machine (Section VIII, beginning)
PC version of program. See" IBM PC: ••• ", "UNIX PC ••• "
"PEAK" subcanmand of the SP'f "PLOT" carmand (Section XVI-C-4)
Peak values of solution variables. See "Extrema"
"PEAK VOLTAGE M(lIJI'roR" for the peak of all net\\lOrk voltages (Section II-A-2S)
"PEN CIDICE" and pen and grid choice of CalComp plot (Section XIV, pOint 11)
Percent ("% ") strings that indicate SP'f arglJllent usage. See
"DA'm BASE MODULE" for EMTP data (Section XIX-F)
ArglJllents of SP'f "@" files (Section XVI-C-S)
Pereira, Mr. Marco Polo. See tlLatin Jlmerican •••• "
period. See "Decimal JX)int"
Personal Computers. See "Apollo," "IBM PC:," "AT&T UNIX PC," etc.
Phasor solution for initial conditions. See:
Electric net\\lOrk printout (Section II-B, variable KSSOl1I'=l, 2, 3)
Control system ThCS usage (Section III-D, Point 6)
Phoenix Computer PLINK86-Plus linkage-editor. See "IBM Fe .....
Pi-circuit branch component (Section IV-B)
page 26-12
"UM 'ID TACS" to pass U'liversal Machine (U .. M.) variables to 'mCS (Section II-A)
U.M. See ·Universal Machine"
U.M. has a special interface with the EMTP load flow (Section IX)
Ungrounded sources (particularly for voltage): Type-18 source (Section VII-A)
$UNITS card to changes miscel1.::meou.c; data p:!rameters XCPI', COPI' (Section I-D)
"UNIT=" qualifier of the $OPEN ccmnand of "CIMAGE" (Section I-D)
Univac version of the program, used by EDP of Lisbon, Porttgal (Section I-F-13)
Univer::oal machine (U.M.), modeling for genera] rotating machinery (Section IX)
Unix oFerating system. USed by (see) Sun, H-P, AT&T, Apple Macintosh
UNIX PC 731313 EMTP version for this AT&T desktop computer (Section I-F-3)
Universal randan ntmbers. See SlBROtJI'INE RFLNL1 (Section 1-E-1)
Untranspcsed transmission lines. See "Transmission line modeling·
~~S£ AS" opti~n for Pi-circuits to allow inverse of [L] (Section IV-B, Rule 8)
"USE RL" option for pi-circuits to return to IR], IL] {Section IV-B, Rule 10)
User Groups for the noncommercial dissemination EMTP information (Section I-A)
User instruction. See "Education"
Use.::!::. f>1anual: former name for this \\Ork (now the EMTP Rule Book)
"USER SUPPLIED SW:rn::H TIMES" for user's l-bnte carlo T-switch (Section II-A-37)
page 26-18
Valve (thyrister) switch canp:ment used in hvdc and SVC models '(Section VI-B)
'VAli=" tag for subcorrmands of the SP'f "APPEND" conmand (Section xvr-C-9)
Van D:>n1nelen" Prof. Daniel Van D::mnelen of K.U. Leuven. See "E)Jropean .... " ,
'VARDIM" program to change dimensions of the EMTP (Section I-G)
Variable dimensioning of EMTP tables by use of "VARDIM" program (Section 1-G)
Variables of program tables. See SPY "UST", "FIND", "EXAMINE" (Section XVI-C)
VAX/VMS DEC (Digital Bquipnent) catlp.1ter version of program (Section I-F-4)
"VERIFY" [Link] monitors "@" execution of corrmand files (Section xvr-c-S)
. 'V-I" corrmaOO of SPY to display List-9 vectors (Section XVI-C-3)
"$VINTAGE" card to select inp.1t data field width (Section 1-0)
Virtual manory for plot data p:>ints. See WNIT4, Sl'ARTUP definition l card 15
Virtual memory management, imp:>rtance for EMTP canputers (Section r--F)
Voltage regulator (of synchronous machine) modeling. See "Exciter modeling"
Voltage source modeling. See "Source cards", "Rotating machinery"
"WAIT" "'carmand of SPY will stall for a fixed time interval (Section xvr-C-ll)
"~" corrmand of SPY will re-load tables to end hibernation (Section xvr-C-7)
$WA'ICH request for screen monitoring of inpJt by ·[Link]" (Section 1-0)
"WHEN" carmand of SPY for delayed table dLlllping/restoration (Section XSJI-C-1)
Width of WNIT6 output is controlled by Sl'ARTUP (card 8, variable I<OL132)
$WmrH changes 8e vs 132 co1unn WNIT6 output width in "CIMAGE" (Section 1-0)
"WINDCW" routine to manage 3-window interactive (SP'f) display (Section I-E-1)
Windows. See "Apollo •••• or ·SUn ••• " or "Apple Macintosh"
Workstations. See "Apollo ••• " or "SUn •••• or "Apple Macintosh"
"[Y]" corrmand of SPY to display matrix [YJ of time-step loop (Section XVI-C-3)
"YFORM" command of SPY to fOnD matrix [Y] (Section xvr-C-13)