U
I
Getting ATP:
ECE 404/504
Lecture 5
Available in ECE dept labs on campus
Request a license through
http://www.emtp.org
» Once you have confirmation they will send
you instructions for downloading from a
secure server
» Or, once verified, I can give you access to a
zip file with relevant files
Intro to ATP and ATPDraw
U
I
1
Installing ATP:
Spring 2013
ECE 404/504
Lecture 5
Minimum to Download
» Mingw version of ATP
» ATPDraw -- latest version or latest patch
– Presently Atpdraw57.zip
» PlotXY
Option: ATP Easy Installer
» Download from secure sites in Japan
Intro to ATP and ATPDraw
2
Spring 2013
1
U
I
ECE 404/504
Lecture 5
Installing ATPDraw
Installation is fairly easy
Default installation path “Program Files”
avoid this
The space in the file name can create
problems running ATP from ATPDraw
» Install it somewhere else.
else I normally install in
“C:\tools\prog\ATPDraw”
Install program may create shortcut in the
start menu, but not very cleanly
Intro to ATP and ATPDraw
U
I
3
Running ATP from
ATPDraw
Spring 2013
ECE 404/504
Lecture 5
Still need a copy of ATP
Licensed users can get other versions
Follow installation directions for yours
ATPDraw calls ATP from a DOS Batch
file (extension *.bat)
» For example, I call it “RUNATP.BAT”
Passes full path to file when calls ATP
Intro to ATP and ATPDraw
4
Spring 2013
2
U
I
Sample Batch File
ECE 404/504
Lecture 5
The following batch file is for Ming32 ATP
SET GNUDIR=C:\tools\prog\atp\
SET PATH=C:\tools\prog\atp;"%PATH%”
tpbig both %1 s -r
The first line defines variable GNUDIR
» Different ATP versions use different name
» Sets program working environment
» The final “\” is important
Intro to ATP and ATPDraw
5
U
I Sample Batch File (cont.)
Spring 2013
ECE 404/504
Lecture 5
Second line adds executable to your search
path
th (not
( t needed
d d if sett this
thi att boot
b t time)
ti )
The next line calls ATP itself
» tpbig both %1 s -R
– “both” tells program to write error messages to screen
and to file (useful for debugging)
– Could also set “disk” to only do disk file or leave blank
for no message
– First “%1” is input data file from ATPDraw
Intro to ATP and ATPDraw
6
Spring 2013
3
U
I Sample Batch File (cont.)
ECE 404/504
Lecture 5
– The “s” is to create appropriate output file.
– “-R”
R tells ATP overwrite existing output file if one
exists
This bat file will let you run ATP, and all of
the support program (line constants etc)
Intro to ATP and ATPDraw
U
I
Spring 2013
7
Editing “startup”
ECE 404/504
Lecture 5
ATP reads a file called “startup”
startup
» Resides in same directory as tpbig
» Sets variables for the program
A few suggested changes from default
» Change
g PL4 file format to work with PlotXY
– NOBLAN set to 0
– NEWPL4 set to 2
Intro to ATP and ATPDraw
8
{ignore blank lines}
{won’t work with Analyzer}
Spring 2013
4
U
I
Setting Up ATPDraw
ECE 404/504
Lecture 5
Open up ATPDraw
Select: “Tools” pull down menu
Select: “Options...”
Choose “Preferences” tab
» You select a text editor, or use Notepad (default)
» “ATP” is where you set path to your batch file
Armafit: which we won’t cover in this course
Intro to ATP and ATPDraw
U
I
9
ATPDraw “Preferences”
Intro to ATP and ATPDraw
10
Spring 2013
ECE 404/504
Lecture 5
Spring 2013
5
U
I
Further Settings
ECE 404/504
Lecture 5
The “Files&Folders” tab settings are ok
However,
However you do want changes in the
View/ATP tab
» Select “Edit settings” tab
» You may want to change
some of the default
settings. However, you
can change any of these
for a specific data file
Intro to ATP and ATPDraw
U
I
11
Simulation Settings
Spring 2013
ECE 404/504
Lecture 5
Default time step (deltaT)
is very small
Default run time short
Xopt and Copt ok
Select “Power Frequency”
» Reset to 60 Hz from 50Hz
» Can mess up some sources
Intro to ATP and ATPDraw
12
Spring 2013
6
U
I
Output Settings
ECE 404/504
Lecture 5
Probably don’t need the
selected “Printout”
options for most cases
Slow down the program
somewhat
Plot frequency should be
low and odd.
Intro to ATP and ATPDraw
U
I
13
Other Settings
Spring 2013
ECE 404/504
Lecture 5
Switch/UM settings ok for most cases (are
for statistical studies only)
Load flow controls controls how the load
flow initialization is run
Variables: Use can define parameters
here and pass them different components
» Or control them with Pocket Calculator option
» See help file for more info
Intro to ATP and ATPDraw
14
Spring 2013
7
U
I
ECE 404/504
Lecture 5
Saving New Settings
The “Save”
Save or “Apply”
Apply buttons aren
aren’tt
sufficient to permanently save change
Also choose: Tools --> Save Options
These are all saved into a file called
ATPDraw.ini
» Typically
T i ll saved
d iin user’s
’ settings
tti
» Could put copy in the directory with
ATPDraw.exe
Intro to ATP and ATPDraw
U
I
15
Other Settings
Spring 2013
ECE 404/504
Lecture 5
To set other plotting programs or other post
processing options you need to open a file
» Either select the “File|Open” sequence of click on
the icon
» Initial default is the Examples directory, after that
it is the last directory worked in.
» For now, choose example “Exa_1.adp” (*.adp
represents the drawing files).
Intro to ATP and ATPDraw
16
Spring 2013
8
U
I
Example 1
ECE 404/504
Lecture 5
Try to run
example
p case
to make sure
program
installed and
set up
correctly
Intro to ATP and ATPDraw
U
I
17
ATP Menu
Spring 2013
ECE 404/504
Lecture 5
A new pulldown menu is now available at
th ttop off the
the
th window,
i d
called
ll d “ATP”
Intro to ATP and ATPDraw
18
Spring 2013
9
U
I
ATP Menu
ECE 404/504
Lecture 5
Settings is changes deltaT
etc. for a given case
“Make File As” generates
ATP data file from drawing
Run ATP calls your bat file
Each
E h “Edit” calls
ll ttextt editor
dit
Make Names, makes node
names for drawing
Intro to ATP and ATPDraw
U
I
19
Edit Commands
Spring 2013
ECE 404/504
Lecture 5
Allows you to set
additional commands
Run other ATP versions
» On Current ATP drawing
» On Selected File
Run
R plot
l t programs
» On Current PL4
Use “Update” to set
Intro to ATP and ATPDraw
20
Spring 2013
10
U
I
Saving New Settings
ECE 404/504
Lecture 5
The “Update”
Update buttons isn
isn’tt sufficient to
save for next time
All choose: Tools --> Save Options
Intro to ATP and ATPDraw
U
I
21
Running an ATP File
Spring 2013
ECE 404/504
Lecture 5
Now we run the example case opened earlier
Always a multi-step process
» 1) Make file to create ATP data file from drawing.
– Must do this every time you change drawing
– Default is to place this in “ATP” subdirectory under
ATPDraw home directory (with extension *.ATP)
– Can edit this file with “Edit ATP-File” option (not saved
to drawing file)
» 2) Run your case
» 3) Call plotting program
Intro to ATP and ATPDraw
22
Spring 2013
11
U
I
Running an ATP File
ECE 404/504
Lecture 5
The drawing file saved separately (save often)
Remember to save your changes often
Default is to save this in the “Project”
subdirectory under ATPDraw
Note that if want to save elsewhere, need to
select a new home for both ADP and ATP files
» PL4 and *.lis (or *.out depending on version) are
written to same directory at *.ATP file
» Need to cleanup directories periodically
Intro to ATP and ATPDraw
U
I
23
Making You Own File
Spring 2013
ECE 404/504
Lecture 5
Open a new drawing (from File
menu or from icon)
Can get the component menu by
right clicking mouse in the
drawing screen
Each item lets you select
components to create
More later….
Intro to ATP and ATPDraw
24
Spring 2013
12
U
I
Associated Files
ECE 404/504
Lecture 5
Input Datafile (text file)
» Extension options: *.atp
» Avoid names with spaces
Plot Datafile (formatted ASCII)
» Extension *.PL4
Text
T t Output
O t t File
Fil (plain
( l i text)
t t)
» Extension: *.LIS
» Error Messages in this file
Intro to ATP and ATPDraw
U
I
25
Associated Files (cont)
Spring 2013
ECE 404/504
Lecture 5
ATPDraw Schematic File
» Extension: *.acp (or *.adp for older versions)
Supplement Include File
» Use modular programs
» Examples: Line constants output, subsystems
» Extension
E t
i options:
ti
**.pch,
h **.lib
lib
Intro to ATP and ATPDraw
26
Spring 2013
13
U
I
Making You Own File
ECE 404/504
Lecture 5
Set deltaT and Tmax!!!
Open a new drawing (from File
menu or from icon)
Can get the component menu by
right clicking mouse in the
drawing screen
Each item lets you select
components to create
Intro to ATP and ATPDraw
U
I
27
Linear Branches
Spring 2013
ECE 404/504
Lecture 5
These are the basic circuit
elements
Single phase and three phase
options
C:U(0) and L:I(0) are capacitor
and inductor with voltage/current
initial conditions
Note ATPDraw uses U for voltage
Intro to ATP and ATPDraw
28
Spring 2013
14
U
I Operating on component
ECE 404/504
Lecture 5
Once you select a component you can rotate
it by single clicking the right mouse button on
it.
» Use to structure your drawing more nicely
» This also selects polarity for branch outputs
Double-click
Double click left button to open a window to
edit values
Intro to ATP and ATPDraw
U
I
29
Resistor Dialog Box
Spring 2013
ECE 404/504
Lecture 5
Set value for resistance
in Ohms
Node names not set
Can add comment
$Vintage,1 sets high
precision numbers
Edit definitions: allows
redefine modeladvanced feature
Intro to ATP and ATPDraw
30
Spring 2013
15
U
I
Resistor Dialog Box
ECE 404/504
Lecture 5
Set branch output:
Comments
» For file
» For drawing
Intro to ATP and ATPDraw
U
I
31
Inductor
Spring 2013
ECE 404/504
Lecture 5
L is in mH unless you
have set Xopt to a
frequency
Label creates a label on
the drawing next to the
component
Help menus are pretty
good
Kp numerical oscillation
damping constant
» Adds parallel resistor
» More on that later
Intro to ATP and ATPDraw
32
Spring 2013
16
U
I
Capacitor
ECE 404/504
Lecture 5
Capacitance is in
microFarads unless
Copt set
Note program sets a
default value to prevent
errors if you randomly
connect nodes
Ks numerical oscillation
damping constant
» Adds series resistor
» More on that later
Intro to ATP and ATPDraw
U
I
33
RLC
Spring 2013
ECE 404/504
Lecture 5
RLC lets you set
R, L, and C or
any combination
Creates same
data card as R,
L or C alone
L,
alone, but
lets you do all
fields
Series RLC
Intro to ATP and ATPDraw
34
Spring 2013
17
U
I
3 Phase RLC
ECE 404/504
Lecture 5
Can choose a
series 3 phase
RLC
Options include
Y connected
and Delta
connected
Intro to ATP and ATPDraw
U
I
35
Capacitor with Initial
Voltage Value
Spring 2013
ECE 404/504
Lecture 5
Still set value
for C
Also set positive
and negative
voltage relative
to ground at
T=0
Will be useful
for homework
#1
Intro to ATP and ATPDraw
36
Spring 2013
18
U
I
Inductor with Initial
Current Value
ECE 404/504
Lecture 5
Still set value
for L
Plus the
current at T=0
Intro to ATP and ATPDraw
U
I
37
Switch Pop Up Menu
Spring 2013
ECE 404/504
Lecture 5
In most cases you will use a time
controlled switch (single or three
phase)
Measuring Switches (always
closed)
TACS controlled switches
Intro to ATP and ATPDraw
38
Spring 2013
19
U
I Time Controlled Switch
Set T_close
Set T_open
ECE 404/504
Lecture 5
I
» T_open must be
larger than T_close
Imar is absolute
value of current it
will interrupt
Can select outputs
Intro to ATP and ATPDraw
39
U
I Time Controlled Switch
Spring 2013
ECE 404/504
Lecture 5
Can also set a
time sequence ffor
ti
repeated
open/close
operations.
Up to 16
Intro to ATP and ATPDraw
40
Spring 2013
20
U
I
ECE 404/504
Lecture 5
Three Phase Switch
Individual
timing
ti
i ffor
each phase
No reclose
characteristic
Intro to ATP and ATPDraw
U
I
Spring 2013
41
Source Pop Up Menu
Allows you to create ordinary
ECE 404/504
Lecture 5
ATPDraw 5.6+
sources
Machines and TACS controlled
sources on other pop-up
menus
Most of these sources are
referenced to ground
Intro to ATP and ATPDraw
42
Spring 2013
21
U
I
Version 5.6+ AC source
(1&3 phase)
1 ph voltage
source
3 ph current
source
Intro to ATP and ATPDraw
U
I
43
Type 11 Source
Intro to ATP and ATPDraw
44
ECE 404/504
Lecture 5
Spring 2013
ECE 404/504
Lecture 5
Spring 2013
22
U
I
What is Needed in
Transformer Models?
ECE 404/504
Lecture 5
Fault studies require more information
» Connection info
– wye
– delta
– zig-zag
– autotransformer
– etc.
» Grounding
» Possible impact of tertiary
Intro to ATP and ATPDraw
U
I
45
Spring 2013
Low Frequency
Transients
ECE 404/504
Lecture 5
Similar modeling info to fault programs
» Connection information more important
Magnetizing branch
» Saturation
Core loss term
Not using per unit
» Need to include turns ratio
» Divide leakage L, winding R between windings
Intro to ATP and ATPDraw
46
Spring 2013
23
U
I
Single Phase
Equivalent Circuit
ECE 404/504
Lecture 5
Winding resistance
Leakage inductance
Core loss--total losses
Non-linear inductor model for magnetizing
branch
Intro to ATP and ATPDraw
U
I
47
ATP Options
Spring 2013
ECE 404/504
Lecture 5
Ideal transformer component
Saturable transformer component
BCTran -- preprocessor that converts
description of transformer to coupled RL
Can also create manually using coupled RL
branches
Intro to ATP and ATPDraw
48
Spring 2013
24
U
I
Avoid ATP Ideal
Transformer
ECE 404/504
Lecture 5
Limited to two winding transformers
It is very easy to create numerical
problems in the simulation with the ideal
transformer
Intro to ATP and ATPDraw
U
I
49
Saturable Transformer
Spring 2013
ECE 404/504
Lecture 5
Model has built-in circuit elements
» Winding resistance
» Leakage inductance (can’t enter 0)
» Core loss resistance
» Magnetizing branch
– nott entered
t d as an L in
i mH
H
» Can set all except leakage to 0 to simplify
» Enter winding to winding ratios
Intro to ATP and ATPDraw
50
Spring 2013
25
U
I
Single Phase Saturable
Base Attributes
ECE 404/504
Lecture 5
Io, Fo are steady-state
p
point
on saturation
characteristic for initial Lm
RMS = 0 or 1: determines
how the saturation
characteristic is entered.
Output is information about
mangetization branch
Intro to ATP and ATPDraw
51
U
I Saturation Characteristic
Spring 2013
ECE 404/504
Lecture 5
If RMS = 0, this is current
versus flux
If RMS = 1, this is RMS
current versus RMS
voltage at frequency of
first source in the system
The 0,0 point is assumed
by the program
Up to 10 points can be
entered
» Better to limit to 3-5
Intro to ATP and ATPDraw
52
Spring 2013
26
U Viewing The Saturation
I
Characteristic
ECE 404/504
Lecture 5
If RMS = 0, this is current
versus flux
If RMS = 1, this is RMS
current versus RMS voltage at
frequency of first source in the
system
The 0,0 point is assumed by
the program
Up to 10 points can be
entered
» Better to limit to 3-5 for better
numerical behavior
» Does not include hysteresis
Intro to ATP and ATPDraw
U
I
53
Three Phase Model
Spring 2013
ECE 404/504
Lecture 5
Icon changes with the connection type. Here
is three winding with all WYE
Here is 2 winding with delta-wye
Note that there is a point to connect to
measure magnetizing branch voltage
Three leg core option
Intro to ATP and ATPDraw
54
Spring 2013
27
U
I
Three Phase Model
ECE 404/504
Lecture 5
Enter data for each
winding
Select Y, D, or Zig-zag
Three leg option here,
but better to use
specific case from pulldown menu.
Intro to ATP and ATPDraw
U
I
55
Three Phase ModelThree Leg Core
Spring 2013
ECE 404/504
Lecture 5
Option to model
homopolar reluctance
» Saturable-Three Leg
Much additional
information needed.
See help menu.
Intro to ATP and ATPDraw
56
Spring 2013
28
U
I
Creating a Circuit
ECE 404/504
Lecture 5
Components are
highlighted
hi
hli ht d iin red
d until
til you
edit values
Can connect components
together by dragging left
mouse button between
nodes and then clicking on
finishing node
1 Ph or 3 Ph on context
Intro to ATP and ATPDraw
U
I
57
Selecting Node Names
Spring 2013
ECE 404/504
Lecture 5
Double click left button to
get node data window
Type node name in SWT
» 6 characters max
» ALL CAPS or numbers or
will have errors
Can ground the node
» Name won’t matter
» Ground symbol will appear
Intro to ATP and ATPDraw
58
Spring 2013
29
U
I
Selecting Node Names
ECE 404/504
Lecture 5
Can choose to Display name on the screen
If you have a connection between nodes, all
nodes will get a name you assigned when
use “Sub-process > Make Node Names” or
“Make ATP File”
» ATPDraw assigns names if you don
don’tt (XX0001,
(XX0001
etc)
Intro to ATP and ATPDraw
U
I
59
Building a System
Spring 2013
ECE 404/504
Lecture 5
Can also
copy your
components
Remembers
output
requests
and values
Need to
enter new
names
Intro to ATP and ATPDraw
60
Spring 2013
30
U
I
Probes and 3 Phase
ECE 404/504
Lecture 5
Menu for voltage and
currentt measurements
t
“Probe Volt” is line to
ground voltage
“Probe Branch Volt
“puts in dummy branch
as does
d
““probe
b curr””
Select 1 or 3 ph
Intro to ATP and ATPDraw
U
I
61
Transient Analysis of
Control Systems (TACS)
Spring 2013
ECE 404/504
Lecture 5
Introduced in EMTP in 1976
Developed to model controls for HVdc
converters (Pacific Intertie)
Model interactions between system
transients and control systems
y
Each variant of EMTP has it own variant
ATP has two: TACS and Models
Intro to ATP and ATPDraw
62
Spring 2013
31
U
I
What TACS can do
ECE 404/504
Lecture 5
Model control systems
» Generator excitation and governor control
» Control loops for power electronic converters
» Firing circuit for power electronics
» Relay algorithms
Intro to ATP and ATPDraw
U
I
63
What TACS can do
Spring 2013
ECE 404/504
Lecture 5
Monitor and post-process
post process network variables
» Analog and digital filters
» RMS voltages and currents
» Calculate P and Q
» Compute motor/generator torque or flux
» Reference frame transformations
Intro to ATP and ATPDraw
64
Spring 2013
32
U
I
ECE 404/504
Lecture 5
What TACS can do
Simulate mechanical/electromechanical
Non-linear reponses
Create models for devices without built-in
models – for example, arc resistances
Create harmonic sources
Variable frequency sources
Intro to ATP and ATPDraw
U
I
Spring 2013
65
TACS Relationship to
Network Solution
ECE 404/504
Lecture 5
Control system models solved separate from network
» Different equation formats
» First network then TACS in each time step
» Leads to on step time delay
Power System
(Network)
Measurements
TACS
Commands
Controlled Sources
Intro to ATP and ATPDraw
66
Spring 2013
33
U
I
ECE 404/504
Lecture 5
General Format
TACS design from point of view of reproducing
Laplace domain block diagram
» Converted to difference equations
» Arbitrary connections of blocks
Signal and variable names limited to 6
characters
Can implement digital controls
Some limited FORTRAN expressions
Intro to ATP and ATPDraw
U
I
67
Spring 2013
ECE 404/504
Lecture 5
TACS and ATPDraw
ATPDraw Interface for TACS
» Not as nice as circuit interface,
interface but much improved
Not essentially to always draw connecting lines
» Use the same variable names instead
» Will generate a warning message about duplicate
names when first run ATP file
Several of the example cases shipped with
ATPDraw have TACS modelling
Intro to ATP and ATPDraw
68
Spring 2013
34
U
I
ECE 404/504
Lecture 5
Built-in variables
Enter these as input node names
» TIMEX = simulation time in seconds (from 0
0.0)
0)
» ISTEP = number of time steps since the start of the
simulation
» DELTAT = simulation time step
– (TIMEX=ISTEP*DELTAT)
» FREQHZ = system frequency in Hz (defined by first
sinusoidal source in the Network part of the
simulation)
» OMEGAR = 2 * * FREQHZ (rad/sec)
Intro to ATP and ATPDraw
U
I
»
»
»
»
69
Spring 2013
Pre-Defined TACS Internal
Sources
ECE 404/504
Lecture 5
ZER0 = 0.0
MINUS1 = -1.0
10
UNITY = PLUS1 = 1.0
PI = FORTRAN Compiler Constant for PI
Intro to ATP and ATPDraw
70
Spring 2013
35
U
I
User-Defined TACS Sources
ECE 404/504
Lecture 5
Used as inputs for other TACS blocks or to
control a TACS source in the network
User calls from TACS menu
As is the case for network sources, the
user defines start and stop time
Intro to ATP and ATPDraw
U
I
71
Spring 2013
User-Defined TACS Sources
ECE 404/504
Lecture 5
Used as inputs for other TACS blocks or to control
a TACS source in the network
As is the case for network sources, the user
defines start and stop time
Options:
»
»
»
»
Type 11: DC Source (called Level Signal in rule book)
Type 14: Cosine (AC Source)
Type 23: Pulse (repeats, alternates between 0.0 and set amplitude
Type 24: Ramp (output rises from 0.0 to amplitude of set period
and repeats until stop time for the source or end of simulation
Intro to ATP and ATPDraw
72
Spring 2013
36
U
I
TACS Measurements from
Network
ECE 404/504
Lecture 5
Used as inputs for other TACS blocks
Type 90: Node voltage measurement
» Node to ground voltage
Type 91: Switch current
» Must be connected to a switch
Type 92: Internal variable from special ATP
components
p
((dynamic
y
synchronous
y
machine or
universal machine)
Type 93: Switch position (output = 0.0 for open
switch and 1.0 for closed switch)
Intro to ATP and ATPDraw
U
I
Spring 2013
73
ECE 404/504
Lecture 5
Transfer Functions
User can define general transfer functions
Laplace
L l
d
domain
i polynomials
l
i l iin numerator
t and
d
denominator
Can have constant gain block (zero order on
numerator and denominator)
General Format:
G( s )
gain
2
3
m
2
3
m
N 0 N 1 s N 2 s N 3 s N m s
D 0 D 1 s D 2 s D 3 s D m s
Intro to ATP and ATPDraw
74
Spring 2013
37
U
I
Sample Transfer Function
ECE 404/504
Lecture 5
G(s)
Intro to ATP and ATPDraw
U
I
75
Limiters
Spring 2013
ECE 404/504
Lecture 5
User can specify limits for transfer functions outputs
» 1st order or zero order only
» Can set hard (static) limits (enter numbers)
» Can use outputs from other TACS functions (dynamic
limits)
Windup limiter
»
»
»
»
Zero order transfer function
TACS processes block and then looks at output
Prior to limit application, output can move far beyond limit
Time needed to back off of the limit
Intro to ATP and ATPDraw
76
Spring 2013
38
U
I
Limiters (continued)
ECE 404/504
Lecture 5
Non-Windup limiter
» Doesn’t saturate and backs off limit quickly
» Implement with first order transfer function
– One pole, no zeros in the function
– Additional poles and zeros are ignored
Both windup and non-windup limits occur in practice
» Need to understand behavior of the system
y
yyou’re
modeling
Intro to ATP and ATPDraw
U
I
77
Built-In Devices
Spring 2013
ECE 404/504
Lecture 5
Implement common functions difficult to make up
»
»
»
»
»
»
»
»
»
Frequency sensor
Externally controlled switch
Level switch
Transport delay
Pulse Delay
Digitizer
Point-by-point nonlinearity (lookup table)
Time controlled switch
Controlled integrator
Intro to ATP and ATPDraw
78
Spring 2013
39
U
I
»
»
»
»
»
»
»
»
Built-In Devices
Derivative
Input IF
Input-IF
Signal selector
Sample and track
Min/Max function
Min/Max tracking
Counter
True RMS
Intro to ATP and ATPDraw
U
I
ECE 404/504
Lecture 5
79
Free-Format FORTRAN
Expressions
Spring 2013
ECE 404/504
Lecture 5
Supplmental variables in rule book
S
Somewhat
h t free
f
format
f
t
ATP recognizes as device types 99, 98 and 88
Options:
» Algebraic operators: + , - , * , / , **
» Relational operators
– .EQ. , .NE. , .LT. , .LE. , .GE. , .GT.
– Ouputs are 0.0 or 1.0
Intro to ATP and ATPDraw
80
Spring 2013
40
U
I
Free-Format FORTRAN
Expressions
ECE 404/504
Lecture 5
Allowed functions:
»
»
»
»
»
»
»
»
SQRT, ABS
SQRT
ABS, EXP,
EXP LOG,
LOG LOG10
SIN, COS, TAN, COTAN (argument in radians)
ASIN, ACOS, ATAN (answer in radians)
SINH, COSH, TANH
TRUNC, MINUS, INVRS
RAD DEG,
RAD,
DEG NOT
SIGN (-1 for neg. number, +1 for pos. number or zero)
SEQ6, RAN (random number generator)
Intro to ATP and ATPDraw
U
I
81
Free-Format FORTRAN
Expressions
Spring 2013
ECE 404/504
Lecture 5
Limitations:
»
»
»
»
The user is allowed up to 20 levels of nesting
nesting.
Can't do SQRT(A**2+B**2) and similar
Can combine functions: SQRT(ABS(INVRS(X) ) )
Does not allow: GOTO, IF, DO, SUBROUTINE, or
FUNCTION
Intro to ATP and ATPDraw
82
Spring 2013
41
U
I
ECE 404/504
Lecture 5
Outputs from TACS
TACS controlled source in the network
» Source type 60
» The variable name in TACS and the name of the node the source is
connected to must match
» Including phase identifier (single phase source)
TACS controlled switches
Interface to type 59 (or 58) dynamic synchronous machine
Interface to type 19 dynamic (universal machine)
Plot data file
Variable inductor…..
Intro to ATP and ATPDraw
U
I
83
Spring 2013
ECE 404/504
Lecture 5
Initial Conditions
Can set initial conditions to improve start up
behavior
» Especially if correct outputs at time = 0+ are desired
Network and TACS undergo separate steady-state
initialization, with network computed first
» TACS output to Network are initially zero unless
specified
Especially
E
i ll useful
f l ffor:
» First order or higher transfer functions
» FORTRAN statements
» Several of the built-in devices
Intro to ATP and ATPDraw
84
Spring 2013
42
U
I Accessing TACS Models
Intro to ATP and ATPDraw
U
I
85
TACS Sources
Intro to ATP and ATPDraw
86
ECE 404/504
Lecture 5
Spring 2013
ECE 404/504
Lecture 5
Spring 2013
43
U
I
TACS Devices
Intro to ATP and ATPDraw
87
U
I TACS Measuring Source
Intro to ATP and ATPDraw
88
ECE 404/504
Lecture 5
Spring 2013
ECE 404/504
Lecture 5
Spring 2013
44
U
I
Source Dialog
Intro to ATP and ATPDraw
U
I
89
Transfer Function
Intro to ATP and ATPDraw
90
ECE 404/504
Lecture 5
Spring 2013
ECE 404/504
Lecture 5
Spring 2013
45
U
I
TACS Device Dialog
Intro to ATP and ATPDraw
U
I
91
FORTRAN Statement
Intro to ATP and ATPDraw
92
ECE 404/504
Lecture 5
Spring 2013
ECE 404/504
Lecture 5
Spring 2013
46
U
I
Slave Source
Intro to ATP and ATPDraw
U
I
93
Outputs from TACS
ECE 404/504
Lecture 5
Spring 2013
ECE 404/504
Lecture 5
TACS node: Type
» 0=Output.
» 1=Input signal positive sum up.
» 2=Input signal negative sum up.
» 3=Input signal disconnected.
» (only necessary if node name is user
specified)
Intro to ATP and ATPDraw
94
Spring 2013
47
U
I
Node Dialog
Intro to ATP and ATPDraw
U
I
95
TACS Outputs
Intro to ATP and ATPDraw
96
ECE 404/504
Lecture 5
Spring 2013
ECE 404/504
Lecture 5
Spring 2013
48
U
I
Output Dialog
Intro to ATP and ATPDraw
U
I
97
RLC Circuit, Network
and TACS
ECE 404/504
Lecture 5
Spring 2013
ECE 404/504
Lecture 5
Simple RLC circuit modelled as:
» Network components
» TACS only model
» Results Compared
Intro to ATP and ATPDraw
98
Spring 2013
49
U
I
ECE 404/504
Lecture 5
ATPDraw Diagram
GEN
VSRC
RL
VLC
U
LDEL
ISER
VOUT
LDEL
U
Intro to ATP and ATPDraw
U
I
Spring 2013
99
ECE 404/504
Lecture 5
Compare Outputs
15
VOUT from TACS and VLC from Network
12
9
6
3
*10 -3
0
0
2
(file drawrlc.pl4; x-var t) t: VO UT
Intro to ATP and ATPDraw
4
v:VLC
100
6
8
10
Spring 2013
50
U
I
ECE 404/504
Lecture 5
Example Results
15
Time Step Delay Between TACS and Network
12
9
6
3
*10 -3
0
0
2
(file drawrlc.pl4; x-var t) v:VLC
Intro to ATP and ATPDraw
4
v:LDEL
101
6
8
10
Spring 2013
51
© Copyright 2026 Paperzz