Sunteți pe pagina 1din 51

U ECE 404/504

I Getting ATP: 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 1 Spring 2013

U ECE 404/504

I Installing ATP: 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 ECE 404/504

I Installing ATPDraw
Lecture 5

 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 3 Spring 2013

U Running ATP from ECE 404/504

I ATPDraw
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 ECE 404/504

I Sample Batch File


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 Spring 2013

U ECE 404/504

I Sample Batch File (cont.) 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 ECE 404/504

I Sample Batch File (cont.) 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 7 Spring 2013

U ECE 404/504

I Editing “startup”
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 {ignore blank lines}
– NEWPL4 set to 2 {won’t work with Analyzer}

Intro to ATP and ATPDraw 8 Spring 2013

4
U ECE 404/504

I Setting Up ATPDraw
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 9 Spring 2013

U ECE 404/504

I ATPDraw “Preferences”
Lecture 5

Intro to ATP and ATPDraw 10 Spring 2013

5
U ECE 404/504

I Further Settings 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 11 Spring 2013

U ECE 404/504

I Simulation Settings 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 ECE 404/504

I Output Settings 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 13 Spring 2013

U ECE 404/504

I Other Settings 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 ECE 404/504

I Saving New Settings Lecture 5

 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 15 Spring 2013

U ECE 404/504

I Other Settings 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 ECE 404/504

I Example 1 Lecture 5

 Try to run
example
p case
to make sure
program
installed and
set up
correctly

Intro to ATP and ATPDraw 17 Spring 2013

U ECE 404/504

I ATP Menu 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 ECE 404/504

I ATP Menu 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” callsll ttextt editor
dit
 Make Names, makes node
names for drawing
Intro to ATP and ATPDraw 19 Spring 2013

U ECE 404/504

I Edit Commands 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 ECE 404/504

I Saving New Settings 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 21 Spring 2013

U ECE 404/504

I Running an ATP File 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 ECE 404/504

I Running an ATP File 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 23 Spring 2013

U ECE 404/504

I Making You Own File 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 ECE 404/504

I Associated Files 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 25 Spring 2013

U ECE 404/504

I Associated Files (cont) 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 ECE 404/504

I Making You Own File 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 27 Spring 2013

U ECE 404/504

I Linear Branches 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 ECE 404/504

I Operating on component 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 29 Spring 2013

U ECE 404/504

I Resistor Dialog Box 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 model-
advanced feature

Intro to ATP and ATPDraw 30 Spring 2013

15
U ECE 404/504

I Resistor Dialog Box Lecture 5

 Set branch output:

 Comments
» For file
» For drawing

Intro to ATP and ATPDraw 31 Spring 2013

U ECE 404/504

I Inductor 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 ECE 404/504

I Capacitor 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 33 Spring 2013

U ECE 404/504

I RLC 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 ECE 404/504

I 3 Phase RLC Lecture 5

 Can choose a
series 3 phase
RLC
 Options include
Y connected
 and Delta
connected

Intro to ATP and ATPDraw 35 Spring 2013

U Capacitor with Initial ECE 404/504

I Voltage Value 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 Inductor with Initial ECE 404/504

I Current Value Lecture 5

 Still set value


for L
 Plus the
current at T=0

Intro to ATP and ATPDraw 37 Spring 2013

U ECE 404/504

I Switch Pop Up Menu 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 ECE 404/504

I Time Controlled Switch Lecture 5

 Set T_close I

 Set T_open
» 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 Spring 2013

U ECE 404/504

I Time Controlled Switch 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 ECE 404/504

I Three Phase Switch Lecture 5

 Individual
timing
ti i ffor
each phase
 No reclose
characteristic

Intro to ATP and ATPDraw 41 Spring 2013

U ECE 404/504

I Source Pop Up Menu Lecture 5

 Allows you to create ordinary 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 Version 5.6+ AC source ECE 404/504

I (1&3 phase)
Lecture 5

1 ph voltage 3 ph current
source source

Intro to ATP and ATPDraw 43 Spring 2013

U ECE 404/504

I Type 11 Source Lecture 5

Intro to ATP and ATPDraw 44 Spring 2013

22
U What is Needed in ECE 404/504

I Transformer Models? 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 45 Spring 2013

U Low Frequency ECE 404/504

I Transients 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 Single Phase ECE 404/504

I Equivalent Circuit Lecture 5

 Winding resistance
 Leakage inductance
 Core loss--total losses
 Non-linear inductor model for magnetizing
branch
Intro to ATP and ATPDraw 47 Spring 2013

U ECE 404/504

I ATP Options 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 Avoid ATP Ideal ECE 404/504

I Transformer 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 49 Spring 2013

U ECE 404/504

I Saturable Transformer 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 Single Phase Saturable ECE 404/504

I Base Attributes 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 Spring 2013

U ECE 404/504

I Saturation Characteristic 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 ECE 404/504

I Characteristic 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 53 Spring 2013

U ECE 404/504

I Three Phase Model 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 ECE 404/504

I Three Phase Model Lecture 5

 Enter data for each


winding
 Select Y, D, or Zig-zag
 Three leg option here,
but better to use
specific case from pull-
down menu.

Intro to ATP and ATPDraw 55 Spring 2013

U Three Phase Model- ECE 404/504

I Three Leg Core 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 ECE 404/504

