Está en la página 1de 14

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

7
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

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

8
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

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

9
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

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

10
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

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

11
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 49 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 50 Spring 2013

12
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 51 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 52 Spring 2013

13
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 53 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 54 Spring 2013

14

También podría gustarte