1 U I ECE 404/504 Lecture 5 Getting ATP: Available in ECE dept labs on campus 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 Intro to ATP and ATPDraw Spring 2013 1 secure server » Or, once verified, I can give you access to a zip file with relevant files U I ECE 404/504 Lecture 5 Installing ATP: Minimum to Download Minimum to Download » Mingw version of ATP » ATPDraw -- latest version or latest patch – Presently Atpdraw57.zip » PlotXY Option: ATP Easy Installer Intro to ATP and ATPDraw Spring 2013 2 Option: ATP Easy Installer » Download from secure sites in Japan
51
Embed
UI ECE 404/504 Getting ATP: Lecture 5 - University of Idaho · Minimum to DownloadMinimum to Download » Mingw version of ATP ... I ECE 404/504 Sample Batch File ... Load flow controls
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
1
UIECE 404/504
Lecture 5Getting ATP:
Available in ECE dept labs on campus 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
Intro to ATP and ATPDraw Spring 20131
secure server» Or, once verified, I can give you access to a
zip file with relevant files
UIECE 404/504
Lecture 5Installing ATP:
Minimum to Download Minimum to Download» Mingw version of ATP» ATPDraw -- latest version or latest patch
– Presently Atpdraw57.zip
» PlotXY
Option: ATP Easy Installer
Intro to ATP and ATPDraw Spring 20132
Option: ATP Easy Installer » Download from secure sites in Japan
2
UIECE 404/504
Lecture 5Installing 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 I normally install in
Intro to ATP and ATPDraw Spring 20133
» Install it somewhere else. I normally install in “C:\tools\prog\ATPDraw”
Install program may create shortcut in the start menu, but not very cleanly
UIECE 404/504
Lecture 5
Running ATP from ATPDraw
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)
Intro to ATP and ATPDraw Spring 20134
» For example, I call it “RUNATP.BAT”
Passes full path to file when calls ATP
3
UIECE 404/504
Lecture 5Sample Batch File
The following batch file is for Ming32 ATPSET 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
Intro to ATP and ATPDraw Spring 20135
» Sets program working environment
» The final “\” is important
UIECE 404/504
Lecture 5Sample Batch File (cont.)
Second line adds executable to your search th ( t d d if t thi t b t ti )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)
Intro to ATP and ATPDraw Spring 20136
– Could also set “disk” to only do disk file or leave blank for no message
– First “%1” is input data file from ATPDraw
4
UIECE 404/504
Lecture 5Sample Batch File (cont.)– The “s” is to create appropriate output file.
– “-R” tells ATP overwrite existing output file if oneR 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 Spring 20137
UIECE 404/504
Lecture 5Editing “startup”
ATP reads a file called “startup” ATP reads a file called startup » Resides in same directory as tpbig
» Sets variables for the program
A few suggested changes from default» Change PL4 file format to work with PlotXY
Intro to ATP and ATPDraw Spring 20138
g– NOBLAN set to 0 {ignore blank lines}
– NEWPL4 set to 2 {won’t work with Analyzer}
5
UIECE 404/504
Lecture 5Setting Up ATPDraw
Open up ATPDraw
Select: “Tools” pull down menu
Select: “Options...”
Choose “Preferences” tab» You select a text editor, or use Notepad (default)
Intro to ATP and ATPDraw Spring 20139
» “ATP” is where you set path to your batch file
Armafit: which we won’t cover in this course
UIECE 404/504
Lecture 5ATPDraw “Preferences”
Intro to ATP and ATPDraw Spring 201310
6
UIECE 404/504
Lecture 5Further Settings The “Files&Folders” tab settings are ok However you do want changes in the However, you do want changes in the
View/ATP tab
» Select “Edit settings” tab» You may want to change
some of the default
Intro to ATP and ATPDraw Spring 201311
settings. However, you can change any of these for a specific data file
UIECE 404/504
Lecture 5Simulation Settings
Default time step (deltaT) is very small
Default run time short
Xopt and Copt ok
Select “Power Frequency”
Intro to ATP and ATPDraw Spring 201312
» Reset to 60 Hz from 50Hz
» Can mess up some sources
7
UIECE 404/504
Lecture 5Output Settings
Probably don’t need the selected “Printout” options for most cases
Slow down the program somewhat
Plot frequency should be
Intro to ATP and ATPDraw Spring 201313
Plot frequency should be low and odd.
UIECE 404/504
Lecture 5Other Settings
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
Intro to ATP and ATPDraw Spring 201314
here and pass them different components» Or control them with Pocket Calculator option
» See help file for more info
8
UIECE 404/504
Lecture 5Saving New Settings
The “Save” or “Apply” buttons aren’t The Save or Apply buttons aren t sufficient to permanently save change
Also choose: Tools --> Save Options These are all saved into a file called
ATPDraw.iniT i ll d i ’ tti
Intro to ATP and ATPDraw Spring 201315
» Typically saved in user’s settings» Could put copy in the directory with
ATPDraw.exe
UIECE 404/504
Lecture 5Other Settings
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.
Intro to ATP and ATPDraw Spring 201316
» For now, choose example “Exa_1.adp” (*.adp represents the drawing files).
9
UIECE 404/504
Lecture 5Example 1 Try to run
example case pto make sure program installed and set up correctly
Intro to ATP and ATPDraw Spring 201317
UIECE 404/504
Lecture 5ATP Menu
A new pulldown menu is now available at th t f th i d ll d “ATP”the top of the window, called “ATP”
Intro to ATP and ATPDraw Spring 201318
10
UIECE 404/504
Lecture 5ATP Menu
Settings is changes deltaT etc. for a given case
“Make File As” generates ATP data file from drawing
Run ATP calls your bat file
E h “Edit” ll t t dit
Intro to ATP and ATPDraw Spring 201319
Each “Edit” calls text editor
Make Names, makes node names for drawing
UIECE 404/504
Lecture 5Edit Commands
Allows you to set additional commands
Run other ATP versions» On Current ATP drawing
» On Selected File
R l t
Intro to ATP and ATPDraw Spring 201320
Run plot programs » On Current PL4
Use “Update” to set
11
UIECE 404/504
Lecture 5Saving New Settings
The “Update” buttons isn’t sufficient to The Update buttons isn t sufficient to save for next time
All choose: Tools --> Save Options
Intro to ATP and ATPDraw Spring 201321
UIECE 404/504
Lecture 5Running an ATP File
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)
Intro to ATP and ATPDraw Spring 201322
– Can edit this file with “Edit ATP-File” option (not saved to drawing file)
» 2) Run your case
» 3) Call plotting program
12
UIECE 404/504
Lecture 5Running an ATP File
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
Intro to ATP and ATPDraw Spring 201323
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
UIECE 404/504
Lecture 5Making You Own File
Open a new drawing (from File menu or from icon)
Can get the component menu by right clicking mouse in the drawing screen
Capacitance is in microFarads unlessmicroFarads unless Copt set
Note program sets a default value to prevent errors if you randomly connect nodes
Ks numerical oscillation
Intro to ATP and ATPDraw Spring 201333
Ks numerical oscillation damping constant» Adds series resistor
» More on that later
UIECE 404/504
Lecture 5RLC
RLC lets you set R, L, and C or any combination
Creates same data card as R, L or C alone but
Intro to ATP and ATPDraw Spring 201334
L, or C alone, but lets you do all fields
Series RLC
18
UIECE 404/504
Lecture 53 Phase RLC
Can choose a series 3 phase RLC
Options include Y connected
and Delta
Intro to ATP and ATPDraw Spring 201335
and Delta connected
UIECE 404/504
Lecture 5
Capacitor with Initial Voltage Value
Still set value for Cfor C
Also set positive and negative voltage relative to ground at T=0
Intro to ATP and ATPDraw Spring 201336
Will be useful for homework #1
19
UIECE 404/504
Lecture 5
Inductor with Initial Current Value
Still set value for L
Plus the current at T=0
Intro to ATP and ATPDraw Spring 201337
UIECE 404/504
Lecture 5Switch Pop Up Menu
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 Spring 201338
TACS controlled switches
20
UIECE 404/504
Lecture 5Time Controlled Switch
Set T_close I
Set T_open» T_open must be
larger than T_close
Imar is absolute value of current it will interrupt
Intro to ATP and ATPDraw Spring 201339
will interrupt
Can select outputs
UIECE 404/504
Lecture 5Time Controlled Switch
Can also set a ti ftime sequence for repeated open/close operations.
Up to 16
Intro to ATP and ATPDraw Spring 201340
21
UIECE 404/504
Lecture 5Three Phase Switch
Individual ti i ftiming for each phase
No reclose characteristic
Intro to ATP and ATPDraw Spring 201341
UIECE 404/504
Lecture 5Source Pop Up Menu
Allows you to create ordinary ATPDraw 5.6+
sources
Machines and TACS controlled sources on other pop-up menus
Most of these sources are
Intro to ATP and ATPDraw Spring 201342
Most of these sources are referenced to ground
22
UIECE 404/504
Lecture 5Version 5.6+ AC source
(1&3 phase)
1 ph voltagesource
3 ph currentsource
Intro to ATP and ATPDraw Spring 201343
UIECE 404/504
Lecture 5Type 11 Source
Intro to ATP and ATPDraw Spring 201344
23
UIECE 404/504
Lecture 5
What is Needed in Transformer Models?
Fault studies require more information» Connection info
– wye
– delta
– zig-zag
– autotransformer
Intro to ATP and ATPDraw Spring 201345
– etc.
» Grounding
» Possible impact of tertiary
UIECE 404/504
Lecture 5
Low Frequency Transients
Similar modeling info to fault programs» Connection information more important
Magnetizing branch» Saturation
Core loss term
Intro to ATP and ATPDraw Spring 201346
Not using per unit» Need to include turns ratio
» Divide leakage L, winding R between windings
24
UIECE 404/504
Lecture 5
Single Phase Equivalent Circuit
Winding resistance
Leakage inductance
Intro to ATP and ATPDraw Spring 201347
Core loss--total losses
Non-linear inductor model for magnetizing branch
UIECE 404/504
Lecture 5ATP Options
Ideal transformer component
Saturable transformer component
BCTran -- preprocessor that converts description of transformer to coupled RL
Can also create manually using coupled RL
Intro to ATP and ATPDraw Spring 201348
branches
25
UIECE 404/504
Lecture 5
Avoid ATP Ideal Transformer
Limited to two winding transformers 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 Spring 201349
UIECE 404/504
Lecture 5Saturable Transformer
Model has built-in circuit elements» Winding resistance
» Leakage inductance (can’t enter 0)
» Core loss resistance
» Magnetizing branch t t d L i H
Intro to ATP and ATPDraw Spring 201350
– not entered as an L in mH
» Can set all except leakage to 0 to simplify
» Enter winding to winding ratios
26
UIECE 404/504
Lecture 5
Single Phase SaturableBase Attributes
Io, Fo are steady-state point on saturation pcharacteristic 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 Spring 201351
UIECE 404/504
Lecture 5Saturation Characteristic 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
Intro to ATP and ATPDraw Spring 201352
entered» Better to limit to 3-5
27
UIECE 404/504
Lecture 5
Viewing The Saturation Characteristic
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
Intro to ATP and ATPDraw Spring 201353
entered» Better to limit to 3-5 for better
numerical behavior
» Does not include hysteresis
UIECE 404/504
Lecture 5Three Phase Model 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 Spring 201354
Three leg core option
28
UIECE 404/504
Lecture 5Three Phase Model 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 Spring 201355
UIECE 404/504
Lecture 5
Three Phase Model-Three Leg Core
Option to model homopolar reluctance» Saturable-Three Leg
Much additional information needed.
See help menu.
Intro to ATP and ATPDraw Spring 201356
29
UIECE 404/504
Lecture 5Creating a Circuit
Components are hi hli ht d i d tilhighlighted in red until you edit values
Can connect components together by dragging left mouse button between
Intro to ATP and ATPDraw Spring 201357
mouse button between nodes and then clicking on finishing node
1 Ph or 3 Ph on context
UIECE 404/504
Lecture 5Selecting Node Names Double click left button to
get node data windowget node data window
Type node name in SWT » 6 characters max
» ALL CAPS or numbers or will have errors
Intro to ATP and ATPDraw Spring 201358
Can ground the node » Name won’t matter
» Ground symbol will appear
30
UIECE 404/504
Lecture 5Selecting Node Names
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’t (XX0001
Intro to ATP and ATPDraw Spring 201359
» ATPDraw assigns names if you don t (XX0001, etc)
UIECE 404/504
Lecture 5Building a System
Can also copy yourcopy your components
Remembers output requests and values
Need to
Intro to ATP and ATPDraw Spring 201360
Need to enter new names
31
UIECE 404/504
Lecture 5Probes and 3 Phase
Menu for voltage and t tcurrent measurements
“Probe Volt” is line to ground voltage
“Probe Branch Volt “puts in dummy branch
d “ b ”
Intro to ATP and ATPDraw Spring 201361
as does “probe curr”
Select 1 or 3 ph
UIECE 404/504
Lecture 5Transient Analysis of
Control Systems (TACS)
Introduced in EMTP in 1976 Introduced in EMTP in 1976
Developed to model controls for HVdc converters (Pacific Intertie)
Model interactions between system transients and control systems
Intro to ATP and ATPDraw Spring 201362
y
Each variant of EMTP has it own variant
ATP has two: TACS and Models
32
UIECE 404/504
Lecture 5What TACS can do
Model control systems 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 Spring 201363
UIECE 404/504
Lecture 5What TACS can do
Monitor and post process network variables Monitor and post-process network variables» Analog and digital filters