I Creating a Circuit 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 57 Spring 2013

U ECE 404/504

I Selecting Node Names 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 ECE 404/504

I Selecting Node Names 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 59 Spring 2013

U ECE 404/504

I Building a System 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 ECE 404/504

I Probes and 3 Phase 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 61 Spring 2013

U Transient Analysis of ECE 404/504

I Control Systems (TACS)


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 ECE 404/504

I What TACS can do 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 63 Spring 2013

U ECE 404/504

I What TACS can do 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 ECE 404/504

I What TACS can do Lecture 5

 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 65 Spring 2013

U TACS Relationship to ECE 404/504

I Network Solution
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 Measurements


(Network)

TACS
Commands
Controlled Sources

Intro to ATP and ATPDraw 66 Spring 2013

33
U ECE 404/504

I General Format
Lecture 5

 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 67 Spring 2013

U ECE 404/504

I TACS and ATPDraw


Lecture 5

 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 ECE 404/504

I Built-in variables Lecture 5

 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 69 Spring 2013

U Pre-Defined TACS Internal ECE 404/504

I Sources 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 ECE 404/504

I User-Defined TACS Sources 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 71 Spring 2013

U ECE 404/504

I User-Defined TACS Sources 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 TACS Measurements from ECE 404/504

I Network 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 73 Spring 2013

U ECE 404/504

I Transfer Functions Lecture 5

 User can define general transfer functions


 Laplace
L l d
domaini polynomials
l i l iin numerator
t and
d
denominator
 Can have constant gain block (zero order on
numerator and denominator)
 General Format:
2 3 m
N 0  N 1 s  N 2 s  N 3 s  N m s
G( s ) gain 
2 3 m
D 0  D 1 s  D 2 s  D 3 s  D m s

Intro to ATP and ATPDraw 74 Spring 2013

37
U ECE 404/504

I Sample Transfer Function


Lecture 5

G(s)

Intro to ATP and ATPDraw 75 Spring 2013

U ECE 404/504

I Limiters 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 ECE 404/504

I Limiters (continued) 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 77 Spring 2013

U ECE 404/504

I Built-In Devices 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 ECE 404/504

I Built-In Devices Lecture 5

» Derivative
» Input IF
Input-IF
» Signal selector
» Sample and track
» Min/Max function
» Min/Max tracking
» Counter
» True RMS

Intro to ATP and ATPDraw 79 Spring 2013

U Free-Format FORTRAN ECE 404/504

I Expressions 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 Free-Format FORTRAN ECE 404/504

I Expressions 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 81 Spring 2013

U Free-Format FORTRAN ECE 404/504

I Expressions 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 ECE 404/504

I Outputs from TACS Lecture 5

 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 83 Spring 2013

U ECE 404/504

I Initial Conditions Lecture 5

 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 ECE 404/504

I Accessing TACS Models Lecture 5

Intro to ATP and ATPDraw 85 Spring 2013

U ECE 404/504

I TACS Sources Lecture 5

Intro to ATP and ATPDraw 86 Spring 2013

43
U ECE 404/504

I TACS Devices Lecture 5

Intro to ATP and ATPDraw 87 Spring 2013

U ECE 404/504

I TACS Measuring Source Lecture 5

Intro to ATP and ATPDraw 88 Spring 2013

44
U ECE 404/504

I Source Dialog Lecture 5

Intro to ATP and ATPDraw 89 Spring 2013

U ECE 404/504

I Transfer Function Lecture 5

Intro to ATP and ATPDraw 90 Spring 2013

45
U ECE 404/504

I TACS Device Dialog Lecture 5

Intro to ATP and ATPDraw 91 Spring 2013

U ECE 404/504

I FORTRAN Statement Lecture 5

Intro to ATP and ATPDraw 92 Spring 2013

46
U ECE 404/504

I Slave Source Lecture 5

Intro to ATP and ATPDraw 93 Spring 2013

U ECE 404/504

I Outputs from TACS 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 ECE 404/504

I Node Dialog Lecture 5

Intro to ATP and ATPDraw 95 Spring 2013

U ECE 404/504

I TACS Outputs Lecture 5

Intro to ATP and ATPDraw 96 Spring 2013

48
U ECE 404/504

I Output Dialog Lecture 5

Intro to ATP and ATPDraw 97 Spring 2013

U RLC Circuit, Network ECE 404/504

I and TACS Lecture 5

 Simple RLC circuit modelled as:


» Network components
» TACS only model
» Results Compared

Intro to ATP and ATPDraw 98 Spring 2013

49
U ECE 404/504

I ATPDraw Diagram Lecture 5

GEN VSRC RL VLC


U

LDEL

ISER VOUT
LDEL
U

Intro to ATP and ATPDraw 99 Spring 2013

U ECE 404/504

I Compare Outputs Lecture 5

VOUT from TACS and VLC from Network


15

12

0 *10 -3
0 2 4 6 8 10
(file drawrlc.pl4; x-var t) t: VO UT v:VLC

Intro to ATP and ATPDraw 100 Spring 2013

50
U ECE 404/504

I Example Results Lecture 5

Time Step Delay Between TACS and Network


15

12

0 *10 -3
0 2 4 6 8 10
(file drawrlc.pl4; x-var t) v:VLC v:LDEL

Intro to ATP and ATPDraw 101 Spring 2013

51

S-ar putea să vă placă și