Intro ATPDraw
Intro ATPDraw
Installing ATP:
Mingw version of ATP ATPDraw -- latest version or latest patch
Presently Atpdraw56.zip
Minimum to Download
PlotXY
Spring 2010
U I
Installing ATPDraw
Installation is fairly easy Default installation path Program Files The space in the file name can create
problems running ATP from ATPDraw
Install it somewhere else. I normally install in C:\tools\prog\ATPDraw
Spring 2010
U I
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
Spring 2010
U I
Spring 2010
Second line adds executable to your search path (not needed if set this at boot time) 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
5
Spring 2010
The s is to create appropriate output file. -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)
Spring 2010
U I
Editing startup
Resides in same directory as tpbig Sets variables for the program
ATP reads a file called startup A few suggested changes from default
Change PL4 file format to work with PlotXY Ignore blank lines
Spring 2010
U I
Editing startup
Resides in same directory as tpbig Sets variables for the program
ATP reads a file called startup A few suggested changes from default
Change PL4 file format to work with PlotXY
NOBLAN set to 0 NEWPL4 set to 1
Spring 2010
U I
Setting Up ATPDraw
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
Spring 2010
U I
ATPDraw Preferences
10
Spring 2010
U I
Further Settings
Problems with lost help files though
The Directories tab settings are ok 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 2010
U I
Simulation Settings
12
Spring 2010
U I
Output Settings
13
Spring 2010
U I
Other Settings
Spring 2010
U I
sufficient to permanently save change Also choose: Tools --> Save Options These are all saved into a file called ATPDraw.ini
Typically saved in users settings Could put copy in the directory with ATPDraw.exe
Intro to ATP and ATPDraw
15
Spring 2010
U I
Other Settings
16
Spring 2010
U I
Try to run
example case to make sure program installed and set up correctly
Example 1
17
Spring 2010
U I
ATP Menu
A new pulldown
menu is now available at the top of the window, called ATP
18
Spring 2010
U I
ATP Menu
Spring 2010
U I
Edit Commands
Spring 2010
U I
21
Spring 2010
U I
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)
Spring 2010
U I
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 2010
U I
Spring 2010
U I
Associated Files
Spring 2010
U I
26
Spring 2010
U I
Spring 2010
U I
Sample File
C Brian K. Johnson C Simulation for problem 3.11 in Greenwood BEGIN NEW DATA CASE C ........................... Miscellaneous data .............................. C DeltaT<---TMax<---XOpt<---COpt<-Epsiln<-TolMat<-TStart 5.0E-5 0.1 C --IOut<--IPlot<-IDoubl<-KSSOut<-MaxOut<---IPun<-MemSav<---ICat<-NEnerg<-IPrSup 500 1 1 C C ........................... Circuit data ................................... C Bus1->Bus2->Bus3->Bus4-><----R<----L<----C VS V1 0.149 4.73 BLANK ends circuit data C C ........................... Switch data .................................... C ***** Close at 160 degrees, or 70 degrees past peak ******** C Bus-->Bus--><---Tclose<----Topen<-------Ie O V1 0.02407 999. 1 BLANK ends switch data C
28
Spring 2010
U I
C ...........................Source data ...................................... C Bus--><I<Amplitude<Frequency<--T0|Phi0<---0=Phi0 <----Tstart<----Tstop 14VS 28.16913E3 60. -90. 0. -1. 9999. BLANK ends source data C C ........................... Output Request Data ............................ C Bus-->Bus-->Bus-->Bus-->Bus-->Bus-->Bus-->Bus-->Bus-->Bus-->Bus-->Bus-->Bus--> V1 VS BLANK ends output requests BLANK ends plot request BEGIN NEW DATA CASE BLANK ends all cases
29
Spring 2010
30
Spring 2010
Spring 2010
U I
column 2
Comment Cards
Good practice to have comments in the file Comments start with a C in column 1 and a blank in
C ***************************** C * This is a sample comment * C *****************************
32
Spring 2010
33
Spring 2010
U I
Spring 2010
U I
Linear Branches
Spring 2010
U I Operating on component
36
Spring 2010
U I
37
Spring 2010
U I
38
Spring 2010
U I
Inductor
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
39
Spring 2010
U I
Capacitance is in
Capacitor
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
40
Spring 2010
U I
RLC
Spring 2010
U I
3 Phase RLC
Can choose a
series 3 phase RLC Options include Y connected and Delta connected
42
Spring 2010
U I
43
Spring 2010
U I
T=0
44
Spring 2010
U I
45
Spring 2010
Imar is absolute
value of current it will interrupt Can select outputs
Intro to ATP and ATPDraw
46
Spring 2010
U I
47
Spring 2010
U I
Measuring Switch
48
Spring 2010
U I
Spring 2010
U I
Type 11 Source
50
Spring 2010
51
Spring 2010
52
Spring 2010
U I
53
Spring 2010
U I
AC or DC Floating Source
54
Spring 2010
U I
Creating a Circuit
Components are
highlighted in red until 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
55
Spring 2010
U I
Spring 2010
U I
57
Spring 2010
U I
Building a System
Most recent
component displayed in a palette on screen for easier reuse Can also copy your components
58
Spring 2010
U I
59
Spring 2010
BEGIN NEW DATA CASE C -------------------------------------------------------C Generated by ATPDRAW January, Wednesday 23, 2008 C A Bonneville Power Administration program C by H. K. Hidalen at SEfAS/NTNU - NORWAY 1994-2006 C -------------------------------------------------------C dT >< Tmax >< Xopt >< Copt > 5.E-5 .1 500 1 1 1 1 0 0 1 0 C 1 2 3 4 5 6 7 8 C 345678901234567890123456789012345678901234567890123456789012345678901234567890 /BRANCH C < n1 >< n2 ><ref1><ref2>< R >< L >< C > C < n1 >< n2 ><ref1><ref2>< R >< A >< B ><Leng><><>0 VS RL .149 0 RL LV 4.73 0
60
Spring 2010
61
Spring 2010
U I
Zoom in on key results Capture key numbers Interpretation of the results matters!
Spring 2010