PF Manuals PDF e
PF Manuals PDF e
DIgSILENT PowerFactory
Version 13.1
DIgSILENT GmbH
Gomaringen, Germany
2004
Publisher:
DIgSILENT GmbH
Heinrich-Hertz-Str. 9
72810 Gomaringen / Germany
Tel : +49 (0) 7072-9168-0
Fax : +49 (0) 7072-9168-88
12 Protection 12-221
12.1 Creating a Protection Device . . . . . . . . . . . . . . . . . 12-221
12.2 Basic Protection Devices . . . . . . . . . . . . . . . . . . . 12-229
12.3 Short-Circuit Sweep . . . . . . . . . . . . . . . . . . . . . . 12-246
12.4 The Time-Distance Diagram . . . . . . . . . . . . . . . . . 12-248
12.5 Path Definitions . . . . . . . . . . . . . . . . . . . . . . . . 12-253
12.6 Protection Analysis Results . . . . . . . . . . . . . . . . . . 12-253
12.7 Time-Overcurrent Plots . . . . . . . . . . . . . . . . . . . . 12-254
12.8 The Curve-Input Command . . . . . . . . . . . . . . . . . . 12-262
III Optimization
15 Optimal Power-Flow 15-281
IV Reliability Analysis
18 Reliability Assessment Functions 18-295
18.1 Contingency Analysis . . . . . . . . . . . . . . . . . . . . . 18-295
18.2 Voltage Sag Analysis . . . . . . . . . . . . . . . . . . . . . 18-301
18.3 Network Reliability Assessment . . . . . . . . . . . . . . . 18-306
18.4 Calculated results . . . . . . . . . . . . . . . . . . . . . . . 18-318
18.5 Application Notes . . . . . . . . . . . . . . . . . . . . . . . 18-322
18.6 Stochastic Reliability Assessment: Basic Theory . . . . . . 18-327
18.7 Failure Models . . . . . . . . . . . . . . . . . . . . . . . . . 18-332
26 DPL 26-521
26.1 The DPL Command Object . . . . . . . . . . . . . . . . . . 26-522
26.2 The DPL Script Editor . . . . . . . . . . . . . . . . . . . . . 26-524
26.3 The DPL Script Language . . . . . . . . . . . . . . . . . . . 26-525
26.4 Access to Other Objects . . . . . . . . . . . . . . . . . . . . 26-531
26.5 Access to Locally Stored Objects . . . . . . . . . . . . . . . 26-532
26.6 Accessing the General Selection . . . . . . . . . . . . . . . 26-533
26.7 Accessing External Objects . . . . . . . . . . . . . . . . . . 26-534
26.8 Remote Scripts and DPL Command Libraries . . . . . . . . 26-535
26.9 DPL Functions and Subroutines . . . . . . . . . . . . . . . 26-538
1
DIgSILENT PowerFactory Introduction to the Manual
The Users Manual is intended to explain the ’how to’ of the program. How to run
a load-flow, for example. It is assumed that the user knows, or does not
immediately require an explanation of, what the program does to achieve the
end result.
When exploring new software there are two approaches that may be employed:
the functional approach and the project approach. The first method presents all
functional parts of the program one by one and explains their features, and how
and when to use them - the Users Manual has been written with this approach in
mind.
The project approach shows the program by example, and this approach is
contained in the tutorial under the ”Getting Started” section. The new user is
shown how to start a new project and how to build a simple power system, which
is then extended in a number of steps. The new user is thus guided along all
major features on a step by step basis.
For this tutorial, a small power system is built by the user. A tutorial manager
compares what has been entered by the user to a completed version of the
power system, which is contained within the DIgSILENT PowerFactory
database shipped on the installation CD. The tutorial manager then informs the
user where errors have been made and the user can correct these and continue.
The power system tutorial includes all important features of the DIgSILENT
2
DIgSILENT PowerFactory Introduction to the Manual
3
Getting Started Tutorial
DIgSILENT PowerFactory
Version 13.1
DIgSILENT GmbH
Gomaringen, Germany
2004
DIgSILENT PowerFactory Introduction to the Tutorial
Chapter A
This tutorial is intended to be used in a step by step manner, where each step
follows on from what has been done in the previous step. To assist the user a
Tutorial Manager may be used to either check the tutorial project at the start of a
Tutorial lesson, or to clean up at the end.
The tutorial manager will, by default, NOT install a project, but will try to
check the project that has been entered by the user. It issues error
messages when the tutorial project is not found or contains errors. Please
read the “Getting Started Tutorial” (see the main Help menu) for more help
on the PowerFactory Tutorial.
However, by disabling the Check option, the Tutorial Manager may also be used
to simply install the Tutorial System at any of its stages without having to enter
any data yourself. Although less educational, this mode may be used to skip
certain parts of the Tutorial.
The PowerFactory Tutorial philosophy is to guide the user through the features
of the software, during which the data for a small but complete power system
design will be entered. The Tutorial Manager’s main purpose is to check the data
that has been entered and issue error messages as required.
Buttons are also shown as seen on screen, as in the to open the user
settings dialogue.
Right/Left clicking As in “Right click the browser”. Means pointing the cursor at
the object described (the browser) and pressing the right/left mouse key.
Double Clicking As in “Double click the button”. Means pointing the cursor at
the object described and pressing the left mouse key twice within about
half a second (the time interval is as set in the Windows operating system).
Ctrl-B (key combination example) means that that the user should press the
combination of keys described. For example, “Press C TRL -B to toggle
between balanced/unbalanced case,” means that the user should press
and hold down the first keyboard key (the Control key on the keyboard in
this example) and then press the second key (B) as well.
Menu sequences When a user needs to select a command through cascaded
menu options the sequence is shown by arrows that indicate what option to
choose next, starting from the original menu button.
For example, setting the drawing format can be done by pressing the
O PTIONS button to access the options menu, then by choosing ”Graphic”
from the list offered, and finally ”Drawing Format ...” from the last list;
this series of actions is all simply described by Options →Graphic
→Drawing Format ...
” ” and ’ ’ ”These” quotes are used to indicate that the description is one that
can be found within the program- one that is not user definable, for
example, the balloon help description ”Calculate Load Flow” that you see
when you hover your cursor over the Load Flow button.
’These’ are used to indicate data that a user has entered or should enter.
’These’ quotes are also used to indicate a process or series of objects that
have no discernible name, but which need to be described. For example,
the ’drawing tools panel,’ which is found on the right hand side of the
drawing canvas.
and [1] [2] [3], etc These show a sequence of events that should be
performed. Where they are numbered they will be associated with a
graphic in which the numbers appear.
Chapter B
Program Overview
• perform calculations
or any other function related to these tasks, is available directly in the main
program window.
The significance of this is that the users need only familiarize themselves with
one user interface as all activities are controlled and accessed via the main
program window.
More importantly, all data is kept in a central place, and the user need not
transfer, or copy, paste and modify the data from one part of the program to
another in order to perform a new type of calculation. The PowerFactory user
interface is fully compatible with Windows operating systems. For those users
who are not experienced in using these operating systems, some simple
instructions have been added to the tutorial. These are recognized by being
prefaced by a different icon.
For example, to practice a Windows feature:
Do this
Then do that
Users familiar to the Windows operating systems may want to skip these parts of
the tutorial.
In order to better understand how to use a program it is useful to first get an idea
of what the designers had in mind when they designed the user interface. In the
next few paragraphs we will attempt to explain what this philosophy is.
As users progress and become more adept with the program, data will be
manipulated by using a data viewer called the Data Manager.
The following picture shows what PowerFactory looks like when a project is
active.
The two means of accessing the data are thus via the graphics page/s and via
the Data Manager.
The graphics page is simple to understand and data is accessed by
double-clicking on an object in the graphic. An input dialogue pops up and the
user may then edit the data for the object as can be seen in the following picture.
All of the data that is entered for such objects is specifically structured in folders
to allow the user to navigate through it. To view this data a ”Data Manager” is
used. The data manager is similar in appearance and working to a Windows
Explorer.
Firstly, it is clear that, for the study of any system, there are two distinct sets of
information that can be defined:
• data that pertains directly to the system under study, that is, electrical data
The electrical data itself can also be further divided into logical sets. When we
construct a power system we make use of standardized materials or
components - a roll of cable for example. In simple terms we can describe the
cable electrically by its impedance per km length whilst it is still on the cable
drum; in other words, generic information about this cable, is called ”Type” data.
When we cut a length of the cable for installation the type data is retained in a
modified way, as follows:
600m of cable that has a Type impedance of ’Y’ Ohms/ km will now have an
impedance of ’0.6*Y’ Ohms.
We can thus see that the length of the cable, o.6 km, can be seen as a separate
set of information. This set of information will contain all of that information
particular to the specific installation or application of the piece of cable we
are considering. Information such as the derating factor of the installed
cable, its local name, the nodes that it is connected to at either end; in other
words, all information that is non-generic, will fall into this information set.
This means that there are now three distinct sets that we need to arrange the
data into. In ’Explorer’ terms this means three folders, which, in PowerFactory,
we call:
Of course we should also house these three folders within a higher folder so that
we can arrange our data for different networks that we may be studying; this we
then call the ”Project” folder.
All of this can be visualized in the overview drawing shown in Figure Fig. B.3,
where:
[2] If the user edits the data for the element by double clicking on it this element
data is displayed in the element dialogue
[3] If the Type is edited the type dialogue is displayed. In this case you can see
that two different lines (’Cable A’ and ’Cable B’) have their own element
data but both refer to the same type data.
[4] The graphical object data is kept in the ’Grid’ folder- although the user
should refrain from editing this as these are automatically created and
require some experience to manipulate.
[5] Similarly, the element data objects are also kept in the ’Grid’ folder and may
be viewed by using the data manager, as well as by double clicking them
from the graphic.
[6] The type data objects are kept in the ’Library’ folder.
[7] All of these folders are kept inside a project folder, here called ’Simple Power
System.’
[8] Finally, all projects and other folders are housed in the user account folder,
here called ’Raj1.’ This folder is a system folder (the ’user account’) that is
created when the user starts PowerFactory.
The ’Study Case’ folder that can be seen in the data tree is the folder that
contains the study management data- the ’tools’ and ’tool settings’ that are used
to perform the calculations and the visualization of the results. This will be dealt
with in more detail at a later stage. Initially the user does not need to concern
himselve over the study case as it is created and assigned automatically.
The so-called ’windows’ are the users interface to the program and the means to
enter or manipulate data and/or graphics. DIgSILENT PowerFactory uses
several kinds of windows some of which have been shown previously. These will
now be described and explained.
[3] A tool bar is associated to the the main window (presently this is mostly
de-activated as there is no active project).
[4] Balloon help appears for buttons when the cursor is ’hovered’ over a button
for half a second or more.
[5] The title bar of this sub-window describes it as a ”Data Manager” and lists
the path of the object that has been selected in the data manager; here the
project entitled ’Simple Power System,’ which is located in the (user) folder
’Raj1’, has been selected.
[6] When an object is right clicked a menu appears.
[7] This is the output window, which has its...
[8] ...own tool bar.
One of the major tasks for the data manager is to provide access to the power
system components. The power system components shown in the data
manager can be ’gang-edited’ (or ’group-edited’) within the data manager itself,
where the data is presented in a tabular format, for all the selected objects.
Alternatively each object may also be individually edited by double clicking on an
object (or right click →”Edit”).
The output window, at the bottom of the screen, is always there; it cannot be
closed although it can be minimized.
The output window can be “docked”, that is: fixed to a location on the bottom of
the main window. The docked state is the default, as shown in Fig. B.4.
When clicking the right mouse button, when the cursor is in the output window
area, the context sensitive menu of the output window appears. The output
window can then be undocked by deselecting the ”Docking View” (by clicking the
mouse onto ”Docking View” to ’untick’ it. The undocked output window is still
confined to the main window, but now as a free floating window. This sometimes
occurs ’accidentally’ when the user left clicks the tool bar for the output window
and drags the mouse (keeping the mouse button down) to somewhere outside of
the output window boundaries. To rectify this simply left click in the title bar of the
undocked window and drag it down to the bottom of the screen where it will dock
once more (if you have right clicked ’unticked’ ”Docking View” to right click and
select ”Docking View” once more.
The undocked state is not a normal situation for the output window. Because the
output messages that appear in this window are important at any stage while
using the program, the docked state is the best place because it will be visible
then and easy to locate.
The edge of the output window shows a splitter bar [a] which is used to change
the size of the output window. The ‘drag’ cursor, as shown at [a], appears
automatically when the cursor is placed on the splitter bar. The left mouse button
can be pressed when the ‘drag’ cursor is visible. This will turn the splitter bar to
grey and the output window can now be resized by holding down the mouse
button and moving the mouse up or down.
The button “Maximize Output Window” ( ) on the main toolbar will enlarge the
output window to almost full-screen. Left click the button again to switch back to
the small output window.
the button reduces the window to a smaller size on the screen; initially
there is a default size for this window but the user may re-size it as desired.
the button will close the sub-window or end the program if this button
is clicked on the main window.
Sub-windows can be re-sized as follows. Place the cursor over the lower right
corner of the window and left click and hold the button down- now drag the
window to the size you require. You will find that each corner can be sized like
this, as well as each edge.
press A LT-H to open the help menu. Use your keyboard to select the
Getting Started Tutorial. Press RETURN to open the Tutorial. The on-line
Getting Started Tutorial is exactly the same as the printed version.
close the Getting Started Tutorial help (Use the on the main bar). You
will return to the main PowerFactory program window.
left click the Help menu. Left click the option Users Manual. This opens the
on-line User’s Manual.
B.3.3 Toolbar
The toolbar shows the main PowerFactory command buttons. Buttons that
appear in grey only become active when appropriate.
All command buttons are equipped with balloon help text which pop up when the
cursor is held still at the button for a moment, and no key is pressed.
find the button for User Settings by using the balloon help. Don’t use the
mouse keys: just point at the buttons, hold still, and a balloon text will pop
up. Scan all buttons until you find the right one.
Using a command button couldn’t be easier: just click on it with the left mouse
button. Those buttons that perform a task will automatically jump back when that
task is finished. Some command buttons however will switch between two
modes, for instance the one which will reserve more place for the output window
on the workspace ( ). This button will stay down to show the activated mode.
Click the command button again to switch back to the normal view.
When PowerFactory has just been started, the toolbar shows only the general
command buttons. The ’toolbar select’ button ( ) can be clicked to select
additional command buttons.
1. The commercial version comes with a hard copy of the Users Manual and
the Getting Started Tutorial.
2. All versions have on-line versions of the Users Manual and the Getting
Started Tutorial, which can be opened from the Help option on the main
menu.
3. All versions have a context sensitive help which will directly jump to the
right page of the on-line Users Manual when the F1 key is pressed. An
example for the two winding transformer is shown in Fig. B.8.
4. All versions have balloon help installed which will give the names of
command buttons, or input parameters, if the cursor is positioned over
these items and held still for about half a second. Fig. B.9 shows three
help balloons in the browser part of the data manager.
Figure B.8: The Two-winding Transformer and its Context sensitive Help
The Users Manual and Getting Started Tutorial are exactly the same in print and
in the on-line version. Command buttons are sometimes referenced by their
name, instead of by their image. For large buttons, this is normally the case. The
name of a button is either the name on the button itself ( OK , C ANCEL ), or
the name that appears in the balloon help ( = U SER S ETTINGS ).
Although the tutorial has been thoroughly tested, the following list of questions
and answers have been found to be useful:
Chapter C
The first step in designing a new power system is to create a project. A project
offers the basic structure in which to define and store power system definitions,
together with their design stages and single line diagrams, type libraries,
calculation stages, calculation commands, etc.
This chapter describes how to create a new project and explains most of its
features.
Note that the tutorial manager will, by default, NOT install a project, but will
check the project that has been entered by the user. It issues error
messages when the tutorial project is not found or contains errors.
N OTE : The tutorial project is meant to be created in the ”Demo” user account
or folder (that is, when a user is logged on to PowerFactory as a
”Demo” user.
Although it is possible to perform the tutorial when you are logged in as
another user, i.e. ’Tutorial User’ or ’MyUser’. You will then need to have
a licensed version of PowerFactory to do this (a license capability of
least 30 nodes is required for this).
The location where the Tutorial Manager stores the tutorial projects is called the
U SER folder. For a “DEMO” version, this will be the \D EMO folder. For a licensed
version, the \U SER folder will be the folder created for you by the Administrator.
The active \T UTORIAL U SER folder is marked by a small blue screen icon. See
Fig. C.1 for an example with the user named “Tutorial User”.
To create a new project in your U SER folder,
select the New option. The dialogue shown in Fig. C.2 will pop up. This
dialogue, as most others in this Tutorial, is shown as it should look after we
have finished editing it.
select the Project option by clicking it. The red command line should now
read new/....
Enter the name of the project as “Tutorial”. Be sure to enter this name
correctly. All names for projects, study cases or other objects have to be
entered exactly as given, although capitalisation or spaces are not
important.
The “Target Folder” field should read the folder of your current user name,
i.e. \D EMO or \T UTORIAL U SER. If it shows something else:
– press the button to select the correct target. This will open a
database manager which shows, in the left window pane, a tree
left click somewhere in the left pane to select the database tree
press the U P arrow key on the keyboard until the Database folder is
highlighted. This is the root folder.
when needed, press the + key to open the Database folder
press the D OWN key to walk down the database tree until the active
D EMO or T UTORIAL U SER folder is highlighted
click the OK button to close the database manager
The New dialogue should appear again, with the correct target.
The execution of the ComNew command causes the currently active project to
be deactivated (if one was active) and all related graphic windows to be closed.
A project needs at least one grid folder in which a power (sub)system is defined.
Therefore, a grid folder is created automatically and its edit dialogue, as depicted
in Fig. C.3, pops up.
set the name of the grid to “Part 1”. Again, this name is obligatory, but
capitals and spaces are not.
The Owner field is optionally and is normally used to enter a project, company or
any other appropriate name. In this tutorial, the Owner name is not used.
In the background, the new grid “Part 1” is created in the project, together with a
’Study Case’ folder which is used to activate the grid and to perform calculations
for it. This study case is given a default name (which is, surprisingly, “Study
Case”).
The newly created project and the study case are activated automatically and
the empty single line graphic will be displayed. The PowerFactory workspace
should now look like figure C.4.
2. The graphic toolbox which is displayed in its ’docked’ state on the right side
of the graphics window
3. The local graphics window toolbar with its buttons, which is displayed with
small ’up’ and ’down’ arrow buttons which bring more tools. These arrows
are only visible if there is not enough space to display all buttons.
4. The position of the cursor either in the graphics window or in the output
window is displayed in the message bar.
5. The name of the currently active project is shown in the message bar.
6. The Study Case List on the main toolbar which shows the name of
currently active study case and which may be used to switch to another
study case.
press OK
The name in the study case list on the main menu should now have changed to
“Case 1” too. The study case list shows the currently active study case and may
be used to select another study case or to deactivate the study case by selecting
the empty line.
The software will not reactivate the last active project at start-up. However, the
last few active projects are kept in the main File menu. Reactivating a recently
active project is a matter of left clicking one of these entries.
This Tutorial may thus be interrupted at any moment without further actions, and
may be continued at any time later on by reactivating the Tutorial project.
Chapter D
The PowerFactory program allows for creating new (parts of) power system
designs ’by hand’, that is: by creating all components in a textual database
environment and by manually connecting them, thus defining the topology. The
more convenient method however, is to use the interactive single line graphics.
The single line graphics are used to create new power system components and
to insert them into the topological network. In this way, the power system
database and its single line graphic are build together in one action.
Editing the created power system components, for example to set the voltage
level or other electrical parameters, may also be done from the single line
graphic, by double clicking the graphical symbols. This will open the
corresponding data dialogue of the power system component. The following
chapter shows all this in more detail.
In the previous chapter, a Grid folder (“Part 1”) and a Study Case have been
created. This would normally be enough to start working. Some additional
folders and settings, however, which have been created for the Tutorial will make
some things a bit easier. To install these extra’s, a special “Tutorial Manager”
command dialogue is provided. This Tutorial Manager command principally does
the following:
• it installs a type library for busbars, lines, transformers and other objects
The Tutorial Manager dialogue is, as all other dialogues, equipped with an online
help:
press the F1 key on the keyboard. The Online help for the Tutorial
manager appears.
after having read the online help: close the help dialogue by selecting the
button in the help window.
press E XECUTE
The Tutorial Manager will check the newly created project for correctness. It will
emit an error message if the Tutorial Project has not been created correctly. The
common error for this first step is to have entered different names for the tutorial,
grid or study case folders.
• The object “...” is missing in folder ... : This probably means that a
wrong name for the Grid ‘Part1’ was given. This error cannot be corrected
without introducing the database manager dialogue. Therefore, we
(mis)use the Tutorial Manager to let it install the first step without checking:
This brings you at the beginning of the first step of the Tutorial. Although all
other steps of the tutorial may be installed in the same way, the tutorial
manager is intended only to install new steps when the user has performed
the exercise correctly.
The tutorial manager has installed the additional features and has reopened the
single line graphic. A single line diagram, in grey, is now visible in the
background. This is just a pattern to show where to place the actual power
system components.
Use the balloon help to find the correct button. The cursor will show the
single busbar icon after the button has been pressed.
Use the background pattern to position the first busbar by left clicking on
the drawing surface. A busbar will be drawn (in black), and is given a
default name like B1.
N OTE : When the insert mode is activated and the symbol for e.g. the busbar
is attached to the mouse arrow, you can switch to the edit mode by
selecting the in the graphical toolbox, by pressing the E SC key
or simply by pressing the right mouse button once.
The busbar may be moved and resized to fit the background pattern:
select a busbar by left clicking it. This will mark the busbar by a thick grey
line with two small squares. If something is selected in a frozen diagram,
then a hatched crossed marking appears, without squares. If you have
double clicked the busbar accidentally, its edit dialogue will pop up. Close
that dialogue with the C ANCEL button.
move the busbar by left clicking on the solid grey line and dragging the
busbar. Releasing the mouse sets the new location.
resizing is done by left clicking one of the small black squares and dragging
it to the left or right, see Fig. D.1.
The cursor can also be used to show a balloon text when held still at the name of
the busbar or at any other text in the single line diagram. This is much more
convenient than having to zoom in and out in order to read something.
select the button in the graphic toolbox again. Place the second and
third busbar.
move and/or resize the second and third busbar to fit the background
pattern.
The drawing may be too small to accurately position the busbars. To zoom in on
the three busbars:
draw a square around the three busbars by left clicking the first corner,
holding the mouse key down, and dragging the mouse to the other corner.
The selection square will be zoomed when the mouse key is released.
The previous zoomed area can be restored by pressing the button. The
whole area is shown when the button is pressed.
To draw the first transformer, left click the upper busbar at the position
suggested by the background pattern. The transformer is now connected
to that busbar at that position.
To switch to the edit mode select the in the graphical toolbox, press
the E SC key or simply press the right mouse button once.
The single line diagram, without the background, should now look like Fig. D.2
If something else than a transformer appears or if the connection was not made
as intended, press the U NDO button ( ) to delete the created transformer.
Pressing the C ANCEL while drawing will cancel the drawing of the transformer.
left click the selected transformer, hold down the mouse key.
move the transformer one or two grid points left or right by dragging.
Normally, you cannot drag the transformer outside the range of the two busbars.
If you try this, it will be positioned at the busbars, as far to the right or left as
possible. If you try again from this position, you can drag it outside the range.
move the transformer back to its correct position. If the connections were
crippled during the first move, press the ( U NDO ) button to undo the move.
You can also draw the transformer symbol again by right clicking it, and selecting
Reconnect Graphically. This will mark the two busbars to which the transformer
is electrically connected. You can re-draw the transformer again, but you have to
connect it to the two marked busbars.
The option Reconnect Graphically is available for all symbols in the single line
diagram and it can be used to restore the diagram.
Left clicking the upper and then the lower busbar creates a straight connection.
The transformer symbol is placed in the middle. A non-straight connection would
have been made if we would
• Left click the drawing surface to define corners in the connection line.
• Left click the drawing surface again to draw the second connection line.
• and left click the second busbar to make the second connection.
You may want to practice this now, using the option Reconnect Graphically.
connect the first machine to the lower busbar by left clicking it on the
position as shown by the background pattern.
Left clicking a busbar places the single port symbol with a straight connection.
Non-straight connections may be made by first left clicking the drawing area to
place the symbol, then to draw a non-straight connection and finally left clicking
the busbar to make the connection.
To finish off the tutorial grid, we need to place the external grid:
If the external grid symbol is drawn in the downwards position, it may be flipped
upwards. If the external grid symbol is already positioned correctly, you may
want to practice the following on the machine on the middle busbar:
right-click the external grid symbol or the asynchronous machine. The
context sensitive menu appears (see Fig. D.3)
left click the Flip At Busbar option. The symbol is rotated 180 degrees
around its busbar connection.
Flipping is also possible with non-straight connections.
This concludes the creation of the power system elements and the topology.
Please check that all symbols are positioned correctly. Use ‘move’, ‘resize’
and/or ‘flip at busbar’ to correct the single line diagram.
The elements, however, have not been edited yet, and are all using default
parameters. Entering the parameters is the next step.
We don’t need the background pattern anymore. To hide it, we have to disable
the graphical layer on which it is drawn. For every group of graphic symbols,
such a layer exists. To hide the background:
The PowerFactory program offers several methods for editing the electrical
parameters of power system elements, from simple edit dialogues to flexible
spreadsheet-like environments where more than one element is visible at the
same time.
The most simple and direct method, however, is to double click the elements in
the single line graphic, which opens their edit dialogue.
To avoid unintended changes to the single line diagram, press the to freeze
the diagram.
Almost all of the power system elements are using “type” objects. A large group
of transformers, for instance, may all be of the same type. Most of the electrical
parameters are thus defined in a transformer “Type” object and each transformer
will reference that type.
Normally, this would mean that a library of user defined types has to be created
prior to defining power system elements. However, for this tutorial all needed
types have been predefined and are ready to use.
• Its type, with a button to select a type and one to edit the type
• A nominal voltage
left click the type selection button ( ) and choose the Select Project
Type option. This opens the busbar library in the database tree, and the list
of the busbars types in that library is shown. See Fig. D.5. This busbar
library has been installed by the Tutorial Manager.
select the Bar 33 kV type by left clicking the small object icon as depicted
in Fig. D.5. Holding the mouse still above the object icon will bring a
balloon help.
press OK to select the busbar type. The busbar edit dialogue will
become active again.
set the nominal voltage to 33 kV. The nominal voltage of a busbar may be
different from that of its type. The selected busbar type is designed for 33
kV, but may be used for other (lower) voltage levels.
press OK
The middle busbar is edited in the same way:
Name = “D1 11a”
nominal voltage = 11 kV
press OK
The lower busbar is at 3.3 kV:
Name = “D1 3.3a”
type = project type: Bar 3.3 kV
nominal voltage = 3.3 kV
press OK
the dialogue shows the connected busbars. These fields have been set
when the transformer was connected in the single line diagram. The
names of the busbars are shown in red.
type = project types: TR2 20;33/11;10%. Observe that the option Select
Project Type automatically opens the Types Transformers library.
open the Load Flow page by left clicking the page tab
check that the automatic tap changer is disabled and that the tap position
is set to zero.
press OK
An error message will be displayed if the HV and LV sides of the transformer are
connected wrongly. In that case:
press the F LIP C ONNECTIONS button on the Basic Data page.
press OK again
To edit the other transformer:
open its dialogue
check on the Load-Flow page that the automatic tap changer is disabled
and that the tap position is set to zero.
VDE/IEC Short-Circuit:
press OK
Name = “ASM1a”
press OK
Name = “ASM1b”
press OK
This concludes the definition of the first step of the power system definition. We
may now start a calculation.
A load flow calculation may be started from the main menu (Calculation - Load
flow...), or by pressing the Load Flow button ( ) on the main toolbar. This will
bring the load flow command dialogue to the front, as depicted in Fig. D.6
This command dialogue offers several options for the load flow calculations.
for this first tutorial load flow, check that the following options are set:
A load flow calculation is now started. If the tutorial power system was entered
correctly, the following message should appear in the output window:
If an error was found, an error message like the following could appear:
The load flow calculation may nevertheless continue! In this case (the
transformer has no type set), the load flow calculation is so intelligent as to
disconnect the transformer and to calculate a load flow for the two remaining
areas. Although this will not be the load flow that we’re after, the calculated
results are often useful for locating the problem.
To resolve the error, one should first find the element for which the error was
reported. With the interactive PowerFactory output window, this is easy: just
double click the line with the element’s name. This will automatically open the
element’s edit dialogue. Correct the error and try the load flow again.
The correct load flow message shows that the load flow command has found
one separate network in the system and recognized that the only possible power
source was the external net element.
The single line graphic shows the results of the loadflow in the result boxes, as is
depicted in Fig. D.7.
In this figure, the balloon text help which appears if the cursor is held still over a
result box is shown also. Especially when a larger part of a power system is
viewed, the result boxes may become hard to read. The balloon help may then
be used to view the results.
The result boxes are not fixed to the currently visible result parameters, but may
be freely edited. PowerFactory offers highly flexible result box definition tools
with which about any possible result box format may be defined.
In this tutorial, only the most direct way of changing a result box definition is
used. For some users, this method may be sufficient for their needs. Other users
may want to read the parts about editing result box definitions in the User’s
Manual after they finished the tutorial.
To understand the way the format of the result boxes is managed and edited, its
important to understand the nature of the PowerFactory result boxes.
Just to get some idea about what this is all about, the following example of a part
of a result form is given. This example has been taken from a large load flow
report format, which included macros, loops and many other reporting
commands. The example shows a piece from the heading of the report, where
totals are reported for the generation and motor load active and reactive power.
Important here is to understand that we may also write such report forms for the
result box of a line. Because we want to see other results after we’ve performed
a short circuit calculation than after a load flow calculation, we may create two
small report forms; one for reporting, for instance, the initial short circuit current
and apparent power, and one for reporting the active power, the reactive power
and the power factor.
It is thus clear that it must be possible to create and select a result box format for
each available calculation function. Besides that, we generally want to see other
results for branch elements than for node elements. The flexibility of the
PowerFactory result box formats even extends these basic requirements by
offering the definition of results boxes for different projects, for a single edge
element or for all edge elements at once, for a single particular element or for
element classes (lines vs. transformers, for instance), etc., etc. This flexibility
leads to a high amount of result box formats. To manage all these formats,
without losing track, the following features are offered:
• New, user defined formats are stored in an user defined folder, and will be
based on the default formats.
• The result box format of all edge or node elements may be chosen in the
main menu from a small, possibly user defined, selection.
In the following section, the result box format of the external network element will
be changed.
Selecting the option Edit format for ... will open the currently used form definition
dialogue.
select the option Edit Format for Edge Elements
Press the I NPUT M ODE button and select Predefined Variables if this is
not selected yet. Press OK .
The “Line” frame shows three drop-down boxes which show the currently
selected variables.
press the select button for the third line (which shows ”c:loading”) and
select the variable
“m:I: LOCALBUS kA Current, Magnitude”
press the OK button
Observe the change in the result box for the transformer. It now shows the
current. Try the balloon help: it has changed too.
Observe that all result boxes for the transformers have changed.
select the option Edit Format for Edge Elements again. Try setting the
number of digits to 3 or 4, or adding the unit by using the Unit check box.
If the result box becomes too small to display everything:
Un-freeze the diagram ( )
right click the result box and select the Adapt width option
It is often not necessary to add units or descriptions to the result box format
because these are also given in the single line legend, and are shown in the
balloon help. The legend in the lower left corner of the single line diagram is
automatically updated when the result box formats are changed.
Figure D.8:
The short-circuit currents and power in the network are calculated for the
simultaneous short-circuits.
Chapter E
In the first step of the tutorial, the main menu, the main toolbar and the single
line graphics were used to
• create a new project and a new grid
• define and edit a new part of a power system
• calculate loads flows and short-circuits
• look at results
The database, in which all changes were stored, has not been used directly.
Users familiar with the Windows “Explorer” may want to skip this section.
The database tree window shows a hierarchical tree with ’Folder’ objects. If such
a folder contains other objects, it has a small plus sign ( ). This sign may be left
clicked to open the folder. The database browser in the right side panel will show
the contents of the open folder.
An open folder will show its status by a small minus sign ( ). Left clicking this
sign will close the folder. In Fig. E.1, the “User” and “Tutorial” folders are open,
all other folders are closed. The “Part 1” folder is selected in the tree, and its
contents are thus shown in the browser on the right.
Left click all minus signs until the database tree only shows the basic
DATABASE folder.
left click the plus signs until the folder DATABASE\U SER\T UTORIAL\PART 1
is open. The \U SER folder is your working folder; the one with the small
blue icon. It may have another name than U SER.
Double clicking a folder may also be used to expand and collapse folders.
Left clicking a folder in the database tree will show its contents in the database
browser:
left click the folder “Part1”. The browser now shows all objects created in
the first step of the tutorial.
The objects displayed in the browser may be sorted to the column field by left
clicking the column heads:
left click the column head “Name”. The objects are sorted to name.
left click the same head. The objects are sorted the other way around.
left click the empty first column head (above the icons, left of “2” in Fig.
E.1). This sorts the objects according to their class.
If the database manager is too small:
point the mouse at a border or corner of the database window. The mouse
cursor will change into a double arrow. The border/corner may now be
dragged to resize the window.
the whole database window can be moved by left clicking its title bar and
dragging the whole window (keeping the mouse button down).
the tree and browser window are separated by a vertical splitter bar. This
bar may be dragged to enlarge the tree or browser window
The database manager may be used to edit the power system components:
in the browser, double click the small icon for a transformer ( ). This will
open the same edit dialogue as was opened from the single line diagram.
The database manager is a very versatile object which may be used for many
things, i.e.
• create any kind of object ‘manually’, i.e. projects, calculation cases, type
libraries, calculation commands, design variant folders, etc. etc.
• copy and paste parts of the database from one folder into the other
The Tutorial manager is used again to install some additional settings for this
second step of the tutorial:
press E XECUTE
The single line diagram should disappear and reappear again with a different
background pattern.
In case of any reported errors:
• if this doesn’t help: restart the Tutorial Manager and disable the Check
User Defined Project option. This will bring you to the start of step 2,
disregarding all errors.
select the button in the graphic toolbox and place the new busbar to
the right of “D1 11a”.
Because this busbar is electrically similar to “D1 11a”, we are going to copy the
data:
left-click “D1 11a”
Press and hold the “Ctrl”-key and left-click the new busbar. Both busbars
should now be selected.
right-click one of the selected busbars and select Edit Data. Alternatively,
double click the selected busbars. A database browser will open which
shows the two busbars.
copy the busbar (either right click and select Copy, press the button or
press C TLR -C.
open the edit dialogue of the new busbar (by double clicking the icon)
and check that it has the “Bar 11kV” as type and 11 kV as the nominal
voltage.
Copying and pasting data is possible for all objects, including transformers, lines,
loads, generators, etc.
To create the cable between the busbars “D1 11a” and “D1 Swab”:
draw the line according to the background pattern: left click the first busbar,
left click the drawing area to create two corners, left click the other busbar
Press OK
place the Short Terminal below the right busbar, at the end of the line
(between line end and load)
draw a straight line between busbar “D1 Swab” and the terminal
Your single line graphic should now look like Fig. E.2.
To create the branches:
left click ON THE LINE, at the position where the upper load is connected.
A ‘Branch-Off Element’ dialogue should pop up. If this doesn’t happen, but
a single load symbol is placed on the diagram, the line was missed. Press
C ANCEL to try again in that case, possibly after the area has been zoomed.
To insert the load into the line, a small terminal is inserted. The Place Feeder
dialogue is used to define the physical position of the terminal and if switches
should be inserted.
set the New Position to 4 km. The Place Feeder dialogue shows the valid
interval (0 to 5 km).
the Switch options (Right / Left Switch) should be disabled
press OK
The new load symbol is attached to the line 90 degrees turned.
The physical position of the line-branch has no relation to the graphical distance
of the branch to the top busbar, as seen in the single line diagram. Of course,
the order of the branches in the diagram equals the physical order, but the
graphical distances between them have no meaning.
insert the lower load in the same way. Set it at 4.8 km, also without
switches
It is also possible to connect a load on the left side of the line:
press the C TRL key on the keyboard
insert the third load between the two other ones while holding the C TRL
key down
The third load is now inserted 180 degrees turned. It is also possible to insert an
element normally, to right click it thereafter with cursor, and to select Flip At
Busbar. This will rotate the element 180 degrees around its busbar connection.
This concludes the topological changes for the second step of the tutorial. The
grey background pattern is not needed anymore:
press the Show Layers button ( ) on the single line toolbar. This opens
the layers edit dialogue.
the “Background” layer is in the “Visible’ pane. Left click it to select it and
press the button to move it to the “Invisible” pane. Double clicking the
“Background” layer does the same.
double click the first line route (the line between the top busbar and the first
branched off load). Make sure to click fast enough, because single clicking
the route twice will select the whole line (and three times selects the line
and all branches). In that case, left click somewhere outside the line and
try again.
The other three line routes still have their default names:
The insertion of loads into the line not only created line routes, it also inserted
terminals between the routes. The loads were connected through those
terminals. We have to edit these terminals too. It would however be a nuisance
to edit them one by one, as they all are the same. We therefore are going to use
the “multi-edit” capabilities of the database browser.
left click somewhere on a route
left click the marked route again. The whole line will be marked
right click somewhere on the marked line. Select the Edit Data option from
the menu. A database browser appears, filled with all marked elements: 4
line routes and 3 terminals
Alternatively,
left click somewhere on a route, wait a moment
double click on the route. This also selects the whole line and opens the
data browser.
The browser shows, amongst other parameters, the names and types of the
elements. For the line routes it should show that “LR Tub” has the type “Cable
11kV800A”, and the other three have the “Cable 11kV400A”, as expected. The
types of the three terminals are not set yet. This we are going to change now:
double click one of the terminal icons in the browser ( ) in the first
column. This opens the terminal edit dialogue.
select the option Copy from the context sensitive menu or use C TRL + C
left click the empty type field of one of the other terminals and select the
option Paste from the context sensitive menu or use C TRL + V. This copies
the type. See Fig. E.3.
The browser should now show all elements having their type field set.
Of course, the end-terminal is not a part of the line and should be edited by
double clicking the symbol. Set its data to
Nom. voltage = 11 kV
The end-terminal may already have the correct type and nominal voltage set.
The copy and paste method is now used to set the types of the four new loads.
In that way, the chance of leaving one load out or making a mistake is reduced.
multi select the four new loads (select the first, keep the C TRL down and
select the others)
right click the selection and choose Edit Data. A browser with the four
loads pops up. None of them should have its type field set yet.
open the dialogue of the first load (double click the icon), set its type to
project types:“General Load” and close the dialogue
Copying and pasting data from one element to another is just one of the many
data editing features of the database browser. Every parameter may be copied
and pasted, and most of them may be edited directly without having to open the
edit dialogue, as if we were using a spreadsheet. However, we will now continue
to use the single line graphics:
The new loads have to be edited now separately to set their power demand.
Name = “Tubin”
Balanced/Unbalanced = Balanced
Active Power = 4.0 MW
Power Factor = 0.9
Voltage = 1.0 p.u.
When the Active Power and/or the Power Factor are not visible, select “P,
cos(phi)” as “Input Mode” for the load. Then you can enter the power factor
“cos(phi)”. All loads are assumed to be inductive (standard).
Name = “Duslin”
Balanced/Unbalanced = Balanced
Active Power = 1.0 MW
Power Factor = 0.9
Voltage = 1.0 p.u.
Name = “Goma”
Balanced/Unbalanced = Balanced
Active Power = 1 MW
Power Factor = 0.9
Voltage = 1.0 p.u.
Name = “Reutlin”
Balanced/Unbalanced = Balanced
Active Power = 3 MW
Power Factor = 0.9
Voltage = 1.0 p.u.
This concludes the design of the second step of the tutorial power system.
Observe that the branched-off line shows small percentage values beside each
line route. Use the zoom button to enlarge the area around the new line. If you
want to move the values a bit:
These percentages show the line loading. Because the first route was set to be
a bigger cable, the loading of this route is less than the loading of the other
routes, although it carries a higher current.
Because we inserted a switch in the line just before the middle load, we may
switch off the last three loads:
Alternatively,
This will lead to errors, because there is no generator unit found in the
separated network.
Chapter F
In this third step, we will create the second part of the tutorial power system,
which is a high voltage transmission system.
– select the File and select the Tutorial project from the list of recently
active projects.
– if you can not find an entry for the tutorial, refer to the ‘Trouble
Shooting’ list at section B.5, page B-16.
make sure that the study case “Case 1” is activated. It should be visible in
the Study Case List in the main menu. If no study case is shown, select
“Case 1”.
select the Edit - project option on the main menu. This opens the project
edit dialogue
enter the name of the new grid as “Part 2” and press OK . An “Open
Grid” query will ask what to do with the new grid
select the option add this Grid/System Stage to active Study Case?
press OK
As was done in the previous steps, we have to execute the Tutorial Manager to
do some preparations for the third step:
press E XECUTE
A new, empty single line graphic will pop up, which shows a background pattern
of a small transport system. You are now ready to enter that transport system.
The single line diagram shows a pattern with four double busbars and some
loads and generators attached to them. You are going to create these elements.
Zoom in on the background pattern and create the double busbar systems:
select both busbars of the DBS by drawing a rectangle over them: left click
the drawing sheet, drag the mouse to draw the rectangle, release the
mouse to select both busbars. The DBS does not have to fit in the square:
every element that is partly in the square will be selected. In Fig. F.1, two
busbars are about to be selected by dragging a small square over them.
Be sure to also select the buscoupler before moving.
move the DBS if it does not coincide with the background pattern.
enlarge the DBS by dragging one of the right side black squares, until it fits
the background pattern. Because both busbars are selected, both are
enlarged by dragging the black square.
place the left, middle and right busbar systems as shown in the background
pattern and enlarge and/or move them to cover the background pattern
create the loads at the four busbars, according to the background pattern.
The load at the upper DBS has to be placed above the DBS: press the
C TRL key when placing it or use the “Flip at Busbar” option.
create three synchronous machines at the upper, left and right DBS. The
machine at the upper DBS has to be placed upside down again.
All the busbars of the system (there are 8) are equal: they all are designed for
110 kV. It thus is a good idea to edit them by copying data:
press the button E DIT RELEVANT OBJECTS FOR CALCULATION on the
main toolbar ( ). This will show a list with icons for all object classes
found in the active project.
double click the first busbar icon ( ) and edit the busbar to have
close the busbar dialogue. The browser now shows the type and nominal
voltage.
first left click, then right click the entered “Type”-field in the browser and
select Copy.
left click the empty “Type” field of the second busbar. Drag the mouse to
the empty Type field of the last busbar. Release the mouse key. All the
empty “Type” fields should now be selected.
right click the selected fields and select Paste. The busbar type is now
copied to all other busbars at once.
The copy and paste method is now used to enter the type for the 6 lines.
Although the lines all share the same line type, they have different lengths. To
enter the line lengths:
edit the four vertical lines from the upper DBS to the left and right DBS, by
double clicking them
– Length = 60 km
– Length = 20 km
– Name = “L23”
– Name = “L43”
You have to left click the “Load Flow” tab to get to the power demand
parameters.
paste the Type, Active Power and Power Factor to the other five loads. The
browser also has a “Load Flow” tab.
Name the loads at the top, left and right busbar systems. Double click to edit
each of them.
The loads at the middle busbar system have a different power demand. Double
click to edit each of them.
– Name = “SM 1”
– Type = project:SGEN150M/110kV
– Name = “SM 2”
– Type = project:SGEN150M/110kV
– Reference Machine = disabled
– Voltage Control = Power Factor
– Active Power = 100.0 MW
– Power Factor = 0.95
– Name = “SM 4”
– Type = project:SGEN150M/110kV
– Reference Machine = disabled
– Voltage Control = Power Factor
– Active Power = 100.0 MW
– Power Factor = 0.95
When the Active Power and/or the Power Factor are not visible, press the
button on the “Dispatch” frame to select the power representation. You have to
disable a field in order to select another one. Here please deselect “Reactive
Power” and then select the power factor “cos(phi)”.
This concludes the definition of the second grid.
perform a load flow with the option “Consider Reactive Power Limits”
enabled
The secondary controller function for the power system (frequency control) is
performed by the top generator alone. The other two generators are fixed to a
certain PQ setpoint. Due to this control settings, the upper generator is heavily
overloaded. However, we cannot simply set all generators to the “SL” mode,
because this would create three reference busbars which would all have a
voltage angle of 0.0 degrees.
The solution is to select one reference busbar, for which the voltage angle will be
0.0, and to create a frequency controller object which will regulate the power
output of the generators.
right click the selection and choose the Define... - Power Frequency
Controller option. The edit dialogue of a power frequency controller will
appear.
The frequency controller already has the “Bus Bar of Frequency Measurement”
field set. The selected generators are in the machine list.
the frequency controller dialogue appears. The generators are now added
to the machines list when they were not already in it.
open the loadflow command. At the ‘Active Power Control” page, enable
‘according to secondary control’.
perform a load flow. Observe the changes: all generators are now
producing equal real power. The power contribution is not fixed but can be
changed in the frequency controller by setting it to “Individual active power”
and editing the percentages in the list.
Chapter G
In the previous steps of the tutorial, a small distribution (“Part 1”) and a small
transmission system (“Part 2”) have been entered and tested. Load flow and
short circuit-calculations were performed for both systems. In this step, these
two networks are going to be connected to each other and calculations for the
resulting network will be performed.
To again install some additional objects and to check the tutorial project up until
this point, start the Tutorial Manager:
press E XECUTE
The graphics board disappears, but nothing further happens! The grids are not
shown automatically this time.
For the connection and analysis of the two subsystems, it should be possible to
switch from the one single line graphic to the other quickly and to perform
calculations for the combination of the two grids. Until now, only one subsystem
(“Part 1” or “Part 2”) was active at the same time. However, you may activate as
many grids, and add as many single line diagrams to the graphics board as
needed. For now, you need to activate and show the created “Part 1” and “Part
2”grids.
A grid folder is activated by adding it to an active study case. The study case
keeps a reference to the active grids. The combination of the active grids will be
the target for all calculations. The study case will automatically deactivate all its
grids when it is deactivated itself, and will reactivate them again when it is
activated, using the grid references. You thus first have to activate the “Study
Case” by selecting it in the study case list in the main menu.
open the Tutorial project in the tree. The tutorial projects should now look
like depicted in Fig. G.1. Both the tutorial project and the study case
should be active (red coloured icons).
Add the two grids to the study case by right clicking them and selecting
Add to Study Case. Their icons will also become red to signal their active
status.
The graphics board that will appear shows both single line diagrams. You can
switch between them by pressing the tabs on the bottom of the graphics board.
When a study case is deactivated, it will automatically close its graphics board.
When it is activated again, the graphics board will be shown again too.
We thus have two active grids, and two single line graphics. The background
pattern of the transmission system shows some alterations that are to be made.
First, check to see that both grids have been activated:
The load flow command now sees one single network, which has two isolated
areas. It thus reports the following message:
Switch to the other single line diagram and observe that the load flow was
calculated for both grids. You may have to enlarge (zoom) the diagram a bit to
see the results in the result boxes, or point at a result box to get a balloon help.
The distribution grid (“Part 1”) is fed by an external net element, at 33 kV. The
transmission net has a load element in the middle which represents the
distribution grid.
In order to connect the two grids, we would need:
• to dispose of the external net object in the distribution grid, and the middle
load element in the transmission grid
The first step is easy, because it concerns either the one or the other grid:
left click the external net symbol and press the delete ( ) button. Answer
“Yes” to delete the object
delete the load “Ld Swab” on the middle busbar system in the same way
The creation of the new transformer, however, is not possible. We cannot create
it because we need two busbars in a single line graphic in order to connect a
new transformer between them. The “Part 1” single line diagram doesn’t have
the 110 kV busbar system, and the “Part 2” doesn’t have the 33 kV busbar. At
least one of these busbars must be made visible in the other diagram.
Open the single line diagram “Part 1”, select the busbar “D1 Swab” and
copy it (either press the ( ) button, right click the selection and choose
copy, or press C TRL -C), as depicted in Fig. G.2.
A new graphical symbol of the “D1 Swab” busbar is now created in the other
single line diagram. However, no new busbar is created in the database.
Electrically, there is still only one “D1 Swab” busbar.
• The same method for graphical copy and paste is available for all objects.
• Copy and Paste ‘graphically’ is also possible for more than one object at
the same time. The symbols are pasted in the same configuration as when
they where copied. Care must be taken to prevent symbols to be drawn
outside the drawing plane. A change to a larger paper size will bring these
objects back into focus.
• Only one graphical symbol of each object is allowed in each single line
diagram. It is not possible to graphically copy and paste inside the same
diagram.
To check upon the new busbar symbol:
Open its dialogue. Its name should be
...\Station 1\D1_Swab.StaBar
If the inserted busbar is called other than “D1 Swab”, you created a new busbar,
in stead of creating a new symbol for the existing “D1 Swab” busbar. In that
case:
press the “undo” button ( ) to dispose of the created busbar
try again
We have now created a second graphical representation of the busbar
“D1 Swab” in the single line diagram “Step 2”.
This concludes the topological changes for this step of the tutorial:
hide the background pattern
This method may be used as described for connecting two power system grids,
but it is not so suited for creating completely new single line diagrams for existing
grids. The PowerFactory software offers special tools for that.
If you are interested in creating single line diagrams from existing net data, you
may want to read the User’s Manual, chapter “Graphics Windows”, section
“Building From Predefined Objects”.
Chapter H
Until now, only two calculation functions were used in this tutorial: the load flow
and the short circuit calculation. In this tutorial step, one of the generators in the
transmission network is going to be replaced by a more detailed model of a
power plant. This power plant has one large asynchronous motor. For the
resulting network, a motor start analysis will be performed.
press E XECUTE
The graphics board should now show the two single line graphics from the last
step of the Tutorial.
The top generator (“SM 1”) in the transmission system (Grid Part 2) is to be
replaced by a more detailed model of a power plant. That plant is already visible
in the background pattern. To delete the generator,
use the background pattern to draw a new single busbar above the double
busbar system.
draw three short terminals above this busbar. Enlarge the right one
Connect the three short terminals to the single busbar with three
transformers
connect a synchronous generator to each of the left two terminals. Use the
Flip at Busbar utility (in the right mouse menu) if they are drawn
downwards
connect an asynchronous motor and a load to the right terminal. Press the
C TRL key while connecting to place them drawn upwards.
Name = “PP110 1”
Type = “Bar 110kV”
Nom. Voltage = 110 kV
The two new generators are set to 50 MW each and do not participate in the
secondary control. This is now changed:
multi select the generators, right click them and select Add To -
Power-Frequency Controller.... Select the Power-Frequency Control that is
shown in the browser. The secondary control adds the generators to its list.
Press the Control Mode = “Individual Active Power”. Edit the “Active Power
Percentages” in the list for the existing generators to have 33% and the
added generators (“SM 2” and “SM 4”) to have 17%.
You now have a system with four generators and a big asynchronous motor,
which is to be analyzed for its motor start capability.
multi select the asynchronous motor “PP1 ASM1” and up to three busbars
or terminals.
right click the asynchronous motor and select Calculate - Motor Startup
A predefined motor startup calculation batch job is now started. This batch job
performs the following:
• it runs the simulation for 5 seconds. During the simulation, the result plots
are updated continuously.
The motor start batch job produces four graphs for the motor itself (showing
active power, current, etc) and one graph with the voltages of the selected
busbars / terminals. One of the resulting plots is displayed in Fig. H.1. It shows
the active power demand of the asynchronous machine during start up. If the
texts are too small to read, point at them and a balloon help will pop up, or use
the zoom buttons. From this graph, it is clear that the motor’s demands are
shortly more than 6 MW of active power.
After about 3.0 seconds, the motor reaches its nominal speed. The steady state
demand is about 2.4 MW and 1.1 MVar, which is also shown in the single line
diagram. This is somewhat surprising, because we did not define a mechanical
load for the machine. The 2.4 MW cannot be accounted for as losses, at least
not for a very long time. So, where’s the power used for?
At the RMS simulation” page, it shows parameters for a default mechanical load:
These two parameters belong to the motor driven machine model ElmMdm 1,
which is described in the advanced technical reference manual. This is a fairly
simple model, determined by the power equation
xmdm = mdmlp · |speed|mdmex
The power demand is, with the exponent being 2, a quadratic function of speed.
Of course, this may not be the motor driven machine model that we want.
right click the asynchronous machine and select the option Define... -
Motor Driven Machine (mdm)
An “Element selection” dialogue will pop up, which is used to create new objects.
At this moment, it only shows a list of three predefined machine driven models
and one general dynamic model (“Common Model”).
select the Vers. 10.31-Model mdm 3 (ElmMdm 3) model
press OK
This creates a new ElmMdm 3 object. The dialogue of the MDM will pop up
automatically.
edit the values on the RMS-simulation page:
alf1 = 0.95 p.u.
slipm = 0.7 p.u.
exp1 = 2.0
alf2 = 0.35 p.u.
exp2 = 3.0
xkmm = 0.15 p.u.
press OK
The motor driven machine model is now automatically combined with the
asynchronous motor in a so-called “Composite Model”. The composite model
uses a Composite Frame, which is a block diagram which hard-wires controllers
and other models. The default Composite Frame for an asynchronous machine
is depicted in Fig. H.2. Although this Frame has four slots, only use the slots for
the asynchronous machine (“asm slot”) and the one for the motor driven
machine (“mdm slot”) are used in this step.
At this point, you do not have to worry about composite models, because adding
a MDM to an asynchronous motor is a standard action.
it takes now almost a second more for the machine to reach nominal speed.
This concludes this step of the tutorial.
Chapter I
Let the Tutorial Manager prepare the Tutorial step for you again:
press E XECUTE
The active System Stage folder contains four generators, which are still lacking
any further models, such as prime mover models, primary controllers, voltage
controllers, etc. A realistic transient analysis is of course not possible with such
uncontrolled generators. In this step, you will add such controllers to the two
generators in the power plant and analyze the system for a short circuit at the
plant bus and the subsequent separation of the plant.
The default Composite Frame for a synchronous machine is depicted in Fig. I.1.
Although this Frame has six slots, we will only use the slot for the synchronous
machine (“sym slot”) and the ones for the voltage controller (“vco slot”), prime
mover unit (“pmu slot”) and primary controller (“pco slot”).
open and freeze the single line diagram for the transmission system (“Part
2”)
In a next step the generator “PP1 G1” gets a VCO, a primary mover unit, and a
primary controller:
right click generator “PP1 G1” and select
Define.. - Voltage Controller (vco)
select and edit the voltage controller according to the following data
Name = Vers. 10.31-Model vco 1
tvm = 0.01 s tst = 0.1 s
vssp = 50 p.u. efdmx = 3 p.u.
tspi = 0.5 s efdmn = -3 p.u.
ur mx = 3 p.u. kur = 1.0 p.u.
ur mn = -3 p.u. kui = 0.0 p.u.
terr = 0.1 s kir = 0.0 p.u.
vss = 0 p.u. kii = 0.0 p.u.
select and edit the prime mover model according to the following data
Name = Vers. 10.31-Model pco 2
dband = 0.0 p.u. ty = 0.2 s
bp = 2 % tyo = 0.2 s
bt = 0.0 % tyc = 0.2 s
tp = 0.1 s yt mx = 1.0 p.u.
td = 0.1 s yt mn = 0.1 p.u.
tr = 0.1 s
select and edit the primary controller according to the following data
Name = Vers. 10.31-Model pmu 6
tw = 0.1 s
• a short-circuit event
The most easy way for defining events for a simulation is to initiate the simulation
and to create events by right clicking objects. Therefore:
press E XECUTE
The new event is selected. Double click it to edit the short-circuit to have:
press the Edit button at the Object field ( ). The line dialogue appears.
repeat this for the switch on the other side. If not the switch was right
clicked, but the line, an event for the other switch will automatically pop up
when the first is closed.
and for a third time, right click the top switch, select Open and set
right click generator “PP1 G2” and select Define..-Variable Set (sim). An
“Variable Set” object will pop up, like depicted in Fig. I.2.
During the simulation, all variables defined in the variables sets are written to a
result file. That result file is used to define graphs and other kinds of virtual
instruments (VI’s).
double click the Color, Linestyle or Linewidth field to set these parameters.
press the “Insert New Graphic” button ( ) on the Graphics Board toolbar
and select Virtual Instrument Panel
The main toolbar shows two buttons for starting ( ) and stopping ( ) the
simulation.
press E XECUTE
The simulation is now started. The output window will show messages about the
events that are processed, when they are processed. The graphs will start
showing results.
All graphs can be scaled automatically in the x- respectively y-direction to the
best view by pressing the buttons and . Furthermore for a better
analysis of certain time period the x-axis can easily be zoomed in using the
’Zoom x-Axis’ button ( ).
As with the other tutorial steps, it would now be possible to replace the user
defined sixth Tutorial Study Case by the prepared one. The advantage is that
small errors, or experiments, made in the system are replaced by the correct
versions of the networks. As this concludes the tutorial, there’s no need for
correction of the Study Case for further tutorial steps, however, it could be of
help when some difficulty was encountered during the construction of the sixth
tutorial step by the user, or if experiments led to an unclear situation, the Tutorial
Manager could (re)build the complete sixth step for you.
To replace the user entered sixth tutorial step by the prepared one:
select the option File - Setup Tutorial on the main menu to open the
Tutorial Manager
DIgSILENT GmbH
Gomaringen, Germany
2004
DIgSILENT PowerFactory About DIgSILENT PowerFactory
Chapter 1
About DIgSILENT
PowerFactory
The name DIgSILENT stands for “DIgital SImuLation and Electrical NeTwork
calculation program”. DIgSILENT Version 7 was the world’s first power system
analysis software with an integrated graphical one-line interface. That interactive
one-line diagram included drawing functions, editing capabilities and all relevant
static and dynamic calculation features.
By using just a single database, containing all the required data for all equipment
within a power system (e.g. line data, generator data, protection data, harmonic
data, controller data), PowerFactory can easily execute any or all available
functions, all within the same program environment. Some of these functions are
load-flow, short-circuit calculation, harmonic analysis, protection coordination,
stability calculation and modal analysis.
• Save all projects on a regular basis by right-clicking the project folder in the
database tree and selecting the Export Data option. This will prompt you
for a filename.
Note: By exporting a project, only the information in that project and all its
subfolders will be stored. If the exported objects use information (e.g.
power system types like line or transformer types) that is saved somewhere
else, then this information will not be stored. Please ensure that the power
system types and all other referenced information is exported as well. We
recommended limiting the use of “non-project objects” to one or two
non-project libraries; these should also be exported on a regular basis.
• Please make sure that you make backup copies of all the exported data, as
well as of the PowerFactory database on a regular basis.
The program is shipped with all of the engines and algorithms that are required
for high-end use. The functionality that has been bought by a user is configured
in a matrix, where the licensed calculation functions, together with the maximum
number of busses, are listed as coordinates. In addition, there are options
available which will allow the configuration and fine-tuning of the software
according to the user’s needs, for some of the functions.
In this manner the user need only purchase those calculation functions that are
immediately required, thereby reducing costs at the outset. As requirements
dictate further functionality may be purchased. The user thus does not have to
learn a whole new interface for new functions, but merely uses new commands
within the same environment. In addition, the original network data is used and
only extra data, as may be required by the new calculation function, needs to be
added.
Key As in “Press the left mouse key”. A key is either one of the mouse keys or a
key on the keyboard. Mouse keys are sometimes called ’buttons’, as in ’the
mouse button.’
Button As in “Press the OK button”. The word “button” is used for screen
areas which perform some action when clicked using the mouse. In other
words, a ’virtual’ button. Buttons are usually described by the popup name
that you read when you hover the cursor over the button. For example,
press to open the user settings dialogue.
Buttons are also shown as seen on screen, as in the to open the user
settings dialogue.
Right/Left clicking As in “Right click the browser”. Means pointing the cursor at
the object described (the browser) and pressing the right/left mouse key.
Double Clicking As in “Double click the button”. Means pointing the cursor at
the object described and pressing the left mouse key twice within about
half a second (the time interval is as set in the Windows operating system).
Ctrl-B (key combination example) means that that the user should press the
combination of keys described. For example, “Press C TRL -B to toggle
between balanced/unbalanced case,” means that the user should press
and hold down the first keyboard key (the Control key on the keyboard in
this example) and then press the second key (B) as well.
Menu sequences When a user needs to select a command through cascaded
menu options the sequence is shown by arrows that indicate what option to
choose next, starting from the original menu button.
For example, setting the drawing format can be done by pressing the
O PTIONS button to access the options menu, then by choosing ”Graphic”
from the list offered, and finally ”Drawing Format ...” from the last list;
this series of actions is all simply described by Options →Graphic
→Drawing Format ...
” ” and ’ ’ ”These” quotes are used to indicate that the description is one that
can be found within the program- one that is not user definable, for
example, the balloon help description ”Calculate Load Flow” that you see
when you hover your cursor over the Load Flow button.
’These’ are used to indicate data that a user has entered or should enter.
’These’ quotes are also used to indicate a process or series of objects that
have no discernible name, but which need to be described. For example,
the ’drawing tools panel,’ which is found on the right hand side of the
drawing canvas.
and [1] [2] [3], etc These show a sequence of events that should be
performed. Where they are numbered they will be associated with a
graphic in which the numbers appear.
left-clicking, right-clicking, clicking, double-clicking, etc Wherever the
instruction clicking or double-clicking appears it should be taken to mean
clicking and double-clicking using the left mouse button. When the right
mouse button is to be used it will be explicitly stated.
Chapter 2
Program Overview
• perform calculations
or any other function related to these tasks, is available directly in the main
program window.
The significance of this is that the users need only familiarize themselves with
one user interface as all activities are controlled and accessed via the main
program window.
More importantly, all data is kept in a central place, and the user need not
transfer, or copy, paste and modify the data from one part of the program to
another in order to perform a new type of calculation. The PowerFactory user
interface is fully compatible with Windows operating systems. For those users
who are not experienced in using these operating systems, some simple
instructions have been added to the tutorial. These are recognized by being
prefaced by a different icon.
For example, to practice a Windows feature:
Do this
Then do that
Users familiar to the Windows operating systems may want to skip these parts of
the tutorial.
In order to better understand how to use a program it is useful to first get an idea
of what the designers had in mind when they designed the user interface. In the
next few paragraphs we will attempt to explain what this philosophy is.
As users progress and become more adept with the program, data will be
manipulated by using a data viewer called the Data Manager.
The following picture shows what PowerFactory looks like when a project is
active.
The two means of accessing the data are thus via the graphics page/s and via
the Data Manager.
The graphics page is simple to understand and data is accessed by
double-clicking on an object in the graphic. An input dialogue pops up and the
user may then edit the data for the object as can be seen in the following picture.
All of the data that is entered for such objects is specifically structured in folders
to allow the user to navigate through it. To view this data a ”Data Manager” is
used. The data manager is similar in appearance and working to a Windows
Explorer.
Firstly, it is clear that, for the study of any system, there are two distinct sets of
information that can be defined:
• data that pertains directly to the system under study, that is, electrical data
The electrical data itself can also be further divided into logical sets. When we
construct a power system we make use of standardized materials or
components - a roll of cable for example. In simple terms we can describe the
cable electrically by its impedance per km length whilst it is still on the cable
drum; in other words, generic information about this cable, is called ”Type” data.
When we cut a length of the cable for installation the type data is retained in a
modified way, as follows:
600m of cable that has a Type impedance of ’Y’ Ohms/ km will now have an
impedance of ’0.6*Y’ Ohms.
We can thus see that the length of the cable, o.6 km, can be seen as a separate
set of information. This set of information will contain all of that information
particular to the specific installation or application of the piece of cable we
are considering. Information such as the derating factor of the installed
cable, its local name, the nodes that it is connected to at either end; in other
words, all information that is non-generic, will fall into this information set.
This means that there are now three distinct sets that we need to arrange the
data into. In ’Explorer’ terms this means three folders, which, in PowerFactory,
we call:
Of course we should also house these three folders within a higher folder so that
we can arrange our data for different networks that we may be studying; this we
then call the ”Project” folder.
All of this can be visualized in the overview drawing shown in Figure Fig. 2.3,
where:
[2] If the user edits the data for the element by double clicking on it this element
data is displayed in the element dialogue
[3] If the Type is edited the type dialogue is displayed. In this case you can see
that two different lines (’Cable A’ and ’Cable B’) have their own element
data but both refer to the same type data.
[4] The graphical object data is kept in the ’Grid’ folder- although the user
should refrain from editing this as these are automatically created and
require some experience to manipulate.
[5] Similarly, the element data objects are also kept in the ’Grid’ folder and may
be viewed by using the data manager, as well as by double clicking them
from the graphic.
[6] The type data objects are kept in the ’Library’ folder.
[7] All of these folders are kept inside a project folder, here called ’Simple Power
System.’
[8] Finally, all projects and other folders are housed in the user account folder,
here called ’Raj1.’ This folder is a system folder (the ’user account’) that is
created when the user starts PowerFactory.
The ’Study Case’ folder that can be seen in the data tree is the folder that
contains the study management data- the ’tools’ and ’tool settings’ that are used
to perform the calculations and the visualization of the results. This will be dealt
with in more detail at a later stage. Initially the user does not need to concern
himselve over the study case as it is created and assigned automatically.
The so-called ’windows’ are the users interface to the program and the means to
enter or manipulate data/ graphics. DIgSILENT PowerFactory uses several
kinds of windows some of which have been shown previously. These will now be
described and explained.
[1] The main PowerFactory window is described in the title bar- ”DIgSILENT
PowerFactory 13.1”
[3] A tool bar is associated to the the main window (presently this is mostly
de-activated as there is no active project).
[4] Balloon help appears for buttons when the cursor is ’hovered’ over a button
for half a second or more.
[5] The title bar of this sub-window describes it as a ”Data Manager” and lists
the path of the object that has been selected in the data manager; here the
project entitled ’Simple Power System,’ which is located in the (user) folder
’Raj1’, has been selected.
One of the major tasks for the data manager is to provide access to the power
system components. The power system components shown in the data
manager can be ’gang-edited’ (or ’group-edited’) within the data manager itself,
where the data is presented in a tabular format, for all the selected objects.
Alternatively each object may also be individually edited by double clicking on an
object (or right click →”Edit”).
The output window, at the bottom of the screen, is always there; it cannot be
closed although it can be minimized.
The output window can be “docked”, that is: fixed to a location on the bottom of
the main window. The docked state is the default, as shown in Fig. 2.4.
When clicking the right mouse button, when the cursor is in the output window
area, the context sensitive menu of the output window appears. The output
window can then be undocked by deselecting the ”Docking View” (by clicking the
mouse onto ”Docking View” to ’untick’ it. The undocked output window is still
confined to the main window, but now as a free floating window. This sometimes
occurs ’accidentally’ when the user left clicks the tool bar for the output window
and drags the mouse (keeping the mouse button down) to somewhere outside of
the output window boundaries. To rectify this simply left click in the title bar of the
undocked window and drag it down to the bottom of the screen where it will dock
once more (if you have right clicked ’unticked’ ”Docking View” to right click and
select ”Docking View” once more.
The undocked state is not a normal situation for the output window. Because the
output messages that appear in this window are important at any stage while
using the program, the docked state is the best place because it will be visible
then and easy to locate.
The edge of the output window shows a splitter bar [a] which is used to change
the size of the output window. The ‘drag’ cursor, as shown at [a], appears
automatically when the cursor is placed on the splitter bar. The left mouse button
can be pressed when the ‘drag’ cursor is visible. This will turn the splitter bar to
grey and the output window can now be resized by holding down the mouse
button and moving the mouse up or down.
The button “Maximize Output Window” ( ) on the main toolbar will enlarge the
output window to almost full-screen. Left click the button again to switch back to
the small output window.
the button reduces the window to a smaller size on the screen; initially
there is a default size for this window but the user may re-size it as desired.
the button will close the sub-window or end the program if this button
is clicked on the main window.
Sub-windows can be re-sized as follows. Place the cursor over the lower right
corner of the window and left click and hold the button down- now drag the
window to the size you require. You will find that each corner can be sized like
this, as well as each edge.
press A LT-H to open the help menu. Use your keyboard to select the
Getting Started Tutorial. Press RETURN to open the Tutorial. The on-line
Getting Started Tutorial is exactly the same as the printed version.
close the Getting Started Tutorial help (Use the on the main bar). You
will return to the main PowerFactory program window.
left click the Help menu. Left click the option Users Manual. This opens the
on-line User’s Manual.
2.3.3 Toolbar
The toolbar shows the main PowerFactory command buttons. Buttons that
appear in grey only become active when appropriate.
All command buttons are equipped with balloon help text which pop up when the
cursor is held still at the button for a moment, and no key is pressed.
find the button for User Settings by using the balloon help. Don’t use the
mouse keys: just point at the buttons, hold still, and a balloon text will pop
up. Scan all buttons until you find the right one.
Using a command button couldn’t be easier: just click on it with the left mouse
button. Those buttons that perform a task will automatically jump back when that
task is finished. Some command buttons however will switch between two
modes, for instance the one which will reserve more place for the output window
on the workspace ( ). This button will stay down to show the activated mode.
Click the command button again to switch back to the normal view.
When PowerFactory has just been started, the toolbar shows only the general
command buttons. The ’toolbar select’ button ( ) can be clicked to select
additional command buttons.
Figure 2.8: The Two-winding Transformer and its Context sensitive Help
The Users Manual and Getting Started Tutorial are exactly the same in print and
in the on-line version. Command buttons are sometimes referenced by their
name, instead of by their image. For large buttons, this is normally the case. The
The main PowerFactory toolbar provides the user with quick access to the main
commands available in the program. This section provides a brief explanation of
the purpose of the buttons found on this toolbar. More detailed explanations for
each of the functions that the buttons command are provided in the next sections
of the manual. The main toolbar is depicted in two parts in Fig. 2.10 and Fig.
2.11.
Date/Time of Calculation Case Displays the date and time for the
calculation case. This option is useful when parameter characteristics of
specific elements (e.g. active and reactive power of loads) are set to
change according to a certain time scale. Modifying the date/time in this
dialogue adjusts those Parameters that have time based triggers/scales
accordantly.
Edit Trigger Displays a list of all triggers that are in current use by the
active study case. These triggers can be edited in order to change the
values for which one or more characteristics are defined. These values will
be modified with reference to the new trigger value. All triggers for all
relevant characteristics are automatically listed. If required, new triggers
will be created in the study case. For more information, see chapter 8.4,
page 8-165.
Calculate Load-Flow Activates the load flow command dialogue. For more
information about the specific settings, please refer to chapter 10, page
10-192.
Edit Short Circuits Edits Short Circuit events. Events are used when a
calculation requires more than one action or considers more than one
object for the calculation. Multiple fault analysis is an example of this. If, for
instance, the user multi selects two busbars (using the cursor) and then
clicks the right mouse button Calculate →Multiple Faults a Short circuit
event list will be created with these two busbars in it.
Execute DPL Scripts Displays a list of DPL scripts that are available. For
more information about DPL scripts, please refer to chapter 26, page
26-521.
Current Study Case This drop down window displays the name of the
study case that is currently activate. The user may also ’toggle’ between
study cases in the project by selecting them from this drop down list.
Select ToolBar Drops down when pressed to present sets of buttons (to
the right of it) for various calculation commands: e.g. Stability, Reliability,
Harmonics, Optimal Capacitor Placement and Data Acquisition.
Zoom In Changes the mouse mode to zoom; draw a zoom area by holding
the left mouse button down and dragging a zoom area on the graphic.
Everything in this area will be enlarged, with limits as defined by the zoom
area.
Zoom Back Steps the enlargement setting backwards to the last zoom
setting. The zoom can also be activated by holding the ALT key down
and pressing + or - to zoom in or out, respectively.
N OTE :
The user may pan in the graphic, when it is zoomed. To activate the
pan mode place the cursor in a clear space in the graphic (i.e. where
there are no objects), right click →”Change Viewpoint.” Now hold the
left mouse button down and drag the cursor to an edge of the graphic
- the graphic will pan in that direction. To exit the pan mode right click
the mouse (this is a valid escape command for most mouse modes in
PowerFactory)
Zoom-level Displays the current zoom setting. The desired zoom setting
may be typed in directly if required; type the desired zoom level, e.g. 175%
as ’175’ and press ENTER
Print Prints the currently active graphics window.
N OTE :
If the the graphic is zoomed less than 200% it will be printed full size,
as determined by the drawing format
Set Drawing Format Defines the drawing area. This ’virtual’ drawing size
is independent of the physical paper size selected.
Rebuild Under some circumstances the drawing may not be updated
correctly. Press the rebuild button to update the currently page from the
database.
Insert New Graphic Creates a new graphic and displays it in the active
graphic board (the graphic board folder is held in the study case folder and
’remembers’ which graphics have been activated for display by the user).
For more information, please Refer to section 7.3.3, page 7-115.
Insert Existing Graphic Inserts an existing graphic page (e.g. from
another project) to the current graphics board.
Freeze Mode Freezes the single line diagram or the block diagram. In the
freeze mode the diagrams cannot be graphically altered. The underlying
data objects may however still be edited. The freeze mode may be
selected when the single line or block diagram has been completed,
thereby preventing accidental changes.
Graphic Options Activates the graphic options dialogue (includes options
such as ”Snap to Grid” or the cubicle representation). Each graphic
window has its own settings which can be changed using this button. For
more information, please Refer to chapter 7.7.1, page 7-129
Show layer... Activates the layers dialogue. The single line graphic and the
Block diagram graphic windows use transparent layers of drawing sheets
Undo Undoes graphical changes and some data changes. Note that this
command is not a ’universal’ undo and that deleted elements are sent to
the ”Recycle Bin,” from where they may be restored. Parameters that have
been changed are not ’undone.’
Mark All Elements Marks (select) all objects in the drawing. This is helpful
for moving the whole drawing to another place or copying the whole
drawing into the clipboard. In block diagrams the surrounding block will not
be marked. CTRL + A will perform the same action.
Edit and Browse Data Edits the device data of all selected objects in the
drawing. If only one object is marked then the object edit dialogue will pop
up directly. When more than one object is marked, a Data Manager
window will show the list of marked objects. As with a normal Data
Manager, these objects can be double-clicked to open their edit dialogues.
Delete Element This button deletes all selected objects in the drawing.
The objects in the database which correspond with the graphical objects
will also be deleted, unless the elements are represented in more than one
graphic. In this case the use will be asked whether the data elements and/
or other graphics should also be deleted.
Cut Cuts all selected objects from the current graphic and places them into
the clipboard.
Copy Copies all marked objects from the current graphic and places them
into the clipboard.
Paste Pastes objects from the clipboard to the current/ active graphic.
Objects are inserted to the graphic at the cursor position.
Select Graphic Attributes Sets the current line style, line width, brush
style, color and font. Note that in this instance ’line’ refers to annotation
lines and not to electrical lines. The brush style is used to fill solid symbols
like squares and circles.
Titel Block On/Off Shows or hides the title block for the graphic.
Legend Block On/Off Shows or hides the legend block for the graphic (the
legend block is the key to the results box configuration).
Default voltage levels for Terminals and Busbars All nominal voltages
used in the current network are listed in this drop-down box (new voltages
are specified by placing a node and editing its dialogue; as soon as a new
voltage is entered it is added to the drop down list). It can be used to select
the nominal voltage for the next terminal or busbar that is created. This can
be used in combination with a coloring mode according to voltage levels, in
which case the creation of a new network is speeded up and the risk of
using incorrect nominal voltages is reduced at the same time.
Chapter 3
The setup will start automatically. If this does not occur then the setup may
be manually started using S ETUP. EXE, located in the CD-ROM main
directory.
The ’full’ version requires a licence key and this may either be an individual,
discrete key (or several individual keys, or a special network key that administers
a number of licences from a central location. This network key will be placed on
a networked machine that runs continuously.
N OTE : To run the prepared examples please log on as Demo user. This user
requires no password to use and you have the possibility the demo
projects with the full functionality of PowerFactory.
• ”on local port”, which means that a valid PowerFactory license key
(’hardlock’) must be connected to the USB or parallel port
3.3.1 Log on
A special account for administration of the user accounts is provided, as is a
special account for demonstration purposes; these accounts are named
”Administrator” and ”Demo”.
Since there is a user accounting system one needs to log on when starting
PowerFactory. The log-on dialogue presents various options that may be
configured for your particular system and installation.
To log on you will require a user name and password. If you are starting
PowerFactory for the first time you can create a user account by typing in your
name and a password of your own choice (this only holds true for a stand alone
installation; a multi user installation will have accounts that have been defined by
the user who has access to the Administrator account). When you see the ”Do
you really want to create a new user account” message press ”OK” to create
your own account (should you forget your password you can log on as the
Administrator user - the default password is ’Administrator’; and change the
The user account philosophy of PowerFactory basically works in the same way
as is usual for larger computer systems. The first objectives of the user account
managing system are
• to protect the ’system’ parts of the database from changes by normal users
• to protect the part of the databases which belongs to user ’A’ from being
changed by user ’B’
The effect of the user account managing system is to provide each user with the
their own ’private’ database, which is separate from other users. The user is
nevertheless able to use shared data, either from the common system database
or from other users, and may enable other users to share ’private’ data.
The user account managing system manages this whilst using only one single
database in the background, which allows for simple backup and management
of the overall database.
The main Library folder contains all standard PowerFactory types and
models. The main library folder is read only for normal users.
The System folder contains all objects that are used by internally
PowerFactory. The system folder is read only for all normal users.
Changes are only permitted when logged on as the Administrator, and
should be conducted under the guidance of DIgSILENT customer support.
The Administrator folder contains all objects needed for creating and
managing user groups and user accounts and for changing global settings.
The Demo folder contains all demo projects that can be executed by the
demo-user. The demo projects are shared projects and can thus be read
and used by normal users.
User account folders contain the project folders and all other folders in which
the normal user defines his power systems and all accompanying objects
and settings.
Note that this menu option File →Examples is only available when one is logged
onto the ”Demo” account.
These projects may also be activated and observed in the manner normally
employed by PowerFactory. To learn how this is achieved it is best to work
through the on-line tutorial that is provided. See under Help →Getting Started.
The demo user has read and write permissions for all demonstration
projects. However, calculations will only be permitted for the
demonstration networks as long as they have not been changed in a
topological sense. This means that adding or deleting lines, transformers,
loads, machines, etc., will lead to error messages like
DIgSI err - demo version: only examples and tutorial available
DIgSI err - maximum number of busbars exceeded
Licensed users may log in as the Demo user, change the demonstration projects
in any way, and still be able to start a calculation (as long as their hardlock is
available to PowerFactory). Note that any changes that are made to the
demonstration projects will be kept (that is, the projects are not ’reset’ on logout
from the Demo account). This may result in errors when the Demo account is
used without a hardlock. Licensed users may simply copy and paste projects
that they are interested in, into their own account for modification.
As long as a user does not make any topological changes, these demonstration
projects may be used to experiment with PowerFactory. Such experimentation
may include:
• Changing and executing commands such as load-flow, short circuit or
transient analysis.
• Changing power system elements such as selecting other line types,
changing generator settings, etc.
• Creating new calculation cases
• Changing the appearance of the single line graphics except for adding or
deleting power system elements.
• Creating or changing virtual instruments panels such as defining graphs or
changing bar diagrams.
• You may also make the new user part of any groups that you have created.
This allows selective sharing of projects amongst users.
The administrator can create new user groups with the ”User Manager” object
(IntUserman):
This will create a new group object (IntGroup) in the administrator account
folder. A group is deleted by deleting this group object.
How to use user accounts and user groups is described in the next section.
The user account folder is the basic environment for all users of PowerFactory.
Each user has full read and write permission in his own account folder.
A new user must first create a project in order to be able to define power system
designs and to perform calculations. A user account folder allows for an
unlimited amount of projects, each of which may contain several grid definitions
and calculation cases. Projects may also be grouped under folders created by
the user.
In this manner, should the original project be modified or updated all users who
are utilising the shared data will have the updates reflected to their own project,
thus ensuring that their base data is always correct and up to date.
All of this is achieved by using what are known as ’remote system stages’ which
are essentially variants of the original project.
For this introduction into remote variants, it is sufficient to know that a variant is
basically a temporarily image of the original grid (as the user will have seen, by
reading the section 2.2, data regarding the network is contained in the grid
folders, thus these are the folders that variants are created from). This image
exists as long as the remote variant is active. During this time, the remote variant
keeps track of all changes made to the original grid. The original grid itself is not
changed in any way. At deactivation, the remote variant destroys the image of
the original grid and keeps only the changes that have been made. At the next
activation of the remote variant, a new image of the original grid is made and all
saved changes are executed once more. This returns the remote variant back to
the state that it was in prior to de-activation. The advantage is that any changes
that have made to the original grid will now be carried over to the remote variant,
so keeping it up to date. Should the user who has made the variant have made
changes to an element that has also been changed in the original grid the
variant ’locks’ this element and will not allow changes from the original.
• the user with the original or base project must set the sharing rules
• users wishing to use this base project data add the required grids to their
own projects inside their user accounts as remote system stages
Changing the share settings (the sharing rules - that is, which groups are
allowed to have access to the folder) is a matter of double clicking the user group
names to move them from the left to the right pane, or back again, in order to
change the user groups that have access to the project.
Sharing the project with all other user groups is possible by enabling the option
Share for Everyone.
Other users may now define remote variants for the shared projects once a
project has been shared. Once such remote variants have been defined, it
becomes potentially hazardous to remove or change the share settings. This is
because the projects of the other users using the shared (base) project for
remote variants will lose vital data when the shared data is suddenly no longer
available. However, if the shared data is not used, there is no danger in changing
the share settings. To check whether a grid has remote system stages right click
the grid when it is shown on the right hand side of a data manager →Output...
→Reference List. This will provide you with a list of all objects that are
referenced to the grid, including remote system stages.
How to use shared data is best explained by example. In Fig. 3.3, an example is
shown of a database as seen by an administrator. Three user accounts are
visible, for “User 1”, “User 2” and “User 3”. User 1 and 2 have both defined a
project.
Both user 1 and user 2 have shared their projects with a group:
• User 1 has shared its “Project A” with “Group 12”
• User 2 has shared its “Project B” with “Group 13”
User 2 thus has shared his project with a group of which he himself is not a
member. This is allowed.
• The left pane shows the database as it appears to User 2. He sees his own
projects, and Project A because he is a member of Group 12.
• The middle pane shows the view for User 3. He cannot see Project A,
because he is not a member of Group 12, but he can see the shared
project B.
• The right pane shows the view for User 1. He also can see the shared
project B.
Creation of the remote system stage will be shown by example. In Fig. 3.5 the
original project ’owner’ is a user called ’Raj1.’ He has shared the ’Simple Power
System’ project.
The second user, ’Raj2’, wishes to use the data from the ’Simple Power System’
project as created by Raj1. In this case we can consider the Simple Power
System in the Raj1 folder as the ’base’ project. In order to study any data Raj2
must have an active project and study case. As can be seen in the figure such a
project, entitled ’Simple Grid Raj2 Variant’ has been created. There is an active
study case and no grid folder (the grid folder that was created when the new
project command was executed may simply be removed from the study case and
deleted- alternatively, no grid folder is created if the user presses the C ANCEL
button when PowerFactory asks for a name for the grid).
Raj2 now right clicks the grid folder in the Simple Power System project in Raj1’s
account and selects Add to Study Case. The grid is added to Raj2’s project as a
remote system stage as shown in Fig. 3.6. Raj2 may now work on the base data
and make additions and changes as required, without affecting the data in the
base project.
N OTE : Whilst system stages and remote system stages are very powerful
tools that assist the user in the creation of variants they do not ab-
solve the user from the need to think carefully as to how to create and
use the variants. Should topographical changes be made to the same
elements in both the system stage and then the original project Power-
Factory is not able to discern how these should be managed, thus the
use of system stages should be understood and carefully managed.
Please see 6 for more information on managing projects
Chapter 4
User Settings
The user settings dialogue offers options for many global features of
PowerFactory. This dialogue may be opened either by clicking the button
U SER S ETTINGS ( ) on the main tool bar, or by selecting the Options →User
Settings... menu item from the main menu.
Use Multiple Data Manager. When enabled, more than one data manager
dialogue can be opened at a time. When disabled only one data manager
may be opened at a time and pressing the ”New Data Manager” button will
pop up the minimised data manager.
Use operating system Format for Date and Time the operating system date
and time settings are used when this is checked.
Edit Filter before Execute Presents the filter edit dialogue when a filter is
selected, allowing the user to edit the filter before application. However,
this is sometimes irksome when a user is applying a filter several times.
Thus one may choose to go straight to the list of filtered objects when the
filter is applied by un-checking this option.
Decimal Symbol Selects the symbol selected to be used for the decimal point.
System Stage Profile The ability to create system stages may be limited by this
option. Existing system stages will still be visible but the right menu options
that create new revisions or system stages will be removed. This is once
again a tool that may be used to ’simplify’ PowerFactory for users not
familiar with the program by limiting the operations that they may use.
The data manager tab specifies which object types will be displayed or hidden in
the tree representation, and whether confirmation prompts will appear when
objects or data is changed in the data manager itself.
Show in Treelist. Object classes that are selected will be displayed in the
database tree.
Save data automatically. The data manager will not ask for confirmation every
time a value is changed in the data browser when this option is selected.
Sort Automatically. Specifies that objects are automatically sorted (by name)
in the data browser.
• ”Include Binary Data” saves binary data, such as results in the result
folders, to the ’DZ’ export files.
• ”Export References to Deleted Objects” will also export references to
objects which reside in the recycle bin. Normally, connections to these
objects are deleted on export.
• ”Enable export of activated projects” will permit the export of an
activated project.
Folders for Global Library. The default global type folder is the
S YSTEM\L IBRARY\T YPES folder. This default folder contains many
predefined object types, but objects within this folder may not be changed
by the user (read-only access). This option allows the user to specify a
different ’Global Type Folder’, possibly a company specific and defined
type library.
The output window settings control the way in which messages selected by the
user, in the output window are to be copied for pasting into other programs.
Whichever options are checked will determine what will be copied. The text in
the output window itself will not be influenced.
Escape sequences are special hidden codes which are used for colouring the
text, or other formatting commands. Some text processing programs are not
capable of using the PowerFactory escape codes. The Text Only option should
be set in such cases. The text in the output window itself will not be influenced
by the options chosen here.
The number of lines displayed in the output window may also be limited.
The functions settings page provides check boxes for the function modules that
are accessible from the data manager or from the object edit dialogues. The
user may choose to see only ceratin modules in order to ’unclutter’ dialogues.
This may also be used to protect data by allowing only certain calculation
functionality to be seen by certain users. This is particularly useful in a
multi-user environment or in when inexperienced users utilise PowerFactory.
4.6 Directories
Compiled DSL Models. Pre-compiled DSL models may be available for use as
external models. The DSL directory should be directed to the correct
folder/ directory in order for PowerFactory to find these models.
Log On Settings. The log on dialogue may be viewed by pressing this button.
See section 3, page 3-24 for more information.
4.7 Editor
The editor which is used to enter large pieces of text (such as DPL scripts,
objects descriptions, etc.) can be configured on this page.
Enable Virtual Space allows the cursor to move into empty areas.
Enable Auto Indent automatically indents the next line.
Enable Backspace at Start of Line will not stop the backspace at the left-most
position, but will continue at the end of the previous line.
View blanks and tabs shows these spaces.
Show Selection Margin provides a column on the left side where bookmarks
and other markings are shown.
Show line Numbers shows line numbers.
Tab Size defines the width of a single tab.
Tabs toggles between the use of standard tabs, or to insert spaces when the
tab-key is used.
Language coloring defines the syntax-highlighting used when the type of text
is not known.
Chapter 5
As has been explained previously data in PowerFactory is sorted into sets, for
example the Type and Element data set. This makes the management,
searching, sorting, editing, etc. of the data much simpler. Besides the two main
sets, data for each network object is further sorted into sets as required for
calculation functionality, such as Basic Data, Load Flow data, Short Circuit data,
and so forth.
Data that is required by the load flow function, which has already been entered
in the basic data set, is automatically used by the load flow function. Thus the
user only need enter any extra data that may be required by a calculation
function. If the user changes data in the short circuit data set, it is also changed
in the basic data set. This ensures that the user does not have to remember and
update data in various places in the database- only in one place.
To manage/ browse the data a Data Manager is provided. The data manager is
very similar in operation to a Windows explorer. This section will provide
information on how to use the data manager, and will also explain in more detail
how the data is structured. Before reading this the user should ensure that they
are acquainted with the section entitled ”Data Arrangement/ Structure” (see 2.2).
Within the database we make reference to ’Objects.’ Objects are virtual ’things’
in the database ; they may be seen almost as we see an object in real life. For
example, consider a pencil; it is made of painted wood, with a graphite stylus, it
has a length, a diameter, a weight and it may be picked up and moved from one
location to another.
In the database the pencil is an object; its length, diameter, etc., are attributes or
parameters of that object.
These objects are then arranged into sets, of which we have so far seen the
Element and Type sets. Commands are also objects; their parameters are the
options, such as ”Balanced, positive sequence,” or, ”Unbalanced, 3-phase
(ABC).”
In PowerFactory objects are initially placed into ’Class’ sets; for example a line
element belongs to the ElmLne class. Classes are very similar to the file
extensions we see in Windows. If you edit a line element you will see the class in
the title bar of the dialogue - a line called ’Cable A’ will have ”Cable A.ElmLne” in
the title bar for example. We will see later that this allows us great flexibility in
sorting, and thus searching for and managing data. We can sort data by class,
or by elements, or by types, and so on.
’Everything is an object and all objects are stored in the database tree’
This consistent, but flexible, structure of the database makes it possible to store
just about everything, without losing control. The big advantage is that dialogue
settings relating to certain projects can be stored together with those projects,
and consequently can be used over and over without having to re-enter the
settings each time.
The Data Manager provides the user with all the features required to manage
and maintain all projects and system stage data. It gives both an overview over
the complete data base as well as detailed information about the parameters of
single power system elements or other objects.
New case studies can be defined, new elements can be added, system stages
can be created, activated or deleted, parameters can be changed, copied, etc.
All of these actions can be instituted and controlled from a single data base
window.
The data manager window has the following parts (see Fig. 5.1) :
[1] The title bar, which shows the name and path of the of the folder currently
selected in the database.
[3] The database window, which shows a symbolic tree representation of the
complete database
[4] The input line. The input line may be used by more experienced users to
enter commands directly, instead of using the interactive command
buttons/dialogues. By default it is not shown.
[5] The history list, which can be used to perform calculations in batchmode.
[6] The input window and history list are opened and closed by the
command button.
[7] The database browser which shows the contents of the folder currently
selected.
The browser in this example shows some additional database manager features:
[a] Balloon text: this is not only available for the buttons in the tool bar and the
active parts of the message bar or the browser window, but also for the
data fields.
[b] Title buttons: click on any title button to sort the items in the column; first
click- items are sorted in ascending order; second click - items are sorted
in descending order.
[c] Object buttons: each object is represented by a button (here a line object is
shown). One click selects the object and a double click presents the edit
dialogue for the object.
PowerFactory makes extensive use of the right mouse button. Each object or
folder may be ‘right-clicked’ to pop up a context sensitive menu. For the same
object the menu presented will differ depending on whether the object is
selected in the left or right hand side of the data manager (this is known as a
’context sensitive’ menu). Generally, the left hand side of the data manager will
show object folders only. That is, objects that contain other objects inside them.
The right hand side of the data manager shows object folders as well as
individual objects.
Using the right mouse button to access menus is usually the most effective
means of accessing features or commands. Fig. 5.2 Illustration of a context
sensitive right mouse button menu.
The symbolic tree representation of the complete database shown in the
database window may not show all parts of the database. The user settings offer
options for displaying hidden folders, or for displaying parts that represent
complete stations. Set these options as required.
It is useful to keep in mind that object folders, such as the grid ( ) folder are
merely common folders ( ), that have been designated to contain particular
classes of objects.
There are several ways to ’walk’ up and down the database tree:
• Use the mouse: all folders that have a ”+” sign next to them may be
expanded by double clicking on the folder, or by single clicking the ”+” sign.
• Use the keyboard: the arrow keys are used to walk up and down the tree
and to open or close folders (left and right arrows). The PAGE U P and
PAGE D OWN keys jump up and down the tree in big steps and the ”-” and
”+” keys may also be used to open or close folders.
• Use the toolbar in combination with the browser window. Double click
objects (see ”C” in Fig. 5.1) in the browser to open the corresponding
object. This could result in opening a folder, in the case of a common or
case folder, or editing the object dialogue for an object. Once again, the
action resulting from your input depends on where the input has occurred
(left or right side of the data manager).
• The and buttons on the data manager tool bar can be used to
move up and down the database tree.
Generally, new objects are added to the database via the graphical user
interface, such as when a line is drawn between two nodes creating, not only the
graphical object on the graphics board, but also the corresponding element data
in the relevant grid folder. However, users may also create new objects
’manually’ in the database, from the data manager.
Certain new folders and objects may be created by right clicking on folders in the
data manager. A context sensitive menu is presented, offering a choice of
objects to be created that will ’fit’ the selected folder. For example, right clicking
a grid folder will allow the creation of a (under the New menu) System Stage,
Graphic or Folder object. The new object will be created in the folder that was
selected prior to the new object button being pressed. This folder is said to have
the ’focus’ for the commanded action. This means that some objects may not be
possible to create since the focused folder may not be suited to hold that object.
For instance: a synchronous machine should not go into a line folder. A line
folder should contain only line routes, line sections and cubicles. The cubicles in
their turn should contain only switches or protection elements.
To access the whole range of objects that may be created the button must
however be pressed (new object button). This is found the data manager toolbar
and presents the dialogue shown in Fig. 5.3.
To simplify the selection of the new objects, a filter is used to sort the object list.
This filter determines what sort of list will appear in the drop-down list of the
”Element” field. If ”Branch Net Elements” is first selected, the selection of, for
instance, a 2-winding transformer is accomplished by then scrolling down the
element list.
The Element field is a normal edit field. It is therefore possible to type the identity
name of the new element, like “ElmTr3” for a three-winding transformer, or
”TypLne” for a line type directly into the field.
The possible list of new objects is therefore context sensitive and depends on
the type or class of the originally selected folder.
After the selection for a new object has been confirmed, the ”Element Selection”
dialogue will close, the new object will be inserted into the database and the edit
dialogue for the new object will pop up. If this dialogue is closed by pressing the
C ANCEL button, the whole action of inserting the new object will be cancelled:
the newly created object will be deleted from the active folder. The dialogue for
the new object may now be edited and the OK button pressed to save the
object to the database.
• A Grid ( ) folder should contain a logical part of the grid. This could be
the power system of a plant or a village, a part of a high voltage transport
system, etc.
• A System Stage ( ) folder holds changes from a certain base case. All
these changes are carried out when the system stage is activated and
reverted again when it is deactivated.
Descriptions may also be added. An existing folder may be edited by using the
”Edit” button ( ) on the toolbar or by using the right mouse button.
The use of Read-only folders is clear: they protect the data. In addition, folders
containing data that is not normally accessed may be hidden. Selecting the kind
of folders that you want to be hidden is done in the user settings dialogue (see
“User Settings”, section 4, page 4-37).
A folder or object which is selected may be deleted by pressing the D ELETE key
on the keyboard, or by clicking the button on the toolbar of the database
manager.
Because most power system objects that are stored in the database are
interconnected through a network topology or through type-element
relationships, deleting objects often causes anomalies in the database
consistency. Of course, PowerFactory knows at any moment which objects are
used by which others and could prevent the user from creating an inconsistency
by refusing to delete an object that is used by others. This, however, would
create a very stubborn program.
PowerFactory solves this problem by using a recycle bin folder. All deleted
objects are in fact moved to the recycle bin. All references to the deleted objects
will therefore stay valid (for example, the reference between element and type),
but will show that the referenced object has been ’deleted’
• by showing the path to the recycle bin and the name of the ’recycle object’
in stead of the original location and name.
An object that has been deleted by mistake can be restored to the original
location by selecting the restore menu option on the recycle object’s context
sensitive menu. All references to the object will also be restored.
Cutting a selection will colour the item-icons gray. The cut objects will
remain in their current folder until they are pasted. A cut-and-paste is
exactly the same as moving the object, using the context sensitive menu.
All references to objects that are being moved will be updated.
Cancelling a cut-and-paste operation is performed by pressing the C TRL -C
key after the C TRL -X key has been pressed.
3. By using the context sensitive menu. This menu offers a ‘Cut’, a ‘Copy’ and
a ‘Move’ item. The move item will pop up a small second database tree in
which the target folder can be selected. When the selected objects have
been Cut or Copied, the context sensitive menu will then show a ‘Paste’,
‘Paste Shortcut’ and a ‘Paste Data’ item.
4. By dragging selected objects to another folder. The ”Drag & Drop” option
must be enabled first by double clicking the ”Drag & Drop: off” message on
the data manager’s message bar. When the drag & drop option is on, it is
possible to copy or move single objects by selecting them and dragging
them to another folder. Dragging is done by holding down the left mouse
button after an object has been selected and keeping it down while moving
the cursor to the target/destination folder, either in the database tree or in
the database browser window.
N OTE : When dragging and dropping a COPY of the object will be made (in-
stead of moving it) if the C TRL key is held down when releasing the
mouse button at the destination folder
When searching for objects the first step should be to use the title buttons at the
top of columns; most objects can quickly be found by sorting according to one of
the criteria defined by the title buttons. The ”Edit Relevant Objects for
Calculation” ( )is also useful as it lists all objects that are considered by the
calculation, by class, i.e. all loads element data, or all 2 winding transformer
data, etc.
When using the title buttons to search, the search may be sorted by criteria, as
follows. When looking for, say, a terminal whose name begins with ’B’ and is a
nominal voltage of 11kV the sort criteria could be expressed as; sort by voltage,
then by name. To accomplish this sorting in the data manager start with the last
criteria. For example, I have a project with a number of grids (areas) and
terminals. I wish to find the terminal with the greatest overvoltage, in p.u., at the
11kV level, in a particular area.
After performing a load flow I open an object filter (”Edit Relevant Objects for
Calculation” button) and display all the terminals ( ). The sort criteria is; sort
by Grid, then by nominal voltage, then by calculated voltage level (as calculated
by a load flow).
The sort must be performed in reverse; first I go to the ”Flexible Data” tab to see
calculated voltages and press the ”u, Magnitude p.u.” title button, which sorts all
terminals from highest to lowest voltage. Next I go to the ”Basic Data” tab and
press the ”Nom.L-L Volt kV,” which sorts the terminals by nominal voltage level.
Lastly I press the ”Grid” title button.
Another means of searching is to display the objects through which you would
like to search and select one of the objects - note here that selecting the object
means that you click on the object button on the left hand side, as shown in Fig.
5.4. Place the cursor in position [1] and not in positions [2] or [3]. Now type in
the name of the object (the search is case sensitive) that you wish to find and
the selection will jump to objects that match your typing.
More particular search tasks may be performed using the ”Find ...” button ( ).
Pressing this button activates the ”General Filter” (the user is first offered the
option of using predefined filters or creating a new filter. The filter is used to
define search criteria and is normally used to find a group of objects, rather than
an individual object. It can also be used to define criteria such as, ’find all lines
longer than 700m.’ Even more usefully, the filter is stored and can then be used
to colour the search objects in the single line graphic.
We will use this example to demonstrate the use of the filter. A new filter
dialogue is called for preparation. This filter will be found in the
P ROJECT\C HANGED S ETTINGS\F ILTERS folder of the project.
The filter dialogue has the following fields (see Fig. 5.5):
[2] A drop down list provides a number classes in which the search will take
place.
[3] If the class that you wish to search in is not listed, or if you know the class
description (e.g. ElmLne for lines) this can be entered directly here.
Wildcards may be used for the search. For example, to search for all lines
enter ’*.ElmLne’
To search for an objects that have the name ’Lahney’ enter ’Lahney.*’
Searches can be performed across more than one specific class, for
example, to search for line and load objects that start with ’D’ enter
’D*.ElmLne, D*.ElmLod’ or if you want all elements that begin with D enter
’D*.Elm*’
[4] Select the folder to be searched.
[5] Check the search options as required.
”Include Subfolders” will search the root folder specified as as well as the
subfolders in the root folder.
”Relevant Objects for Calculation” will include only those objects
considered by the active study case (if no study case is active the search is
meaningless and no search results will be returned).
”Area Interconnecting Branches Only” will search through only the branch
elements that interconnect areas (note that ’grids’ are analogous to areas).
N OTE :
OK The OK button will close the search dialogue, but save the filter
object to the C HANGED S ETTINGS\F ILTERS folder. This makes it
available for further use.
CANCEL The CANCEL button will close the dialogue and delete the
filter object. This button can be used when a search criterion
(filter will only be used once.
APPLY The APPLY button starts the actual search. It will scan the
relevant folders and will build a list of all objects that match the
search criteria.
Once the search is complete a list of results is returned in the form of a new data
browser widow. From this browser, the returned objects can be marked (in the
graphic), changed, deleted, copied, moved, etc.
In our case we are looking for lines longer than 700m, thus we can use ’dline >
0.7’ as shown in Fig. 5.7. The ”Relations”,”Std. Funct.”,”Log.Operat.” and
”Examples” buttons will provide lists of the functions that may be utilized (these
may of course be typed in directly as well).
”Search Literally” is used to search for specific user defined strings ’inside’
parameter fields. For example, perhaps the comment ’damaged but servicible’
has been entered for some elements in the network. This may be searched for
as shown in Fig. 5.8 and all parameter fields will be searched for this string.
The ’Graphic’ tab is used when the filter is applied by the Colour Representation
tool (choose the ”Userdefined Filter” option in the ”Coloring” field of the colour
representation dialogue and select the required filter).
N OTE : When a filter has been created it is saved to the P ROJECT\C HANGED
S ETTINGS\F ILTERS folder in the project and is available for use directly
from the right mouse menu. If a search is to be performed in a partic-
ular area simply right click the area (grid) folder →Find →Local Filters
→Lines longer than 700m (for example). Remember to press the ”Ap-
ply” button to perform the search.
If you uncheck the ”Show Filter Settings before Application” box un-
der ”User Settings”→”General” then the filter will execute the search
as soon as it is selected from the menu. This is useful when you have
already defined several filters for regular use.
Handling of Power Factory 5-56
DIgSILENT PowerFactory The Database and the Data Manager
The easiest way to edit power system components is from the single line graphic
windows. By double clicking a graphical component symbol, the edit dialogue of
that component will appear, allowing editing of not only the element data but
other, directly related, objects, such as type data, or internal objects such as
switches.
The database manager offers several ways to edit the power system
components, or any other object stored in the database, but not seen in the
single line graphic.
The basic method is to double click the object icons in the database browser.
This will open the same edit dialogue window as used with the single line
graphics. See Fig. 5.9.
An open edit dialogue will disable the data manager window from which it was
opened. The edit dialogue has to be closed first in order to open another edit
dialogue.
However, it is possible to activate more than one data manager (by pressing the
button on the main toolbar) and to open an edit dialogue from each of these
data managers. This can be useful for comparing objects and parameters.
Using the full size edit dialogues has one major drawback: it separates the edited
object from the rest of the database, making it impossible to copy data from one
object to the other, or to look at other object parameter values while editing.
PowerFactory brings the big picture back in sight by offering full scale editing
capabilities in the data managers browser window itself. The browser window in
fact acts like a spreadsheet, where the user can edit and browse the data at the
same time. The browser window has two modes in which objects can be edited,
• Object mode
• Detail Mode
The title buttons are used to sort the entries in the browser (see [2], [3] and [4] in
Fig. 5.10). The visible data fields can be double clicked to edit their contents [5],
or the F2 button can be pressed. The object will show a triangle in its icon when
it is being edited [1].
After the data field has been changed, move to the other fields of the same
object using the arrow-keys or by clicking on these data fields, and alter them
too.
The new contents of a data field are confirmed by pressing the RETURN key, or
by moving to another field within the same object. The triangle in the icon will
change to a small star to show that the object has been altered. The object itself
however has not been updated. Updating the changes is done by pressing
In ’detail’ mode, the browser shows all data fields [2] for the selected calculation
function data set, which can be selected by clicking on a page tab [4]. If a page
tab is out of reach, then the page tab scrollers [5] will bring it within the browser
window again.
The list of objects may be sorted by any column by pressing the title field button.
The widths of the data fields can be adjusted by pointing the mouse between two
title fields [2] and dragging the field border by holding a mouse button down.
As with the browser in ’object’ mode, the data fields can be edited by double
clicking them. In the example the active power settings are being edited [3], but
from the star in the object icon it is clear that another field of the same object has
been edited too, but not confirmed, because this star would otherwise be a
triangle.
It is possible to change a parameter field for more than one object simultaneous.
This is, for instance, useful to raise a certain limit for a range of objects, in order
to get a better load-flow result i.e. by alleviating line overloads. An example is
shown in Fig. 5.12 where the nominal current for a range of line types is
changed at once.
• Set all the selected parameter fields to a new fixed (“absolute”) value.
It is not possible to simultaneously alter parameter fields from more than one
column, i.e. to change nominal currents and nominal frequencies simultaneous,
even if they would happen to take the same value or would have to be raised
with the same percentage.
2. press C TRL -C to copy or use the button on the data manager toolbox.
3. press C TRL -V to paste or use the button on the data manager toolbox.
The objects will be copies with data and all. Their names will automatically
be altered to unique names [2].
1. Select them by clicking them once (see [a] in Fig. 5.14). Select more data
fields by holding down the C TRL key [b].
3. Select one or more target objects data fields. If more than one field was
copied, make sure that the target field is the same as the first copied data
field [c].
Most of the data manager functionality is available through the context sensitive
menus (right mouse button).
The following items can also be found in the context sensitive menus:
Show Reference List. Produces the list of objects that have links, or references
(plus the location of the linked object), to the selected object. The list is
printed to the output window. In this manner for example, a list of elements
that all use the same type can be produced. The listed object names can
be double- or right-clicked in the output window to open their edit dialogue.
Select All. Selects all objects in the database browser.
Mark in Graphic. Marks the highlighted object(s) in the single line graphic. This
feature can be used to identify an object.
Show →Station. Opens the station graphic of the station to which the selected
object belongs. If the object belongs to more than one station, as might be
in the case of lines or other objects, a list of possible stations is shown first.
Goto Busbar. Opens the folder in the database browser that holds the busbar
to which the currently selected element is connected. If the element is
Goto Connected Element. Opens the folder in the database browser that holds
the element that is connected to the currently selected element. In the
case of more than one connected element, which is normally the case for
busbars, a list of connected elements is shown first.
• Relevant objects for calculations are tagged with a sign (this will only be
shown following a calculation). Editing one of these objects will invalidate
the calculation results.
The data browser (this will be seen in the data manager when the ”Detail Mode”
has been engaged) has page tabs for all calculation functions. These tabs are
used to look at or edit object parameters for a particular calculation function and
have a fixed format.
The flexible data tab, normally used to display calculation results, also allows the
user to define a custom set of data to be observed.
The format for the calculation results is determined by the calculation function;
the variables displayed following a load flow calculation, for terminals, will be
Line-to-Line voltage in kV, per unit voltage and Voltage angle in degrees. A short
circuit calculation for terminals will use another format and variables such as
Initial Short Circuit Current, Initial Short Circuit Power, Peak Current, etc. are
displayed. Fig. 5.15 shows an example of the flexible data page tab.
The user may customise this list by either pressing the button on the
database manager toolbar or by right-clicking the flexible page tab. This pops up
the ”Flexible Page Selector” dialogue- note that the tab that is displayed in the
flexible page selector is the same as the calculation that has just been
performed- in this case the load flow tab. The ”Variables” may now be edited for
selection by pressing the ”Edit” button as shown in Fig. 5.16. The selection of
these variables is discussed in the next section.
Although only a few variables are displayed on the single line diagram, or in the
Flexible Data tab PowerFactory uses a very large set of variables and all of
these are available to the user for display, or for use within analysis routines.
The ”Variable Set” object (*.IntMon) is used to manage these variables and
display or monitor a particular set or the complete variable set that is available.
The variable set object is accessed through various means, such as the ”Flexible
Page Selector” or the ”Form” object that is presented when editing results on the
single line diagram.
[1] This picture illustrates the variable set for the load object called ’Bulk Load,’
which is found in the ’Grid’ folder of the active project [1]. Since a load flow
calculation has just been performed the load flow tab has been selected [5].
Note that if the variable set dialogue has been accessed when editing a
results box or flexible page selector the variables that are chosen are
displayed for the entire class of variable selected in the ”object” field. In
other words, in this case the ’Bulk Load’ is the selected object so the
[2] If no object has been selected the ”Class Name” field becomes active. This
is normally used for more advanced studies and need not be explained
further here.
[3] When performing simulation studies over time it is useful to sometimes have
the output values of the selected variables printed to the output window as
the simulation is running. This is achieved by checking this box.
[4] As mentioned previously, there are a large number of variables that may be
observed in PowerFactory. To be able to find and select these they are
sorted into sets. A series of filters allows the user to sort through the sets.
[5] The load flow tab has been automatically selected as a prior load flow
calculation was performed.
[6] All of the variables that are available for display are listed here (as sorted by
the filter).
[7] The selected variables are shown here. Variables are placed here by
highlighting (selecting) them on the ”Available Variables” side and then
[8] If this box is checked then all of the selected variables are shown in the
”Selected Variables” area. If it is not checked then the filter will also apply
to the ”Selected Variables” area and only those selected variables in the
filtered set will be shown.
• Currents, Voltages and Powers; almost self explanatory- these are the
outputs as calculated by a calculation function. The variable is preceded by
”m:” (representing ’monitored’ or ’measured’) as in ”m:P:bus1” for the
active power drawn by the load.
• Bus Results; variables for the bus/s that the element is connected to
(usually preceded by ”n:”). A branch element (having only one connection
to a bus) will obviously only have results for ”Bus1.” An edge element (two
connections, as in a line for example) will have ”Bus1” or ”Bus2.” This
means that you can access the results for objects that are connected to the
object that you are compiling the list for. An example of this variable is the
open end voltage at a line end. See following for a more complete
explanation of usage. Also see 5.10.1 for more on Bus1, Bus2, etc.
• Signals; variables that are used between models (inputs and outputs) and
are preceded by ”s:”. These should be used when creating a controller or
in a DPL script. These variables are accessible whilst an iteration is being
calculated, whereas the other variables sets are calculated following an
iteration.
• Type Parameter; type variables that are linked to the element object under
consideration; for example, the current rating of a line type that a line
element is using.
• Reference Parameter; these are are variables from objects that are linked
or connected to the object under consideration (preceded by ”r:”). For
example, a line element may be part of a line coupling and the reference
parameter will allow us to display the name of the coupling element. The
use of reference parameters is explained following.
goes to the manual input page for variables- for advanced use.
P RINT VALUES prints the current values for all the selected variables to
the output window.
VARIABLE L IST prints a list of all available variables to the output window.
VARIABLE L IST (PAGE ) prints a list of available variables for the current
tab (e.g. Basic Data) to the output window.
For general use it is sufficient to simply select the variables required and transfer
them to the selected variables column. To find a particular variable requires
some knowledge of where the variables are stored in the object under
consideration. As an example we will display the
type name
These variables may need to be displayed on the single line diagram so we will
start by creating a textbox and editing its format (this process is described in
@@@ CROSS REF REQUIRED). These variables may also be displayed in the
flexible data tab - the process is the same.
The name of the transformer type is entered in the type data so we select the
type parameters [1] in the filter- the name is also entered on the basic data tab
so we should select this tab [2], and the type name parameter is ”loc name,”
which is now selected [3]. Notice that the focus object for the variable set object
is a transformer [4]. This has been automatically selected since we created a
textbox for the transformer by right clicking it.
The tap setting will be found in the element data and the parameter is located on
the load flow tab (this information is gained as the user becomes more familiar
with PowerFactory and recalls where the data was entered; such recollection
directs the user to the correct variable sub-set). The variables seen in the
selected Variables column should now be:
t:loc_name
e:nntap
To now be able to see the variables for the HV bus we use the reference
parameters. The reference parameters work like a ’refer to’ command. In Fig.
5.19 this is illustrated schematically. We have started by creating a variable set
for the object ’Supply TX1’ which is an element object. Using the reference
parameter we will refer to the object that the HV side of the transformer is
connected to [1], which is a cubicle. Since the nominal and calculated voltages
of the node are located in the node object itself we will next need to refer to this
node object [2].
In a step by step fashion the process will now be shown. We first need to refer to
or ’jump to’ the cubicle. If we picture the input dialogue for the transformer
element we recall that the connections for the HV and LV sides are listed on the
basic data tab, so this is where we will logically find the ’link’ to the connected
object (the cubicle). In Fig. 5.20 we can see that this selection has been made
[1]. We also notice that the object that is presently the focus is the transformer
element [2]. To affect the jump to the cubicle we choose the reference parameter
set [3] and then select the object that we want to jump to, the cubicle connected
At this point we could also add the calculated voltage for the node. This will be
found under ”Currents, Voltages and Powers” on the load flow tab.
Figure 5.21: Jumping to the next object using the reference parameter
After you have clicked OK until you are back at the original variable set object
you will see that these referenced variables have been added as:
r:bushv:r:cBusBar:e:uknom
r:bushv:r:cBusBar:m:U
which can be read as →’jump to the HV bus’ →’jump to the connected node’
→’display the selected variables.’
Once the user is more familiar with this nomenclature this jump may be typed in
directly to the variable set object. The understanding of this is also useful for
writing DPL scripts.
Note: in this particular example we have used a ’long’ method to show to the
node variables for illustration purposes. Typically, however, a user wishes to
display calculated variables such as the voltage at the end of a line where the
breaker at that end is open. In this case PowerFactory has a special ’shortcut’
set - the ”Bus Results.”
These bus results can only be seen in the calculation function tabs and they are
drawn from an internal node that is not displayed on the single line graphic. An
illustration of this node and its relationship to the cubicle is shown in Fig. 5.24.
An additional example on the use of reference parameters is the display of
conductor types (*.TypCon) for a line element (*.ElmLne) that uses a tower type
(*.TypTow). Once the variable set manager for the line is displayed, the basic
data tab is selected, then the reference parameter set, and the referenced
variables, of which the conductor types are one, is displayed. Once again this is
a convenient shortcut that has been made for this combination of element and
type.
Should the tower be close to another tower, and thus be coupled by a coupling
element however, the coupling element object must first be referenced. The
procedure would be:
select the reference parameter set on the basic data tab (assuming that
you have started at the variable set object for the line element)
double click the ”c ptow Line Couplings” variable (or select it and then
press the arrow button to transfer the variable to the ”Selected Variables”
column)
select the ”loc name Name” variable and transfer it to the ”Selected
Variables” column
press ”OK” until you return to the graphic or flexible data tab
N OTE : In the above examples we have used the element parameter set to
access variables of the element class (*.Elm* - what we ’traditionally’
know as elements in PowerFactory). However, it should be borne in
mind that ”Element Parameter” actually refers to the parameters of the
focus object.
For example, if we have referenced the variable set from a line ele-
ment →(then to) line coupling →tower type →conductor type the focus
object is already a type and ”Element Parameters” refers to the param-
eters of the type object itself.
To maintain standard nomenclature the objects at the ends of a line element are
The ends of an edge element are named ”bus1” or ”bus2” and ”bushv” or ”buslv”
respectively (a three winding transformer will also have ”busmv”). These ends
are matched to the ”i” and ”j” sides so that i →bus1 or bushv and j →bus2 or
buslv. Thus, when choosing variables from the flexible page manager the user
should specify which side of the edge element the variables are to be taken
from. Note that ”bus1, bus2, bushv, buslv” are not references to the
connected node, they are in fact the ends of the edge element.
When a variable is selected for display from the single line graphic the user will
notice a further classification, that of ” LOCALBUS.” This classification merely
indicates the end of the edge element and describes internally which side of the
edge element the result box should access its variables from. That is the ’bus’
local to that end.
A selected part of the database can be written to a “DZ” Import/Export file with
the button E XPORT DATA ... ( ). This will bring a ’File Save’ dialogue where
a filename must be specified.
The exported data file can be imported into the database again in any desired
folder by pressing the I MPORT DATA .. ( ) button. This will bring a ’File
Open’ dialogue where the “DZ” data-file can be selected.
The “DZ”-file will be analyzed and error messages will be displayed when the file
is not a genuine PowerFactory data file, or if it is corrupted. If the file format has
been found to be correct, a dialogue will appear which shows the data and
version of the file. The default target folder is shown also, which is the original
folder of the saved data. If this is not desired, another target folder can be
selected by pressing the D ROP D OWN button. This button will bring a small
version of the database tree. A new target folder can be selected from this tree.
5.11.1 Notes
By exporting a folder from the database, only the information in that folder and
all its subfolders will be stored. If the exported objects use information (e.g.
power system types like line or transformer types) that is saved somewhere else,
then that information will not be stored. Make sure that the used power system
types and all other referenced information is exported too.
When a file is imported which contains objects which use data outside the
import-file, then a search is started for that data.
For instance, assume a project is exported. One of the line-models uses a type
from a library outside the project. When exporting, the path and name of this
type is written in the export-file, but the type itself is not exported, as is does not
reside in the exported project.
At importing, the stored path and name of the ‘external’ type is used to find the
type again and to restore the link. However, if the ‘external’ type is not found,
then it will be created, using the stored path and name. Of course, the created
object has default data, as the original data was not exported. Additionally, an
error message is written to the output window.
Suppose that you are working with a large library, which is stored in a special
user-account to make it read-only. The library is made accessible by sharing it to
all users.
When you export your projects, then the objects from the external library are not
exported. However, a colleague which has access to the same library may still
import your projects without problems. The external objects used in your
projects will be found in the same location, and the links to these objects will be
correctly restored.
The PowerFactory data browser in the data manager’s window looks and acts
like a spreadsheet program as far as creating and editing power system objects
is concerned. To enable and simplify the use of power system element data
which is stored in spreadsheet programs such as the Microsoft Excel or the
Lotus 123 programs, the data browser offers ’Spreadsheet Format’ import and
export facilities.
• The first header must be the class name of the listed objects.
Fig. 5.31 shows an example of valid spreadsheet data of some line types and
some 2 winding transformer types.
• Right click the folder browser in the database manager to which the objects
are to be imported. Select ‘Spread Sheet Format > Paste DOLE from
Clipboard’. See Fig. 5.33 for example.
The result of the DOLE import depend on whether or not objects of the imported
class and with the imported names already exist or not in the database folder. In
the example of Fig. 5.34, non of the imported objects existed in the database an
all where created new therefore. The example shows the database in detail
mode.
New objects are created in the PowerFactory database folder only when no
object of the imported class and with the imported name is found in that
folder. If such an object is found then its data will be overwritten by the
imported data
Because new objects are only created when they do not exist already, and only
the imported parameters are overwritten when the object did exists already, the
import is always a save action.
Remarks
Object Names Object names may not contain any of the characters
* ? = " , \ ~ |
Default Data When an imported object is created newly, the imported data is
used to overwrite the corresponding default data. All parameters that are
not imported will keep their default value.
Units The spreadsheet values are imported without units. No conversion from
MW to kW, for example, will be possible. All spreadsheet values therefore
have to be in the same units as used by PowerFactory.
Converting files is done with the ComCv command dialogue, which can be
opened by selecting the Convert (version 10.3) item from the main
PowerFactory menu. See Fig. 5.35.
The ComCv command dialogue has a list of file formats to convert from:
The target project has to be set at the option Save Converted Data In. All
created DIgSILENT PowerFactory objects will be stored in that project. To
import a complete 10.3 project normally means to convert databases, single
lines, relay, etc. The ComCv command has to be opened more than once in
such a case for each conversion. Changing the target project in between these
successive conversions would break up the imported project into several useless
project parts. The target project should therefore be selected only once.
The conversion itself is performed by selecting a file format and pressing the
A DD F ILES button. This will bring a “File Open” dialogue with which a file can
be selected. The selected file will appear in the File Names list. More than one
file can be selected by pressing the A DD F ILES again. It is not possible to add
files of more than one format: selecting another file format will clear the file list.
All files in the list will be interpreted according to the selected file format,
independent of the actual filename extension.
When a file selection has been given, and the target folder has been specified,
the E XECUTE button can be pressed. DIgSILENT PowerFactory will start the
conversion and will report all errors to the output window.
The calculation data files (*.pbm) may be dependent on one ore more other files
of the first four listed formats. These files must therefore be converted first. The
file formats listed above (1..7) are listed in the recommended order of
conversion.
See section 5.11, page 5-74 for more information about exporting parts of the
PowerFactory database.
When converting the *.pbm files, the original name and the target folder of the
previously converted system database file and relay database file has to be
given in order to convert the inter-object dependencies correctly. If the files are
converted in the recommended order, these original names and target folders
will be selected automatically.
Besides dependent of the first four formats, calculation data files (*.pbm) may be
dependent on each other. If this is the case, then all *.pbm files that belong
together must be converted as a whole by adding them all to the file selection
box. The *.pbm files are converted in the order in which they appear in this box.
The contents of the input window can be saved to file, and commands can be
read back into the window for execution.
PowerFactory also has special command objects which carry one single
command line and which are normally used to execute commands. In this way,
complex commands can be saved in the same folder as the power system for
which they were configured.
Some commands that are available are typically meant for command line use or
for batch commands. These commands are rarely used in another context and
are therefore listed here as “command line commands”, although they do not
principally differ from any other command.
Cd Command
Moves around in the database tree by opening another folder at a relative
position from the currently open folder.
Example:
cd ..\gridB\Load1
Cl Command
Stops the redirection of the output window to either a file or to a printer. All
following messages will again be shown only in the output window.
Cls Command
Clears the output or input window.
Dir Command
Displays the contents of a folder.
Example:
Ed Command
Pops up the dialogue of a default command, i.e. “ldf”, “shc”, etc.
Example:
ed ldf
Exit Command
Exits the program immediately without further confirmation.
Man Command
Queries or sets a variable.
Example:
Op Command
Redirects output to either a file or a printer.
Example:
op/out f=train3.out
Pause Command
Interrupts the execution of the command pipe until a next pause command is
executed.
Pr Command
Prints either the contents of the output window or the currently active graphics
window.
Rd Command
Opens and reads a file.
Stop Command
Stops the running calculation.
Sys Command
Executes a dos command.
Wr Command
Writes to a file.
The message bar shows the current status and settings of the database
manager. Some of the messages are in fact buttons which may be clicked to
change the settings.
The message bar contains the following messages.
• “Pause: on/off” (only in case of an opened input window) shows the status
of the message queue in the input window. With pause on, the command
interpreter is waiting which makes it possible to create a command queue.
The message is a button: double clicking it will toggle the setting.
• “Drag & Drop: on/off” shows the current drag & drop mode. Double clicking
this message will toggle the setting.
The PowerFactory database contains simple objects and folder objects. Simple
objects are end-points in the database tree: they do not contain more
sub-objects. Examples are many power system elements and types: switches,
busbars, machines, loads. However, transmission lines, for example, are folder
objects, because they may contain sections, routes and feeders.
The following sections describe the most important folder objects and their use.
The common folder object is the main building block of the database tree. It is
used to store a multitude of other (folder)objects and has therefore much in
common with a “subdirectory” on a normal computer hard disk. However, the
PowerFactory database tree does not show a hard disk file structure, but the
more abstract database structure.
The common folder has an user-defined name and an user-defined owner. The
owner field may be used for names of power system engineers, project names,
department names, or any other useful information.
The common folder may be set to be read-only to protect the contents from
unintentional changes.
The grid folder contains all information about a certain (part of a) power system.
This includes one or more single line graphics, the power system objects, the
station folders, the system stages, etc.
The grid folder dialogue, as depicted in Fig. 5.36, has a name, an owner and a
nominal frequency.
The station defining dialogue is explained in the section “Station and Busbar
Models” (sec. 8.2, page 8-151).
A new single line graphic folder may also be created from the option New from
the context sensitive menu of the folder in which the graphic should be stored by
selecting the Graphic option from the second menu.
The context sensitive menu of a graphic folder has a Show Graphic option which
will open a ’graphics board’ object in which the graphic will be shown.
More about single line and other graphics can be found in the chapter “Graphic
Windows” (sec. 7, page 7-110).
A graphics board has icons for creating new graphic objects and for showing
existing ones. In these cases, no new graphics board will be created, but the
added graphic objects will be drawn on new pages in the same graphics board
object.
The graphics board has page tabs to quickly move from one graphic page to
another.
The graphic board folder stores references to the displayed graphics in case of
single line or block diagrams, and stores the actual information in case of a
virtual instrument panel.
folder is activated, it will reactivate all the changes made the last time it was
activated.
The System Stage folder has an user defined name, an optional user defined
owner name and an optional user defined description. The contents button will
show the current contents of the folder.
A system stage folder may be ‘reduced’ to one of its parent folders by activating
the parent and right clicking the system stage folder. The pop-up menu will now
show the Reduce system stage branch option. Selecting that option will gather
the changes stored in the system stage folders, starting with the reduced folder
and walking up the database path to the activated parent folder. The gathered
changes are used to permanently change the parent design, after which the
whole database path between the reduced system stage folder and the changed
parent is deleted.
A Study Case folder with a reference to at least one Grid or system Stage folder
has to be activated in order to enable calculations.
The Study Case Folder has an user defined name, an user defined owner, and
has a flag to define it as the default Study Case folder in the current directory.
When no Study Case folder is active when a Grid or System Stage is activated,
the default Study Case folder is activated too, in order to create the reference to
the Grid or System Stage folder. When no default Study Case folder is available,
a new one is created automatically.
Disabling the Use as default option will protect the contents of the Study Case
folder.
For more information, see
Working with Study Case Folders, section 6.1.2, page 6-103
Working with System Stage Folders, section 6.0.9, page 6-98
Most objects in the database are explained in special sections in this manual.
Information about the line object ElmLne, for instance, can be found in section
8.3.1, page 8-162.
Some additional objects are present in the database which are used in various
ways, and which cannot be related to a specific task or features. These objects
are described here.
The Matrix page, as depicted in Fig. 5.37 holds the table with the matrix values.
The row and column labels are normally defined on the ‘labels’ page but are
enumerated by default.
The matrix is resized by right clicking either a row label or a matrix cell. In both
cases, the context menu will show options for inserting, appending or deleting
cells.
• If a row label was right clicked, new rows will be inserted or deleted at the
clicked row position, or appended at the bottom of the matrix.
• If a matrix cell was right clicked, new columns will be inserted or deleted at
the clicked column position, or appended at the right side of the matrix.
Labels for rows or columns are defined on the labels page, as depicted in Fig.
5.38. “Row labels” holds the labels for the rows, “Col labels” defines the labels
for columns. It is not required to define exactly as many labels as there are
columns or rows. It is allowed to enter empty labels, or to define more labels.
SHC Sweep , to define the set of relays which are regarded in the short-circuit
sweep
The set assignment is used to create or redefine a set definition in the database
browser or in the single line graphic. This is done by selecting one or more
objects. Right clicking the selection will show the menu option Define or Add to.
These menu options will show a second menu with possible sets to define or to
which the selected objects may be added. The
The object reference is normally created automatically, for instance when objects
are added to a set, or when the option Paste Shortcut is used in the database
browser. If a reference is explicitly created, the ‘Reference’ pointer must be set
to a database object manually.
An object reference will behave as the referred object. Double clicking the
reference will open the referred object dialogue. Storing a reference to an object
in a DPL script will have the same result as storing the actual object. However, it
is not possible to use references to objects when setting object types. It is, for
example, not possible to select a reference to a line type in the line object
definition.
Chapter 6
Project Management
As will have been seen from this section electrical system data is split into
’Element’ and ’Type’ data that is kept in folders called ’Grid’ and ’Library’
respectively.
All of this data is in turn is housed in a folder that is termed the ’Project’ folder,
together with further folders that have specific purposes, the purpose of which
will now be explained.
• We will want to be able to sort the network data, and this may be into
logical or organisational and/ or geographical areas. In PowerFactory this
is achieved by use of a Grid folder/s.
• Once the network data has been entered we will want to perform various
studies, for example, load flow, various short circuits, stability or EMT
based simulations, etc. It would be useful if the results of these studies
could also be stored for review or repeat later. Study Cases are used to do
this.
• We may need to analyse the network at different times during the day,
week or year, where different load conditions exist for these different times.
It will be noticed that this dialogue may also used to create several other new
objects. Ensure thus, that the ”Project” option has been selected in order to
create a new project. The target folder determines where the new project will be
created. Normally, and by default, this is the \U SER folder. The name of the new
project may be entered as the user desires.
• The new Project folder will be created, together with a library folder for the
project (for type data).
• The new grid folder will be created in the project folder (for element data).
• The project, the study case and the grid will be activated.
The new project may later be expanded by creating extra grids or system stages,
study cases, library folders, graphic windows, etc.
Pressing the N EW G RID button will create a new grid and will open the grid
edit dialogue. A second dialogue will ask for the study case to which the new
grid folder will be added. The N EW S TUDY C ASE button will create a new
study case and will open its dialogue. The new study case will not be activated
automatically.
Each project also has a special folder which stores all changed settings. These
may be changed result box definitions, changed report definitions, special filters,
flexible page definitions, etc.
The project dialogue allows the user to configure the input data units manually,
or to import settings from an existing project, or to revert to the default settings,
by pressing the relevant buttons.
N OTE : The unit SI prefix settings may also be accessed and changed by dou-
ble clicking on the unit description to the right of the input field
6.0.6 Grids
Grids are data folders in which element data pertaining to a network is
stored. These grid folders also contain the single line diagrams which were used
to create the power system design. Additionally, each grid folder may contain a
tree of system stage folders for alternative design options (these are known as
system stages). There may be one or several of these grid folders in the project
folder ( ), and these may also be seen as areas.
The user may divide their network as desired into these folders, however, a
typical arrangement for a network would be as shown in 6.5. A schematic sketch
on the right shows the network layout, and on the left is the PowerFactory grid
arrangement:
To add a grid folder to the current project, various methods may be employed:
1. Select the Edit-Project option on the main menu. This will open the
dialogue of the project that is currently active. Press the N EW G RID
button.
2. Right click the project folder in a database manager and select Edit. Press
the N EW G RID button.
3. Right click the project folder in a database manager and select New →Grid
from the menu.
In each case, the dialogue to create a new grid will appear, as shown in Fig. 6.2,
where the grid name, frequency and owner may be specified. A second dialogue
will appear after the OK button has been pressed, where the study case that
the grid will be linked to must be selected. Three options are presented:
1. Add the new Grid folder to the study case currently activated. This option is
of course only available when a study case is active.
2. Create and activate a new study case and add the new Grid folder
3. Add the new grid folder to an existing, but not yet active study case.
Normally, the second option is preferred because this creates a new study case,
dedicated to the new grid only (remembering that any network requires a source
in order for a load flow to function). In that way, the new grid may be tested
separately by load-flow or other calculations. To analyse the combination of two
or more grids, new study cases may be created later on, or the existing ones
may be altered.
To replay whatever was last calculated in a study case first activate the study
case (right click the study case →Activate) and then press the appropriate
calculation command button, for example, ”Calculate Short-Circuit.”
PowerFactory will repeat whatever calculation, with all the settings (such as
fault location, type, fault impedance, etc) was last performed in the study case.
Study cases may also be activated by simply choosing the required study case
from the drop down ”Current Study Case” window, found on the right side of the
upper tool bar.
• Activating a project. This will automatically activate the study case that was
active at the moment the project was deactivated. Deactivating a project
will also deactivate the study case.
• Selecting a study case from the study case selection list on the main
menu, as shown in Fig. 6.6. All study cases in the active project are listed
in this list. Selecting the empty line will deactivate the current study case.
Only one study case may be active at the same time. The active study case will
therefore be automatically deactivated before another study case is activated.
This will mean that any active project will be deactivated should the selected
study case be in another project.
The three small folders in the icon of an study case are coloured red in the
database tree when a study case is active. All of the grids and/or system stage
folders are also coloured red.
Grids or system stages may be added to, or removed from, the study case by
right clicking them in the database tree and selecting Add to Study Case or
Remove from Study Case.
An example study case [1] has two active system stages and one active grid [2].
The database tree, showing the active study case, grid and system stages is
shown in Fig. 6.7.
The grids/ system stages that are linked to a study case may be viewed by
pressing the G RIDS /S YSTEM S TAGES button of the Study Case dialogue,
which may be accessed by selecting Edit →Study Case in the main menu, or by
right clicking the study case in the data manager and selecting Edit. This is
shown in Fig. 6.8.
The study case itself contains several calculation commands, and the special
”Summary Grid” object. The Summary Grid is an internal, automatically created
object, as are its contents, and inexperienced users should avoid editing it.
1. Select Edit →Project from the main menu, or by right clicking the project
folder →Edit in a database manager. This will open the dialogue of the
active project. Press N EW S TUDY C ASE .
In all cases, the dialogue for defining a new study case will appear, as depicted
in Fig. 6.9 will appear.
It may be seen that, in the study case dialogue, the output (that is, calculated)
variable units may be specified for load flow and short circuit. Each study case
may have its own settings in this regard.
The System Stage folders will only keep a record of changes. No part of the
base case design is actually copied. When a parameter of a generator model is
changed, for example, only a reference to that generator and the new value of
the parameter will be stored. The next time the System Stage is activated, the
only change made to the generator is that the parameter is set to the alternative
value. All other parameters will be defined by the base case.
Changes made when the grid or any of system stages in the system stage trees
are active will reflect themselves in all system stages further down the system
stage tree. This principle is depicted in Fig. 6.10.
In this figure, a base case is defined with three parameters: A, B and C. Three
System Stage folders are created in this base case and each of them changes
one or more of these parameters (depicted by the ’:=’ symbol). Two second level
system stages are visible. The right columns, pointed to by the arrows, give the
parameter values when the grid folder or the System Stage folder would be
activated. These values will be used in the various calculations.
The third case in Fig. 6.10 shows that the change in the first system stage
(A:=11) stays valid when the second level system stage is activated (A:=11,
B:=23). In the sixth case, a change of the first stage (B:=21) is overruled by the
second level stage (B:=23). The sixth system stage also changes the ‘C’
parameter. If this parameter is changed in the base case, it will thus reflect that
change in all system stages, except for the sixth one (columns A’, B’ and C’).
N OTE : If all of this seems too complex to grasp initially simply keep the follow-
ing in mind:
• information flow is from the higher folder to the lower folder only
(picture an ’information diode’)
The system stage only needs a name and (optionally) an owner. It must of
course also be added to a study case in order to activate it. A system stage can
be added to the active study case by right clicking it and selecting Add to Study
Case. This will only be possible if none of its parents in the database tree is
already active.
If you are making a system stage of a grid you will be presented with a graphic
that looks exactly like that for the grid that you have made the system stage for.
You may now begin work and make the changes/ additions required for the
alternative system.
When a system stage folder is activated, it will ‘collects’ all objects from the
’parent folders’ (higher folders), up to the base case grid folder. The database
will thus be altered temporarily. When the system stage folder is deactivated, it
will return the collected objects to the original parent folders. See Fig. 6.11 and
Fig. 6.12.
All changes made to the collected objects while the system stage folder is active
will be registered by the system stage object. Each change will create a ’change
object’ which will hold all information necessary to restore the changed object to
its original base case state.
When a System Stage folder is deactivated, only the collected objects are
returned. The objects that were created while the system stage folder was active
will stay in the system stage folder. See Fig. 6.13
Figure 6.13: Database after deactivation of a system stage folder, with added
object
Because the single line graphics are an integral part of the power system
designs which they represent, and because they are stored in the grid folder,
they will also be collected by the System Stage folders when these are activated.
This means that all changes made to the single line graphics will also be
automatically registered by the system stage folder.
PowerFactory will create system stages of all the grids that are associated with
the original study case. All of these system stages will have the same name and
will be associated with the new study case.
This may happen when a user wishes to use data that is not ’owned’ by the user
themselves. An example are the example projects that are shipped with each
PowerFactory installation. These are normally only accessible when one is
logged in as a demo user, or if you copy a project to your user folder. Quicker
and easier than copying is to simply add the grids that you wish to work with to a
project that you have created in your own user folder; these grids are then added
as ’remote system stages.’
A study case with remote variants acts like a normal study case. All calculations
will address all of the objects in the remote variant, as if they were local objects.
The remote design is protected against changes by the fact that the remote
variant is a normal system stage. All changes made in the remote grid will
therefore be removed as soon as the remote variant is deactivated.
One or more design variants can be created and used to analyse different
design options. After such analyses, one of these options may be selected and
used to permanently change the design. This is done by reducing the
corresponding system stage folder to a ‘target’ folder, which may be the base
case design folder or a system stage folder higher up in the hierarchical tree.
A system stage is reduced to one of its parent folders by first activating the
parent and subsequently right clicking the system stage to be reduced. The
pop-up menu will show Reduce System Stage Branch.
Reducing a system stage to higher level target folder is straight forward when it
is the only variant for that target folder. The reduction method becomes more
complex when a system stage is reduced to a level which has other system
stages parallel to the reduced system stage. Because the system stage
administration system is non-redundant, conflicts may arise as the parallel
system stages suddenly see their base case design changed after the reduction.
The reduction principle is illustrated in Fig. 6.15. The original design variant tree
is shown on the left side. The system stage folder that is to be reduced is called
‘TO REDUCE’. All system stage folders which are to be reduced, because they
are part of the path up to the target folder are boxed. The branch to be reduced
is drawn in thick lines.
The reduced tree is shown on the right. All branches and system stage folders
connected to the reduced branch are transferred to the target folder, which in
this example is the base case ‘Grid’ folder.
The base project may contain system stages of its own, but as it is only possible
to activate one project, it is only possible to compare the non-active base with
the active project. This important, as the state of the project to compare to may
depend on the active study case. The base project will be compared to the
active project as it currently looks in its active state.
Difference Report only...: Reports missing objects in one or the other project,
or objects that have different data. Disabling this option will create system
stages in the base project.
Ignore cubicle names: Ignores the names of cubicles and will only search for
comparable connections to busbars and terminals.
Copy Graphics: copies graphics only from the compared project to the Base
Project.
Chapter 7
Graphic Windows
Many commands and tools are available to edit and manipulate symbols in the
graphics. The underlying data objects may also be accessed and edited from
this point, and calculation results may be displayed and configured.
Many of these tools and commands are found in the drop down menus or as
buttons in the toolbars, but by far the most convenient manner of accessing the
tools is to use the right mouse button to display a menu. This menu is known as
a context sensitive menu; in other words, PowerFactory evaluates where the tip
of your cursor is, and then presents a menu that is appropriate to the cursor
location. Thus cursor position is important when selecting various menu options.
It is similarly important to keep the cursor in place when right clicking, as the
menu presented is determined from cursor position primarily, and not from the
selected or marked object.
The graphics that are displayed in an active project are determined by the active
study case. Four types of graphic objects are used in PowerFactory:
• Single Line Diagrams for entering power grid definitions and for showing
calculation results
• Virtual Instrument Pages for designing (bar) graphs, e.g. for the results of a
stability calculation, bitmaps, value boxes, etc.
The study case folder contains a folder called the ”Graphics Board” folder
(SetDesktop) in which references to the graphics to be displayed are contained.
This folder, much like the ”Summary Grid” folder, is automatically created and
maintained and should generally not be edited by the user.
Similarly, the grid folder contains a sub-folder called the ”Graphic” folder
(’IntGrfnet’). This sub-folder should generally also not be edited by the user as it
is automatically created and maintained.
More than one graphic (single line diagram) may be created in/ for a grid, either
to display the different grid elements over several pages, or to display the same
grid elements in different graphical arrangements. Consider the ’Simple Power
System’ project that is shown in Fig. 7.1. The active study case is called ’Alt
Study Case’ [1] and the active grid has two single line graphics that have been
created for it, ’Grid’ and ’Alt Grid View’ [2]. The graphics board folder in the study
case has a reference to only the ’Alt Grid View’ graphic object [3] and thus only
this graphic for the grid will be shown when the study case is activated.
Figure 7.1: Relationship between the study case, graphics board and single line
diagrams
The references in the graphics board folder are created when the user adds a
grid to a study case. PowerFactory will ask the user which graphics of the grid
should be displayed. At any time later the user may display other graphics in the
grid by right clicking the grid →Show Graphic. Graphics may be removed by right
clicking the tab at the bottom of the page and right clicking →Remove Page(s).
The study case and graphics board folder will also contain references to any
other graphics that have been created when the study case is active.
One of the powerful features that PowerFactory has is the strong linkage
between the graphical representations and the data objects, where there is not a
1:1 relation between data objects and graphic symbols (where one data object
would mean only one graphical symbol). The key is in the references that are
used: a graphic symbol uses a reference to a data object and a data object may
thus appear in more than one graphic. Because the references are complete
(path and name), graphics may be moved and copied around, independent of
the data objects they refer to. The data objects on the other hand may also be
moved around freely, as the references to these objects are also automatically
updated. The linkage between graphic symbols and data objects is best
described as a ’rubber band’ relation, binding the two together without locking
them into place.
The graphics themselves are saved in the database tree, normally in the same
folder as the power grids to which they belong. This makes finding the correct
Single Line graphic representation of a particular grid, even in the case where
there are several graphic representations for one grid, easy.
Three of the four graphic classes may be used to create new objects. These are
the Single Line Diagram, the Block Diagram and the Virtual Instrument Page.
These are the main tools used to design new power systems, controller block
diagrams, or to design graphs and other virtual instruments that display results.
The fourth graphic class, the Station Graphics, is not used to define new objects,
but only to show stations and calculation results.
When the drawing tools are used to create a new graphical symbol (i.e. a line,
transformer, bar graph, etc.) a new data object is also created in the database
tree. A Single Line Graphic object therefore has a reference to a Grid folder. The
new data objects are stored into the ‘target’ folders that the graphics page is
associated with (this information may be determined by right clicking the graphic
→Graphic Options see 7.7.1 for more information.
Since data objects may have more than one graphic representation the deletion
of a graphic object should not mean that the data object will also be deleted.
Hence the user may choose to delete only the graphical object (right click menu
→Delete Graphical Object only. When a graphic object is deleted the user is
warned that the data object will not be deleted.
This suggests that a user may delete all graphical objects related to a data
object, with the data object still residing in the database and being considered for
calculation. This is indeed what will occur, and may even be done deliberately in
some cases.
used a warning message will confirm the action. This warning may be switched
off - see User Settings, General, ”Always confirm deletion of Grid Data”).
The option Edit and Browse Data will show the element in a data manager
environment. The object itself will be selected (highlighted) in the data manager
and can be double clicked to open the edit dialogue. A new data manager will be
opened if no data manager is presently active. If more than one symbol was
selected when the edit data option was selected, a data browser will pop up
listing the selected objects. The edit dialogues for each element may be opened
from this data browser one by one, or the selected objects can be edited in the
data browser directly (see Editing Data Objects, sec. 5.7, page 5-57).
Finding specific elements in a large project may be difficult if one had to look
through the single line diagram alone, thus PowerFactory has tools to assist the
user in finding elements in the graphic.
As will have been seen in the section 5.6 objects in the data manager may be
sorted in a number of ways. Once you have identified the object/ element you
are searching for it may be right clicked →Mark in Graphic. When performing
this command ensure that you select the object itself, as shown in Fig. 7.2. The
menu will be different to that seen when you select an individual field, as shown
in Fig. 7.3.
The position of an object in the database tree can be found by:
• Opening the edit dialogue. The full path is shown in the header of the
dialogue
• Right-clicking the object and selecting Edit and Browse. This will open a
new database browser when required, and will focus on the selected
object.
button copies a virtual instrument panel and inserts the copy alongside the
original panel.
• Insert Page →Open Existing Page opens a page or graphic that has
already been created but which is not yet displayed (the button in the
toolbar will do the same).
The ComNew dialogue must be configured to create the desired new object and
the new object should be named. Ensure that the correct target folder for the
new object is selected.
Grid Creates a new Grid folder and a new Single Line Graphic object in that
folder. The (empty) single line graphic will pop up.
Block Diagram Creates a new Block Diagram folder in the selected folder and a
new Block Diagram Graphic object. The (empty) block diagram graphic will
pop up.
Virtual Instrument Panel Creates a new Virtual Instrument Page object. The
(empty) Virtual Instrument Page will pop up.
Single Line Graphic Creates a Single Line Graphic in the target folder. Before
the graphic can be created the Current Net Data pointer must be set (that
is, the relevant grid folder must be selected).
The Target Folder will be set to the \U SER folder by default, but may be changed
to any folder in the database tree. The new Grid, Block Diagram or Virtual
Instruments folder will be created in the Target Folder.
In all cases, a new graphics board object is also created, because graphic pages
can only be shown as a page in a graphics board. An exception is the creation of
a new page, while in a graphics board. This can be done by pressing the
button on the graphics board toolbar. This will add the new graphics page to the
existing graphics board.
It is however possible, and sometimes even necessary, to work the other way
around. In that case, new data objects are first created and edited in the
database manager, or imported from other programs, and subsequently used in
one or more single line diagrams.
PowerFactory allows for this either by drag and drop facilities to drag power
system objects from the data manager to a graphic window, or by the ”Draw
Existing Net Elements” tool. The way this is done is as follows:
1. Select from the drawing tools toolbox the kind of object that is to be drawn
in the graphic.
2. Enable the drag & drop feature in the data manager by double clicking the
drag & drop message in the message bar.
3. Select the data object in the data manager by left clicking the object icon.
4. Hold down the left mouse button and move the mouse to the graphic
drawing area (drag it).
5. Position the graphical symbol in the same way as is done normally.
6. A new graphical symbol is created, the topological data is changed, but the
graphical symbol will refer to the dragged data object. No new data object
is created.
Dragging objects in this manner is supported, however, it is easier to use the
”Draw Existing Net Elements” tool to perform this action, as described in the next
section.
This is done by first creating a new single line graphic folder, preferably in the
grid folder that contains the imported power system (right click the grid folder
→New →Graphic). This opens the single line graphic dialogue, where the
’Current Net Data’ pointer has should be set to the respective grid folder. See
section 7.7.1, page 7-129, for more information.
As soon as the correct folder has been set, and OK has been pressed, the
single line graphic folder ( ) is created and a blank graphic page,
appropriately named, pops up. The D RAW E XISTING N ET E LEMENTS ( )
button on the graphics toolbar may now be pressed. This opens a database
browser [1] listing all elements considered by the active study case (see Fig. 7.4)
and which have not yet been inserted into the new single line graphic.
This list may be filtered to show only particular grids or all grids by using the drop
down window [2] provided. Once a drawing tool is chosen, in this case the
Terminal tool [3], the list is further filtered to show only terminals, as can be seen
in the example. When the user now clicks on the graphic the highlighted terminal
[5](in the browser) will be removed from the list and placed onto the graphic, and
the next terminal down will be highlighted, ready for placement. In the example
two terminals have already been placed [4] in the graphic.
After all busbars have been inserted into the single line graphic, another branch
and edge elements may be selected in the graphic toolbox. In Fig. 7.5, the
2-winding transformer tool has been selected [1]. The database browser will now
show all 2-winding transformers which have not been inserted into the graphics
[2]. When one of these transformers is selected [3] in the browser, the
corresponding two busbars will be highlighted in the single line graphic [4]. The
insertion point and connections for the transformer is thus clear. This is also why
the nodes should first be placed on the graphic. Edge (lines, transformers) and
branch (loads, machines, etc) elements are placed once the nodes are in
position.
N OTE : Before placing elements onto the graphic users may find it useful to
configure and display a background layer. This will be a bitmap of an
existing single line diagram of the system. It may be used to ’trace’
over so that the PowerFactory network looks the same as current
paper depictions; see 7.6 for more information on layers
• Connect the parent line first (this is the original line from which the line
routes were created; it is marked by the symbol ). In this case all
terminals and routes that belong to this parent line will automatically be
drawn. You may then move the terminals along the parent line. If the
terminal is selected and moved it may only be moved along the line itself,
however, if you wish to move the terminal to another point, and thus have
the line routes move as well then hold the C TRL and A LT keys down at the
same time and then move the terminal.
• First insert the terminals that lie between routes. Then the routes can be
added as usual.
More about how to draw busbars, 2-winding transformers, etc. is explained in the
following sections.
Each of the four graphic window types are edited and used in much the same
way. This section gives a description of what is common to all graphic windows.
Specific behaviour and functionality of the graphic windows themselves is
described in separate sections.
The single line graphic operates in a ’freeze’ and ’unfreeze’ mode. In freeze
mode the graphics may not be edited or changed and elements may not be
added or deleted. The freeze mode is controlled by the toggle button . The
freeze mode also affects the context sensitive menus and presents different
menus for each mode.
Figure 7.6: Two tool boxes: left for Grids, right for Blocks
• Graphical add-on symbols: text, polygons, rectangles, circles, etc. (see “1”
in Fig. 7.6)
The toolboxes are only visible when the graphics freeze mode is off. The
graphics freeze mode is turned on and off with the button (found at the left
had side of the lower tool bar).
There are basically three ways of positioning and connecting new power system
elements:
1. By left clicking on one or more nodes to connect and position the element
directly. Single port objects (loads, machines) will be positioned directly
beneath the nodes at a default distance (the symbol can later be moved if
required). Double or triple port objects (transformers) will be centered
between the first two busbar connections automatically. This ’single click
method’ will only work if the option Place Branch Objects With One
Connection Automatically in the User Settings is enabled.
2. By first left clicking on an empty place to position the symbol and then left
clicking a node to make the connections.
Fig. 7.7 shows an example of a generator placed according to the first method
(left generator), one placed according to the second method (middle generator),
and one placed according to the third method (right generator with long
connection).
If a load or machine is connected to a busbar using the first method (single left
click on busbar), but a cubicle already exists at that position on the busbar, the
load or machine symbol will be automatically positioned on the other side of the
busbar, if possible.
All power system elements are positioned ’bottom down’ by default. However, if
the C TRL-key is pressed when the graphic symbol is positioned onto the drawing
surface, it will be positioned either turned 90 degrees (busbars and terminals) or
180 degrees (loads, machines). A node placed using the C TRL-key will be
placed vertically, and a load thus connected to a node will be positioned above
the node (in case of a horizontal busbar/ terminal), or to the left (vertical busbar/
terminal), instead of beneath or to the right. If the element has already been
placed and the user wishes to flip the element to the other side of the busbar/
terminal then right click the element →Flip At Busbar. If you wish to first place a
symbol and then rotate or mirror it then click on the graphic to place the symbol
and then press the TAB key on the keyboard. This will ’jump’ the ’rubber band’ to
the next connection point (or port) of the element. Continual pressing of the TAB
key will leave the symbol placed on the graphic (and the data element in the
database, without being connected. Manipulate the symbol as required and then
right click it →Connect Element.
If the element has already been connected it must first be disconnected in order
to rotate or mirror it (right click the symbol →Disconnect Element. Fig. 7.8 shows
an example of rotated and flipped power system elements.
Astute users may notice that the element is highlighted using a different pattern,
depending on whether the graphic has been frozen or not, as seen in Fig. 7.9,
where [1] is the when the freeze mode is engaged and [2] when ’un-frozen.’
• To mark a set of elements at the same time click on a free spot in the
drawing area, hold down the mouse key and move the cursor to another
place where you release the mouse button. All elements in the so defined
rectangle will now be marked. A setting, found in the ”User Settings”
dialogue under the ”Graphic Windows” tab (on the second page of this tab
→press the button), can alter the manner in which objects are marked
using this marking method, as either ”Partial” or ”Complete”. ”Complete”
means that the whole object you want marked must lie inside the rectangle.
• To mark more than one object, hold down the C TRL key whilst marking the
object.
• If the C TRL and A LT key are pressed simultaneously whilst moving and
element then elements connected to it will also be moved.
The single line graphic and the Block diagram graphic windows use transparent
layers of drawing sheets on which the graphical symbols are placed. Each of
these layers may be set to be visible or not. The names of objects that have
been drawn, for example, are on a layer called ”Object Names” and may be
made visible or invisible to the user.
Which layers are visible and exactly what is shown on a layer is defined in the
”Graphical Layers” dialogue. This dialogue can be opened by pressing the
button on the local toolbar, or by right clicking on an empty spot of the graphic
area →Show Layer. The layers dialogue has a ”Visibility” tab to determine which
layers will be visible, and a ”Configuration” tab to define various attributes for the
layers. See Fig. 7.10.
In this figure, the three layers in the left pane (Base Level, Object Names,
Results) are visible in the graphical window. The six layers in the right pane are
invisible. Layers can be made visible by multi selecting them (hold the C TRL key
down whilst selecting) and pressing the button (alternatively, double click a
layer name and it will jump to the other pane). In the figure, the ”Tap Positions”
layer is about to be moved to the left (”Visible”) pane. A layer can be made
invisible again by selecting it in the left pane and pressing the button or by
double clicking it. You can also define, edit and delete your own layers and by
pressing the ”New” button.
N OTE : Certain names and results boxes are, by default, assigned to the ”In-
visible Objects” layer. An example are the names and results boxes
for point terminals. This is done to unclutter the graphic. Should the
user wish to display names and/or results boxes for certain point ter-
minals simply make the ”Invisible Objects” layer visible and re-assign
the names and results boxes required to another layer, such as the
”Object Names” or ”Results” layers - then make the ”Invisible Objects”
layer invisible once more.
The ”Configuration” tab has a drop down list showing all layers that may be
configured by the user. Considering the ”Object Names” layer [1], as shown in
Fig. 7.11, it may be seen that a target or focus may be set [2]. This means that,
whatever has been selected as the target, will be the focus of the action that is
commanded. Various actions or settings may be performed, such as changing
the font [3]. The configuration tab may also be used to mark (select/ highlight)
the target objects in the graphic using the M ARK button [4].
As and example, suppose that a part of the single line graphics is to be changed,
for instance, to allow for longer busbar names. To change the settings, the
correct graphical layer is first selected. In this example, it will be the ”Object
Names” layer. In this layer, only the busbar names are to be changed, and the
target must therefore be set to ”All Nodes”. When the layer and the target has
been selected, the width for object names may be set in the Settings area. The
number of columns may be set using the V ISIBILITY /F RAME /W IDTH button.
Alternatively, the A DAPT W IDTH will adapt all of the object name placeholders
to the length of the name for each object.
Changing a setting for all nodes or all branches at once will overwrite the present
settings.
Zooming
Zoom In Button :
Press the button; the cursor changes to show a magnifying glass; the area to be
zoomed into must be selected. This is done by dragging a rectangle around the
area to be zoomed →picture the area to be zoomed and left click in the top right
hand corner of an imaginary rectangle framing the area [1] as shown in Fig.
7.12. Keep the mouse button held down and drag the cursor down and to the
right [2]. A frame is drawn as you do this; when the frame encompasses the area
you wish to zoom into let the mouse button go.
To zoom ’back’ press the ”Zoom Out” button - this will step the zoom back to the
last state.
To view the entire page press the ”Zoom All” button (100 percent zoom).
N OTE : you can also type a zoom percentage directly into the ”Zoom Level”
window or use the drop down list to zoom
Print Graphic
Main Menu : File →Print
Keyboard : C TRL + P
Button :
This function will send the graphic to a printer. A printer dialogue will appear first.
N OTE : The function, Page Setup (accessible via main menu path File →Page
Setup), allow a subsize for printing to be set. This will, for example,
print an A3 graphic across two A4 pages. Special paper sizes or un-
usual printer insertion points may be entered as well by using the mar-
gins of the print-out. These margins have to be set with care as the
print-out will be stretched to the frame. If this remaining page frame
has a X/Y - ratio other than 0.707 (A3, A4), the drawing will be dis-
torted.
Rebuild
Right Click Drawing : Rebuild
Button :
The drawing may not be updated correctly in some circumstances. The rebuild
function updates the currently visible page by updating the drawing from the
database.
Button :
Inserts a new graphic object into the ”Graphic Board” folder of the active study
case and presents a blank graphics page to the user. A dialogue to configure the
new graphics object will appear first.
Button :
Graphic folder objects (IntGrfnet) may be opened in more than one Graphics
Board at the same time, even more than once in the same Graphics Board.
Changes made to a graphic will show themselves on all pages on which the
graphic object is displayed.
Remove Page
Page Tab Menu : Remove Page
This function will remove the selected graphic from the Graphics Board. The
graphic itself will not be deleted and can be re-inserted to the current or any
other Graphics Board at any time.
Rename Page
Page Tab Menu : Rename Page
This function will pop up a dialogue to change the name of the selected graphic.
Graphic Options
Right Click Drawing : Graphic Options
Button :
Each graphic window has its own settings, which may be changed using the
graphic options function. This function presents a dialogue for the following
settings. See Fig. 7.13.
Current Net Data The reference to the database folder in which new power
system elements created in this graphic will be stored.
Ortho-Off Connections will be drawn exactly as their line points were set.
Ortho Allow only right-angle connections between objects.
Semi-Ortho The first segment of a connection that leads away from a busbar or
terminal will always be drawn orthogonally.
Line Style for Cables is used to select a line style for all cables
Line Style for Overhead Lines is used to select a line style for all overhead
lines
Offset Factor for Branch Symbols defines the length of the connection when
a branch symbol is drawn by clicking on the busbar/terminal. This is the
default distance from the busbar/terminal in grid points.
Show Bus Couplers can be used to see all couplers, or to hide them
Allow Individual Line Style permits the line style to be set for individual lines.
The individual style may be set for any line in the graphic by right clicking
the line →Set Individual Line Style. This may also be performed for a group
of selected lines/cables in one action, by first multi selecting the elements.
Allow Individual Line Width as for the individual line style, but may be used in
combination with the ”Line Style for Cables/Overhead Lines” option. The
individual width is defined by selecting the corresponding option in the right
mouse menu (may also be performed for a group of selected lines/cables
in one action).
Equidistant Insertion of Terminals on Lines is used when an existing line
with line-routes is drawn. The terminals between the line-routes can then
be drawn either with distances according to the relative length of the routes,
or, when this option is enabled, at equidistant positions along the line. This
has no effect on the electrical models, only on the graphical representation.
Display Frame around Switches draws a frame around the switch itself
(Breakers, Disconnectors, etc). This only applies to user-drawn breakers
and disconnectors.
Support Line Routes Functionality Support Line routes functionality:
• Enabled →Two line routes are created when placing a terminal on a
LINE.
• Disabled →Two lines are created when placing a terminal on a LINE.
Additional Attributes and Coordinates tabs: these should only be configured with
the assistance of DIgSILENT support staff.
• ”Opaque” means that objects behind the results box cannot be seen
through the results box.
• ”Transparent” means that objects behind the results box can be seen
through the results box.
Reset textboxes completely textboxes and result boxes have reference points
(the point on the box at which the box will ’attach’ to its element) that may
be changed by the user. If this option is
when the Reset settings option in the right-click menu for moved result
boxes is selected.
The settings for the cursor type for the graphic windows (large crosshair or small
tracking cross) may be set in the User Settings dialogue. See section 4.2, page
4-39. This is because the cursor shape is a global setting, valid for all graphic
windows, while all graphic settings described above are specific for each graphic
window.
If no ”Subsize for Printing” format has been selected, then, at printing time, the
drawing area will be scaled to fit the paper size of the printer. If, for instance, the
drawing area is A3 and the selected paper in the printer is A4, then the
graphs/diagrams will be printed at 70% of their original size.
By selecting a subsize for printing, the scaling of the drawing at printing time can
be controlled. The dimensions of the sub-sized printing pages are shown in the
graphic page. If, for instance, the drawing size has been selected as A3
landscape, and the printing size as A4 portrait, then a vertical grey line will divide
the drawing area in two halves. The drawing area will be accordingly partitioned
at printing time and will be printed accross two A4 pages.
Make sure that the selected subsize for used for printing is available at the
printer. The printed pages are scaled to the available physical paper if this is not
the case.
For instance:
• The subsize for printing has been selected as A3 portrait. The A2 drawing
is thus to be printed across two pages.
• Suppose that the selected printer only has A4 paper. The original A2
drawing is then scaled down to 70% and printed on two A4 sheets of paper.
Mark All
Button :
This function marks (selects) all objects in the drawing. This is helpful for moving
the whole drawing to another place or copying the whole drawing into the
clipboard. In block diagrams the surrounding block will not be marked. The
keyboard short cut C TRL + A may also be used to perform this action.
Edit Data
Right Click Selection : Edit Data
Keyboard : A LT - R ETURN
Mouse : Double-click
Button :
This option lets you edit the device data of all marked objects in the drawing. If
only one object is marked, then this object’s edit dialogue will pop up directly.
When more than one object is marked, a Data Manager window will show the list
of marked objects. As with a normal Data Manager, these objects can be
double-clicked to open their edit dialogues. See the Data manager (sec. 5, page
5-43) for more information.
N OTE : Changes made in the device data of objects are not registered by the
graphical Undo Function. Undoing these changes is therefore not pos-
sible.
Delete
Right Click Selection : Delete Element
Keyboard : D EL
Button :
This function deletes all marked objects in the drawing. The database objects for
the graphical object will also be deleted (a warning message will pop up first -
this may be switched off in the ”User Settings” dialogue; see user settings, sec.
4, page 4-37).
Copy
Right Click Selection : Copy
Keyboard : C TRL - C
Button :
Copies all marked objects from the current drawing and puts them into the
clipboard.
Paste
Right Click Drawing : Paste
Keyboard : C TRL + V
Button :
Copies all objects from the clipboard and pastes them into the current drawing.
The objects are pasted at the current graphical mouse position. Objects that are
copied and so pasted create completely new graphic and data objects in the
graphic that they are pasted into.
Should you wish to represent a data object in another graphic (that is, one data
object that is drawn in two different graphics), in other words, you wish to copy
and paste just the graphic, then choose ”Paste Graphic Only” from the right click
menu. Similar results are obtained when using the ”Draw Existing Net Elements”
tool. (See section 7.4.1, page 7-117).
Undo
Right Click Selection : Undo
Keyboard : C TRL + Z
Button :
Undoes the last graphic action. Undo will restore deleted elements or delete
created elements when necessary. Note that data that has been deleted or
changed will not be restored.
This dialogue sets the line style, line width, brush style, colour and font, for
annotations (ie not for power system elements).
The line style includes several kinds of dashed or dotted lines and one special
line style: the TRUE DOTS style. This style will only put a dot at the actual
coordinates. In a single line graphic, this means only at the start and the end,
which does not make much sense. For result graphs, however, the TRUE DOTS
style will only show the actual data points.
The brush style is used to fill solid symbols like squares and circles. These
settings may also be accessed by simply double clicking an annotation.
This button opens a database browser which contains all objects in the Current
Net Data folder, which are not shown in the active single line graphic.
Draw Existing Net Elements is used mainly to build single line graphics from
imported data, but may also be used to create alternative graphical
arrangements for existing data. See section 7.4.1, page 7-117 for more
information.
Allows the user to choose a colour for individual elements. Only available when
the ”Colouring Representation” is set to ”Individual”.
Rotate
Right Click Selection : Rotate
Disconnect Element
Right Click Selection : Disconnect Element
Reconnect Element
Right Click Selection : Reconnect Element
Disconnects the selected elements and then presents the element for immediate
re-connection. The branch to be connected will be ’glued’ to the cursor. Left
clicking a bar or terminal will connect the element.
Connect
Right Click Selection : Connect Element
Button :
Move
Marked objects can be moved by left clicking them and holding down the mouse
button. The objects can be moved when the cursor changes to an arrowed cross
( ).
Hold down the mouse button and drag the marked objects to their new position.
Connections from the moved part of the drawing to other objects will be adjusted.
By default the drawing toolbar is docked on the right side of the screen, but it
may be un-docked by grabbing it and dragging to the graphics board area. To do
this left click and hold your mouse down, in an area of the toolbar that does not
have any buttons, and move the mouse to the left. To re-dock the toolbar drag it
back to the right of the screen until it re-docks.
When starting to draw your system it is natural to first draw the nodes that are
required. Nodes may be represented by busbars or terminals in PowerFactory.
Terminals should be used as far as possible and there are several different
representations of terminals, shown and explained following.
Busbars are used to create more complex node clusters, such as a double
busbar with tie breaker, busbars with section breakers, and so forth. Busbars are
part of a ”Station” and their data elements are housed in a station folder in the
database, together with the switches that make the bus couplers, section
breakers, disconnecters, etc. Busbars are a quick and convenient way to
represent slightly more complex busbar systems but they have a fixed format in
terms of the breaker and disconnecter arrangement.
Should the user wish to create specific breaker and disconnecter arrangements
then terminals and discrete switches should be used for this purpose.
N OTE : When drawing objects the cursor may be reset by right clicking
Terminals
Terminals are representations of nodes and there are six different terminals that
may be used. See Fig. 7.16:
Looks the same as a Terminal but is shorter and the results box and name
is placed on the ”Invisible Objects” layer by default. Typically used to save
space or to unclutter the graphic.
Terminals should be placed in position and then, once the cursor is reset,
dragged, rotated and sized as required.
Re-positioning is performed by first left clicking on the terminal to mark it, then
click once more so that the cursor changes to . Hold the mouse button down
and drag the terminal to a new position.
Re-sizing is performed by first left clicking on the terminal to mark it. Sizing
handles appear at the ends of the terminal (see Fig. 7.17) and these may be
grabbed and dragged to the desired size.
Busbars
The tools for single and double busbar systems with and without tie breakers will
produce pre-defined busbar systems.
The will pop up the dialogue to define new busbar systems. With this
dialogue, complex systems like ”Breaker And A Half” systems, with special
cubicle configurations may be defined. See Add Busbar Systems, sec. 8.2.1,
page 8-152, for more information.
Busbars are placed by left clicking on an empty space on the drawing area.
Busbars are sized and moved in the same manner as terminals.
Double port elements (for lines, transformers, etc.) are positioned in a similar
manner to single port symbols. By left-clicking the first busbar, the first
connection is made. The second connection line is now held by the cursor.
Again, left-clicking the drawing area will create corners. Double clicking the
drawing area will position the symbol (if not a line or cable - eg a transformer).
The second connection is made when a node is left clicked.
N OTE : Pressing the TAB key after connecting one side will leave the second
leg unconnected, or jump to the third leg in the case of three port ele-
ments (press TAB again to leave the third leg unconnected). Pressing
E SC will stop the drawing and remove all connections.
Annotations are created by clicking one of the annotation drawing tools. Tools
are available for drawing lines, squares, circles, pies, polygons, etc. To draw
some of these symbols left click at some place and release the mouse
somewhere else (e.g. circles, lines, rectangles). Other symbols require that you
first set the vertices by clicking at different positions and finishing the input mode
by double clicking at the last position.
The first method is performed by copying the desired node (right click →Copy )
and then clicking on the other graphic in which it should be represented and right
clicking →Paste Graphic Only. Only a graphical object is pasted into the second
graphic and no new data element is created.
First ensure that you have node to connect to in both graphics that are to
be interconnected.
Double click to place the symbol [2]. Your cursor is now attached to the
transformer by a ’rubber band’ [3].
Move the cursor to the bottom of the drawing page and click on the tab of
the graphic that the interconnection is to be made to [4] (see Fig. 7.19)
Once in the second graphic left click to place the transformer symbol [5]
(see Fig. 7.20) and then left click on the second node [6].
Thus, the second method may be preferred. To check for nodes that
have connections on other graphics the ”Missing graphical connec-
tions” colouring mode may be employed.
• Voltage level
• Voltage regions
• Isolated Grids
• System stages
• Path definitions
• Relay locations
• Feeder Definitions
• Zones
• Observability
The contents and size of the title mask can be changed by right clicking the title
block and selecting the Edit Data option from the context sensitive menu. The
Select Title dialogue that pops up is used to scale the size of the title block by
setting the size of the block in percent of the default size. The font used will be
scaled accordingly. To edit the text in the title block press the edit button ( )
for the ”Title Text” field.
All text fields have a fixed format in the title block. The data and time fields may
be chosen as automatic or user defined. Most text fields are limited to a certain
number of characters. When opening a new graphic the title will appear by
default.
Because more than one type of result box is normally used in the Single line
graphic, for instance, one for node results and another one for branch results,
the legend box normally shows more than one column of legends. After
changing the result box definitions, it may be required to manually resize the
legend box in order to show all result box legends.
The Legend Box definition dialogue is opened by right clicking the legend block
and selecting Edit Data from the context sensitive menu. The font and format
shown may be configured. When opening a new graphic the legend will appear
by default.
The button on the local toolbar presents the ”Cubicle Parameter Settings”
dialogue. The settings in this dialogue determine the type number and
configuration of switches that will be created automatically in a cubicle when a
branch element is connected to a busbar system, where no free cubicle is
available. Fig. 7.22 shows:
When creating a new station the option ”Automatically create and delete
Cubicles From Graphic” is set by default. This means that new cubicles will be
created whenever a connection is made to a busbar, and these will similarly be
deleted when a connection is removed - unless there is a protection device
located in the cubicle, in which case the cubicle will be retained. If the option is
’unset’ then it is only possible to connect as many branch elements as the
number of cubicles set for this station. Deleting a connected branch will leave
the cubicle unchanged.
When a new station is inserted the default number of cubicles per section may
be set by the administrator in the relevant SetStat object under
S YSTEM\L IBRARY\G RAPHIC When connecting branch elements to a station all
free cubicles will be used up.
See Selecting Cubicles, sec. 8.2.1, page 8-154, for more information about the
creation of busbar systems and cubicles.
The result box itself is actually a small output report, based on a form definition.
This form definition, and the PowerFactory output language that is used to
define it, allows for the display of a wide range of calculated values, object
parameters, and even for colouring or user defined text.
Although the result boxes in the single line graphic are a very versatile and
powerful way for displaying calculation results, it is often not possible to display a
large (part of a) power system without making the result boxes too small to be
read. PowerFactory solves this problem by offering balloon help on the result
boxes. Positioning the mouse over a result box will pop up a yellow text balloon
with the text displayed in a fixed size font. This is depicted in Fig. 7.23. The
result box balloon always states the name of the variable, and may thus also be
used as a legend.
A result box is connected to the graphical object for which it displays the results
by a ’reference point’. Fig. 7.24 shows the default reference points for the
resultbox of a terminal. A reference point a connection between a point on the
result box (which has 9 optional points), and one of the ’docking’ points of the
graphical object. The terminal has three docking points: on the left, in the middle
and on the right. The reference point can be changed by:
• Right-clicking the resultbox with the graphics cursor (freeze mode off), and
selecting Change Reference Points.
• The reference points are shown: docking points in red, reference points in
green. Select one of the reference points by left-clicking it.
• Left-click the selected reference point, and drag it to a red docking point
and drop it.
• An error message will result if you drop a reference point somewhere else
than on a docking point.
Result boxes can be freely moved around the diagram. They will remain
attached to the docking point, and will move along with the docking point. A
result box can be positioned back to its docking point by right-clicking it and
selecting Reset Settings from the menu.
If the option ”Reset textboxes completely” is set in the graphical settings, then
the default reference and docking points will be selected again, and the result
box is moved back to the default position accordingly.
A number of these predefined formats are available for display and these may be
selected by right clicking a results box to get the Format for Edge Elements
option, which then presents a number of formats that may be selected- the
active format is ticked ( ).
Should the user wish to create a specific format that is different from the
pre-defined formats the Edit Format for Edge Elements option should be used,
which will be explained in detail following. Note that, when editing the format the
new format will be applied to the entire class of objects. Should you wish to
create a format to be used for just one instance then use the Create Textbox
option. An additional results box/ textbox will be created, using the current
format for the object. This may then be edited.
When the Edit Format option has been selected the user is presented with the
form manager dialogue (see Fig. 7.25). A name for the new form may be
entered [1]. Various options for the results box may be set [2] and the drop down
lists of pre-defined variables are used to configure the desired format [3]. Once
the format has been set and chosen the format may be saved for future use by
pressing the TO L IBRARY button [4]. The format is saved to
S ETTINGS\P ROJECT\C HANGED S ETTINGS\F ORMATS\G RF\R ESULT in the user
folder and is available for use in any project in the user folder (when right clicking
a results box for the same calculation functionality the new format will be seen in
the listing of formats).
Should the list of pre-defined variables not contain the required variable then the
I NPUT M ODE should be pressed; three input modes are available:
• Text Editor - unlocks the text editor page for manual configuration of the
variables and their format; this should only be used by advanced users.
The text editor page is found on the ”View” tab [6].
The ”User Selection” mode changes the appearance of the form manager
slightly so that a S ELECT VARIABLES appears in place of the pre-defined
variables drop down listings. Press this button to access the variable set
dialogue. The selection and use of variables is fully described in 5.10.
Chapter 8
This chapter shows how PowerFactory handles busbars and terminals, and
how they can be grouped into station definitions, how lines, line routes and line
sections relate to each other and the role of the terminal in this, how to create
parameter characteristics (for inserting load profiles for example), how to define
feeders, etc.
When the mathematical model of a power system is set up, the junction points
that lines, generators, loads, etc. are connected to are generally termed nodes.
In real world systems we normally term these ’busbars.’
The permitted breaker and disconnecter arrangements are shown in Fig. 8.1:
1 single breaker connected to two busbars with a line side disconnecter
2 multiple breaker connected to two busbars with line and busbar side
disconnecters
3 multiple breaker connected to two busbars with only line side disconnecters
4 multiple breaker connected to two busbars with only busbar side
disconnecters
With the graphical method, all busbar systems that belong to the same station
are first created separately and grouped into one station later on. During the
direct method, a station is created first and filled manually with busbar systems.
In both methods, we have to define busbar systems with distinct properties and
cubicles to connect other objects to these systems.
The graphical toolbox for the single line graphics also offers buttons for a:
• double busbar system with two sections and two tie breakers.
Other busbar system configurations may be created using the “General Busbar
System” tool. This is a so-called ’Set’ dialog and not a normal ’Edit’ dialog (’Set’
dialogs are used to create new objects, whilst ’Edit’ dialogs are used to alter
existing ones) which means that you will first be presented with a dialogue in
which you must make selections in order to define the busbar system to be
drawn.
In the case of the busbar systems it will not be possible to change the basic
layout of these systems after they have been created. It will thus not be possible
to change, for instance, a three-bar, “TransferCombi” system into a two-bar
“Breaker-and-a-half” system later on. However, it will be possible to change the
electrical parameters like the nominal voltage, the busbar types, the number of
cubicles, the type of switches used, etc.
The Add Busbar dialog shows the current definitions for new busbar systems
and their cubicles. This definition has the following fields:
Voltage level : the voltage level for the generated busbar system
The ’Set’ dialog for the busbar system thus uses two other ’Set’ dialogs: one for
the busbars which have to be generated and one for the cubicles. At least one
cubicle must be generated per busbar section, but more may be generated
directly. When other objects are connected to the busbar system in the single
line graphic, the available free cubicles will be used first. When no free cubicles
are available a message will pop up if the Automatically Create Feeders From
Graphic option in the station edit dialog is disabled. The new cubicle will be
created according to the current settings in the cubicle ’Set’ dialog. If these
settings were changed since the busbar system was created, these new cubicles
will differ from the original ones. To ensure equal cubicle configurations, all
cubicles that are required should be generated with the busbar system at once,
or the cubicle ’Set’ dialog must be changed to the correct settings prior to
connecting an object to the busbar.
A new cubicle ’Set’ dialog may be selected and configured by pressing the
“Select” button ( ). A database browser will pop up which may be used to
select a SetCubop dialog. The selected ’Set’ dialog can be edited by pressing
the E DIT button ( ). The “Cubicle Parameters” (see sec. 8.2.1, page
8-154) dialog will then appear.
For the busbar ’set’ dialog, as with the cubicle reference, a database browser will
pop up when the S ELECT button is pressed to select a SetBussys object from
the database. If the E DIT button is pressed, the “Define Busbar System” (see
sec. 8.2.1, page 8-154) dialog will pop up.
For both the cubicle and busbar system ’Set’ dialog it is possible to create a new
dialog by pressing the “New” button ( ) in the database browser after the (
) button was pressed.
N OTE : Under most circumstances the user simply connects branch and edge
elements to the busbars and the required cubicles and switches will
be automatically created as the ”Automatically Create Feeders From
Graphic” option is enabled by default. Detailed and specific breaker
and disconnecter configurations may be configured as shown above,
however, such applications are usually quite particular and will proba-
bly need to be built using terminals and discrete switches
Selecting Cubicles
After the busbar system itself has been defined, the kind of cubicles that will be
generated can be specified. After a cubicle definition has been defined, it may
be edited by using the “edit” button. The “Cubicle Parameters” dialog will pop up
in that case, which has the following parameters:
In order to generate a new busbar system, at least one cubicle per busbar
section has to be chosen. More cubicles, which may also differ from the first,
automatically created, cubicles, can be added manually later on by selecting
“Add Feeder” in the Station Edit dialog.
When the is pressed in the toolbox, the “Add Busbar System” dialog will pop
up the moment the drawing area is left clicked. This set dialog is used to define
the new busbar system, as has been explained in the forgoing section.
The single line graphic will first use up all free cubicles when objects are
connected to the new busbar system. When no free cubicle is available any
more, a message will pop up if the Automatically Create Feeders From Graphic
option in the surrounding station object edit dialog has been disabled. When this
option is enabled a new cubicle will be created, according to the settings of the
cubicle ’Set’ dialog. Each single line graphic has its own cubicle ’Set’ dialog. To
make sure that the cubicle configuration is set correctly, the settings for the
current cubicle configurations may be edited and/or altered by pressing the
button on the active graphics window toolbar.
Since it not known which station the busbars being drawn should belong to, and,
since each busbar must belong to a station, a new station for each new busbar is
created. After all or some of the busbars of the station have been drawn, they
can be transferred into one station. This is shown in the following example.
The four busbars are each located in one of the station folders. The busbars are
automatically given names such as ’B1’, ’B2’, etc. Because all busbars will be
created in their own stations, they will normally all be given the same name. This
is seen in Fig. 8.3 where the station names and busbar names have been
automatically generated.
All selected busbars will be moved to the target station. During this transfer, the
names of the busbars will be changed, should that be necessary to ensure
unique naming. The default name B1 will be changed to B2, B3, B4, etc. User
defined names will normally not have to be changed because they should be
unique already, but a (1), (2), (3), etc. will be attached to the name if this isn’t so.
All stations that are ’emptied’ during the transfer of busbars and cubicles will be
deleted.
More information about stations can be found in The Station Folder, section
5.17.3, page 5-87 and Stations and Busbar Systems, section 8.2, page 8-151.
Stations may be created directly in the data manager by pressing the new object
( ) button and selecting a ElmStat object. This will pop up the station edit
dialog, as shown in Fig. 8.6.
When the A DD B USBAR S YSTEM button is pressed in the station edit dialog,
the “Add BusBar System” dialog pops up with which a new busbar system can
be defined, as has been explained in the section 8.2.1, page 8-152.
The second way to define a station is by gathering busbars systems in the single
line graphic. See section 8.2.2, page 8-155, .
More information about stations can be found in The Station Folder, section
5.17.3, page 5-87 and Stations and Busbar Systems, section 8.2, page 8-151.
However, the busbar object has two drawbacks: it must always be located in a
station and it is relatively inflexible in the configuration of particular
(non-’standard’) breaker and disconnecter arrangements. For high-voltage
transmission and distribution systems, busbars are normally part of a station, but
even in these systems lines may have branches or T-offs to other lines. Such a
’branch off’ may occur at an overhead line tower and it would make no sense to
define a station with one busbar just to model this branch off.
1. Normal busbar (systems) are mainly used for the HV and MV transmission
and distribution systems. Two two-bar systems are used as an example
here. These busbars must belong to a station.
2. Terminals may be used in a ring feeder to connect two or more loads. They
have a result box, but they do not belong in a station.
A terminal can be added to the single line graphic by using one of the
buttons in the drawing toolbox. Left clicking the drawing area will place a new
terminal.
Terminals are used in the same way as busbar objects. They can be scaled and
moved. All branch objects that can be attached to a busbar can be attached to a
terminal. The only difference is that the context sensitive menu lacks the station
option Define Station.
Terminals may also be drawn using other graphical symbols that may be more
convenient, such as the button. This is used to create the short terminal
without a result box. The short terminal has a default width for one double
cubicle, but can be scaled to make space for more (see [3] in Fig. 8.7). Other
terminal shapes are shown in Fig. 8.8.
are stored in the line object, which thus acts as a folder object in the database
tree, in the case where a line is split into line routes.
Terminals created outside of lines are stored in the active grid folder for the
graphic.
The station graphic cannot be used to change the station layout, but it can be
used to open or close the individual switches which are not visible in the single
line graphics of the complete grid. Elements in the station graphic may be
double clicked to open their edit dialog as normal.
The station graphic shows all the results from the last calculation, and may show
more detailed representations of the various connected elements. The single
line drawing of elements in the station graphic may thus show tap positions and
switching groups of the transformers, whether these are visible in the grid
graphics or not. The station diagram could thus be used to produce a more
detailed printout of, for instance, the load flows around specific busbars.
The station graphic is deleted from the graphics board by right-clicking the page
tab at the bottom of the graphics board and selecting Remove Page(s).
Transmission lines and cables are both treated alike, and they are both
instances of the generalised ‘transmission line’ element ElmLne. Therefore,
anywhere that ‘transmission line’ or simply ‘line’ is written in the following
chapter, ’lines and/or cables’ may be read, unless otherwise specified.
Alternatively, lines may be subdivided into sections or line routes and may have
interconnecting feeder branches and the routes in their turn may also be
sectionalised.
The three basic line configurations possible are depicted in Fig. 8.9:
• Top line: the simplest transmission line is a single line object (ElmLne).
• Middle line: such a single line may be subdivided into line section objects.
(ElmLnesec) at any time. No terminals are allowed between two sections,
but the sections may have different line types.
• Bottom line: a single line may also be subdivided into line route objects
(ElmLneroute) where terminals are placed between the line routes. The
line routes in their turn may be subdivided into line sections.
Line
Terminal1 Terminal 2
Route 1 Route 2 Route 3
section 1 section 2 section 3
bus1 bus2
• Line routes are separated through terminals, which in fact are small
busbars. The terminals may have serial switches to open the line. Other
lines or loads may be connected to the terminals, each of them through a
cubicle with a switch.
More about the mathematical models of sectionalised lines and routes, and the
relations between lines and tower objects and types, can be found in the
Technical Reference Manual.
The two connections can also be chosen manually, by selecting the cubicles in
other nodes. This is achieved by pressing the buttons next to the ‘terminal i’
or ‘terminal j’ fields. However, this change will not be automatically reflected in
the single line graphic. To re-draw the line right click the line (which will now
appear with a >> symbol on one side) and use the Reconnect Graphically
option. The nodes that the line is connected to are now highlighted and the line
may be drawn between them.
The type of the line is selected by pressing the iconArrSelect next to the type
field. Line types for a line, line route or line sub-section are:
This is best achieved in the single line graphic by first selecting the branch object
from the drawing tools and then left clicking the line.
This will pop up a ”Branch Off Element” dialog as shown in Fig. 8.11.
This dialog refers to the line which is about to be branched off, its total length
and the permissable length of the interval to be placed.
This permissable length interval is determined by the total line length and
connections made previously. The new insertion point must be within the
permitted limits.
Switches may be inserted on either side of the terminal that will be inserted. It
will not be possible to open the line at the insertion point if no switches are
inserted (see ‘Term 2’ in Fig. 8.9), however, switches may be inserted, or
deleted, later by right clicking at the switch position (or where the switch would
normally be) and selecting Create Circuit-Breaker or Remove Circuit-Breaker.
The branched off element (the inserted load, machine, etc.) is always connected
through a switch and may thus be disconnected from the line in all cases.
Inserting one or two switches enables the opening of the line from either the left,
the right or from both sides.
N OTE : It is also possible the utilise the convenience of simply ’dropping’ an el-
ement onto a line without creating line routes by disabling the ”Support
Line Routes Functionality” in the ”Graphic Options” dialogue. In this
case the line is simply split into two separate line instead of line routes
This will show a database browser with either line route (ElmLneroute) and
terminal (ElmTerm) objects, or with line subsection (ElmLnesec) objects, since
a line is either subdivided into line routes or subsections. Although line routes
may be subdivided into line sections, line subsections and line routes may not be
mixed on the same level.
The third possibility is to select a line type, which makes it possible to store the
line type in the line element.
As soon as a line or line route is subdivided, its length is calculated as the sum
of the line sections and routes. The ”Length of Line” field in the edit dialog (see
Fig. 8.10) of the line itself will thus be disabled when the line is split.
In any power electrical system there are two means in which the system
changes. Firstly by topological changes where new equipment is added or
where the system components are changed or upgraded.
Secondly, loads will change over time, perhaps daily, as loads peak and slump
through the day, or perhaps seasonally. Similarly, the rating values for
transformers and conductors may vary with temperature.
When the scale is created a means to ’set’ the scale, and hence the parameter
to the corresponding value, is required. This is called a trigger.
When a scale is created, in the ”Scale” folder inside the library folder by default,
a trigger is simultaneously and automatically created in the active study case
folder.
When this trigger is edited and a ’current’ value set (the triggers are accessed by
pressing the button in the main toolbar) the scale is set and the parameter
value is changed.
When a different study case is activated, or a new study case is created, and a
load flow is performed, all relevant triggers are copied into the study case folder
and may be used in the new study case.
Selecting the Reference... option presents a browser window and the user must
then select a pre-defined characteristic.
If one or more characteristics have already been defined for the parameter, the
pop up menu will show options to edit or delete existing characteristics or to
create another new one. The creation of these characteristics are described in
detail in the following sections.
The ”Usage” field at the bottom of the characteristic dialogue specifies how the
values entered in the ”Values” column will be applied to the parameter that the
characteristic is associated to.
Relative in % will multiply the parameter by the percentage value
Absolute will replace the current parameter value by the absolute value
provided
A graph showing the values plotted against the scale can be seen on the
”Diagram” tab.
The user now enters the range of values for the parameter [3].
The ”Usage” field at the bottom of the characteristic dialogue [4] specifies how
the values entered in the ”Values” column will be applied to the parameter that
the characteristic is associated to.
Relative in % will multiply the parameter by the percentage value
Absolute will replace the current parameter value by the absolute value
provided
when selecting a scale to create a new scale and read more about scales in the
sections following).
The ”Usage” field at the bottom of the characteristic dialogue [3] specifies how
the values entered in the ”Values” column will be applied to the parameter that
the characteristic is associated to.
Absolute will replace the current parameter value by the absolute value
provided
example of Fig. 8.16, the first column is calculated as the average of the other
columns. The result is shown in Fig. 8.17.
Once the values have been entered and the triggers have been set the ”Current
Value” field will show you what the value that will be used to multiply the
parameter is.
An example is shown in Fig. 8.21 where six temperature values are defined.
The scale ‘X-Y’ points will define a curve which is used to approximate ‘Y’ values
for trigger values in between, or even outside, the ‘X’ values. Various
approximation functions are available:
• Constant: holds the Y-value in between X-values
The approximation curve will be shown in the diagram page. Examples of these
approximation curves are shown in Fig. 8.22.
The unit of the time trigger is always an unit of time but may range from seconds
to years. This means that changing the unit from minutes to hours, for instance,
will stretch the scale 60-fold. The units ‘s’, ‘m’, and ‘h’ are respectively, the
second, minute and hour of normal daytime.
Fig. 8.23 shows an example where four equidistant moments in a year have
been created.
Ignore Time Trigger all characteristics that use time scales will be set to their
100% entered value.
OK Closes the dialogue and sets the study case time trigger
Date Sets the date to today as taken from the local PC.
Time Sets the time to now as taken from the local PC.
The external file must have the scale column for the data series in column 1.
Once the input data dialogue has been generated (see Fig. 8.25) a scale and
trigger must be set [1] and the link to the existing data file is created [2].
The column field [3] is used for specialised purposes and should generally be
left at the default figure of ’1’.
The factor fields, [4] and [5], may be used to adjust or convert the input data.
The data contained in column 2 of the external file will be adjusted by y=ax+b
where ”x” is the data in the external file and ”y” is what will be loaded into the
characteristic.
The ”Usage” field at the bottom of the characteristic dialogue [6] specifies how
the values entered in the ”Values” column will be applied to the parameter that
the characteristic is associated to.
Absolute will replace the current parameter value by the absolute value
provided
Once the file link has been set press the U PDATE button [9] to upload the data
from the external file to the characteristic.
The browser ‘Scales’ mode is not only used to quickly inspect all defined
characteristics, but may also be helpful in defining new characteristics, or in
selecting references. Fig. 8.27 shows the context sensitive menu that appears
when a characteristic field is right clicked.
The option Select Characteristic..., shown in Fig. 8.27, is used to define
Edit one of the loads, right click the active power field and assign the vector
characteristic to the relevant parameter
Open a browser with all loads, activate the ‘detail’ mode and select the
”Scales” tab
Select the characteristic column (right click →Select Column) and then
right click the selected column
Use the Select Characteristic... option and select the vector characteristic
When analysing a system it is often useful to know where the various elements
are receiving their power supply from. We can of course discern this by looking
at the breaker status’ and the flow of power, however, it would be convenient if
the program could indicate this automatically. In PowerFactory this is achieved
by using Feeder Definitions. A feeder is defined at a line or transformer end
and the feeder definition algorithm then searches the system from the feeder
definition point to determine the extent of the feeder.
Once a feeder has been defined it may be used to scale loads, according to a
measured current or power, to create voltage profile plots, to select particular
branches and connected objects in the network and for many other tasks.
Once the feeder has been defined a feeder dialog pops up, as shown in Fig.
8.30
Cubicle Indicates the position of the feeder. The direction of the feeder is away
from the busbar/terminal towards the connected branch. The direction of
the feeder in Fig. 8.29 is thus downwards.
Zone Indicates the zone to which the feeder belongs. A feeder is assigned to
the zone of the local busbar/terminal.
Colour sets the colour that the feeder will be shown in when the Feeder
Definitions colouring mode is engaged.
The load scaling tool assists the user in adjusting these estimated load values by
scaling them to match a the known feeder power or current that has been
measured in the real system.
To use this tool first define which loads may be scaled by enabling the Adjusted
by Load Scaling option on the Load Flow tab of the load dialogue. All of the
loads in a feeder may also be quickly viewed by editing the feeder from the
The load-flow calculation will then adjust the scaling of all adjustable loads in the
feeder areas in such a way that the load flow at the feeder equals the current or
power setpoint.
When the user is satisfied with the scaling the scaling factors can be updated to
the database by pressing the button.
The feeder setpoint is influenced by the zone scaling. This means that the
current or power flow as calculated by the load-flow could differ from the setpoint
in the feeder dialog when the busbar where the feeder is defined is part of a
zone.
For instance, a feeder has a setpoint of 1.22 MVA. The busbar is in a zone and
the zone-scale is set to 0.50. The flow at the feeder position will thus be 0.61
MVA.
The colouring command of the single line graphics looks for the feeder definitions
in the Feeders folder. See section 7.8.1, page 7-143 for more information.
Once the feeder has been accessed from the feeder folder by double clicking a
feeder object [3] all of the elements in the feeder may be listed in a browser by
pressing the E LEMENTS button [4].
When the S ELECT button [5] is pressed all of the elements in the feeder will be
marked in the graphic.
8.6.5 Zones
Elements in a system may be allocated to a zone and the graphic may be
coloured to show these zones. All of the loads may be quickly scaled in a zone
and the elements of a zone may be listed in a browser format for gang editing.
As with feeders a Zone folder is automatically created when the first zone is
defined. Zones may be accessed and edited from this folder.
Chapter 9
Performing Calculations
b Short-circuit calculations
c Transient simulations
are the most important.
Calculations are performed using data as defined by the active study case (see
6.0.8 for more information on study cases). Therefore a study case, having at
least one Grid or System Stage, should be activated prior to starting any
calculation function. See Project Management, section 6, page 6-93 for more
information.
The main menu calculation buttons will be enabled as soon as a correct study
case is active. These buttons will pop up the default calculation command
dialogs which are used to configure and execute a calculation. The default
calculation command objects are stored in the active study case.
Calculate Short-Circuit
Break
Reset Calculation
The button is used to gather and show all objects considered by the study
case, and which are of a certain class, in a browser in order to inspect their data
or to edit them.
Pressing the button will present a menu listing the icons of all classes of
objects currently used for the calculations, as depicted in Fig. 9.1. Pressing a
class icon will pop up an object filter browser, filled with all the objects of the
selected class, which are considered by the calculation.
Pressing the line icon, for instance, will open a filter browser which contains a list
of all lines. Pressing the transformer icon gives the list of all transformers, etc.
The filter browser can be used to inspect, select or edit selected objects.
Normally, the filter browser is closed after performing any of these actions. It is
possible to open more filter browser at the same time, by repeatedly pressing
the button.
9.2 Results
Following calculations some messages are printed to the output window. These
generally consist of errors, warnings or information that may be useful when
interpreting the calculated data. The load-flow calculation function, for example,
will provide the following message when the power system under analysis is has
2 separated areas:
DIgSI/wrng - 1 area(s) are unsupplied.
DIgSI/info - Grid splitted into 2 isolated areas
More extensive output is given in the output window, for example, by the (N-1)
outage calculation, which is an option in the load-flow command dialog. The
output given by that calculation is a list of load-flow calculations that were
performed, each with a table in which the element on outage and all overloaded
elements are provided.
For a single calculation, the ‘absolute’ results are shown in the single line
graphics. The variables that are shown may be specified by the user by altering
the result-box definitions.
When comparing two cases, the results of the first calculation are ’frozen’. All
subsequent calculations will then show their results as deviations from the first
calculation made. The subsequent calculation results are stored together with
the first result. This allows the user to re-arrange the comparisons as desired by
pressing the button (see the next section).
The differences between cases are coloured according to the severity of the
deviation, making it possible to recognise the differences between calculation
cases very easily. The colouring and severity ranges may be set in the Edit
Comparing of Results... menu option, found by pressing (see the next
section).
• Calculate the first case by activating a certain calculation case and, for
example, calculating a load-flow.
• Press the button on the main toolbar. This will store the base case
results and prepares to store the results of forthcoming calculations.
• Change the power system or a calculation setting to create the next case.
Permitted alterations include opening/closing switches, altering load
settings or any other component parameter, changing calculation cases,
adding or deleting elements, etc.
• The result boxes in the single line graphic will now show the percentage
change as compared to the first case. If the calculation report, as
generated for the first case, is generated again, it will also show relative
results.
• Make and calculate the other cases. After each calculation, the
comparison to the first case is shown.
• Transformer taps
• P,Q of Loads
Example:
A load-flow is calculated with the options ”Automatic Tap Adjust of Transformers”
and ”Automatic Shunt Adjustment” enabled. The calculated tap and shunt
positions may be seen in the single line diagram, but it will be noticed that the
input data parameter in the element data dialogue is as originally entered. The
button is clicked, and the input parameters are now overwritten by the
calculated values found on the single line diagram.
DIgSILENT GmbH
Gomaringen, Germany
2004
DIgSILENT PowerFactory Load-Flow Calculations
Chapter 10
Load-Flow Calculations
In the following pages the options that may be set for the load-flow calculation
will be explained. Following this, some tips on what to do if your load-flow is not
solving are presented.
Network Representation
Balanced, positive sequence Performs load-flow calculations for a one-phase,
positive sequence network representation, valid for balanced symmetrical
networks. A balanced representation of unbalanced objects is used.
Unbalanced, 3 Phase (ABC) Considers load unbalances (if the user has
enabled the unbalanced option for the load in the case of ElmLod objects,
or if other unbalanced elements exist) for the load-flow calculation, using a
full 3-phase, unbalanced network representation. If no load unbalances are
defined in the loads and this option is selected, the results will reflect a
normal load-flow calculation. Unbalanced elements are also considered
using all three sequence networks (positive, negative and zero).
Automatic Shunt Adjustment adjusts the steps of all switchable shunts that
have the option Switchable enabled on the Load-Flow tab.
Load Options
Consider Voltage Dependency of Loads Voltage dependency of loads that
have voltage dependency factors kpu and kqu (as set on the Load-Flow
tab in the load type) set will be enabled.
Feeder Load Scaling Scales loads marked Adjusted by Load Scaling in the
load-flow tab of their element data to match the total load specified in the
Load Scaling option of the feeder object.
Scaling Factor for Night Storage Heaters is the factor by which the night
storage heater power (as found in ”Low Voltage load” elements - ) is
multiplied for all low voltage loads.
Consider Active Power Limits active power limits for generators, as defined by
the generator element data, will be applied. A message will be issued
when the generator reaches these limits. When disabled, the active power
outputs limits may be violated, in which case a warning is issued.
10.3 Outputs
Show Verification Report Produces a table in the output window with a list of
overloaded objects and voltage violations, according to the values
specified in ”Check devices”.
overloads. This minimum power that will be shed is called the ”Power At
Risk”.
Output is a pointer to the report definition that will be used. The arrow can be
pressed to edit or inspect the report settings.
The following applies to all LV loads (ElmLodlv) and partial LV loads on lines
(ElmLodlvp):
Load-Flow Method
Either a Newton Raphson Current iteration, a classical Newton Raphson, or a
linear approximation method can be selected for the load-flow calculations. The
classical method is the default method. The current iteration method should be
used for networks that have large unbalances or power electronic devices.
Load-Flow Initialisation
No Topology Rebuilt Will speed up large sets of consecutive load-flow
calculations. It will not consider a topology rebuild when calculating the
next load-flow. If no topology changes will be made for the system then this
option may be enabled (the Jacobian Matrix thus stays the same and must
not be rebuilt which results in a faster calculation).
Tap Adjustment
Method The direct method will include the tap controller models in the load-flow
calculations (in the internal loop within the Newton-Raphson iterations).
The new tap positions will then be calculated directly as a variable and thus
result after a single load-flow calculation.
The stepped method will calculate a load-flow with fixed tap positions, after
which the required tap changes are calculated from the observed voltage
deviations and the tap controller time constants. The load-flow calculation
is then repeated with the new tap positions, until no further changes are
required. The tap adjustment will then take place in the outer loop of the
iteration.
Min. Controller Relaxation Factor The tap controller time constants are used
in the automatic tap changer calculations to determine the relative speed of
the various tap controllers during the load-flow iterations. The relaxation
factor can be used to slow down the overall controller speeds (factor less
than 1.0, in case of convergence problems) or to speed them up (factor
more than 1.0, for a faster load-flow).
Convergence Options
Relaxation Factor A Newton Raphson relaxation factor smaller than 1.0 will
slow down the convergence speed of the load-flow calculation, but may in
some cases result in better convergence.
and this option is enabled, an adaptive algorithm will change these models
slightly to make them more linear, until a solution is found. Model
adaptations are reported in the output window.
This page, as shown in Fig. 10.2 is not only important for load-flow but also for
other calculation functions like the transient simulation. Using the following
options i.e. a transient simulation can be sped up when the protection devices
will be neglected in the calculation.
Consider Protection Devices calculates the tripping times for all relays and
fuses that have been modelled. This will also show the load currents in the
overcurrent plots and/or the measured impedance in the R-X diagrams.
Disabling this option will speed up the calculations.
The panels ”Considered Models” and ”Ignored Models” are used to disable
specific groups of controller models. Models names can be moved
between panels by double-clicking or by using the arrow buttons.
In general, if a solution can be found (in other words, the network has a possible
solution) PowerFactory will find a solution. In some cases the user may have
made an error which will not allow a solution to be found, for example, a large
load causing volt drop so high that a voltage collapse results. In the real world
the same problem would be found.
When creating a network for the first time it is best to enter the data for just a
small part or ’path’ of the network and solve the network by calculating a
load-flow. PowerFactory has a data verification process in which certain
checks, such as whether a line is connected between nodes of the same voltage;
correct voltage orientation of transformers, etc, are performed. Error messages
regarding these issues are printed to the output window, listing the element and
error in question. These messages are interactive and the user may:
• right click →Mark in Graphic to show the element on the single line
graphic, or
In the following example the messages in the output window state that the line
element called ’MV-K6’, which is found in the ’South Grid’ folder is missing type
data.
Once these errors have been corrected and the load-flow still does not solve use
the ”Show Verification Report” and ”Show Convergence Progress Report”
options found in the ”Outputs” tab of the load-flow dialogue. These will print
messages to the output window and provide you with clues as to where you may
have problems.
At this point you can also colour the graphic to show you low and high voltages
and overloading. This will also provide you with a good idea of where there may
be problems. Look at the undervoltage nodes and overloaded elements and
figure out why they are overloaded; look at load set points, line lengths and line
type data (the impedances may be too high).
N OTE : There are 3 different types of messages that are printed to the output
window; warning, error and information messages. Only error mes-
sages must be corrected for a load-flow to solve. Take note of the
warning messages and evaluate them in terms of your system, these
do not need to be corrected for the load-flow to solve. ”Unsupplied Ar-
eas” mean that a node or branch element has no supply (i.e. a breaker
is open)
If there is still no convergence then set most of the elements out of service and
bring these back one at a time, from the source element ’downwards’,
performing a load-flow each time.
When you have large unbalances, such as when there are a number of single or
dual phase elements, or when you have power electronics elements use the
”Newton Raphson Current Iteration” option in the ”Advanced” tab of the load-flow
dialogue.
Chapter 11
Short-Circuit Calculations
Network Planning
One application is to check the rating of network equipment at planning stage. In
this case the planner is interested in knowing the expected maximum currents
(for the rating of the components) and the minimum currents (to make sure the
protection concept will work). Short-circuit calculation at planning stage mostly
will use calculation methods that require less detailed network modelling (e.g.
that do not require load information) and will apply extreme-case estimations.
Examples for these methods are the IEC/VDE calculation method and the ANSI
method.
Exact Calculation
A different field of application is the precise evaluation of the fault current in a
specific situation, e.g. to find out if the mal-function of a protection device was a
relay failure or was the consequence of wrong settings. This is the typical
application of exact methods like the superposition method (complete method),
which is based on a specific load-flow situation. This chapter presents the
handling of the short-circuit calculation methods as implemented in
PowerFactory. More information about the background on this topic can be
found in section 11.7.
The short-circuit setup dialogue then shows the previously selected elements in
the section Fault Location under User Selection.
When a fault on a line is calculated, a box is shown next to the line presenting
the results of the calculation.
The short-circuit event list is a special case of the general event list, which
contains the event definitions for dynamic simulations. It therefore contains
information that is not used by the short-circuit, like e.g. the times for each event.
In the application for the short-circuit special faults, these are set to zero.
• A window is opening up that presents you the list of events. When you
double-click on one line, a window with the description of the event is
opened.
• You now can modify the settings of the short-circuit event. The list of fault
locations consists of a “Short-Circuit Event List” (IntEvtshc) object, which
holds one or more short-circuit events (EvtShc). Each of these events has
a reference to a fault location (a busbar) and carries a description of the
fault type. An example is shown in Fig. 11.4.
N OTE : To re-use the event list (IntEvtshc) later, this object can be copied
to a user-defined folder in the database manager. This will prevent it
from being modified during the following calculations. When repeating
the calculation with the same configuration, the reference in Calculate-
Multiple Faults can be set to this object.
The specific options for the selected methods are discussed in section 11.6.1.
Fault Type
The following fault types are available:
• 3-Phase Short-Circuit
• 2-Phase Short-Circuit
• 2-Phase to Ground
• 1-Phase to Neutral
• 2-Phase to Neutral
• 3-Phase to Neutral
The fault types with neutral conductor only make sense when the lines are
modelled using neutral conductors.
Output
A text report is automatically written to the output window when the On option is
enabled. The reference to the report generating command can be used to select
which type of report will be printed out. Its name is written in blue colour behind
the button .
Fault Location
Either the option At all Busbars and Terminals is enabled, or a reference must be
given to either
Multiple faults will only be calculated for the complete method, when the option
Multiple Faults is enabled. In other cases when more than one fault location has
been selected, a sequence of short-circuit calculations is performed, once for
each fault location.
11.6.2 Verification
The verification option will, when enabled, write a loading report to the output
window which shows the various maximum and calculated currents for rated
devices. rated devices are, for instance,
• Lines which have a rated Short-Time Current at their line type which is
larger than zero.
• Breakers or coupling switches which have a type with a valid rated current.
Calculate
The pull-down list offers the choice between the minimal or maximal short-circuit
current.
Fault Impedance
The fault impedance is defined as the reactance and resistance of the fault itself
(i.e. the impedance of the arc or of the shortening path).
Short-Circuit Duration
The value for the Breaker Time is used to calculate the breaking current of a
circuit breaker. The value for the Fault Clearing Time (Ith) is required for the
equivalent thermal current.
Grid Identification
The calculation of the factor κ is different for meshed or radial feeding of the
short-circuit. Normally PowerFactory will automatically find the appropriate
setting. The option always meshed will force a meshed grid approach.
c-Voltage Factor
The standard defines the c-voltage factor to be used for the different voltage
levels. In special cases the user may want to define himself the correction factor.
In this case please activate the box “Userdefined”, then you can enter a specific
c-factor.
Asynchronous Motors
The influence on the short-circuit currents of the asynchronous motors may be
always considered, automatically neglected when possible, or neglected when
possible and confirmed by the user.
Conductor Temperature
When activating this option, the initial (pre-fault) conductor temperature can be
set manually. This will influence the calculated maximum temperature of the
conductors, as caused by the short-circuit currents.
method “C(1)” : uses the ratio R/X calculated at a virtual frequency of 40% of
nominal frequency (20 Hz for fn = 50 Hz, or 24 Hz for fn=60 Hz), based on
the short-circuit impedance in the positive sequence system.
method “C(012)” : like C(1), but uses the correct short-circuit impedance
based on positive-, negative- and zero-sequence system.
Calculate Ik
The steady state short-circuit currents can be calculated with different ways of
considering asynchronous machines:
Without Motors will disconnect all asynchronous motors before calculating the
current Ik .
Fault Impedance
The fault impedance is defined as the reactance and resistance of the fault itself
(i.e. the impedance of the arc or of the shortening path).
NACD Mode
The NACD factor is the ratio of remote current contribution and the total fault
current: NACD = Iremote/Ifault. This NACD factor is used to calculate the
breaker currents, including the DC component of the current. The remote current
contribution required to evaluate the NACD factor is the sum of all remote
generator contribution (induction generators, synchronous machines, external
grids).
The calculation of the NACD factor may be very time consuming, as the
contribution of each generator is calculated one by one. Therefore different
approximative methods can be selected, which represent the most common
interpretations of the ANSI Standards:
predominant: The the NACD factor is calculated. If the resulting factor is
greater as or equal to 0.5, then the “dc decay only” curve is used, which
means that the remote generation is higher than the local generation.
interpolated: The NACD factor is calculated and the correction factor for the
asymmetrical fault current is interpolated between the ”dc decay only” and
”AC/DC decay” curves with the following equation:
If (NACD = 1) then only the DC factor is used, if (NACD = 0) then only the
AC/DC factor is used.
all remote: All contributions are set to remote, the NACD factor is not calculated
but assumed equal to 1 and only the “DC decay only” curve is used.
all local: All contributions are set to local the NACD factor is not calculated but
assumed equal to 0 and only the ”AC/DC decay” curve is used.
Current/Voltages for
The calculation mode for the currents and voltages to be evaluated:
• Momentary Current
• Interrupting Current
• 30 Cycle Current
• Low-Voltage Current
• No bypassing
• All currents
• 30 cycle currents
Load-Flow
As the complete method considers the pre-fault condition in the system, it has to
evaluate a load-flow. The load-flow command (setup) initially is taken from the
currently active study case. To modify the settings, the button should be
pressed.
Fault Impedance
The fault impedance is defined as the reactance and resistance of the fault itself
(i.e. the impedance of the arc or of the shortening path).
Short-Circuit Duration
The value for the Breaker Time is used to calculate the breaking current of a
circuit breaker. The value for the Fault Clearing Time (Ith) is required for the
equivalent thermal current.
• subtransient
• transient
Calculate Ik
The steady state short-circuit currents can be calculated with different ways of
considering asynchronous motor contributions:
Without Motors will disconnect all asynchronous motors before calculating the
current Ik .
Apart from the load-flow calculation, short-circuit analysis is the most frequently
used calculation function when dealing with electrical networks. It is used in
system planning as well as system operations (see Fig. 11.5).
Applications in system planning are for example:
The fundamental difference for the calculation assumptions is that for system
planning studies the system operating conditions are not yet known, and
therefore estimates are necessary. For this purpose the method of the
equivalent voltage source at the fault location has generally become accepted in
Western Europe according to IEC 909 (VDE 0102). A revised version of this was
published as IEC 60909 in July 2001. This method works independent of the
load-flow of a system. It is based on the nominal and/or calculated dimensions
of the operating plant of a system and uses correction factors for voltages and
impedances, to ’push’ the results towards the safe side. For the calculation of
minimum and maximum short-circuit currents, different correction factors are
applied.
The initial point is the operating condition of the system before short-circuit
inception (see Figure Fig. 11.6 a). This condition represents the excitation
conditions of the generators, the tap positions of regulated transformers and the
breaker/switching status reflecting the operational scheme.
From these pre-fault conditions the pre-fault busbar voltage of the faulted busbar
can be calculated. For the pure fault condition the system condition is calculated
for the situation where, the negative pre-fault busbar voltage for the faulted bus is
connected at the fault location and all other sources / generators are set to zero
(see Figure Fig. 11.6 b).
Since network impedances are assumed to be linear, the system condition after
fault inception can be determined by overlaying (complex adding) both the
pre-fault and pure fault conditions (see Fig. 11.6 c).As the complete method is a
superposition of two special cases for the load-flow, the data necessary for the
model network elements are exactly the same as for the load-flow calculation.
and the associated definition of actual operating conditions. Fig. 11.7 shows,
how the method of the equivalent voltage source can be derived from the
superposition method. The steps a to c are very similar, however a simplified
network model is used.
• To ensure that the results are estimated on the safe side, a correction
factor c is applied to the voltage at the faulted busbar. This factor differs for
the calculation of the maximum and the minimum short-circuit current of a
network.
This idea is shown in Fig. 11.8. The correction Factor K should be determined
so that Ik” = Ik,IEC
”
. The standard defines an equation for the correction factor
applying to each element type.
Lines In their type you have to indicate the maximum admissible conductor
temperature (for min. S/C currents). Line capacitances are not considered
in positive/negative sequence system, but must be used in the
zero-sequence system.
Please see the standard IEC 60909 to find detailed information about the
specific model and the correction factors of each element.
Chapter 12
Protection
• The user must be able to create new complex protection devices or alter
existing ones
• Although the protection models may show high complexity, their use must
be kept easy
Protection devices are normally stored in the object which they act upon, but they
may be stored elsewhere when needed. Recommended, and by default, is that
• protection devices which act upon a single switch are stored in the cubicle
which contains that switch (highly recommended)
• protection devices which act upon two or more switches connected to the
same busbar are stored in that busbar
• protection devices which act upon two or more switches connected to the
same busbar system, are stored in the station containing that busbar
system
• protection devices which act upon switches connected to more than one
busbar system are stored in the station containing those busbar systems,
or in the power system grid folder if more than one station is involved
As a rule, the relay is best stored in the same folder as the voltage and/or current
transformers which it uses.
• by right clicking a switch-symbol in the single line graphic. This will bring a
pop up menu with the options Edit Protection Devices and New Protection
Devices
In all cases, selecting the option to create a new protection device will bring a list
with the following options:
• Fuse (RelFuse)
Each of these options will open a dialogue to specify the device that is to be
created or to select the one that is to be edited.
This separation between defining new or using existing relay types led to the
global relay object hierarchy as shown in Fig. 12.2.
The relay frame is a graphically defined composite frame which defines the
functional parts of the relay and their connections. The relay frame can be
compared with an empty printed circuit board.
The relay type is based on the relay frame and defines the type of parts which
are allowed to be put in the relay slots. The relay type can be compared with a
printed circuit board with specific, but still empty, chip or relay sockets.
The relay itself models a specific protection element, based on the relay frame
and the relay type. The relay model uses specific functional elements where the
relay type defines only the allowed type of elements. These specific elements
must be based on those element types. The relay object can be compared with
a finished printed circuit board, where specific relays and chips have been
inserted in the sockets.
The Fig. 12.2 also shows that most of the work of defining a protection device is
done by the Relay Type Designer. A large set of common relays types is
available in the database and these types are ready for use.
How to use a relay type, that is: how to create a relay element, how to add it to
the power system, how to adjust the relay settings, how to perform calculations,
etc., is shown by the example of a simple time-overcurrent relay. This relay
measures the currents in three phases, but calculates a single maximum current
Imax. The relay trips a breaker when Imax violates either the time-overcurrent
or the instantaneous overcurrent conditions.
The “Relay Definition” field points to the relay frame. The slot definition list will
automatically show all slots defined by that relay frame. In the example, these
are the five slots described in the previous section. The “Category” field is only
used to help selecting a relay type.
An object type is normally selected for each slot, except for the slots for the
current and voltage transformers. A relay based on the relay type may not use
elements other than such which are based on the given object types. The fact
that, in the example, no type is specified for the current transformer, means that
all current transformers may be used.
Normally, relay types are only selected but not changed or edited. The
PowerFactory relay database offers a wide variety of relay types.
The relay model has a reference to a relay type, a location, a device number and
a list of slots. The location is normally set automatically when a relay is defined
in the single line graphic by right clicking a cubicle. The cubicle then defines the
location. The device number is only relevant for the device documentation. The
slot list is defined by the relay type.
As is shown in Fig. 12.2, the relay model should define objects for all the slots in
the relay type. Each of these ‘slot elements’ must use the corresponding ‘slot
type’, when such a type is defined in the relay type.
Luckily, the tedious work of creating the correct elements, selecting the correct
type and assigning the element to the correct slot, is performed by the relay
element itself.
The whole process of creating a specific relay model thus only asks for selecting
a relay type from the database. What follows then can best be compared by an
automatic assembly process:
• as soon as a new relay type is selected, the slot definition list is updated
• all slot elements for which a slot type has been defined will be created
automatically. No elements will be created for those slots for which no slot
type has been defined. Normally, these are only the voltage and current
transformer slots. However, if already existing and valid objects are found
in the relay model or the cubicle in which it resides, they will be assigned to
the slots automatically.
• the created slot elements are inserted in the slot definition list
The result is a new and complete relay model with all slots filled (except maybe
for the transformer slots). Of course, all relay settings are still set to their default
values.
All slot elements created by the relay model are stored in the relay model itself.
Fig. 12.6 shows the database tree with the example relay model.
The current transformer in the example is not stored in the relay model but in the
cubicle.
When, again, a new relay type is selected, the slot elements created for the
previous relay type will in most cases not be suited for the new type. However,
the ‘automatic assembly process’ will try to reuse as much data as possible from
the old settings:
• Slot elements that are also suited for the new rely type will be reused as
they are
• Slot elements which are correct except for their type will be assigned the
correct slot type
Pressing the C ANCEL button after the Relay Type has been changed will
not restore the old slot elements.
Normally, the relay type will not define any current and/or voltage transformer
types. The corresponding transformer element will thus not be created
For the current transformer, the tap settings and the connection type have to be
selected. The possible tap range is limited by the type. See Fig. 12.7.
The measurement object only needs the Nominal Current and Nominal Voltage.
Their range is limited by the measurement type. The nominal values are only
needed if the relay uses p.u. values. In the example, the measurement object
needs no data at all. See Fig. 12.8.
The time overcurrent relay allows for setting
All three settings are limited by the relay type: only those characteristics
available for this type of relay can be selected and not every possible values for
the pickup current or time dial may be entered. See Fig. 12.9.
The instantaneous overcurrent relay allows for setting the pickup current. See
Fig. 12.10.
The logic unit dialogue shows a list of all switches that will be opened as soon as
the logic unit trips. The logic unit combines the tripping signals of the sub relays
(the Toc and Ioc relays in this example), in an AND/OR expression (Toc OR Ioc
in this example). All switches in the list will be opened. If the relay to which the
logic unit belongs is stored in a cubicle, the three-phase breaker in that cubicle
will be opened by default if no switches are been specified. See Fig. 12.11.
As has been explained in the introduction of this chapter, the whole hierarchy of
objects that is used to build protection devices can be divided into
The first group of objects are treated in detail in the technical reference manual.
The second group of objects are treated in this section.
In the case of auxiliary CT, the complete transformer ration over all CT’s in series
is shown in the edit dialogue. In the example of Fig. 12.12, the shown CT itself
has a ration of 5.00 to 1, but the complete ration (up to this CT) is 500.00 to 1.
The primary connection type is only available in the case of an auxiliary CT.
secondary connection type can be set to D or Y. For a 1-phase CT, the phase
can be set to
• N = 3*I 0
• I0=I0
The primary and secondary tap settings are limited to the values defined in the
current transformer type.
The current transformer type defines the primary and secondary taps of the
transformer. The “Additional Data page” is used only when saturation is
considered, to set the accuracy parameters:
The primary winding is defined by selecting a tap and a connection type. The
available tap range is defined in the voltage transformer type.
The secondary winding is defined by the secondary winding type, the tap setting
and the connection type. The available tap range is defined in the secondary
winding type. A voltage transformer requires at least one secondary winding.
More windings can be defined by pressing the button
A DDITIONAL S ECONDARY W INDINGS . This will bring a list of all previously
defined secondary windings. New windings can be created by pressing the
button.
The connection type “O” for the secondary windings is the “Open Delta”
connection, as depicted in Fig. 12.15.
The connection type “V” for the primary and secondary windings is depicted in
Fig. 12.16. Selecting a “V” connection for the primary winding automatically sets
the secondary winding to a “V” too.
B B
C C
Figure 12.16: The “V” winding connection
The secondary winding element requires a type and a reference to the voltage
transformer. The tap settings range is defined by the windings type.
See The Voltage Transformer, section 12.2.2, page 12-233 for more information.
The relay element is defined by selecting a relay type. The relay type defines the
relay frame and the slot types which may be used with that frame. After a relay
type has been selected, the “Slot Definition” list will be filled automatically with
the correct slot elements. The current and voltage transformers, however, are
not created automatically, although available CT’s and VT’s are selected
automatically. See “Creating a Relay Model”, section 12.1.1, page 12-225 for
more information.
Editing the settings of the relay model is done by editing the settings of the listed
slot elements. Double clicking a slot element in the “Slot Definition” list will open
the dialogue of that element.
The polarisation quantity Apol is rotated over the angle MT , which is the “Max.
Torque Angle” set in the relay edit dialogue. The rotated polarisation quantity A0pol
defines a half plane which forms the first tripping condition. Further conditions
are the projection of the operating quantity on A0pol , which must be larger than
the operating current setting, and the polarisation quantity, which must be larger
than the polarisation setting. More details about the polarization methods and
the tripping conditions can be found in the basic technical reference manual.
The choice for the type of operating and polarisation quantity is made in the
Directional Relay Type object. The relay object itself allows for the setting of the
tripping direction, the polarisation method when both methods (voltage and
current) are available, and the polarisation criteria. See Fig. 12.22.
Selecting a ‘Reverse Tripping Direction’ will invert the used operating current.
The voltage or current polarisation allow for setting the “Operating Current”, the
“Polarisation Voltage/Current” and the “Max.Torque Angle”.
The time delay set in the relay element defines the time during which the
frequency condition must be violated for the relay to trip. See Fig. 12.24.
The instantaneous overcurrent relay allows for the setting of the pickup current
and the time dial. Both entries are limited by the relay type. See Fig. 12.27.
The instantaneous overcurrent relay is a combination of a direct overcurrent
relay and an optional time delay. The pickup time T s is the minimum time
needed for the relay to react. Additionally, a time dial T set may be specified. The
relay will not trip unless the current exceeds the pickup current T setr for at least
The relay will nor reset until the current drops under the reset level, which is
Kr
specified by the relay type in percent of the pickup current: Ireset = Ipset 100% .
See Fig. 12.29 for a typical timing diagram.
output. The logic unit type specifies the logical operation, the logic unit itself
specifies the switches which will be opened when the relay trips. See Fig. 12.30.
If the relay is located in a cubicle and no switch has been specified, the breaker
in the cubicle will be opened by default.
The measurement unit allows for setting the nominal current and voltage. Both
are limited by the measurement unit type. If a relay does not need a nominal
voltage (i.e. in the case of an overcurrent relay), the nominal voltage field will
normally be disabled.
The time-overcurrent relay allows for the selection of one of the I-t curves
(‘characteristic’) which are available for the selected relay type. The I-t curve is
further specified by the pickup current and the time dial. Both values must be in
the range specified by the I-t curve definition. See Fig. 12.32 for an example.
The time dial settings will scale the I-t curve in the Time vs. I/Ip plot, according to
the curve definition. See Fig. 12.33 for example.
The pickup current defines the nominal value Ip which is used to calculate the
tripping time. The I-t curve definition states a minimum and a maximum per unit
current. Lower currents will not trip the relay (infinite tripping time), higher
currents will not decrease the tripping time any further. These limits are shown in
Fig. 12.34.
The pickup current may be defined by the relay type to be a per unit value, or a
relay current. The nominal current defined by the measurement unit (see section
12.2.10, page 12-243) is used to calculate Ip in the case of a per unit value. The
relay current value already equals Ip.
Altering the pickup current will thus not change the I-t curve, but will scale the
measured current to different per unit values. The following example may
illustrate this:
• Suppose the minimum current defined by the I-t curve is imin = 1.1 I/Ip.
The under-/overvoltage relay type may define the relay to trip on either
The relay element allows only for setting the pickup voltage and the time delay.
See Fig. 12.35.
12.3.1 Options
Path
Short-Circuits are calculated along this path. Path is set automatically and
grayed out if the command is called by the “Time Distance Plot”.
Additional Relays
If the option “Iterate Tripping Times” on the advanced page is set, the positions
where a relay trips is interpolated and written to the results. The relays whose
tripping times are checked are the relays found in the path and, in addition, the
relays given by the selection referenced in “Additional Relays”. Additional relays
is grayed out and set if the command is called by the “Time Distance Diagram”.
Results Frame
The variables written to the results object can either be defined by the user or by
the “Time Distance Diagram”. If the results are defined by the “Time Distance
Diagram” all “Monitor Variable Sets” in the results object are ignored. Otherwise
the variables found in the “Monitor Variable Sets” stored in the results object are
written. The result frame is grayed out if the command is accessed through the
time-distance diagram.
Results
Reference to result object, see also Result Frame, grayed out if the sweep
dialogue is accessed through the time-distance diagram.
Locations
A short-circuit is calculated on each busbar/terminal found in the path. If “Buses
and Branches” is selected short-circuits on the branches between the busbars
are calculated.
Short-Circuit Frame
“Command” is a reference to the short-circuit command. Except the short-circuit
location the short-circuit settings are not changed by the sweep. The type of
failure, the method of calculation and other settings can be modified there.
“Calculation” is just displaying the “Fault Type” set in the short-circuit command.
The time-distance plot shows the tripping times of the relays in dependence of
the short-circuit location. It is normally calculated by the short-circuit sweep
command. See section 12.3, page 12-246 for more information.
The most easy way of creating a time-distance plot is to define such a plot in the
single line graphic.
A previous defined path can be right clicked. The context sensitive menu will
show the option Path.. - Create time-distance Plot. This option can also be found
in the Output.. submenu of the context sensitive menu. The option will not be
shown if there is no distance relay available in the selected path.
The time-distance plot in Fig. 12.37 is separated in two different diagrams. The
forward diagram shows all relays at the beginning of the line in path direction.
The reverse diagram shows the relays at the beginning of the line in reverse path
direction. The upper diagram is in forward direction, the lower one in backward
direction. There are three different styles for the time-distance plot.These are:
Forward/Reverse: Both diagrams are shown.
Forward: Only forward direction diagram
Reverse: Only reverse direction diagram
The path axis in Fig. 12.38 shows the complete path with busbar and relay
locations. Busbars/Terminals are marked with a tick and the name. The boxes
above and below the line show the relay locations in forward and in backward
direction. The reference relays in both directions are marked with an arrow.
• The path is fed from only one side or there is no junction on the path.
The reference relay is set either using the graphic or by editing the “Time
Distance Diagram” dialogue. Changing the reference relay graphically is done by
clicking with the right mouse button on the relay symbol and selecting “Set
reference relay” in the context menu. If there is more than one relay connected
to the selected busbar PowerFactory prompts for the relay to use. In the
dialogue of the ”Time Distance Relay” the “Reference Relay” frame is located on
the bottom. Change the “Relay” reference to set or reset the reference relay.
12.6.1 Reports
The button “Output Calculation Analysis” ( ) in the main menu, will open the
“Output” dialogue (ComSh). The results of the load-flow or short-circuit analysis,
for a range of relays, can be generated in the output by selecting the options
• Results
• Relays
To generate a report for one or more relays, or for one or more previously
defined paths, the data manager may be used to select one or more relays or
paths and right clicking the selection. The menu will show the option
Output-Results if at least one relays was found amongst the selected objects or
in one of the selected paths. If a busbar was selected, then all relays in
connection with that busbar are selected too.
The first option (“Relays” ), which is always available, will show the names of the
relays in all cubicles. The second option will show the tripping times of the relays
after a load-flow or short-circuit calculation has been made. If a relays does not
trip, then a tripping time of 9999.99 s is shown.
12.6.3 Plots
The time-overcurrent plots offer many features for displaying the settings of
relays and the results of short-circuit or load-flow calculations.
The time-overcurrent plots may also be used for changing the settings of relays
and fuses, by simply moving the tripping characteristics. Especially the
possibility of changing the curves in combination with a short-circuit or load-flow
result, and with the help of transformer or line damage curves, ensures a clear
and comprehensible setting of the relay parameters.
The following section explains the special features of the time-overcurrent plots.
The most easy way of creating a time overcurrent plot is to define such a plot in
the single line graphic. Three different ways are possible:
• A previous defined path can be right clicked. The context sensitive menu
will show the option Path.. - Create Overcurrent Plot.
• One or more switches are selected and right clicked. The context sensitive
menu will show the option Create Overcurrent Plot
• One or more Transformers are selected and right clicked. The context
sensitive menu will show the option Output Data.. - Create Overcurrent
Plot
In all these cases, it is also possible to select the option Add to Overcurrent plot.
This will pop up a list of previously defined over current plots from which one has
to be selected.
The time-overcurrent plot shows the results of the short-circuit or load flow
analysis as a vertikal ‘x-value’ line across the graph. Because the currents differ
for each particular relay, a current line is drawn for each relay. The intersection of
the calculated current with the time-overcurrent characteristic is labeled with the
tripping time. A ‘grading margin’ line, which shows the difference between the
tripping times, may be added by right clicking the plot and selecting “Show
Grading Margins”.
It is also possible to create an user defined ‘x-value’ by right clicking the graph
and selecting the Set x-value option. The vertikal line will show the values at the
intersections of all displayed characteristics. To move the line left, drag it with the
mouse.
A characteristic is split by
• right clicking the characteristic
• enable the split option
The sub-characteristics are now visible. Each of them can be left clicked and
dragged along the time-overcurrent plot area. However, they cannot be dragged
outside the allowed range which has been defined for the relay type. After the
relay sub-characteristics have been changed, they can be combined again into
one single characteristic by disabling the split option again.
The plot option dialogue, which is opened by right clicking the plot area and
selecting Options, has an option for showing the grading margins when the time
overcurrent characteristics are dragged. The grading margin may be set to a
fixed time. The grading margins are shown as two lines, plus and minus the
grading margin above and below the dragged tripping characteristic. See Fig.
12.40 for an example: the original characteristic is labeled “1”, the new position
as “2”, and the grading margins are labeled “a”.
Typical values for the conductur, insulation factor, K, are given in the following
tables. These tables show the temperature range for the cables:
COPPER CONDUCTOR
T 1 T 2 mm2 CM M CM inch2
Rubber isolated 60 200 141 0.0714 71.4 90968
PVC, flexible cable:
≤ 300mm2 70 150 109 0.0552 55.2 70323
PVC, mounted:
≤ 300mm2 70 160 115 0.0583 58.3 74194
2
> 300mm 70 140 103 0.0522 52.2 66452
PVC. high T 90 160 100 0.0507 50.7 64516
EPR. 90 250 143 0.0725 72.5 92258
EVA 120 250 126 0.0638 63.8 81290
ETFE 135 250 117 0.0593 59.3 75484
SiR 180 350 132 0.0669 66.9 85161
VPE-cable 90 250 143 0.0725 72.5 92258
PE-cable 70 150 109 0.0552 55.2 70323
Paperisolated shielded cable:
0.6/1 or 3.6/6kV 80 180 119 0.0603 60.3 76774
6/10kV 65 165 121 0.0613 61.3 78065
Three phase shielded cable / radial field cable:
0.6/1 or 3.6/6kV 80 180 119 0.0603 60.3 76774
6/10kV 70 170 120 0.0608 60.8 77420
12/20kV 65 155 116 0.0588 58.8 74839
18/30kV 60 140 111 0.0562 56.2 71613
Oilcable 85 170 110 0.0557 55.7 70968
Pressured Gas cable 85 170 110 0.0557 55.7 70968
ALUMINIUM CONDUCTOR
T 1 T 2 mm2 CM M CM inch2
VPE-Cable 90 250 94 0.0476 47.6 60645
PE-Cable 70 150 72 0.0365 36.5 46452
PVC:
≤ 300mm2 70 160 76 0.0385 38.5 49032
2
> 300mm 70 140 68 0.0345 34.5 43871
Paperisolated shielded cable:
0.6/1 or 3.6/6kV 80 180 78 0.0395 39.5 50323
6/10kV 65 165 80 0.0405 40.5 51613
Three phase shielded cable / radial field cable:
0.6/1 or 3.6/6kV 80 180 78 0.0395 39.5 50323
6/10kV 70 170 80 0.0405 40.5 51613
12/20kV 65 155 77 0.0390 39.0 49678
18/30kV 60 140 73 0.0370 37.0 47097
Oilcable 85 170 73 0.0370 37.0 47097
Pressured Gas cable 85 170 73 0.0370 37.0 47097
To add the damage curves of specific transformers in the power system, right
click the transformer object in the single line graphic or the database manager
ans select the option Output.. - Add to Overcurrent Plot. This will pop up the list
of defined overcurrent plots from which one has to be selected. A damage curve
will then be calculated from the electrical transformer data, according to the
ANSI/IEEE C57.109 standard, and added to the selected time over-current plot.
The characteristic currents and durations given in the edit dialogue result in a
step wise motor start current plot, as depicted in Fig. 12.45.
Current Unit , The current unit may be set to either primary or relay ampere.
Show Relays , This option sis used to display only certain types of relay
characteristics.
Voltage Reference Axis. More than one current axis may be shown, based on
a different voltage level. All voltage levels found in the path when a time
overcurrent plot is constructed are shown by default. An user defined
voltage level may be added. Optionally, only the user defined voltage level
is shown.
Brush Style for Fuses This defines the fill style for fuse curves
‘Color for Out of Service’ Units The characteristics for units that are out of
service are drawn invisible by default. However, a visible color may be
selected.
Nr. of points per curve The number of points can be changed to either refine
the plotted curves for more detail, or to speed up the drawing of the
diagram.
The curve input command is used for measuring printed curves. The original
curves must be available in windows metafile (*.wmf) or in bitmap (*.bmp)
format. The graphics file is displayed as background in a curve input plot. This
plot then allows for defining plot points by successive mouse clicks.
The curve input plot allows for measuring and editing single curves of group of
curves at once. The measured curve points are stored in a Matrix object
(5.18.1). The positions of the axis in the curve input plot can be set by the user.
Special functions for groups of curves allow for x-value synchronisation and
many other facilities to make their input easier and faster.
A new Curve Input plot is created by right clicking the empty panel, or by
pressing the on the panel button bar and subsequently selecting the Curve
Input. The curve input option dialogue is opened by double clicking the curve
input plot.
Single ; each matrix input defines a single curve. The first column in the matrix
holds the x-values, the second one the y values. Other columns are
ignored.
Set of Curves ; only the first matrix is used for input. The first column in the
matrix holds the x-values, the other columns hold the y-values of each
curve in the group of curves.
• Linear
• Cub. Spline
• Polygon
• Hermite
Interpolate All interpolates undefined y values for all curves for all defined
x-values
Open the curve-input dialogue with a double-click and set the following
options
Define the axis position to adapt the curve input to the background plot:
Open the curve-input dialogue and adapt the scale of the curve input plot
to the scale of background plot
Right click the plot and select the Active Curve option and activate the first
curve. The option is not available when
Right click the plot and select the Input option. Select the input mode. With
the first curve, select the with x/y-Pairs option.
Right click the plot and select the Input - Off option to finish the definition of
the curve
Chapter 13
Harmonics Analysis
There are two possible calculation functions for analysing harmonics in power
systems:
• Harmonics Load-Flow
• Frequency Sweep
The harmonic load-flow calculates harmonic indices for a single frequency, or for
all frequencies at which harmonics sources are defined. In the latter case, the
set of frequencies is determined automatically.
The frequency sweep calculates harmonic indices for all frequencies in the given
frequency range.
There is a special tool bar available for accessing the different commands for the
harmonic analysis. This toolbar can be displayed (when not already active) by
selecting the button on the main tool bar and then choosing the bar for
Harmonics from the pull-down menu.
The button bar on the main menu now offers two buttons to open a
pre-configured command dialogue:
The command dialogues can be also accessed through the main menu by
To calculate the harmonic load-flow, use the to open the dialogue of the
command ComHldf. Fig. 13.1 shows the dialogue of the harmonic load-flow
command.
The following sections describe the different options available in the harmonic
load-flow.
Unbalanced, 3 Phase (ABC) This option will use a full 3-phase, unbalanced
network representation.
Calculate Option
Single Frequency will perform a single harmonic load-flow calculation at the
given ”output“ frequency fshow or harmonic order respectively. A common
application for this mode is the analysis of ripple control systems. The
results of the analysis are shown in the single line diagram, in the same
way as for a normal load-flow at the fundamental frequency.
All Frequencies will perform harmonic load-flow calculations for all frequencies
for which harmonic sources are defined. These frequencies are gathered
automatically prior to the calculation. The results are stored in a result file,
which can be used to create harmonic bar graphs (see also section ??).
Output Frequency is the frequency for which the result is shown. In the case of
a Single Frequency calculation, this is the frequency for which an harmonic
load-flow is calculated. In case All Frequencies is selected, the calculation
itself is not influenced but only the shown results in the single line
diagrams, which are the results for the selected frequency.
Rated Total RMS-Values (DIN) All values are rated on the basis of the RMS
values according to the DIN standards.
The harmonic analysis by frequency sweep is normally used for analysing self
and mutual network impedances.
But not only self- and mutual-impedances can be analysed and shown. The
available voltage source models allow the definition of any spectral density
function. Hence, impulse or step responses of any variable can be calculated in
the frequency domain. Especially the analysis of series resonance problems is a
very common application.
The following sections describe the different options available in the harmonic
frequency sweep.
Unbalanced, 3 Phase (ABC) This option will use a full 3-phase, unbalanced,
network representation.
An option is available for allowing an adaptive step size. Enabling this option will
normally speed up the calculation, and enhancing the results by using a smaller
step size where more detail is needed. The settings for the step size adaptation
can be changed on the “Advanced Options” page.
Output Frequency is the frequency for which the result is shown in the single
line diagram. This value has no effect on the calculations itself.
With this algorithm the frequency step between two calculations of all variables
is not held constant but will be adapted according to the shape of the sweep.
When no resonances in the impedance occur, the time step can be increased
without loosing accuracy. If the impedance will start to change considerably with
the next step, the step sizes will be reduced again. The frequency step is set
that the prediction error will be according to the given values.
The results of the continuous harmonic analysis are the same as for the discrete
analysis, except for the fact that they have been calculated for more frequencies.
The results are stored in the selected result object (“Result Variables”). See
section 13.5, page 13-275 for more information about specifying result variables.
It outputs a summary of the harmonics for the terminals/busbars and for branch
elements at a specified frequency, which is given as the output frequency in the
ComHldf command. Also it reports the parameters and different variables for
the installed filters.
The filter analysis report generator can be activated with the button or by
using the output button in the main menu (see also chapter 25.6, page
25-517). This will open the same dialogue for the report of the harmonic results,
shown in Fig. 13.3.
Busbars and Branches This option displays the results of the harmonic
load-flow for all node and branch element in the network. The distortion for
various electrical variables is printed and summarised.
Busbars/Terminals For the electrical nodes the rated voltage, the voltage at the
calculation frequency as well as RMS values and distortion at the nodes is
displayed.
Filter Layout The filter layout of all active filters in the network are calculated for
the given frequency. The rated values and impedances of the filter as well
as type and vector group are printed to the output window. Furthermore
the currents through the different components and the losses are shown.
Filter Results The filter results show the main layout of all filters in the network
for the calculation frequency. For a set of frequencies the voltages and the
currents through the filter are shown in a table format.
The default format used for the report in the output window is defined in Used
Format and can be set or changed by selecting the ”edit“ button .
• Thyristor rectifiers
• Voltage sources, which are normally used for ripple control applications.
I h = kh e∆ϕh I1 eϕ1
where
I h/I 1 if balanced
Ia h/Ia 1 if unbalanced phase a
kh =
Ib h/Ib 1 if unbalanced phase b
Ic h/Ic 1 if unbalanced phase c
phi h - phi 1 if balanced
phiA h - phiA 1 if unbalanced phase a
∆ϕh =
phiB h - phiB 1 if unbalanced phase b
phiC h - phiC 1 if unbalanced phase c
The values at the fundamental frequency, I1 and ϕ1 , are taken from a preceding
load-flow calculation. A normal load-flow calculation is therefore required prior to
a harmonic load-flow calculation.
The user can now enter magnitude and phase angle of each harmonic
component. In case of harmonic sources which produce non-characteristic,
unbalanced or inter-harmonics, the option “Balanced/Unbalanced Sources” has
to be set to “Unbalanced”.
For the “Unbalanced” case, harmonic frequency, magnitude and phase angle of
each phase can be chosen individually for each harmonic frequency. This mode
thus covers every possible kind of harmonic source.
R(fh ) = R × y(fh )
Fig. 13.7 shows an example of the use of the polynomial characteristic for a line
type.
ElmShnt : Shunt/Filter
ElmNec : NEC/NER
The waveform plot is used to display the waveform of a voltage or current after a
harmonics load-flow calculation. These harmonics are typically emitted by an
harmonic voltage or current source described in this chapter.
Using this plot a waveform is generated from the magnitude and the phase angle
of the harmonic frequencies. With this diagram a variable like the voltage or
current, which is defined in a harmonic source e.g. a power electronic device or
a load, can easily be shown as a time dependent variable. So the real shape of
the voltage can be seen and analysed.
For a more detailed description see section 24.6, page 24-476.
Before a frequency scan is performed, all variable of interest must be defined for
recording. This can be done by right-clicking an object, either in the single line
diagram or in the data manager, and selecting the option Define→Variable Set
(Harmonics Load-Flow) or Define→Variable Set (Frequency Sweep). This will
add a new, but still empty, variable set for the selected object to the result object
which is selected in the harmonic command dialogue.
All results of the harmonic analyses, except for the single frequency harmonic
load-flow, are stored in a normal result object (ElmRes). Such a result object
stores graphs of result variables vs. frequency. For more information about the
result object see chapter 25.1.
New result variables may also be added by pressing the button “Edit Result
Variable” ( ). This will bring the list of all variable sets which have been
defined already. Each variable set contains variables for a single object. See Fig.
13.8 for an example. A new variable set is defined by pressing the “New” button (
). The variable set manager (IntMon) will open when a new variable set is
created. The variable set manager is used to define the variables in the set. The
“Object” reference in the variable set manager must first be set to the object for
which result variables are to be added to the set. Secondly, the “Harmonic” page
has to be selected. This will show the list of all results that are available for the
selected object, for the harmonic analysis. See Fig. 13.9 for an example.
Result variables may be added or removed from the set of selected variables by
pressing the or buttons.
As the results of the discrete harmonic analysis are discrete, the plots made
from the result file should have the “Bars” option enabled in the Advanced page
of the SubPlot definition dialogue.
Chapter 14
Network Reduction
To avoid a loss of data, the folder to which the equivalent network definition is
written is empty, for instance a new variant folder created by creating a new
project revision.
The distribution network is fed by the two busbars “Bus 5” and “Bus 6” in the
• Create a new revision in order to keep the the original network definition. A
new revision is created by right-clicking the active project folder an
selecting New - Revision. The new revision creates variant folders in all
active grids, and creates a new study case.
• Run a load-flow
• Select one of the new system stages. The reduced network definition will
be stored in this system stage.
The result of the network reduction is shown in Fig. 14.3. The transmission
network has been reduced to the equivalent representation by two AC Voltage
Sources (ElmVac) and a common impedance (ElmZpu).
A load-flow calculation in the reduced network gives the same results for the
distribution network as for the original network.
DIgSILENT GmbH
Gomaringen, Germany
2004
DIgSILENT PowerFactory Optimal Power-Flow
Chapter 15
Optimal Power-Flow
To be done.
Optimization 15-281
DIgSILENT PowerFactory Optimal Capacitor Placement
Chapter 16
The button bar on the main menu bar offers four buttons to open a
pre-configured command dialogue:
• Setup of Optimization and execution
The optimization algorithm minimizes the annual total network cost. These cost
contain the following components:
• annual cost of capacitors (investment, maintenance, insurance), as
indicated on the description page of the capacitor type;
• cost of energy losses in the network, which can be reduced by the
capacitors due to the improved voltage profile and due to avoided transport
of reactive power;
• fictitious penalty cost for network nodes with a voltage outside the allowed
band (see figure 16.1).
Optimization 16-282
DIgSILENT PowerFactory Optimal Capacitor Placement
cmax
cmin
Umin Umax
Figure 16.1: Fictitious cost assigned by voltage band violations
b. Optimization step to determine the actual locations and sizes of the shunt
capacitors
The optimization is not only performed for a single load level, but for all load
levels described in a discrete scale that is handed over to PowerFactory. For
each of these load levels the voltage at the buses must be kept within the
allowed bandwidth. An additional vectorial characteristic describes the
probability of each of these load levels in hours/year, so that the cost of losses
can be calculated accordingly. The final result of the optimization process are
the locations for the installation of capacitors, the types and sizes of capacitors
to be installed and the capacitor switch positions for the different load levels.
Optimization 16-283
DIgSILENT PowerFactory Optimal Capacitor Placement
• the capacitor size best fitting to the reactive energy consumption of the
load is used;
a. Gradient search - this search is fast and mostly will find a solution that
performs well - even if not the mathematically exact global optimum
b. Tabu Search - this search finds the exact optimum, but may be more
time-consuming.
Feeder
Please select the feeder for which the optimum capacitor placement should be
performed. The feeder is a special PowerFactory element which has to be
created before selecting it in this dialogue.
Optimization Level
The Optimization Level List offers 4 options:
• Sensitivity only: Performs the sensitivity analysis and shows the result in
the text output window, but does not place any capacitors
• Fix Capacitors: Optimizes the network for fix capacitors, that is capacitors
without any voltage control
Optimization 16-284
DIgSILENT PowerFactory Optimal Capacitor Placement
Sensitivity Analysis
• Best fit to load: the capacitor size best fitting to the reactive energy
consumption of the load is used
Optimization Approach
Optimization 16-285
DIgSILENT PowerFactory Optimal Capacitor Placement
Energy Cost
Energy cost applied (in specific cost per kWh)
Available Capacitors
When pushing this button, the list appears with all capacitor types available for
the optimization. The recommended way of entering types to this list is by
copy/paste from type libraries
Optimization 16-286
DIgSILENT PowerFactory Optimal Capacitor Placement
load level. It is good practise to refer to this characteristic in the scaling factor on
the load-flow page of each load.
Time Vector
Optimization 16-287
DIgSILENT PowerFactory Optimal Capacitor Placement
Candidate Buses
Percentage of all candidate buses from the sensitivity analysis that are used for
the actual optimization process
Optimization 16-288
DIgSILENT PowerFactory Optimal Capacitor Placement
16.5 Results
The last three tool-bar buttons give access to the optimization results.
Optimization 16-289
DIgSILENT PowerFactory Optimal Capacitor Placement
Optimization 16-290
DIgSILENT PowerFactory Open Tie Optimization
Chapter 17
The open tie optimization is started when pressing the button for general tools
and selecting the button for open tie-point optimization:
• Open-Tie-Optimization
• A search is started for possible meshes in the network. Each found mesh
is closed first by closing all open switches in the loop. A load flow
calculation is then made, after which the loop is opened at the position with
the lowest current. Normally, the switch with the lowest current is opened,
but alternatively, the element with the lowest current can be taken out of
service when that current is lower than the lowest switch current.
• When opening a loop at the optimum location for active losses leads to an
overload on any line in the network, the algorithm will open a different line
instead.
Optimization 17-291
DIgSILENT PowerFactory Open Tie Optimization
Feeding points
The section of the network where the optimum open-tie points should be
determined is defined by a set of ”feeding points”.
Such feeding points can be
• external grids;
• a feeder object.
The feeding points are the positions where power is assumed to flow into the
network. Only meshes between the feeding points will be optimized. Meshes
connecting points in already optimized meshes are optimized also.
Update Database
Optimization 17-292
DIgSILENT PowerFactory Open Tie Optimization
If this box is unchecked, the proposals for opening disconnectors are listed in the
output report. If the box is checked, the status of the respective disconnectors is
also modified in the data of the network.
Selection
The possible options are:
• Whole System: the complete system fed by the feeding points is radialized;
• User-defined: an user defined set is selected, the lines in this set are used
for radializing the network. The selection can be used to further limit the
area which is to be optimized. The first limitation is by defining feeding
points. Only meshes for which all elements are in the selection will be
optimized.
Load-Flow Command
Reference to the load-flow settings used by the optimization.
Output On
If this box is checked, the result report is directly written to the message window.
Output
Reference to the configuration dialogue of the output available after termination
of the optimization routine.
Optimization 17-293
Reliability Analysis
DIgSILENT PowerFactory
Version 13.1
DIgSILENT GmbH
Gomaringen, Germany
2004
DIgSILENT PowerFactory Reliability Assessment Functions
Chapter 18
Reliability Assessment
Functions
The preparation command creates outage cases from a list of selected objects.
This list consist of
Options:
Outage Level n-1: This will create a single outage case for each selected object
Outage Level n-2: This will additionally create outage cases for each unique
combination of two selected objects.
The preparation command will issue a warning when more than 100 outage
cases will be generated.
The preparation command will change the outage simulation command in the
currently active calculation case. It will replace all present outage cases by the
new set of outage cases. The preparation command will then pop-up the outage
simulation command.
The preparation command will pop-up when a selection of objects is right clicked
in the single line diagram, and Calculate - Outage Simulation is selected.
Shortcuts to the selected objects will then be stored in the preparation command
automatically.
• ComNmink.GetAll(), which will return all objects stored (by shortcuts) in the
preparation command.
The outage cases stored in the outage simulation command are normally
automatically created by the N-K preparation command (ComNmink), but new
ones may be added by hand.
The outage simulation may also be controlled from a DPL script. It offers the
following DPL interfacing methods:
SetLimits(double Umn, double Umx, double Lmx): sets the voltage limits to
Umn and Umx and the loading limit to Lmx.
set ReportObjs(set s, int mode) returns the objects which are normally given
to the reporting command to produce the contingency reports. These are
ComOutage objects with the following parameters
The outage distribution factors are also calculated for generator outages, in
which case
∆Iij
ODFij,m =
Im
is used, where ∆Iij is the current change due to the outage of generator m and
Im is the pre-fault current in that generator.
In addition, a contingency report can be printed for each analyzed outage case,
as depicted in Fig. 18.1.
The maximum loading report shows the highest loading found for all contingency
cases, for all branches. Additionally, the ODF for each branch, for the
corresponding contingency. Multiple contingencies (i.e. with more than one
outage) produce ODF’s of zero. The contingency case for which the highest
loading was found is given by number, and the outaged objects are listed. The
columns “Gen1” and “Gen2” show the first and second synchronous generator
on outage. The columns “Element ...” show the first, second, third, etc.
non-generator object on outage. The maximum loadings are sorted from high to
low.
The voltage ranges report shows the highest and lowest voltage found for all
contingency cases, for al busbars and terminals. The outage case for both the
highest as well as for the lowest voltage are shown.
The overloaded circuit report shows all the outage cases for which a branch’s
loading exceeded the maximum loading. Additionally, the ODF for each branch,
for the corresponding contingency. Multiple contingencies (i.e. with more than
one outage) produce ODF’s of zero. More than one contingency case may be
The voltage violations report shows all outages cases for which a nodes voltage
was outside the specific range. More than one contingency case may be shown
for a single node.
• Synchronous generators
• Transformers
• Loads, motors
Line sections will be replaced by the line or line route of which they are a part.
Lines which have line routes are replaced by the first line route.
An assessment of voltage sag tables for a selection of load points can be started
by
• Selecting one or more busbars and/or loads in the single line diagram or
the data manager, right clicking the selection and selecting ”Calculate
Voltage sag table...”
• clicking the button on the main toolbar to activate the reliability toolbar
(when not already visible), then clicking the button.
In both cases, the dialogue window of the voltage sag table command will open,
as depicted in Fig. 18.6.
The voltage sag table assessment command has the following options:
Basic Options.
Load selection points to the set of load points. A load point can be
defined by a busbar or terminal, or by a load.
Short-circuit command points to the short-circuit command that is used.
The options for the short-circuit type will be changed during the
voltage sag calculation, but other settings may be changed at will.
Results points to the result file that is filled with intermediate results.
Exposed area limit is the minimum remaining voltage for the voltage sag
calculation to continue calculating short-circuits at busbars further
away from the selected load points. If short-circuits at all busbar at a
certain distance away from all load points result in remaining voltages
at the load points higher than this limit, then no further short-circuit will
be analyzed.
Advanced Options. The advanced options page shows the various short-circuit
types that can be analyzed by the voltage sag assessment command. All
components for which a failure model has been defined, have only an
overall short-circuit frequency. It is not possible to define various
frequencies of occurrence for single phase, two-phase or three-phase
short0cicruits independently for each component. The relative frequency
for each type of short-circuit is entered for all components at the same time.
The voltage sag assessment works by analyzing various faults at all relevant
busbars. It starts with the selected load-points, and proceeds to neighbouring
busbars until the remaining voltage at all load-points does not drop below the
exposed area limit. The remaining voltages and the short-circuit impedances for
all load-points are written to a result file.
After all relevant busbars have been analyzed, the sag table assessment
continues by analyzing short-circuits at the middle of all lines and cables that are
connected between the relevant busbars. Again, all remaining voltages and
short-circuit impedances for all load-points are written to the result file.
After the whole exposed area has been analysed in this way, the result file
contains the values for ZF 1 , ZF 2 , ZF 0 , ZS1 , ZS2 , ZS0 and ura, uia, urb, uib, urc, uic
for the two ends of all relevant lines and cables and at their middle.
The written impedances are interpolated between the ends of a line and the
middle with a two-order polynomial. From them, and from the written remaining
voltages, the various source impedances are estimated. These estimated
impedances are also interpolated between the ends and the middle.
The interpolated impedances are then used to estimate the remaining voltages
in between the ends and the middle of the lines or cables. This quadratic
interpolation gives very good results also for longer lines, and also for long
parallel or even triple parallel lines.
The main advantage is, of course, a substantial increase of the overall
calculation speed.
2. A voltage sag curve is created by selecting one or more of the nodes for
which the ComVsag command was executed and executing the option
Output Data / Create voltage sag plot ...
Alternatively,
• The ”Load selection” can be filled manually with objects. A load point is
defined by a terminal, a busbar, or by a single-connection element (a load,
motor, generator, etc.).
The voltage sag assessment command will default to the selection which has the
”Used for : Voltage sag table” flag set. However, any other selection may be
used.
The voltage sag tables are not calculated until a voltage sag plot is constructed.
At reading the remaining voltages, short-circuit frequencies and short-circuit
impedances fro the result file, a voltage sag table is constructed for each
selected load point. Fig. 18.7 shows the part of the plot dialogue that is specific
to the voltage sag plot.
Because there is no single definition of a voltage sag, the plot offers a selection
of sag definitions:
• Minimum of Line-Neutral Voltages
• no split
It is not allowed to select the same parameter for the x-variable and the
split-variable.
An example of the resulting voltage sag plot, in accordance with the settings
shown in Fig. 18.7 is shown in Fig. 18.8.
The voltage sag plot always shows the annual frequency of occurrence on the
y-axis.
The example plot shows a bar for each load point for each x-variable, which is
the Remaining Voltage. All three loads seem to suffer either deep sags
(remaining voltage less than 0.4 p.u.), or very shallow sags, although the values
for 0.8 p.u. are also significant. Each bar is subdivided to the Nom. Voltage at
Shc-Busbar. Apparently, the shallow sags are cause by low voltage network, as
well as the very deep sags. The high voltage network seems to cause moderate
voltage sags. This is cause by the fact that the low voltage networks are radially
operated and the higher voltage networks are meshed.
More detailed information about a certain value in the voltage sag plot can be
obtained by pointing at a bar or part of a bar and holding the mouse to let the
balloon help pop up. Fig. 18.9 shows and example of the information that the
balloon help provides.
The Voltage Sag Plot dialogue offers a R EPORT button, which cause the
voltage sag plots to be written to the output window. A table for each selected
load point will be written in accordance to the selected voltage sag definition,
x-variable and split-variable. An example of a voltage sag table is shown below.
The reported voltage sag tables also show the totals for each row and column.
DIgSI/info - ’Grid\TA2.ElmTerm’
col : Remaining Voltage (Volt.Sag) [p.u.]
row : Nom. Voltage at Shc-Busbar (Unom Shc) [kV]
val : Frequency of Shc (Sag Freq.) [1/a]
-------------------------------------------------------------------------------
| 0.20 0.40 0.60 0.70 0.80 0.85 0.90 0.95 1.00 |
-------|----------------------------------------------------------------|------
10.0 | 1.56 0.94 0.00 0.00 0.00 0.00 0.00 2.25 6.75 | 11.50
50.0 | 1.45 1.52 0.00 0.00 0.83 0.09 0.12 1.08 5.57 | 10.66
150.0 | 3.50 2.32 1.67 0.00 0.00 0.00 0.00 0.00 0.00 | 7.50
380.0 | 0.00 1.25 0.00 0.00 1.25 0.00 0.00 0.00 0.00 | 2.50
-------|----------------------------------------------------------------|------
| 6.52 6.04 1.67 0.00 2.08 0.09 0.12 3.33 12.32 | 32.16
-------------------------------------------------------------------------------
• clicking the button on the main toolbar to activate the reliability toolbar
(when needed)
The Reliability Analysis dialogue, as depicted in Fig. 18.10 will now appear.
Analysis
Generator - Load This will start an analysis in which only the available
generator capacity is compared to the load demand at actual. The
network is not considered.
Network, connectivity analysis This will start an analysis in which the
whole network will be involved. A load is assumed to be supplied
when it is still connected to a source of power. Possible overloading of
components is not regarded.
Network, load-flow analysis This will start an analysis during which
load-flow calculations are made to check for possible overloading.
Generator re-dispatch, load transfer and load shedding will be used to
alleviate overloads.
Loads Load curves The given area load demand curves will be used during
the reliability assessment.
Single Peak Load The single peak load levels as entered for the load-flow
calculations will be used.
Max. Runs The maximum number of simulations. Lower values (< 100) are
used mainly for checking.
Max. Error The maximum allowed relative error in the results. The simulation
from ”start time” to ”end time” will be repeated until all relative errors in the
averaged results drop under this level, or when the number of simulation
equals ”Max. Runs”.
Random Numbers The letters ”A..K” each stand for a pre-defined random
number ”seed”, ”auto” will start each simulation with a different random
”seed”. An identical simulation will re-produce exactly the same results
when ”A..K” is selected, because the same quasi-random numbers will be
used during the simulation. Slightly different results will be obtained when
”auto” is selected.
Confidence The confidence level determines the probability for which the
correct results lay within the confidence interval around the calculated
results. A high value (> 95%) may dramatically increase the calculation
time.
A selection can be made for the failures that are to occur and analyzed in the
state enumeration or the Monte Carlo simulation. A selection of objects that may
fail can be made, and certain types of failures can be enabled or disabled.
Selection
Whole System will regards failures in all components.
One Grid will only regards failures in the components residing in the
selected grid folder
User Defined will only regard failures in the selected components
Common mode, Busbars / terminals, etc. each of these types of failures can
either be enabled or disabled. Disabling the transformer failures, for
instance, which assume 100 /reliable transformer, by disregarding all
transformer failure models.
FEA options
A failure effect analysis is made for each system state that occurs either during
the state enumeration of during the Monte Carlo analysis.
Available options:
Use power restoration switches. Enabling this option will enable the fault
isolation and power restoration by network reconfiguration (switching).
Use all separation switches This option will make the fault separation
functions to use all available fault isolation switches.
Only use marked separation switches This option will make the fault
isolation functions to only use those separation switches which have
been marked as ”available for fault separation”.
Outage definitions.
Ignore existing will ignore any user defined power restoration scheme
stored in the reliability assessment command. Only default power
restoration schemes will thus be used. Disabling this options will
make the reliability assessment to use the power restoration schemes
stored inside, overruling.
Create definitions will write all power restoration schemes as used in the
reliability assessment in the calculation command as ComOutage
objects. These schemes can be replayed, edited, and reused in the
next analysis (by disabling the ”Ignore”option).
Important outages only this will only write restoration schemes in case
power to some loads could be restored by network reconfiguration, or
in case of a load-flow problem.
Overloading is used when the ”Analysis” option on the ”Basic Options”page is
set to ”Network, load-flow analysis”.
Max. Loading of Edge Element Defines the overload limit which is used
for the calculation of energy at risk and for overload alleviation.
load-flow command is the used load-flow command.
Advanced Options
The following advanced options are available.
that each possible system state is only analyzed once. Realistic state
frequencies (average occurrences per year) are calculating by considering only
the transitions from a healthy situation to an unhealthy one and back again. This
is important as the individual system states are analyzed one by one, and the
(chronological) connection between them is therefore lost.
After each failure, the system state is analyzed in the same way as it is analyzed
during the state enumeration method. In fact, there is no real difference between
The Monte Carlo simulation is much slower than the state enumeration, but has
the advantage that distributed results can be obtained.
After the Monte Carlo simulation has finished, it is possible to select one or more
loads in the single line diagram or the database manager and to select ’Output
data - Crate Probability Density Plot”. A list of reliability indices will appear, and
selecting one will create a probability density plot for the selected loads.
• Fault clearance
• Fault isolation
• Power Restoration
• Overload alleviation
The failure effect analysis for the network assessment may be carried out with or
without overload alleviation. Overload alleviation is performed by calculating an
AC load-flow, searching for overloaded branches and performing load transfer
and load shedding. Disabling the overload alleviation for networks where
overloads due to contingencies are not expected to occur may speed up the
calculations considerably.
The failure effect analyses will be performed for each contingency, for each
characteristic load point and for each year or load growth. For each of the
system states, one or more failures are present in the system. All failures are
assumed to be active, i.e. they will cause an intervention by the protection
system. The system is assumed to react to these short-circuits by the immediate
opening of one or more protection switches, followed by manual or automated
separation of the faulted equipment and the restoration of power to the
remaining part of the protected area. This is illustrated in Fig. 18.12. This figure
shows protection breakers, restoration switches and separators.
Fault Clearance
The fault clearance functions assumes 100% selectivity of the protection. In the
pre-processing phase of the reliability assessment, all breakers in the system
that can be tripped by an overcurrent or distance relay, fuse, or any other kind of
relay, are marked as “protection breakers”. Fig. 18.13 shows a simple network
with four loads, a breaker and a back-stop switch. The current system state
which is to be analyzed for possible load interruptions is the one with a
short-circuit on line route “LR2”.
The fault clearance phase is ended by opening the found minimum set of
protection breakers. If it is found impossible to isolate the faulted component
from all synchronous generators or external networks by protection breakers
only, then an error message will be written and the reliability assessment will
terminate.
The area around the faulted components which is isolated by the protection
breakers is called the “protected area”. Fig. 18.14 shows the example network
after the fault clearance functions have opened the protection breaker. The
protected area is the whole bottom line feeder, and load 1, 2, and 3 are
interrupted.
Fault Isolation
If the option Use Power Restoration Switches has been enabled in the command
dialogue, and one or more separation and one or more power restoration
switches have been found, an attempt is made to minimize the effects of the
faults by re-connecting as many loads back to the healthy part of the system as
possible.
After the protected area and the tripped breakers have been determined during
the fault clearance phase, a search is started for the minimum separated area.
The fault separation and power restoration both make use of the same
topological search for switches as has been used to find the protection breakers
during the fault clearance phase. The fault separation phase starts a topological
search at the faulted components for the smallest area around these
components which is confined by separating breakers. This smallest area will be
isolated from the remaining network by opening these separating switches.
Either all closed switches qualify for separator, or only those switches which
have been marked as ‘use for fault separation’, when the option “Only use
marked separating switches” was enabled in the reliability command dialogue.
The result of the search for the separation switches is a set of separating
switches which will, when opened, isolate the smallest possible area around the
faulted elements from the rest of the network. This area is called the “separated
area”. The separated area is smaller than or equal to the protected area. It will
never extend beyond the protected area.
The area between the protected and the separated area is called the “restorable
area” because, principally, power may be restored to those areas. Fig. 18.15
shows the example network with the opened separation switches. The
separated area now only contains the faulted line route. Two restorable areas
result from the fault separation; the area which contains load 1, and the area
which contains load 2 and 3. Power to load 1 is restored by (re)closing the
protection breaker. The left-most separation switch is remote controlled and has
a switching time of 3 minutes. The protection breaker is also remote controlled,
and load 1 is therefore restored in 3 minutes (=0.05 hours). Load 2 and 3 are still
to be restored.
Power Restoration
If the option Use Power Restoration Switches has been enabled in the command
dialogue, then a search will be started for the minimum number of restoration
switches needed to restore as large a part of the protected area as possible.
During this search, only the opened protection switches and the normally open
switches that have been marked as ’available for power restoration’, are
considered.
The power restoration phase uses a topological search for all power restoration
switches along the borders of the restorable areas. Each of these switches
which are connected to a still supplied area are marked as possible candidates
for power restoration. For each restorable area, only the fastest candidate switch
is closed. Each restorable area that is reconnected to the supplied network
again is called a “restored” area. Fig. 18.16 shows the example network in which
power to load 1 is restored by (re)closing the protection breaker. Power to load 2
and 3 is restored by closing the back-stop switch. Because the back-stop switch
has a switching time of 30 minutes, load 2 and 3 are restored in 0.5 hours. The
network is now in the post-fault condition.
All loads and busbars in a separated area are considered to be interrupted for
the duration of the repair, which normally is in the order of hours. All loads and
busbars in a restored area are considered to be interrupted for the time needed
to open all separators and to close all power restoration switches. Each switch
can be given an individual actuation time. Effects of automation and remote
control can thus be analyzed by lowering the actuation times for the remote
controlled switches.
system reaction to user selected faults can be made visible in the single line
graphs. The different areas and the protection, separation and restoration
switches will be colored differently. This gives a quick insight in the possible
impact of certain faults or fault combinations.
Fig. 18.17 shows that the example network does have a line overload in the
post-fault condition: line “LnA” is loaded to 122%.
Load Transfer
In many distribution systems, it is possible to transfer loads from the one feeder
to the other. If both feeders are being considered in the reliability assessment,
and when the normally open switch between them is marked for power
restoration, the transfer will be automatically performed in the power restoration
phase.
In some cases, however, the transfer switch and/or the alternative feeder are not
included in the network model for which the reliability assessment is made. Such
may be the case when a (sub-)transmission network is analyzed, where the
connected distribution networks are modeled as single lumped loads. Transfer
switches that connect two distribution networks will then not be visible. In that
case, the possibility to transfer parts of the lumped load model to other feeders
can be modeled by entering a transfer percentage at each lumped load. This
transfer percentage defines what part of the lumped load can be transferred
‘away’ from the analyzed network, without specifying to which feeder(s) that part
is transferred.
The use of the load transfer percentage is only valid when load transfer is not
expected to result in an overloading of the feeders which pick up the transferred
loads.
Load transfer is used in the overload alleviation prior to the calculation of power
at risk (see the next section). The power at risk is considered to be zero if al
overloads in the post-fault condition can be alleviated by load transfers alone.
Load Shedding
In the example network of Fig. 18.17, loads 2, 3 and 4 all contribute to the line
overload. Some of these loads therefore have to be shed. There are three basic
shedding schemes that can be used:
Optimal load shedding presumes that all loads can be shed to any amount. The
target is then to find a shedding scheme in which as little load is shed as
possible. In the example network, it does not matter which load is shed, as a
MW reduction of any load will result in equal reduction of the line overloading. In
more complex (meshed) networks, with more than one overloaded branch, a
reduction of the one loads may have a higher impact on the total overloading
than a reduction of another load.
The reliability assessment functions use linear sensitivity indices to first select
those loads which have a contribution to the overloads at all. A linear
optimization is then started to find the best shedding scheme for alleviating all
overloads, which will minimize the total amount of shed load. The resulting
minimum amount of shed load is called the “Power at Risk”, because it equals
the minimum amount of load that has to be shed in case of the initial network
fault occurring. The power at risk is multiplied by the duration of the system state
to get the “Energy at Risk”. The total energy at risk for all possible system states
is reported after the reliability assessment has finished as the “System Energy
At Risk” (SEAR). Fig. 18.18 shows the calculated energy at risk. Because the
line was overloaded by 0.53 MW and the faulted line has an outage expectancy
of 0.15 h/a, the energy at risk is 0.08 MWh/a.
The priority load shedding is performed after the power at risk has been
determined. The priority optimal load shedding considers the load priorities
defined for each load. The overload alleviation functions will use the load
sensitivity indices to calculate the lowest possible shedding priority in such a way
that when all loads which have equal or lower priority would be shed, then all
overloads would be alleviated. From this, it is clear that loads with higher
priorities are not needed to alleviate the overloading. The priority load shedding
is performed by repeating the linear optimization for the lower priority loads only.
Fig. 18.19 shows that when load 4 is set to a higher priority, load 2 is shed in
stead.
The discrete optimal load shedding is performed together with the priority load
shedding. Mixing discrete and priority load shedding does not require additional
calculations. The discrete load shedding scheme uses the fact that each load
can only be shed in a fixed amount of steps. The number of possible steps is
entered at each load. The discrete shedding scheme is calculated by
transforming the linear optimization problem into a discrete optimization
problem. Solving this linear optimization problem results in a higher or equal
total shed power. Fig. 18.20 shows the example network where all loads can
only be shed completely. As load 3 only demands 0.35 MW, and the overload is
0.53 MW, it cannot contribute to overload alleviation. Shedding load 2 therefore
leads to the minimum amount of shed load.
Load point indices are calculated for each individual load point. Many system
indices are calculated from these load point indices.
This section gives the principle equations for the various reliability indices. The
actual reliability assessment calculations use somewhat more complex
calculation methods. Nevertheless, the shown principle equations can be used
for hand calculations or for getting a better understanding of the produced
reliability assessment results.
In the definitions for the various reliability indices, the following parameters are
used:
C : number of customers
are defined as
X
ACIFi = Frk ·fraci,k [1/a]
k
X
ACITi = 8760 · Prk · fraci,k [h/a]
k
LP IFi = ACIFi · Ci [1/a]
LP ITi = ACITi · Ci [h/a]
ACITi
AIDi =
ACIFi
where i is the load point index, k is the contingency index, and fraci,k is the
fraction of the load which is lost at load point i, for contingency k. For lost loads,
or for loads that are shed completely, fraci,k = 1.0. For loads that are shed only
partly, 0.0 ≤ fraci,k < 1.0.
SAIDI : System Average Interruption Duration Index, in [h/C/a], is the mean time
per year that customers are interrupted, by dividing by all customers.
ASAI : Average Service Unavailability Index, is the probability of having one ore
more loads interrupted.
ASUI : Average Service Unavailability Index, is the probability of having all load
supplied.
P
ACIFi · Ci
SAIF I = P [1/C/a]
Ci
P
ACIFi · Ci
CAIF I = P [1/A/a]
Ai
P
ACITi · Ci
SAIDI = P [h/C/a]
Ci
SAIDI
CAIDI = [h]
SAIF I
ASAI = 1P− ASU I
ACITi · Ci
ASU I = P
8760 · Ci
are defined as
LP EN Si = ACITi · (Pcdi + P
csi ) [MWh/a]
LP EARi = ACITi · Pcri [MWh/a]
LP ESi = ACITi · Pcsi [MWh/a]
Where
at load point i.
ENS : Energy Not Supplied, in [MWh/a], is the total amount of energy which is
expected not to be delivered to the loads.
SEAR : System Energy At Risk, in [MWh/a], is the total amount of energy at risk
for the system.
SES : System Energy Shed, in [MWh/a], is the total amount of energy which is
expected to be shed in the system.
X
EN S = LP EN Si [MWh/a]
X
SEAR = LP EARi [MWh/a]
X
SES = LP ESi [MWh/a]
EN S
AEN S = P [MWh/C/a]
Ci
EN S
ACCI = P [MWh/A/a]
Ai
where LP EICi,k is the average interruption costs for load point i and
contingency case k, considering the load point interruption costs function and
the assessed distribution of the durations of the interruptions at this load point for
contingency case k. The interruption costs are calculated differently for different
cost functions. All costs functions express the costs as a function of the
interruption duration. For cost functions expressed in money per interrupted
customer, the number of interrupted customers is estimated for each interruption
as the highest number of customers interrupted at any time during the whole
interruption duration.
EIC : Expected Interruption Cost [M$/y], is the total expected interruption costs.
X
EIC = LP EICi [M$/a]
EIC
IEAR = [$/kWh]
EN S
Additional calculated indices for the load points:
These application notes are meant to get you starting with your reliability
analysis. Basically, a reliability assessment project has the following phases
• Data collection. In this phase, the search is for the best data that is
available. The results of the previous phase are determining which data is
important and which is not.
The first decision to make is about the kind of reliability assessment that is to be
performed. If no stochastic failure data is available, or when a “n-1” analysis has
to be made, then a contingency analysis is required.
• Load forecasts
After the electrical model of the electrical power system has been tested by
load-flow calculations or - preferably - by running a “n-1” contingency analysis,
the preparations for stochastic reliability assessment can start with the entering
of failure data for lines and cables. The required failure model is described in
section 18.7.2, page 18-334.
A new line failure model can be created by opening the dialogue window of a
line/cable element (ElmLne) or a line/cable type (TypLne). On the reliability
page, you can select a failure model. This will open a database browser where
you can select a failure models. A new failure model will be created when you
press the “New Object” button ( ) in that browser.
In most applications it is efficient to select failure data for the line/cable types,
rather than for the elements. Assigning a failure model to a type means that all
elements that use that type will automatically inherit the failure data. In some
cases, as for lines and cables, the failure model is entered in per-length units,
which will be multiplied by the lengths of the elements. In other cases, as for
transformers, the failure data is entered as-is.
If a certain type is used by many elements, then all these elements will inherit
the same failure model from that type. When some elements require specific
failure data, then the inherited failure model can be overruled by specifying an
element failure model.
After failure data has been entered, you must enter the basic protection scheme.
If no protection data has been entered at all, then the fastest way is to create a
“dummy” fuse object in one of the cubicles after which this fuse is copied to other
cubicles.
To create a dummy fuse:
• Right-click a cubicle in the single line diagram with the data cursor. Select
“New device - Fuse ...”
• Select a new type: choose “Select project Type”. This brings a browser
with all previously defined fuses. Press the “new object” button, name the
new fuse type to something like “Dummy Type”.
• Select a new melt Curve: choose “Select project Type”. This brings a
browser with all previously defined met curves. Press the “new object”
button again, name the curve to something like “Dummy Curve”. Select
some dummy values: for instance Function=“IEC 255-3”, a1=1, a2=2,
a3=3. Press the ... button of the time dial, and press OK . Press OK
to accept the dummy curve.
• Right-click a cubicle with a dummy curve. Select “Edit devices”. This shows
the contents of the cubicle. Copy the dummy fuse. Close the browser.
• Right-click another cubicle. Select “Edit devices”. Paste the dummy fuse.
Close the browser. Repeat this for all cubicles that should get the dummy
fuse.
Suppose we have a cable feeder with two parallel identical cables. The failure
model for each cable is:
• Failure frequency = 0.1 1/a
• Mean time to finish the repair on one of the two cables = 5 hours
Common mode failure models are created by pressing the “New Object” ( )
button in the database manager and selecting/entering the StoCommon class
name. Common mode failure models must reside in an active Grid folder in
order to become calculation relevant. Common mode models in a library folder,
for instance, will be ignored even when the objects which are affected are in an
active grid folder.
• Either all switches may be opened to isolate a fault, or all switches that may
be opened must be marked as “Use for fault separation”
• All normally open switches that may be closed for power restoration must
be marked as “Use for power restoration”
The reliability assessment command has an option on the “Advanced Options”
page to “Use power restoration switches”. If this option is disabled, then no fault
isolation or power restoration is performed. This means that all loads that are
interrupted by protection will remain interrupted during the repair of the faulted
component.
If the power restoration option is enabled, then either all switches can be used for
fault isolation, or only the ones that have been marked as “Use for fault isolation”.
The required time for power restoration to certain loads in case of a fault is
determined by the actuation times of the switches. This actuation time is not to
be interpreted as the time needed to operate a single switch, but as the average
time required until the operator can open/close this switch. This average time
includes required fault location, decision and traveling times. To determine the
actuation time for a certain switch, the following question must be answered:
“When this switch has to be opened/closed for the purpose of power restoration
following the occurrence of a fault, then how much time passes on average
between the occurrence of such faults and the actuation of this switch?”
The basic calculation flow diagram is depicted in Fig. 18.21. The failure models
describe the way in which the system components may fail, how often they will
fail and how long it takes to repair them. The load models may consists of only a
few possible load demands, or may be based on precise load forecast and
growth scenarios.
The basic task of the FEA functions is to find out if the system faults will lead to
loads interruptions and when such is the case, which loads will be interrupted for
how long.
The results of the FEA are combined by the data that is provided by the system
state production module to update the statistics. The system state data
describes the expected frequency of occurrence of the system state and its
expected duration. The duration of these system state should not be mistaken
for the interruption duration. A system state with a single line on outage, due to a
short-circuit in that line for instance, will normally have a duration equal to the
time needed to repair that line. In case of a double feeder, however, no loads
may suffer an interruption at all. In the case that loads are interrupted by the
outage, the power may be restored by network reconfiguration (i.e by fault
separation and closing a back-stop switch). The interruption duration will then
equal the restoration time, and not the repair duration (=system state duration).
R1 R2 R3
in service
S1 S2 S3 S4
in repair time
T1 T2 T3 T4 T5 T6
The line in this example fails at time T1 after which it is repaired and put back into
service at T2 . It fails again at T3 , is repaired again, etc. The repair durations
R1 = T2 − T1 , R2 = T4 − T3 , etc. are exaggerated in this example.
The repair durations are also called the “Time To Repair” or “TTR”. The service
durations S1 = T1 , S2 = T3 − T2 , etc. are called the “life-time”, “Time To Failure”
or “TTF”.
Both the TTR and the TTF are stochastic quantities. By gathering failure data
about a large group of similar appliances in the power system, statistical
information about the TTR and TTF, such as the mean value and the standard
deviation, can be calculated. The statistical information is then used to define a
stochastic model.
There are many ways in which to define a stochastic model. The so-called
“homogenous Markov-model” is a highly simplified but generally used model. A
homogenous Markov model with two states is defined by
The availability gives the fraction of time during which the component is in
service, the unavailability the fraction of time during which it is in repair and P+Q
= 1.0.
The same memory-less quality makes that all repairs will behave in the same
way, apart from their mean duration. And only mean durations can be
determined when using homogenous Markov models. Interruption costs,
however, may be dependent on the fraction of repairs that take longer then a
certain amount of time. A certain repair may take 2 hours on average, for
example, but when compensation has to be paid for interruptions longer than 3
hours, and when such long repairs occur in 20% of all cases, using the mean
duration alone will not produce correct results. A realistic assessment of
interruption costs is therefore not possible when using the homogenous Markov
model.
• It allows for a fast and correct calculation of interruption costs in all cases.
This example shows all parameters needed for defining a Weibull-Markov model.
If the example model would describe the behaviour of a generator, then
The parameters β (‘beta’) and η (‘eta’) are used to define the stochastic duration
of each state, i.e. the stochastic TTF (State 0) or TTR (State 2). The “Transition
Probabilities” Prij define the probability of the generator to change to another
state. The probability Pr01 , for example, equals the fraction of failures where the
generator is not tripped but kept on line with derated capacity. The probability
Pr02 equals the fraction of failures that cause the generator to trip, and
Pr01 + Pr02 = 1.0 in this example.
The form factors β0 and β1 where left at their default values as no data is
available for calculating them. The raw data, however, could be analyzed to get
more realistic values.
In addition to the line or cable failure model, a common mode failure model is
available too.
All failure models define how often a component will suffer an active failure. All
active failures have to be cleared by protection. When a failure cannot be
separated from all generators or external networks by protection, it will cause the
reliability assessment to stop with an error message. Repair of the faulted
component is assumed to start directly after the fault has been cleared. The
repair duration which is also defined in the failure models equals the time
needed to restore the functionality of the component. The time needed to start
the repair (for instance because spare parts have to be ordered first) and all
other delays are thus to be included in the total repair time.
The bar failure model defines a failure frequency for the busbar itself and an
additional failure frequency for each connection to the busbar. The repair
duration is independent of the number of connections. The total failure
frequency for a triple busbar system with six feeders is for instance calculated as
Ftot = 3 ∗ Fbar + 6 ∗ Fconnection [1/a]
which would add up to 0.24 per year for the shown failure model.
The bar or terminal elements will show the total failure frequency, outage
expectancy and mean outage duration at the reliability page. See Fig. 18.25 for
an example.
The bar or terminal element may overrule the failure model that it receives
through the bar type by selecting an element model.
The line failure model uses a failure frequency or expectancy per unit length.
The repair duration is independent of the length. Both the time to failure and the
repair duration have a shape factor Beta. The outage expectancy equals the
mean repair duration times the failure frequency and is thus also defined as per
100 km length.
The actual failure frequency for a particular line or cable is calculated by using
the length of the line/cable. The used failure frequency, outage expectancy and
mean outage duration are shown in the reliability page of the line/cable element,
as depicted in Fig. 18.27. The line or cable element may overrule the failure
model that it receives through the line/cable type by selecting an element model.
All line and cable failures are assumed to occur equally often for each position
along the length of the line/cable.
The transformer failure model has a failure frequency or expectancy and a repair
duration distribution. Both the time to failure and the repair duration have a
shape factor Beta. The outage expectancy equals the mean repair duration
times the failure frequency.
The used frequency, outage expectancy and mean outage duration are shown in
the reliability page of the transformer element, as depicted in Fig. 18.29. The
transformer element may overrule the failure model that it receives through the
transformer type.
This makes the failure model, however, somewhat more difficult to define. The
first step is to append one or more states to the model, as the default model only
has one state. This is done by right clicking the number of an existing state in the
state duration matrix and selecting Append Cells, as depicted in Fig. 18.30.
The second step is to name the created states and to enter the capacity in each
state. The stochastic synchronous machine has the following state attributes:
• Nominal Power = 0%
A derated state can be defined by defining a nominal power less than 100%, or
by setting ‘Machines On outage’ > 0. A nominal power or 50%, for example, will
half the capacity of all parallel machines, but all machines will remain running. A
number of machines on outage larger than zero will also reduce the total
capacity, but will also change the electric properties because of less remaining
machines running.
The definition of the Weibull-Markov model for the synchronous machine, i.e. the
definition of the state duration matrix, transition probability matrix, or the
transition rate matrix, is described in section 18.7.6, page 18-346.
Each failure model may be used by more than one synchronous machine at the
same time. The synchronous machines that use the same failure model will
nevertheless behave stochastically independent of each other.
The area model may be defined by a peak load curve, a load duration curve or a
stochastic Weibull-Markov model. The peak load or load duration curves may be
defined by an one-dimensional vector characteristic (ChaVec), or by an external
data file object (ElmFile).
The main difference between a local load model and an area load model is that
a local load will behave independent of all other loads, even when loads share
the same local load model. Loads which share the same area load model,
however, will all change their demand in the same way at the same moment in
time. The area load model defines all load changes as percentage change. A
load of 100MW and one of 5MW which both use the same area model will both
change to 80% when the area model changes to 80%. The 100MW load will
then change to 80MW and the 5MW load to 4MW at the same moment in time.
The various ways in which to model a load for reliability assessment are depicted
in Fig. 18.32.
The local load model uses the Weibull-Markov stochastic model. The definition
of the Weibull-Markov model, i.e. the definition of the state duration matrix, the
transition probability or transition rate matrix, etc., is described in section 18.7.6,
page 18-346.
In addition to the Weibull-Markov model, the stochastic local load has the
following state attributes:
An example of a load curve is the load duration curve of the IEEE test system,
which is depicted in Fig. 18.33.
The peak load curve which is used for creating a stochastic load model will be
converted to percent changes, relative to the highest value. The relative value is
used for both active and reactive power. This means that it does not make a
difference if either current measurements are used, active power, or apparent
power. All load points will be converted to the percent values, relative to the
highest value. Converting, for instance, current measurements to power values
by use of a nominal voltage and a presumed power factor is therefore not
required. Only the form of the load curve is used.
After the load curve has been defined and selected, the number of states for the
Weibull-Markov must be set. In the example of the IEEE load curve a number of
5 states was taken. After pressing the C REATE M ODEL button, the
Weibull-Markov model is calculated from the load data. The model for the
example IEEE curve is depicted in Fig. 18.34.
The load states are chosen in such a way as to bring the Weibull-Markov model
as close to the original load curve as possible. Fig. 18.35 shows the IEEE load
duration curve and the calculated 5 states of the Weibull-Markov model.
An area load model can be used to define an annual area load forecast, an area
load growth scenario for a range or years, or both. The “characteristic” option in
the load edit dialogue has to be set to Area Model first, after which the area
100
90
80
70
Load Duration Curve
60
50
40
30
20
10
0
0 730 1460 2190 2920 3650 4380 5110 5840 6570 7300 8030 8760
Hour in Year
Figure 18.35: The IEEE load duration curve with N=5 step curve
model can be selected. A new area model is created by pressing the button
in the object browser that appears when an area model is to be selected. An
example of an area model is depicted in Fig. 18.36, which defines both a load
curve and a load growth curve.
The annual load forecast can be defined by a chronological peak load curve, a
load duration curve, or a stochastic load model. As depicted in Fig. 18.32, the
peak load curve and the load duration curve may be defined by an
one-dimensional vector characteristic or by an external measurement file. The
load growth scenario is defined by an one-dimensional vector characteristic.
The load forecast curve which is used will be converted to percent changes,
relative to the highest forecast value. These relative changes are used for both
active and reactive power. This means that is does not make a difference if
either current measurements are used, active power, or apparent power.
Converting, for instance, current measurements to power values by use of a
nominal voltage and a presumed power factor is therefore not required. Only the
form of the load curve is used.
The selected load curve in Fig. 18.36 uses a time scale which has the 365 days
in the year, but time scales with 52 weeks or 12 months, or any other unit of
time, are also possible. See “Creating a one-dimensional vector characteristic”
and “Creating a Time Scale” in the basic user’s manual for more information.
The one-dimensional vector characteristic is not suited for holding larger load
curves, i.e. hourly peak curves which would have 8760 points per year. Such
curves can be used by using an external data file.
External data files can be used by creating an “External File” object (ElmFile).
This is done by first selecting the measurement file characteristic in the area
load model. Selecting the measurement file will now open a database browser.
A new file object is created by pressing the button. The measurement file
object (ElmFile) has a “FileName” field which is used to select the data file on
disk. The data file may contain up to 24 independent load curves. The
conversion factors ‘a’ and ‘b’ are normally not changed for reliability purposes.
See “The Measurement File” in the basic user’s manual for more information
about the measurement file object.
Because the external file may contain up to 24 columns with 24 different load
curves, the area model must specify a column number. If less than 24 different
area models are to be created for the reliability assessment, it is recommended
to create one single external data file which contains all area load curves. Only
one single measurement file object (ElmFile) is then required. Each area model
will then use this single file object. This makes it very easy to change the load
forecast for all areas by just changing the filename in the one measurement file
object.
Each area load model is normally used by more than one load. All loads that use
the area load model will have their active and reactive power multiplied by
p(h) ∗ r(y) at the same time. They will all behave simultaneously, i.e. they are
100% statistically dependent.
30min. − 7.5 $
60min. − 20.0 $
180min. − 80.5 $
(18.2)
means
Selecting an interruption cost function for a particular load is done by setting the
interruption costs reference on the reliability page of the load dialogue, as
depicted in Fig. 18.39. The type of interruption costs function must be set at the
load element. Three types of interruption cost functions can be used:
$/kW : cost per interrupted power (kW), versus the interruption duration.
Each load model uses three values to describe the load transfer and load
shedding possibilities:
• The number of load shedding steps define the minimum amount of load
that can be shed. Four shedding steps means that the load can only be
shed to 25%, 50%, 75% or 100%. Zero shedding steps means that the
load can be shed up to any amount.
• The load priority is used to determine which loads to shed. Only the loads
with the lowest priority will be shed.
• The load transfer percentage defines the amount of load that can be
transferred away from the current network. The network that picks up the
transferred load is not considered. A transfer percentage of 30% would
mean that the load can be transferred away up to 30%. A percentage of
zero means no transfer.
The load transfer for overload alleviation must be distinguished from the load
transfer for power restoration. Load transfer by isolating a fault and closing a
back-stop switch is already considered during the fault separation and power
restoration phase of the failure effect analysis.
For some cases, the Weibull-Markov model can be defined freely. Examples are
the failure model for the synchronous generator and the stochastic load model.
The advantage of a free definition of the failure or load model is that it allows for
any number of states. A failure model for a synchronous generator may thus
also contain so-called derated states, in addition to the “in-service” and the
“out-or-service” state. The possibility to define any amount of states is even
more important for creating realistic load models. The available interface for
creating a Weibull-Markov model is treated in this section.
The Weibull-Markov model allows for entering the stochastic data in various
ways. The following parameters may be used.
Mean : the mean state duration
Variance : the variance of the state duration
Beta : the form factor of the Weibull probability distribution
Lambda : the characteristic time of the Weibull probability distribution
Transition Rates : the rates at which the element changes to the other states.
Transition Probabilities : the probabilities for going to the other states.
Because these parameters are redundant – we can calculated each of them
from the others – there is more than one way to define a WM-model. Two basic
methods may be used:
• Specifying transition rates
• Specifying state duration parameters and transition probabilities
The choice of what to enter is made by pressing the O PTIONS button. The
state duration parameters Mean, Variance, Beta and Lambda are 2-out-4
redundant. Two of them will determine the other two.
In Fig. 18.40, an example is shown for a model which was defined by entering
state duration parameters (Mean duration and Beta), and transition probabilities.
The example shows a generator model with a derated state. The first state (“in
service”) has a mean duration of 2850 hours. There is a 65% probability that,
when a failure occurs, the generator will go to state 2 (“single burner”) and a
35% that it will go to state 3.
The button O PTIONS may be used to switch to the transition rate matrix at any
time. The transition rate matrix is calculated from the state durations and
transition probabilities. Fig. 18.41 shows the transition rate matrix for the model
depicted in Fig. 18.40.
When the transition rate matrix is changed, then the state duration matrix and
the transition probability matrix are changed in turn. Fig. 18.42 shows the failure
model after the transition rates have been rounded.
A Weibull-Markov model may thus be defined as
In addition to the transition rates, the Beta’s of the state durations may be
changed to other than 1.0, thus creating a Weibull-Markov model from
‘homogenous data’.
A Weibull-Markov model with all Beta’s set to 1.0 will equal a standard
homogenous Markov model, which is fully determined by its transition rates.
• The state Probability, which is the long-term probability to find the element
in the state
• The state Frequency, which is the mean number of times per year the
element enters or leaves the state
• The state Expectancy, which is overall mean number of hours per year the
element spends in the state
• The Mean Time Between, which is the mean time between entering the
state
These state statistics are shown, together with the duration distribution, on the
“Graph” page as depicted in Fig. 18.43.
18.7.7 Maintenance
Maintenance is included in the reliability analysis by defining one or more
maintenance blocks. A maintenance block consists of
Al objects in the list of objects will be taken out of service for maintenance by this
maintenance block together. See Fig. 18.44 for an example.
The maintenance schedule is a list of deterministic moments in time for which
the maintenance will start. For each planned maintenance, the duration must be
given. See Fig. 18.45 for an example.
Two parallel lines on the same tower or in the same trench will normally share
the same failure data. The probability of both lines on outage at the same time
will be the product of the individual outage probabilities, because the failures that
lead to the outages are independent. The following example illustrates this.
• suppose each line suffers an outage ones every 5 years, for 10 hours.
Their outage expectancy is therefore 2 h/y, their individual outage
probability is 2.3 · 10−4 .
The double outage, however, may be much more frequent due to causes that
effect both lines. Examples of such causes are dredging, lightning, storms, cars
hitting poles, etc. The common mode object which is used to model such
common mode causes is depicted in Fig. 18.46 and Fig. 18.47.
The basic page of the common mode model shows a list where all objects that
are outaged by the common cause can be entered. The failure data is entered in
the failure data page. The example shows a common cause which outages two
lines once every 5 years on average, for an average of 52 hours. Common mode
failure models can be defined for lines or cables and for line or cable routes.
The common mode failures will not cancel the individual failure models, but will
cause addition outages of all listed components at the same time.
• In the database manager, open the grid folder in which the elements for
• Add two or more lines in the model and select the elements that will fail.
DIgSILENT GmbH
Gomaringen, Germany
2004
DIgSILENT PowerFactory Time-Domain Simulations
Chapter 19
Time-Domain Simulations
There is a very large range of systems which can be analysed. For example it is
easily possible to analyse AC or DC systems (e.g. motor start-up, transmission
systems with detailed models of the power plants, complex HVDC systems) as
well as a combination of both. Also new study fields like wind-power or power
electronics applications constitute new challenges in the analysis of power
systems and new models and techniques are provided to meet these
requirements.
For modelling different machines and various controller units as well as the
electrical and mechanical parts of power plants, etc., there is the possibility of
using a variety of predefined models in the global library of PowerFactory. This
model library includes various models of generators, motors, controllers, motor
driven machines, dynamic loads and passive network elements. For example
you will find here the IEEE standard models of controllers of power plants.
Furthermore specific models of controllers and block diagrams of power plants
can be modelled with a high degree of freedom.
19.1 Introduction
To study and analyse power system stability the behaviour of power systems
under conditions before and after sudden changes in load or generation or
during faults or outages of elements have to be examined. The robustness of a
system is defined by the ability of the system to maintain stable operation under
normal and perturbed conditions. Therefore it is necessary to design and
operate a power system so that transient events, e.g. probable contingencies in
the system, can be sustained without the loss of load or loss of synchronism in
the power system. Transients in electrical power systems can mainly be divided
into three time domains:
• long-term transients
• Parameter Identification
Based on the results of a valid load-flow calculation of the studied system, the
PowerFactory time-domain simulation functions determine the initial conditions
of all power system elements including all controller units and the mechanical
parts of the system as well. These initial conditions represent the equilibrium
operation point at the beginning of the simulation, fulfilling the requirements that
the derivative of all state variables of loads, machines, controllers, etc. are zero.
Before the start of the simulation process, it is also determined what type of
network representation must be used for further analysis, what step sizes to use,
which events to handle and where to store the results.
4. Run Simulation
7. Printing results
The time-domain simulations can be divided into three different time periods to
be analysed, so there are three different simulation functions available:
in the following sections these three analysis functions in the time domain are
described and the usage is explained in detail.
Various events can be introduced. As an example the following event types are
listed:
• start-up and/or loss of generators or motors
• stepwise variation of loads
• load shedding
• line and transformer switching/tripping
• symmetrical short-circuit events
• insertion of network elements
• power plant shut down
• variations of controller setpoint
• change of any system parameter
In addition to the balanced RMS simulation events, unbalanced fault events can
be simulated, such as:
Due to the electrical network being represented in detail including all phases, all
described events, symmetrical and asymmetrical, can be simulated. The EMT
function can also be used for the simulation of longer-term transients, but due to
the passive network elements being represented dynamically, the integration
step size has to be much smaller than in case of a steady-state representation
and therefore, calculation time increases.
Basic Options the simulation type is selected here (RMS vs. EMT, balanced vs.
unbalanced), and the load-flow command, the result object and the event
list are defined.
Step Sizes maximum and minimum step size or different step sizes for various
classes of models are specified for the available step size algorithms.
Step Size Adaption can be defined when using automatic step size adaption.
References to the result object, the event list and the load-flow command are
available for inspecting or editing these objects.
may start to ’moving’ from the very beginning, even without the application of an
external event. In this case the user should analyse the relevant controller or
model and its defined initial conditions carefully.
The error message displayed in the output window might look as follows:
Long-Term Stability
The term ”long-term stability” is slightly misleading. It describes a special
numerical integration algorithm, with which it is possible to use large integration
step sizes compared to the characteristic time constants (eigenvalues) of a
system (A-stable integration algorithm).
If some very fast modes are not of interest, a large step size can be selected
from the beginning and the algorithm is automatically smoothing fast variations.
The term ”long-term” comes from the classical application of this type of
algorithm, the simulation of long-term phenomena, where it is necessary to
increase the simulation step size to the range of minutes, even if fast modes are
present in the system.
With the long-term algorithm, these systems can be analysed with reasonable
step sizes.
Hence, the long-term algorithm can not described as using simplified models but
as different type of numerical integration algorithm.
It is often not necessary and resulting in reduced simulation time not to plot
every single calculated time step. So additionally the step size for the output
graphs can be set, so not every point of simulation time will be drawn on the
virtual instruments plot. By selecting a higher output step size, the simulation
process will speed up without influencing the calculation process. Nevertheless
faster changes may be lost in the reported results.
Also the start time of the simulation can be set. This point of time is typically
negative, so the first event to be analysed can take place at t = 0s.
Furthermore two different algorithms can be used with the fixed step size:
Single Rate all model variables will be calculated at the same points in time
Multi Rate to speed up simulation you can set different fixed time steps for
different types of models. These are:
• electromagnetic transients
• electromechanical transients and controllers with small time constants
• controllers and machines with relatively large time constants (pco,
pmu)
Hence the parameters which are available for the step size are:
dtgrd Electromechanical Transients (sym, asm, vco, pss) (typical 0.01 sec)
dtout Output (typical equal to dtemt for EMT respectively dtgrd for RMS
simulation)
In case of such an interrupt, all time dependent variables are interpolated to the
instant of interrupt and the simulation restarts at that point. This prevents
numerical oscillations and allows much a lower integration stepsize in case of
power electronics devices.
The dynamic model equations of the voltage-controllers (vco) and the power
system stabilisers (pss) are solved simultaneously with the electrical generator
and passive network equations (stepsize dtgrd).
Other non-electrical model equations like prime mover systems (pmu), primary
controllers (pco) and motor driven machines (mdm) are solved using the
integration stepsize dtpmu in case of a multi-rate simulation.
N OTE : The smallest stepsize has to be specified for dtgrd. All other step sizes
must be multiples of dtgrd.
With this algorithm the time step between two calculations of all variables is not
held constant but will be enlarged, when no incidences, like external events or
variables reaching limitations, are encountered during this period until the
maximum time step is reached.
Every time an external or internal event occurs between two time steps, the
system variables are calculated for the exact point of time, when the event is
tanking place and the time step is automatically reduced to its minimum value.
So the behaviour of the system during a transient event is represented in the
best way.
If this option is activated, on the page ”step size” there will be the two integration
step sizes available:
dtemt / dtgrd minimum step size for EMT respectively RMS simulations
dtemt max / dtgrd max maximum step size for the method of simulation
Further parameters to adapt this algorithm can be found and the ”Step Size
Adaptation” page:
finc Speed Factor for increasing the time step (default value 1.5)
fdec Speed Factor for decreasing the time step (default value 2)
ddtemt max Maximum increase of the time step only for EMT simulations
(typical 0.001 sec)
N OTE : The simulation time can be very sensitive to some of the parameters.
For example when you increase the maximum time step the duration
of calculating the transients may only increase to a certain point an
then decrease again due to variables reaching their limits and thus
decreasing time steps. So please observe the simulation time and the
results critically for different simulation parameters.
The ”Resolution Factor” kres of the event control determines the time span
which is used to synchronise events. Every time an internal or external event
occurs during the simulation between time step i and i + 1, PowerFactory will
reduce the time step and to the minimum step size after step i. Then the time
span between the steps will be divided according to the resolution factor and the
event will take place at the nearest fraction of the time step.
If two or more events are all found to occur within that time span, they will be
considered as happening simultaneously, all at the same moment in time. Hence
the maximum time difference between two events is the (minimum) simulation
step size dtgrd times kres.
The all system variables are then interpolated to the point in time, when the
event is taking place, and the simulation is started from there. A higher
resolution factor decreases the minimum time span between events. The typical
value of 0.001 is normally sufficient.
After the event PowerFactory can re-initialise all variables again, when the
option is activated.
• itrpx specifies the max. number of iterations at each integration step which
are allowed to reach the max. tolerable bus-error errsm. During the
transient simulation process, the typical number of iterations required is 1
to 5. Under certain conditions - i.e. after switching operations - up to 25
iterations may be observed.
• The iteration error errsm depends on the nominal power of the machines
and voltage levels. As an adequate starting value, errsm should be set to:
errsm = 10 ∗ errlf , where errlf is the “Max. Allowable Load-Flow Error for
each Bus”. Checking is done best by plotting some voltages at generator
busbars. If there are voltage steps observed, the value of errsm should be
reduced.
You can chose between two different options for the reference system in your
network. The ”Local Reference System” will automatically set up different
reference machines for the rotor angle when separate systems exist or a part of
the system becomes isolated during the simulation. Otherwise one reference will
be used for the global system.
PowerFactory can also calculate the maximum deviation between the rotor
angles between the synchronous machines in the system. This variable is then
called dfrotx and can be chosen and displayed from the variables of all
synchronous generators in the system. This variable can be used as an indicator
for the synchronous operation of a large transmission system.
Also the option renew may be chosen. Then the random seed of the noise
generator can be selected manually from ”A” to ”K”. Thus the noise signal will
look the same in every simulation, i.e. the results of a former simulation can be
reproduced exactly.
main only the protection devices are in operation, which are defined as ’main’
devices
According to the controller models, there is the possibility to ignore all controllers
and mechanical elements with the option ”Ignore Composite Elements”. If there
are only some model types you want to neglect in the simulation, you may move
them from the left window ”Consider Elements” to the right windows ”Ignored
Elements”.
Therefore one or more result objects, containing the result variables, can be
configured. The simulation function needs the reference to a result object to
store the results.
The command dialogues for calculation functions, that produce signals, have
result object references, as depicted in Fig. 19.3 for the initial conditions
dialogue.
Such a result object reference is referring to the currently used result object. The
downward arrowed button is used to select, or reset the reference or to edit the
contents of the referenced result object.
The right-arrowed button is used to edit the result object itself. When editing the
output variables press this E DIT button and then C ONTENTS to get access to
the list of variables stored inside the result object. This will pop up the
corresponding ElmRes edit dialogue.
An easier way to edit the result object is to press the button on the main
toolbar, or to select the Data →Stability →Result Variables option on the main
menu. This will enable the user to edit the contents of the currently selected
Result object in the Initial Conditions command dialogue. Result objects
(ElmRes) are treated in detail in chapter 25.1.
To add variables of different elements to the result object for RMS and EMT
simulations, right-click on the preferred element in the graphic and select
Define... and Variable Set (Sim)... as shown in figure Fig. 19.4.
Then this element is monitored during the simulation. The result object is
automatically opened. By double-clicking on the variable set you can then
select the desired variables (see also section ??).
N OTE : Most of the variables for RMS and EMT simulations are identical. Nev-
ertheless there may exist variables that are valid for EMT but not for
RMS calculations. It is advisable only to use variables for the calcula-
tion you are performing.
This can easily be done in the data manager. You will find the result object in the
currently active study case. Just copy the result object and paste it into the same
study case. Then a second result object will be created with the name All
calculations(1). You may also rename the object.
In the next simulation, the default result object All calculations will be
overwritten with the new results, but the copied results will not be modified and
can be displayed together with the new simulation results in one plot (see also
section 24.2.1).
19.5 Events
The different events are stored in the event object. The contents of the currently
selected Event Object, which can be found in the dialogue of the initial
conditions command ComInc, can be edited by using the right-arrowed ( E DIT )
button and then the C ONTENTS button to get access to the event list stored
inside the event object.
You can easier access the event object from the main toolbar by pressing the
button. You will the see a list of the currently defined events including the
time, when the event will occur, and the related object. Figure Fig. 19.5 shows
an example for a set of events.
When creating a new event, use the button in the toolbar of the Simulation
Events object. You can then chose the kind of event from the list in the dialogue.
You can also modify the events during a simulation by stopping the calculation,
editing the events and continuing the simulation.
During a simulation all previous events, which already occurred, are displayed in
a grey font style and can’t be changed anymore. When the simulation is finished
or is stopped manually, the events which are still to come in the simulation can
be altered and new events can be created as well.
N OTE : At the ’end’ of a simulation the event list shows all the events, which
are now in a grey colour. Thus they can’t be modified again for this
simulation, because the simulation could be restarted from this point
on. To change the events for a new simulation you have first to initialise
the calculation again ( ), so the simulation time is set back to the
beginning.
The reference to the switch has to be set by hand. Any switch in the power
system may be selected, thus enabling the switching off lines, generators,
motors, loads, etc. Here you are free to select the switches/breakers of all
phases or only of one or two phases.
More than one switching event has to be created if, for instance, a line has to be
opened at both ends. These switching events should then have the same
execution time.
There is no possibility to define the duration of the fault. To clear the fault,
another short-circuit event has to be defined, which will clear the fault in the
same place. You can see an example in Figure Fig. 19.5.
• a busbar (StaBar)
• a terminal (ElmTerm)
There are different ways to change the power of the selected load:
Absolute Change changes the current value of the power to the given value in
% of the nominal power of the load
Nominal Change changes current and nominal value of the power to the
specified value in % of the nominal power of the load
The dynamic model equations of the voltage-controllers (vco) and the power
system stabilisers (pss) are solved simultaneously with the electrical generator
and passive network equations (stepsize ’dtgrd’).
In case of simulations with the quasi-steady network model, the integration step
size varies between 1 [ms] for small networks with very small machines of some
[kVA] rated power and 20 – 200 [ms] for high- voltage networks with large
machines of some hundreds of [MVA]. If during the simulation process the error
message “integration failed to converge” occurs permanently, the user is advised
to reduce the integration stepsize ’dtgrd’.
DIgSI/info - ’\Holger.IntUser\DFIG-Example.IntPrj\WTG1.ElmNet\ASM
and Rotor-side Converter.ElmComp\Pitch Control.ElmDsl’:
DIgSI/info - Derivative of x1 not equal 0!
The reason for this error message very frequently is a common model which is
not connected to a frame, thus it can’t be initialised and the error occurs. For
instance the DSL element AVR Common Model is in service, but the frame it
belongs to is out of service. Then PowerFactory can not calculate the initial
conditions of the model. This will only happen, when the common model is not
stored inside the composite model.
The message is only a warning informing you, that a variable is defined in a DSL
model but never used in this block. You can choose, if you want to remove it. But
there might be a mistake, so check if this variable is redundant.
If you get an algebraic loop, you should thoroughly check your block definition
and the equations for this. This error message means that PowerFactory can’t
calculate a variable which is depending on another variable and vice versa.
Check carefully your equations and the naming of your variables. Often this error
occurs when two variables have the same name or have a wrong typing. The
message shows you where to look at.
a = b+5
b = 2*a
DIgSI/err - Arguments in call and definition do not match !
DIgSI/err - Argument in call ’Kc’, argument in macro ’x’
DIgSI/info - Macro call in model: ’uerrs=’\Holger.IntUser\DFIG-
Example.IntPrj\Library\Block Definitions\
Controller.BlkDef’(yi;;Kc,Tc;)’
This error message refers to the reason, that a different number of parameters,
internal variables or limiting parameters do exist in the block reference and in the
block definition.
You can select the U PDATE button in the dialogue of the block reference. Then
all variables and parameters will be reset to their default name.
DIgSI/err - Variable without initial conditions: ’x’
DIgSI/info - Properties of variable ’x’: ’state’,’double’,’local’
DIgSI/err - Model ’Controller’ contains fault !
DIgSI/wrng - Intern variable ’o13’ missing in header of macro
definition!
DIgSI/wrng - Intern variable without definition: ’bias’
DIgSI/info - This variable keeps its initial value.
DIgSI/err - Intern variable without definition and initial
condition: ’Kudc’
DIgSI/err - Model ’DC Voltage Control’ contains fault !
A parameter or internal variable used for calculating initial conditions is not
defined in one of the blocks. Often the spelling of the parameter/variable on the
”additional equations” page is wrong or a S LOT U PDATE of a block changed
the name of parameter.
DIgSI/err - ’\Holger.IntUser\Windpark\Library\Block\Ctrl.BlkDef’:
DIgSI/err - Intern variable without definition and initial
condition: ’up’
DIgSI/err - Intern variable without definition and initial
condition: ’uq’
DIgSI/err - Model ’PQ Controller’ contains fault !
DIgSI/err - Initialization of ’\Holger.IntUser\Windpark.IntPrj\
Grid.ElmNet\Control.ElmDsl’ failed !
DIgSI/err - Calculation not possible !
DIgSI/err - Initial conditions not valid !
This error message states, that the internal variable/signals upand uqcan not be
initialised. This may often happen, when the input or output definition of the slot
do not match to the inputs and outputs defined in the DSL model inserted into
the slot. Check the name of these variables/signals in the frame and in the block
diagram.
DIgSI/wrng - ’\Holger.IntUser\Windpark.IntPrj\Grid.ElmNet\
Controller.ElmDsl’:
DIgSI/wrng - Unnecessary inputs have been left unchanged
(arbitrary choice)!
An output of the DSL model is not equal zero, although it is not used, i.e. the
output is not connected to an input to another DSL model.
When the investigated system does include elements, which are unbalanced,
then the load-flow command must be executed with the option unbalanced
activated. Otherwise in a balanced load-flow these elements are neglected and
thus can not be initialised when calculating the initial conditions.
no convergence in simulation !
No convergency in iteration-loop
When the initial values have been calculated successfully, the button on the
main toolbar will be activated and can be pressed to start the simulation.
The simulation is performed for the time interval between the start time defined
in the initial conditions command ComInc and stop time tstop, which can be
specified in the simulation dialogue. After a simulation has finished, it may be
continued by pressing the button again and entering a new stop time. In the
latter case, the stop time may also be entered as relative to the current
simulation time.
Chapter 20
The lack of more accurate controller models has even led to manufacturers
being asked to deliver block diagrams and parameters according to a list of
available IEEE models, although these manufacturers were able to supply exact
controller model to perform highly accurate system modelling studies.
System modelling for stability analysis purposes is one of the most critical issues
in the field of power system analysis. Depending on the implemented model
accuracy, large-signal validity, available system parameters and applied faults or
tests, nearly any result could be produced and arguments could be found for
their justification.
This is one aspect of the complexity of a transient stability study. The other
aspect results from the often large set of time-domain models that are required,
The basis for the modelling approach is formed by the basic hierarchical levels of
time-domain modelling:
• The build-in models and common models. The build-in models are the
transient models for standard primary and secondary power system
equipment, i.e. for generators, motors, static VAr compensators, voltage
controllers, prime mover units, etc.
The common models are based on the DSL block definitions and are the
front-end of the user-defined transient models.
The relation between these models and the way that they are used is best
described in the following example.
Suppose the frequency deviations due to the sudden loss of a fully loaded 600
MW unit in a particular network is to be analysed. Depending on the network and
the required detail in the calculated results, such analysis may ask for a detailed
modelling of the voltage controllers, prime movers and primary controllers, or
any other important equipment for all large generators in the system.
power voltage
system controller
stabilizer (vco) Uerrs
(pss) Upss
synchronous
generator
PG
(ElmSym)
prime
primary mover ∆f
controller unit
(pco) at (pmu) PT
1. Transient models for each required controller type or unit type have to be
defined (Model/Block Definition).
2. For each generator, the transient models of the individual controller must
be customised by setting the parameters to the correct values (Common
Model).
4. For each generator, the diagram and the customised transient models are
to be grouped together to define an unique ’composite’ generator model
(Composite Model).
Often the design of many of these voltage controllers will be similar. To omit the
need of creating copies of these controllers for each generator and to avoid
redundant copies of controllers or also of whole generator models.
The principle diagram for the composite model and the relation between the
different types of models are displayed in Fig. 20.2.
N OTE : Not all slots of the composite model have to be used. There can also
be empty slots. Then the input of this slot is not used and the output
will be assumed to be constant over the complete simulation.
The usage of composite models with its composite frame as well as the common
model with its block definitions are described in the next sections.
The design and creation of user defined common models using the ”DIgSILENT
Simulation Language” (DSL) can be found in chapter 21.
If inserting controller models into a slot often the controller element has not yet
been created. To create a new controller select New Element/Type from the
context menu of the slot. This will show a list of available build-in controller
models, which will fit into the slot or user defined models (ElmDsl).
Selecting a build-in model will open the element dialogue of that model in order
to define the parameters, similar to e.g. a transformer element. You will find the
required parameters for the model on the RMS/EMT page. In the case of a
common model, a block definition has to be selected prior to setting the model
parameters (see section 20.4 and Fig. 20.2).
If a element is assigned to a slot, you have then the possibility to edit the
assigned element by simply selecting Define... →Edit Element/Type. The menu
command Define... →Reset Element/Type will reset the slot, so it is empty again.
N OTE : Depending on the settings of the individual slot the menu command
Define... →Reset Element/Type will not only clear the marked slot but
also delete the build-in model, if it is stored inside the composite model
in the data manager. These settings are explained in the section 20.3
in more details.
A faster method for defining standard composite models is to right click an object
in the single line diagram and selecting Define... from the context menu of the
element.
When a standard composite model is available for the selected object, a list of
the available controllers is shown. Selecting a controller will add it to the
composite model, which is automatically created when no composite model
exists yet for the selected object.
In Fig. 20.4, the menu is shown for the synchronous machine. Standard
composite models are available for
All build-in or common models which have been created for a specific composite
model are stored in that composite model itself. The contents of a composite
model are shown in the database manager where the composite model is
treated as a normal database folder. Basic power system equipment, such as
synchronous machines or static VAr compensators, are normally not stored in
the composite folder, but in the grid itself.
The slot update will try to re-assign each model found in its contents to the
corresponding slot. Hereby the options defined for each slot are important.
These are described in the paragraph ‘Classification’ in section 20.3.
Next to the references to the composite model, the template and the target
directory, the two step response tests, which will be created, can be specified.
Also the study case to be activated can be chosen. When the E XECUTE is
activated, PowerFactory will create a new folder in the current project named
”Step Response Test”. Fig. 20.6 shows this folder in the data manager.
Inside this folder a second folder with the name of the composite model, which is
to be tested, is created. Here you can found the simple test grid including only
the generator, the complete composite model and a load. Additionally there will
be two new study cases in which a step response for the AVR and the PCU
respectively of the composite model can be tested.
You can change between the two study cases and your old cases by activating
and deactivating them.
N OTE : There now doesn’t exist any connection between the original and the
new elements of the composite model anymore. So you can change
all settings of the controller without changing your network.
After testing the controller, the folder ”Step Response Test” can be deleted
completely without loss of information in the original network.
A composite frame is a block diagram which defines two or more slots, their
input and output signals, and the connections between them. A composite frame
is defined graphically by drawing it.
To create a new composite frame select the ”Insert New Graphic” button on
the main toolbar and then selecting Block/Frame Diagram and pressing
E XECUTE as shown in Fig. 20.7. This new block definition will then be
automatically created in the local library.
An empty diagram of the frame will appear in the graphics window. A slot is then
created by selecting the button in the graphics toolbox and positioning the
slot on the drawing surface by once clicking at the appropriate position. This is
similar to placing elements in the single line diagram.
An empty slot will be drawn on the page. To define the input and output signals
and different parameters of the slot, edit the slot by double-clicking it. The slot
edit dialogue will pop up as depicted in Fig. 20.8.
Only after one or more input and output signals have been defined for a slot, it
becomes possible to connect the slot with signal lines to other slots. It is
therefore recommended to first position and edit all slots and draw the signal
connections thereafter.
Limiting Signals
Also there is the possibility to enter ‘limiting signals’. These signals are handled
from PowerFactory exactly like the normal input signals. The difference is only
in the graphical representation in the block diagram. These signals will be shown
as inputs on the top or bottom of the slot.
Class/Name Filter
Additionally there is the possibility to specify a filter for the class name and/or for
the model name to be inserted. This makes sense e.g. when only synchronous
machines should be assigned to the slot. Then you would enter ElmSym* for
the class name. PowerFactory then will only allow the element class
“synchronous machine” to be inserted into the slot. A filter for a specific (part of
an) element name can also be defined.
Classification
The classification options does only affect the external behaviour of the slot.
Automatic, model will be created When this option is activated, the function
’Slot Update’ (see sectionSlotUpdate) will automatically create a DSL
model and ask for a block definition from the library.
Local, Model must be stored inside This option is activated by default. This
means that when a S LOT U PDATE is executed in the composite model,
PowerFactory will only search for elements, which are stored inside the
ElmComp. A reference to models, which are stored outside, i.e. like the
synchronous generator in a plant model, will be removed from the slot.
N OTE : Not all input or output signals of build-in elements or common models
have to be used and defined in the slot. Also a slot may only have input
or output signal.
For example the voltage or frequency of a AC voltage source ElmVac
may be controlled by an external function. So the slot for the source
will only have two input signal u0 and f0.
To assign the external form of a block definition to the selected slot, edit the slot
by double-clicking it and choose the ”select” button for the ”Block Definition”
in the dialogue. Now you can select the block definition, e.g. the type of
controller or build-in element, which should be assigned to this slot later on.
For example if the new defined slot ought to represent a synchronous machine
in the frame diagram, you can choose a predefined block definition to insert the
input and output signals to this slot available for the element ElmSym. A
controller for example should only assigning to a slot, when only this type of
controller is to be inserted into this slot but no other model.
Some predefined block definitions can be found in the global library in the path
L IBRARY\M ODELS\B UILD - IN.
When you select the block definition (in our example the ElmSym.BlkDef), the
input and output as well as limiting signals will disappear from the dialogue of
the slot. The filter for the class name will automatically be entered. When
selecting the OK button, the slot will then show the right inputs and output of
the block definition.
The common model element (ElmDsl, ) is the front-end object for all
user-defined block definitions. This means that user-defined transient models,
but also the block diagrams that are ready shipped with the PowerFactory
program, cannot be used other than through a common model. The common
model combines a model or block definition with specific set of parameter values.
The general structure of the common model and its block definition is depicted in
Fig. 20.9.
A primitive block definition contains one or more DSL expressions and forms a
basic block for more complex transient models. A description of how to use and
create DSL models can be found in chapter 21.
Each block definition generally has one or more parameters which can be
changed to define the model’s behaviour. Two kinds of parameters are
supported:
• Two and three dimensional array parameters, which are used in the DSL
lapprox()/lapprox2() and sapprox()/sapprox2() functions.
To create a common model, use the ”New Object” ( ) button in the toolbar of
the data manager and select Common Model. The block/model definition has to
be selected first. Similar to the composite frame, this definition is either stored in
the global or in the local library.
The common model then displays the list of available parameters and arrays
from the block diagram, as shown in Fig. 20.10. All parameters are listed on the
first page of the common model, and their values be specified there.
If the selected block definition uses one or more arrays in its definition, then
these arrays are displayed on the second page (for simple characteristics) and
third page (for two-dimensional characteristics) of the ElmDsl object. In Fig.
Characteristic In row ‘Size’ insert the number of rows in the first cell, the
number of columns is automatically set to 2 and can’t be inserted. If the
number of rows is changed, jump to the previous page and back again
to update the characteristic.
where y0 , y1 , ... stands for output signal 0, 1, ... and u0 , u1 , ... stands for input
signal 0, 1, .... All these signals are functions of time.
N OTE : The composite frame and the model definition are very similar and the
usage is nearly identical. When creating one or the other PowerFac-
tory recognises the class, when you place the first slot or block. If you
place a block ( ) first, the button for the slot will become in-
active, so you can’t mix up slots and block sin one diagram. See also
section 20.6
Signal lines are directed branches, connecting input and output signals. A single
output line may be branched off and connected to more than one input terminal.
After the block reference has been edited, the it will show the input, output and
limiting signal connection points of the referenced block definition as one or
more coloured dots on the left and right side respectively on the upper and lower
side of the box. Signal lines may then be connected to these points. It is allowed
to refer to the block definition more than once in the same block diagram. In that
way, it is possible to use a particular PID-controller, for instance, twice or more in
the same model definition.
model o1 = ’MyBlock’(i1,i2;x1;Kp,Ti;yi)
s1 = ’\System\Library\Models\DSL\PI.BlkDef’(xe;x1;Kp,Ti;yi)
xe = i1*i2
o1 = s1+i2+i1
This simple example shows the whole meaning of the block diagram graphics: it
is a convenient way to define specific controllers, based on standard
components.
However, it would also be possible to define exactly the same block diagram by
entering the above DSL script manually and so create a primitive block definition.
Although the composite block diagram and the composite frame diagram should
be distinguished from each other, they are drawn in about the same way.
The basic distinction between a block diagram and a frame diagram is that the
latter contains only slots and signals, whilst the block diagram must not contain
any slots.
• by the main menu entry File →New or S TRG -N and then selecting the
option Block/Frame Diagram from the ”New” command dialogue
(ComNew).
N OTE : The two later options only create a block definition object (BlkDef), but
no graphic. This method is therefore not suited to create a composite
block or frame diagram, but only for creating primitive block definitions
by entering the DSL code.
In the first two methods, a graphic will be created and will appear in the opened
graphics board. A new graphics board will be created when no graphics board is
open. The new block/frame diagram graphic will show a single rectangular block,
which visualises the block or frame. The name of the new diagram will appear on
top of the frame.
Inside this rectangle the following objects can be placed from the graphic toolbox
for the block diagram:
node objects :
• block references
• summation points
• multipliers
• divisors
• switches
• different kinds of graphical objects
branch object :
• signals lines
node objects :
• slots
• different kinds of graphical objects
branch object :
• signals lines
These objects can be selected from the Drawing Tool Box. The toolbox also has
buttons for pure graphical add-on objects (lines, polygons, rectangles, texts, etc.)
as shown in Fig. 20.13.
Because of lack of information about the number of inputs and outputs of the
new block reference before a (lower level) block definition is assigned to it, it will
not be possible to connect signals to the empty block. It is therefore
recommended to first draw all block references and to assign block definitions to
them. Then the blocks references show all available input and output signal
connections.
A block reference is edited by right-clicking it and selecting Edit from the context
menu, or simply by double-clicking on it. The dialogue as displayed in Fig. 20.14
will pop up.
Use the Select button (see the cursor in Fig. 20.14) to select a model definition.
Predefined standard block diagrams for your usage are located in the folder
DATA B ASE\L IBRARY\M ODELS.
Summation Point
Every dot can be used as an input to the summation point. The sign of signals at
summation points can be changed by editing the summation point object. The
”edit” dialogue will pop up, where any connected input connection can be
inverted. Mind that not all dots have to be used and only one dot can be defined
as an output.
Multiplier
Every grey dot of this block can be used as input or output of the multiplier. An
output of three input signals will thus be out = (in0 ∗ in1 ∗ in2 ). Mind that not all
dots have to be used and only one dot can be defined as an output.
Divisor
Every grey dot of this block can be used as input or output for the divisor. The
first input will be the numerator and thus be divided by the second (and if existing
the third) input. The order of the signals will be clockwise beginning on the left.
An output of three input signals will then be out = (in0 /in1 /in2 ). Mind that not all
dots have to be used and only one dot can be defined as an output.
Switch
Two input signals can be applied to this block, which will be connected to the
output according to the position of the switch. Additionally a control signal has to
be connected to the top, which will define the operation of the switch. If the
control signal is zero or negative, the switch will stay in the displayed state,
whereas a positive signal will cause the switch to change to the upper signal and
the other way round. In the edit dialogue you can alter the zero position of the
switch.
Green: Input
Red: Output
The signals lines can also be edited in the corresponding dialogue, which gives
the possibility to change the name of the signal.
Multi-Signal Connections
Signals normally connect a single output parameter with a single input
parameter. Especially in the case of three phase signals, such as is often the
case of voltage or current signals, multi-signal connections may be used.
A multi signal is defined by writing two or more signal names together, separated
by semicolons, e.g “I A;I B;I C”. In Fig. 20.16, the multi signal output and input of
two block definitions are shown. Both blocks will show a single input or output
connection point. They can be connected to each other by a single signal line,
as is shown in Fig. 20.17.
N OTE : The number of variables and their order in the output signal must equal
the number of signals in the input signal.
New output signals are defined by ending a signal line by clicking on the right
side of the enclosing rectangle frame.
Signals, which are thus connected to the rectangular frame, have the following
meaning:
N OTE : The names of the input and output signals must equal the names of the
input and output signals defined in the slot/block, you intend to assign
the definition.
20.6.4 Resize
If a marked symbol has small black squares at its corners, it can be resized by
left clicking one of the squares. The cursor will change to a double diagonal
arrow and moving it (while holding down the left mouse button) resizes the
object. Release the mouse when the new size is correct.
It is also possible to pull the object(s) to a new size by clicking at one side of the
marking box. The marked object(s) will only resize in one direction in that case.
This is not possible for all objects. Some objects may only be resized with a fixed
X/Y- ratio, some other objects cannot be resized at all.
dialogue will show all input, output and internal signals as have been defined
graphically.
On the second page of the dialogue, which can be accessed by pressing the
button, information and equations for the initialisation of the block can/has to be
entered. Also the name and the unit of the parameters to be defined in the
common model can be specified (see also chapter 21).
Additional DSL equations can be defined at the second page of the block
diagram edit dialogue.
Chapter 21
System modeling for stability analysis purposes is one of the most critical issues
in the field of power system analysis. Depending on the implemented model
accuracy, large signal validity, available system parameters and applied faults or
tests, nearly any result could be produced and arguments could be found for
their justification.
Thus system model structures and parameter settings are to be best evaluated
against the following main criteria:
System size: Big systems and small system have different “key parameters”.
Referring to the above example, for a smaller power system the frequency
dependency of loads is not relevant at all, whilst in big systems like UCTE
or UPS/IPS, frequency dependency may cover the spinning reserve
requirements totally.
Unit size: Steady-state and transient behaviour of big units are more decisive
for the overall system response than smaller ones which might practically
not affect the total system.
System structure: Independent of system and unit size, the system structure
may be more relevant than any other factor. This can easily be
demonstrated when weak systems with a longitudinal geographical
extension or appropriate substructures are analysed.
System fault: Most relevant to system modeling considerations are the applied
faults and related problems which are to be analysed. The analysis of
system damping and PSS tuning will not necessarily require the boiler
dynamics to be considered. On the other side, load shedding optimisation
and frequency restoration would not give appropriate results if mid and
long-term characteristics of relevant system elements are neglected.
Study purpose: In general, for systems which are in a planning stage, typical
models and parameters could be applied as long as there is no specific
additional information available. However, a more and detailed
representation is necessary for system extensions, where a detailed model
representation should form part of the performance specification. Special
attention has to be paid to the analysis of operational problems and the
operation optimisation. For these cases, a detailed modeling of the
relevant components is indispensable.
For the ASMA approach, the following steps are of crucial importance:
Setup of system models: Based on the fundamental equations of engineering
and physics, the basic algebraic and differential equations are to be set up
within the required degree of accuracy. In addition, all parameters like time
constants and gains which could be also derived from these basics, are
likewise to be calculated.
Of course, very strict application of the ASMA approach is not necessary for
modeling relays and the less complex or digital control functions, as these are
clearly defined by their appropriate general and acceptance test documentation.
But independently of the analysed system, where the system representation
cannot be matched to a classical IEEE or any other standard model, there is a
substantial need for an easy to use and flexible method for the realisation of
individual models.
As already indicated, the most critical and decisive factor for reliable simulation
results is the accuracy and completeness of system model representation for
identification and simulation purposes. Methods for solving this task range from
the classical and traditional way of using software which allows interfacing of
user-defined models at the FORTRAN/C level - typically via connection lists - to
the block-oriented approach which is based on the provision of predefined low
level block macros being connected at the case definition level.
In order to provide a very flexible modeling and simulation tool, which forms part
of a stability program, a control system based simulation language was
• The simulation tool is based upon common control and logic diagrams
leading to a non-procedural language as the sequence of elements could
be chosen arbitrarily. In other words, a DSL model can be converted into a
graphical representation.
DSL itself can be looked upon as an add-on to the transient analysis functionality
of PowerFactory. During the simulation, the model equations of the DSL
models are combined with those describing the dynamic behaviour of the power
system components. These equations are then evaluated together, leading to an
integrated transient simulation of the combination of the power system and its
controllers.
Signal input and output channels: Any variable defined within the kernel
(actually more than 2500) and in a DSL model, can be accessed in a
read-and-write mode. Main and sub-address features are implemented
allowing the access of any signal existing in the system or to build up
variable addresses
program internal signals and parameters element:variable
Interrupt signals;
approx. 3000 FAULT (expression, command)
predefined signals
Output signals; DSL
(voltages, currents, OUTPUT(expression, command) Model 1
impedances, parameters,
switches, log variables. . .)
Automatic generation
Interrupt signals
of Jacobian elements
DSL
and system sub-matrices Output signals
Model n
The structure of a DSL model is best explained by example. The used example
is that of a prime mover unit model of a simple hydro turbine. This DSL model
has been defined graphically, and contains one embedded DSL macro. That
embedded macro models a single integrator and is defined by programming it.
models which are thus combined into a more complex controller. Controller
references may be used to include DSL primitive models into the complex
model, but may also refer to other graphically defined complex models.
Highly complex controllers may thus be designed in a hierarchical way, by
designing sub-models and sub-sub-models, where the DSL primitives form
the lowest level (in sections 20.4 to 20.6 these procedures are described in
detail).
A t i2 P t
i1 x e 1 p t_ x
i3 - s T -
C i4
In Fig. 21.2, the model definition that was used to define the hydro turbine model
is depicted. The resulting DSL code, as shown in the output window when a
“graphics rebuild” is performed is:
1. model Pt = ’pmu_hydro’(At,C;x1;Ti;)
2. pt_x = ’I.BlkDef’(xe;x1;Ti;)
3. i3 = i1/i2
4. i1 = At*At
5. i2 = pt_x*pt_x
6. i4 = xe*pt_x
7. xe = i3-C
8. Pt = pt_x-i4
The line numbers have been added for convenience. The corresponding block
definition shows:
Output Signals : Pt
Input Signals : At, C
State Variables : x1
Parameter : Ti
Internal Variables :
The example describes a simple hydro turbine model with the input signals At
and C and the output signal Pt .
In Fig. 21.3, the graphical representation of the embedded primitive DSL model
is depicted. This primitive model is included in the hydro turbine (in line 2 of the
hydro’s definition). The DSL primitive implements a single integrator and is
programmed by:
1. model y = ’I’(xe;x1;Ti;)
2. [Ti] = ’s’
3. limits(Ti) = (0,)
4. inc(x1) = y
5. inc(xe) = 0
6. x1. = xe/Ti
7. y = x1
Line 1 is generated by pushing the E QUATIONS button in the block diagram
dialogue. Line 2..7 were entered manually.
Interface description
The interface defines the model name, names of input and output signals, model
parameters and state variables. These are shown in the output window in the
model heading.
1. model Pt = ’pmu_hydro’(At,C;x1;Ti;)
The block diagram dialogue further allows for the definition of limiting parameters
and input signals, and the classification of the model as a linear model and/or as
a DSL macro.
Model description
The model description describes the DSL model, based on the signals defined in
the interface. The DSL description includes
• Initial conditions and functions which are used to calculate initial values.
Another useful feature of the DSL is the implemented algorithm for numerical
setup of the system matrix for eigenvalue calculation purposes. Consequently,
any model implemented at the DSL level will automatically be taken into
consideration when calculating the system eigenvalues or when applying the
modal network reduction approach (MRT). Of course, any signal limiting
functions will be disabled automatically for this calculation procedure.
A new DSL model is created either by entering the DSL code in the equation
part of a “Block Definition” (BlkDef) object, or by creating a new Graphical Block
Diagram (see also section 20.6 on how to create a new block definition). Both
methods will result in a Block Definition Object which holds the definition of the
DSL model.
The block definition objects thus serve two purposes in the process of
constructing a DSL model:
• use the main menu entry File →New or S TRG -N and then select the option
Block/Frame Diagram from the ”New” command dialogue (ComNew).
To access the dialogue of the block definition (BlkDef), double-click on the frame
box surrounding the diagram.
Complex Block Definition objects may be compared with the “Grid Folders” in the
PowerFactory database tree. They are defined by graphically defining a
controller block diagram of which they will store the graphical information and all
logic parts. These parts include signals, small standard components (adders,
multipliers, etc.) or DSL primitives.
• use the ”New Object” button in the database manager and selecting
Block Definition (BlkDef).
DSL primitives are the building blocks from which the more complex controller
diagrams are composed. A DSL primitive, for example, might implement a Low
Pass filter, which may then be used to graphically construct more complex
controllers which include such a filter.
• The name and title will appear in the library folder, where the model is
stored.
• “Classification”:
Linear This option will only effect the graphical representation of the block
in the diagram. If this option is enabled, the block will be represented
as a linear block, otherwise as a not-linear block with two lines.
Macro This option is used to identify the block definition as a macro inside
the library.
Matlab Enabling the ‘Matlab’ tag will show am input dialogue, where you
can define a Matlab (*.m) file with which the block definition can
communicate during a simulation. For more information about the
Matlab interface see also chapter ??.
• Input and output signals have to be defined for the internal use inside the
block definition. The number and their name will then appear in the
C HECK I NC . The initial conditions of the block definition will be printed and
checked.
PACK Pack will copy all used DSL models (macros) of a composite model
definition to the folder ”Used Macros” inside the block definition. In this way
there will be now references to other projects or libraries outside the model.
Beware: Any further changes in the macro library has no influence, the
macros are copied and no longer linked to the library. So if there is an error
in a certain macro it has to be fixed separately in each packed block.
PACK -> M ACRO This command will reduce the whole model including DSL
blocks and additional equations and macros into one DSL model
containing only equations. All graphical information will be lost. This
command is irreversible.
By clicking on the button the second page of the dialogue can be accessed.
Here the (additional) equations of the DSL model can be defined. Also further
information e.g. the initial conditions of state variables and the name and unit of
parameters can be specified.
Fig. 21.5 shows the additional equations of the DSL model of the PI controller.
The next section will show the handling and usage of the DSL language in detail.
The DSL language is used to program models for the electrical controllers and
other components used in electrical power systems. As for any other simulation
or programming language, a special syntax is provided for the model formulation.
• arithmetic operators: +, -, *, /
• constants: all numbers are treated as real numbers
• standard functions: sin(x), cos(x), tan(x), asin(x), acos(x), atan(x),
sinh(x), cosh(x), tanh(x), exp(x), ln(x), log(x) (basis 10), sqrt(x)
(square root), sqr(x) (power of 2), pow(x,y), abs(x), min(x,y), max(x,y),
modulo(x,y), trunc(x), frac(x), round(x), ceil(x), floor(x).
These standard functions are described in detail in the last chapter.
• Parenthesis: (arithmetic expression)
Example:
Blanks: All blanks are removed when the DSL code is processed. Exception:
blanks in strings are kept.
Example:
Input signals Input variables may origin from other DSL models or from a
power system elements. In the latter case, currents and voltages, as well
as any other signal available in the analysed power system, become
available to the DSL model.
State variables State variables are time dependent signals generated and used
within the DSL model itself.
Parameters Parameters are ’read only’ numbers which are set to alter the
behaviour of the DSL model.
Internal variables Internal variables are defined and used in the DSL model to
ease the construction of a DSL set of equations.
N OTE :
• A state variable may not be at the same time an output variable; if
required, the use of an assignment like y = x1 is recommended.
• A special parameter ’array iiii’ (with up to 4 digits i), with 2*iiii el-
ements is provided to define characteristics (see procedure “lap-
prox”).
• The interface part, which states the model name, title, classification and
variable set. This part is set in first page of the block diagram edit dialogue
(see also the previous section).
• Definition code
• Equation code
The definition and equation code form the actual controller network definition
and are treated in the next chapters.
limits(yt)=(,1] is equivalent to
output(yt>1,’Maximum exceeded: yt=yt>1’)
The ’(’ and ’)’ braces exclude the minimum or maximum value. The ’[’ and
’]’ braces include them from the interval.
Examples:
limits(x)=[min,max] ! min ≤ x ≤ max
limits(x)=(min,max] ! min < x ≤ max
limits(x)=(,max] ! x ≤ max
limits(x)=(min,) ! min < x
Initial Conditions
Example:
AVR model has two inputs, [upss, usetp], and one output, [uerrs]. Both
inputs cannot both be initialised automatically by the single output value,
which is determined by the connected machine. Therefore one of the
inputs must be initialised fix, e.g. by incfix(upss)=0. The initial value of
usetp is now automatically determined, using upss=0.
These functions are used to find the initial value for one set of parameters if the
initial values of another set of parameters, which are functions of the first set of
parameters, are known.
The iterative functions are used to find the (approximated) values for the
unknown parameters for which the known parameter take their initial value.
loopinc(varnm, min, max, step, eps) Performs a simple linear search for a
single value for which the parameter varnm is closest to its known initial
value
Return value: the value for a for which the deviation of b to its known initial
value takes the smallest value. A warning is given if the smallest deviation
is greater than eps.
explanation: the initial value of the variable a is searched for, within the
interval [−5, 5] by successively dividing the interval as long as the deviation
of the variable b to its initial value is less than eps. The iteration stops if the
maximum number of iterations is reached, and a warning is given if the
smallest deviation is greater than eps.
newtoninc(initexpr, start, iter, eps) Performs a newton iterative search for one
or more parameters by minimising the errors in a set of coupled equations.
initexpr = the expression which must equal the parameters whose initial
value is sought
start = the starting value for the parameter whose initial value is sought
iter = the maximum allowed number of iterations
eps = the maximum allowed absolute error between initexpr and the
parameter whose initial value is sought.
example:
qt0 = 0.5
eps = 0.000001
maxiter = 100
This example shows a part of the initial value definitions for a model where
the initial values of 5 parameters (hedr,qt1,..,qt4) are sought
simultaneously by setting up a system of coupled equations and solving
that system by newton iteration so that, eventually,
N OTE :
• Add the initial conditions to the complex block not to each primi-
tive (like a first-order time lag).
• If initial conditions are not defined for a certain variable the simu-
lation equations are used instead. It should be therefore enough
to specify the initial conditions of the state variables and input
variables.
• Use the option Verify Initial Conditions to check, if the initial con-
ditions lead to the correct result.
DSL is used to describe direct relations between signals and other variables.
Expressions may be assigned to a variable itself, or to the first derivative of a
state variable. Higher order differential equations have thus to be spit up into a
set of single order equations by the introduction of additional state variables.
Syntax:
y = sin(a) + 3 ∗ x1
y = .not.x1 > 2.or.a <= 3
varnm. = expr Assigns expression expr to the first order derivative of the
variable varnm.
Examples:
x1. = (xe − x1)/T 1
x2. = x1
Remarks:
• DSL assignments may occur in any sequence. The sequence does not
influence the evaluation of the assignments.
• The right side expression may not contain derivatives. Derivatives may
only appear on the left side of the equation sign:
Correct is: x1. = asin(a)
Wrong is: a = sin(x1.)
DSL Macros
A DSL macro is a predefined DSL model, complex or primitive, which is primary
meant to be included in higher level DSL models. The block diagram edit
dialogue offers a ’Macro’ classification option which can be set to mark the
model as a macro.
A DSL macro is included in a higher level DSL model either by creating a block
reference in the block diagram graphics or by explicit inclusion in a DSL equation.
Syntax:
Macro calls are not supported within expressions, even if they only have one
output variable:
correct example:
y = my\_macro(x1, s1, p1, i1)
incorrect:
y = 3 * my\_macro(x1, s1, p1, i1) + 4
2. Models with output signals which are not directly injected to the electrical
network (general devices). Among these types of models are prime mover
units, voltage controllers, relays, calculation procedures, etc.
The ”fault” and ”output” procedures are evaluated at each time step during the
simulation of a model. The first time that boolexpr is found to be true, the string
will be processed and a message is send to the output window or an event is
added to the PowerFactory event queue. The ’”fault” or ”output” procedures will
be disabled thereafter, to prevent an avalanche of messages or events, until the
DSL model will be reset again.
• variable names which appear directly after an ’=’ sign will be substituted by
their actual values;
e.g.: output(yymax,’maximum exceeded: yt=yt > ymax=ymax’)
may generate the message: maximum exceeded: yt=1.2 > ymax=1.0
the correct switch event. ’Adding an event’ is done by executing an existing event
object in the PowerFactory database.
Consequently, all events that may be used by the DSL model have to be created
together with the DSL model. They must all be stored inside the common model
(ElmDsl). These ’DSL events’ will thus form an integrated part of the DSL model.
N OTE : The events are accessed or created by opening the edit dialogue of
the common model (double-click on the DSL model in the Data
Manager), and then pressing the button E VENTS . You get now a list
of already defined events inside this model.
The events are not added to the global event list of the project unless
the event is ’activated’ by the DSL model.
The event string in the fault expression must refer to the name of one of these
events. At evaluation, the event will be thrown onto the event stack if boolexpr is
true. As soon as the simulation reaches the event, it will execute it.
Consequently, a delayed event may be thrown by the DSL model by setting the
execution time ahead of the current time.
The parameters of the event can be modified in the fault string by assigning a
new value. The mechanism is the same as described above in the output
procedure.
Example:
fault(u>1.1,’name=MySwitchEvent1 dtime=0.15’)
If the variable u exceeds 1.1 the event named ’MySwitchEvent1’ will be thrown
onto the event stack and its variable dtime (relative event time) will be set to 15
milliseconds. The event will thus be delayed for that amount of time, which, in
this case, mimics the time needed to open a switch. Which switch will open is
defined in the event object ’MySwitchEvent1’.
model pt,ptmw =
’pmu_1’(at,sgn,cosn,ngnum;x1,x2,x3,x4;Thp, Tip,Tlp,alflp,Tspi)
[T1] = ’s’
limits(T1) = [0,)
limits(alfhp) = [0,1]
vardef(alfhp) = ;’High pressure turbine ratio’;
limits(alflp) = [0,1-alfhp]
inc(x1) = y/K
inc(xe) = y/K
inc(x4) = 1.0
inc(at) = pt
inc(steamflow0) = pt
inc(ylp) = pt
x1. = select(T1>0,(xe-x1)/T1,0)
y = K*select(T1>0,x1,xe) ! if T1=0 => y=xe
steamflow = at*x4
x4. = (steamflow0 - steamflow)/Tspi ! boiler
yhp = PT1(steamflow;x1;Thp) ! high pressure part
yip = PT1(yhp;x2;Tip) ! medium pressure part
ylp = PT1(yip;x3;Tlp) ! low pressure part
pt = yhp*alfhp + ylp*alflp+ yip*(1.0-alfhp-alflp)
ptmw = pt*sgn*cosn*ngnum ! only for output purposes
model y = ’PT1’(xe;x1;K,T1;)
x1. = select(T1>0,(xe-x1)/T1,0)
y = K*select(T1>0,x1,xe) ! if T1=0 => y=xe
inc(x1) = y/K
inc(xe) = y/K
[T1] = ’s’
limits(T1) = [0,)
limstate
limstate ( x1, min, max)
Nonlinear limiter function for creating limited integrators.
Example:
x1. = xe/Ti;
y = limstate(x1,min,max);
This was previously realized by using “select” and “lim” functions:
x1. &=& select({x1$>$=max.and.xe$>$0}
& .or.{x1$<$=min.and.xe$<$0}, 0, xe/Ti);
y &=& lim(x1,min,max);
delay
delay ( x, Tdelay)
Delay function. Stores the value x(Tnow) and returns the value x(Tnow-Tdelay).
Tdelay in seconds and larger than 0.0. The expression Tdelay must evaluate to
a time independent constant and may therefore only consist of constants and
parameter variables. The expression x(t) may contain other functions.
Example:
y = delay(xe + delay(x1, 1.0), 2.0)
select
select ( boolexpr, x, y)
Returns x if boolexpr is true, else y.
Example:
x1.=select(T 1 > 0, xe/T 1, 0.0) !to avoid division by zero
time
time ( )
Returns the current simulation time.
Example:
t=time(), y = sin(t) or y = sin(time())
file
file ( ascii-parm, expr)
! OBSOLETE ! Use an ElmFile object in the composite model in stead.
picdro
picdro ( boolexpr, Tpick, Tdrop)
Logical pick-up-drop-off function useful for relays. Returns the internal logical
state: 0 or 1.
Return value:
The internal state:
flipflop
flipflop ( boolset, boolreset)
Logical flip-flop function. Returns the internal logical state: 0 or 1.
Return value:
The internal state:
aflipflop
aflipflop ( x, boolset, boolreset)
’Analog’ flip-flop function. Returns the (old) value for x at SET-time if internal
state=1, else returns the current value of x.
Return value:
The internal state:
lapprox
lapprox ( x, array iiii)
Returns the linear approximation y = f (x), where f is defined by the array iiii.
Example:
y = lapprox(1.8, array\_valve)
invlapprox
invlapprox ( y, array iiii)
Inverse lapprox with array.
lapprox2
lapprox2 ( xl, xc, matrix iiii)
Returns the linear approximation y = f (xl, xc) of a two-dimensional array,
where f is defined by the matrix iiii. xl represents the line value and xc the
column of the matrix.
Example:
sapprox
sapprox ( x, array iiii)
Returns the spline approximation y = f (x), where f is defined by the array iiii.
Example:
y = sapprox(1.8, array\_valve)
sapprox2
sapprox2 ( xl, xc, matrix iiii)
Returns the spline approximation y = f (xl, xc) of a two-dimensional array,
where f is defined by the matrix iiii. xl represents the line value and xc the
column of the matrix.
Example:
DSL event
event ( MaxTrig, x, ’ name=ThisEvent, dtime=delay, value=val,
variable=var)
Immediately executes the command, bypassing the command pipe in the input
window. The DSL command will continue after the command has been exe-
cuted. The ‘Exe’ command is provided for compatibility and testing purposes
only and should only be used by experienced users.
This function creates a parameter event for the own DSL model, if the input
signal x changes sign from - to + with a time delay of dtime.
The function will trigger each time when the input changes from a negative to a
positive value, but for maximum of MaxTrig times
Arguments:
int MaxTrig (obligatory) : Maximum number of trigger events; if M axT rig is set
to 0, you will get unlimited triggering.
double x (obligatory) : Input signal.
string ThisEVent (obligatory) : Name of the external event to be started. The
event must be stored locally inside the DSL model.
If ’name=this’ is set, no event has to be created but a parameter event (Evt-
Param) will be created and executed automatically.
double delay (obligatory) : Delay time of the event after triggering.
double val (optional) : Value of the parameter event (only when ’name=this’ is
set).
double var (optional) : Parameter to which the value is set (only when
’name=this’ is set).
Return value:
void (no return value)
Example:
The example shows a counter made with DSL using event( , ,’name=this ...’)
which automatically creates and configures a parameter event. The variable
named ”counter” will be set to value val within dtime. The input signal is a
sine-wave.
inc(x) = 0
inc(u) = amp0*sin(10*x)
inc(counter) = 0
x.=1
u = amp0*sin(10*x)
yo = u-trigval
cadd = counter+1
event(0,yo,’name=this dtime=0.0 value=cadd variable=counter’)
event(0,yo,’name=OpenBreaker dtime=0.2’)
Chapter 22
The Eigenvalue analysis allows for the computation of modal sensitivities with
respect to generator- or power plant controllers, reactive compensation or any
other equipment.
The calculation of eigenvalues and eigenvectors is the most powerful tool for
oscillatory stability studies. For its application it is highly recommended to first
compute the ‘bare natural’ system oscillation modes. These are the oscillation
modes of the system without taking any controller or power plant model into
consideration, i.e. with constant turbine power, constant excitation voltage etc.
Starting from these ‘bare natural’ modes, the effects of controllers (structure,
gain, time constants etc.) and other additional models can be calculated as a
second step.
After the initial conditions have been calculated successfully, which means that
all time-derivatives of the state variables are zero, the modal analysis calculates
the complete system A-matrix by means of numerical, iterative algorithms. The
representation of the electrodynamic network model is equivalent to the
representation used for the balanced RMS simulation, except for the general
load model, for which the frequency dependencies are neglected.
Assuming that one of the conjugate complex pair of eigenvalues is given by:
λi = σi ± ω
then the oscillatory mode will be stable, if
σi < 0
The period and damping of this mode are given by
2∗π
Ti =
ωi
µ ¶
1 An
di = −σ = ln
Tp An+1
where An and An+1 are amplitudes of two consecutive swing maxima or minima
respectively.
The oscillatory periods of local generator oscillations are typically in the range of
0.5 to 5 Hz. Higher frequency of the natural oscillations, i.e. those which are
normally not regulated out, are often damped to a greater extent than slower
oscillations. The oscillatory period of the oscillations of areas (inter-area
oscillations) is normally a factor of 5 to 20 times greater than that of the local
generator oscillations.
is set to the unit vector, i.e. β = [1, · · · , 1], which corresponds to a theoretical
disturbance which would equally excite all generators with all natural resonance
frequencies simultaneously. The elements of the eigenvectors νi then represents
the amplitudes of the generators in relationship to an eigen-frequency, whereby
those generators with opposite signs in νi oscillate in opposite phase. The right
hand eigenvectors νi can thus be termed the “relative contribution vectors”. The
number of elements in νi is the same as the number of relative contribution
factors.
For a n-machine power system, n-1 generator oscillation modes will exist and
n-1 conjugate complex pairs of eigenvalues lambdai will be found. The
mechanical speed ω of the n generators will then be described by:
ω1 ν11 ν21 νn1
ω2 ν12 ν22 νn2
.. = β1 .. eλ1 t + β2 .. eλ2 t + · · · + βn .. eλn t
. . . .
ωn ν1n ν2n νnn
The relative participation factors give a good indication of the general system
dynamic oscillation pattern. They may be used easily to determine the location
of eventually needed stabilising devices in order to influence the system
damping efficiently.
The relative participation factors can be calculated not only for the generator
speed variables, but also for the following variables:
• either pressing the button on the Stability toolbar, as shown in Fig. 22.1
Now the dialogue for executing the modal analysis command ComMod will pop
up.
On the ”Basic Options” page the default is to calculate ”All Eigenvalues” of the
system. This option can take quite a while, when analysing large power systems.
So there is the option to calculate only a selected range of eigenvalues. This
option is not yet available, but will be implemented soon to reduce calculation
time.
Using the S ETTINGS button the options of the command for calculating the
initial conditions used by the modal analysis can be specified individually.
On the ”Participation” page, the state variable and the result file for the
Eigenvalue analysis can be defined. The default state variable is the speed
signal of the generators. The default result file is ”Eigenvalue (s:speed)” and is
stored inside the active study case.
The relative participation factors can be calculated not only for the generator
speed variables, but you have so following variables to select from:
Fig. 22.2 shows the command dialogue of the modal analysis with the different
possibilities for the state variable.
When executing the command by pressing E XECUTE , the initial conditions of
all elements is calculated first. Then the modal analysis constructs a system
matrix from the load-flow and the dynamic data. The eigenvalues and
eigenvectors are calculated directly from that matrix. Since eigenvalue
calculations require linearised models, PowerFactory automatically performs
the linearisation of all relevant system elements.
The following information is printed to the output window, when the eigenvalues
are calculated:
22.3 Results
The results of the modal analysis are separated into two parts:
• The system eigenvalues and eigenvectors
• The relative generator participation factors
The results are printed to the output window with the ComSh output command
by activating the ”Output Calculation Analysis”-button . After a modal
analyses has been executed, the ComSh shows the active option Eigenvalues
in the LoadFlow/Simulation report selection.
printed in a report style into the output window. Fig. 22.4 shows the results of a
small example power system.
Selecting the option Participations, either detailed or not, will further enable the
selection of the state variables and the a certain eigenvalue as can be seen in
Fig. 22.3. For the your convenience there is also the possibility to define a filter
for the eigenvalues (“system modes”). The filter for eigenvalues is used to show
only the participation factors for specific system modes, if Select Eigenvalue(s) is
set to Filtered. Otherwise the selected specific eigenvalue will be used and the
filter will be ignored.
The system modes and participating generators can be filtered by using the
following options:
Maximal Damping The damping of the system mode will be below the defined
value in [1/s].
Maximal Period System modes oscillating below the defined periodic time in [s]
will be shown.
The results of the participation factors of the generators in the small example
power system are shown in Fig. 22.5.
Chapter 23
The process of parameter estimation for power system elements for which
certain measurements have been made is performed with the ”Parameter
Estimation” function using the button .
• The measurement signals are used as inputs by the models of the power
system elements for which one or more parameters have to be identified,
or they may be used to control voltage or current sources.
• The output signals of the power system elements are fed into a
comparator, just as the corresponding measured signals. The comparator
is thus given the measured response on the excitation and the simulated
response of the element models.
• The ComIdent command will collect all objective functions from all
comparator objects in the currently active study case and will minimize the
resulting overall objective function. To do this, the ComIdent command is
given the list of parameters which are to be identified. The objective
functions are minimized by altering these parameters.
ElmWin
ElmDsl
Time Window
Xmeas
ElmFile
Measurement
File 1 Component
Xsim
ElmCompare
Model 1 Comparator
Σ ( Xsim -X m e a s)2
Xsim
Component
ElmFile Model 2..n
Measurement Xmeas
File 2
∆param
ComIdent
Optimizer
A simple example of an identification block diagram, for the objective function for
a voltage controller, is visible in Fig. 23.2.
The block diagram uses slots which reserve space for the measurement files,
the comparator and the element models.
The measurement file slot in the example of Fig. 23.2 has the following settings:
• Class Name Filter : “ElmFile”
• Output Signals : “y1,y2”
The measurement file object itself is described in the DSL section of the
Technical Reference manual.
The fact that we speak of “output” signals in the case of the measurement file
does not implicate that the parameter identification only regards measured
response signals (“measured outputs”) from power system elements. It only
means that the measured excitation signals will be mapped onto ElmFile
signals. The ElmFile will reproduce the measured excitation and response
signals during the identification process.
As in the case of a composite model diagram, the element slots may use any of
the available parameters of the power system element model as input or output.
The in- and output signals are defined by stating the exact variable name (see
also chapter 20.3).
In the case of the example in Fig. 23.2, the “Vco1” slot has the following
parameters set:
• Class Name Filter : “ElmVco*”
• Output Signals : “uerrs”
• Input Signals : “u”
The calculated value of the objective function will be multiplied by the weighting
factor before it is put out. The weighting factor may be used, for instance, to
connect a time-window to the comparison object which forces the objective
function to zero for those moments in time which are not to be used in the
identification process.
In the case of the example in Fig. 23.2, the Comparison slot has the following
parameters set:
The composite model must be set to use the identification block. It will then
show the slots that have been defined in that block. In the current example, the
composite model dialogue will look like Fig. 23.3.
In this figure, the three slots have been assigned already. Visible is that the
comparison object “Compare Signals” is selected, as well as a measurement file
and the voltage controller of which we want to find the best possible values for ka
and ta.
In this figure, the 10 difference signals are listed, with their weighting factor. By
default, these are one, but they may be edited freely. The power factor equals 2
by default but may be set to any other positive whole number from 2 to 10.
where
• Mi is the measured response (i.e. “in1mea”)
• p is the power
Composite Model This reference is normally not needed. When left open, the
identification process will automatically gather all composite identification
models and will minimize all objective functions.
When the composite model reference is set, then the identification will only
minimize that model’s objective function.
The identification process allows for the use of load-flow calculations and/or
dynamic simulations.
The “Load-Flow” and “Simulation” pages shows the variables that are to be
identified, in case of a load-flow or a dynamic identification. See for example Fig.
23.6.
In this example, two parameters of the voltage controller element “vco IEEEX1”
from the Composite Identification Model are listed. The identification process will
alter these parameters in order to minimize the objective functions.
The “Mode” field in the parameter list determines the parameter constraints:
0 means not to change the parameter, but to leave it at its initial conditions. This
option may be used to temporarily exclude some parameters from the
identification process.
2 means to optimize the parameter, given the constraint that the parameter
value must always be greater than zero.
Although the object for which the parameters are optimized in this example is the
same object as is used in the Composite Identification Model, it is allowed to
enter any other parameter from any other element, as long as that element
belongs to the active study case. Such may be used to optimize secondary
appliance, where only the behaviour of the primary appliance has been
measured.
To identify a primary element model, a small grid model is used to which one or
more controllable voltage sources may be connected. These voltage sources will
translate the measured voltage signals from the measurement file into a normal
busbar voltage which will be used in the load-flow or simulation calculations. The
response of the primary element models connected to that busbar may then be
compared to a measured response.
In Fig. 23.8, a very simple grid is shown to which the load which is to be
identified and a voltage source element are connected. As with the normal
identification process, a Common Identification Model has to be created which
uses the Identification Diagram with Primary Element as shown in Fig. 23.7. In
the ComIdent command dialogue, the unknown parameters of the load may
then be listed.
DIgSILENT GmbH
Gomaringen, Germany
2004
DIgSILENT PowerFactory Virtual Instruments
Chapter 24
Virtual Instruments
The virtual instrument (or short ‘VI’) is a graphical tool to visualise variables from
various simulations or calculations. These VIs can be used in different ways to
show the results from nearly all calculation functions and packages of
PowerFactory. So their functionality and relationship to the other parts or the
software justifies their description in an own special chapter.
A virtual instrument is basically a tool for displaying calculated results. The most
common use of a VI is to look at the results of a time-domain simulation like an
EMT or RMS simulation, by defining one or more plotted curves showing the
variables changing with time.
But there are various applications of the virtual instruments, for example to
graphically display voltage profiles, FFT plots or the results of a harmonic
analysis. This could be in the form of a bar graph, a plotted curves, single
displayed variables, tables of values, etc.
The Virtual Instrument Panel: The Panel is basically a page in the active
graphics board, where different plots or graphs are stored and displayed.
Also the basic information about the included virtual instruments is stored
here.
The Virtual Instruments: The virtual instruments are shown on the VI panel.
They display the results of one or more variables or parameters in various
ways. Every VI on a panel can be set up individually to the need of the
variable(s) which is to be displayed.
Plots are the ’basic’ diagrams to show all sorts of time-domain variables or
• Subplot (VisPlot)
• Subplot with two y-axis (VisPlot2)
• X-Y plot (VisXyplot)
• FFT plots (VisFft)
Bar Diagrams are similar to the plots. The results are then not shown as a line,
but as single bars for every data point.
Vector Diagrams easily show different variables - like voltage, current or power
- in a vector diagram using polar or cartesian coordinates.
Meter Panels can display variables or parameters using different panels like:
• digital display
• horizontal scale of a meter
• vertical scale of a meter
• measurement VI
• interactive button/switch
Additionally to these options there are further types of diagrams for a specific
usage are e.g. the time-overcurrent plot or the time distance diagram used for
protection studies. These plots are not described in this chapter but directly in
the part of the manual dealing with the individual calculation method.
The usage of the plots and the available tools like labels, constants, etc. for the
virtual instruments can be used in either one of the diagrams described above or
below. In the following list these virtual instruments are described shortly:
R-X Plot This plot is used specially for showing the characteristics of distance
relays. The tripping characteristic of one or more relays can be visualised
in a R-X diagram. Also the impedance of adjacent elements can be shown
graphically inside the diagram.
See also section 12.4, page 12-248
Feeder Definitions
Schematic Path With this plot a meshed or a radial network can easily be
shown in a brief schematic way without result boxes but with optical
information like colours for overloading, etc.
Voltage Sag Plot is especially designed to show the results of a voltage sag
analysis. Here the probability of a voltage sag depending on outage
information of elements can be displayed graphically.
See also section ??, page ??
Harmonics
Waveform Plot Using this plot a waveform is generated from the magnitude
and the phase angle of the harmonic frequencies. With this diagram a
variable like the voltage or current, which is defined in a harmonic source
e.g. a power electronic device or a load, can easily be shown as a time
dependent variable. So the real shape of the voltage can be seen and
analysed.
A more detailed description see section 24.6, page 24-476.
All virtual instrument panels are stored in graphics boards. A graphic board
holds default settings for plots and other diagrams. The button is clicked or
the Edit Actual Virtual Instrument Panel option is selected from the context
sensitive menu to edit the dialogue.
x-Axis holds the default x-Axis for plots without local axis stored in pages
without local axis.
Advanced holds the advanced settings like the arrangements of the plots or
their specific style.
Results stores a reference to the default results object used by the plots
Once a VI panel has been created, the ”Append new VI(s)” button ( ) can be
clicked or the option Create VI→... from the context menu of the SetVipage can
be selected to add new virtual instruments to the VI panel.
Virtual instrument panels usually set the size and position of new virtual
instruments like plots automatically. But it is possible to turn on user defined
moving and resizing of the plots. In this modes the plots can be moved or
resized by the user. Also the and buttons are used to tile the Virtual
Instruments horizontal or to arrange the VIs automatically.
A ViPage uses a predefined style which set line-styles, line-width, fonts and
other graphical settings. Own styles can be created and selected. A different
style can be selected on each VI panel of a Graphics Boards.
• When the panel is empty you can access the dialogue by simply
double-clicking the empty VI panel or an empty area on the panel.
• Right-click the background of the VI panel besides the shown plots and
choose Edit actual Virtual Instrument Panel from the context menu.
The button is clicked or the “Edit Actual Virtual Instrument Panel” option is
selected from the context sensitive menu to edit the dialogue. The dialogue is
split into three different pages named:
• x-Axis holds the settings for x-Axis of plots and Waveform Plots
• Results contains the reference to the default results object for plots.
The buttons are inactive, if there are no plots shown at all or if the x or y axes
can not be scaled automatically. That applies e.g. for bar-diagrams showing the
distortion after a harmonics load-flow calculation, where the x-axis is given by
the harmonic frequencies. Different types of plots, like the subplot and the
waveform plot, can be scaled simultaneously.
With the button ”Zoom X-Axis” a certain range of the x-axis or of several
x-axes can be zoomed easily. Thereto activate this button on the toolbar. Then
click on a plot, hold the right mouse button and ’drag’ the mouse to the right or to
the left to mark the desired range on the x-axis. If you release the mouse button,
PowerFactory will then show the marked x ranged zoomed.
There are two different modes for automatically arranging the VIs. You can
choose to arrange the VIs using either
The modes can easily be changed by pressing the one or the other button. In
addition the position of VIs can easily be exchanged. Thereto mark the VI by
clicking it. Then you can ’drag’ the VI onto another plot. Thus the position of the
VIs will be exchanged.
N OTE : This option of exchanging the plots by dragging is only possible, when
one of the arrangement buttons are active. If you deactivate both but-
tons by unselecting them in the toolbar, the plots can freely be moved
by dragging them on the panel. See also ”Moving and Resizing”.
Another way to rearrange the VIs is to open the dialogue of the VI panel by
pressing the button and then use the Arrangement options on the
”Advanced” page. Here the option User defined can be activated. So the VIs will
no longer be arranged automatically but can be resized and moved inside the
panel. So you are free to arrange the VIs ’ad libitum’. This mode is also
activated by disabling the selected button or .
A VI is clicked to mark it. The VI is ’dragged’ inside the panel by clicking it with
the mouse button pressed. Then the VI can be move across the panel. The
mouse is released to set the new position. A VI is clicked on the border to resize
it. A VI is clicked on the border to resize it.
N OTE : Please note that some VIs can not be resized at all because their size
is set automatically. This applies e.g. for the bitmap VI with the option
”Adapt Size of VI to Size of Bitmap” enabled.
Page Format
The page format is modified using the in the toolbar of the graphics board.
VI panels use the page format set in the graphics board. In addition a local page
format can be created for each VI panel. The option “Create local Page Format”
is selected in the context sensitive menu to create a local page format. The VI
panel now uses a local page format independent of the page format set in the
graphics board.
“Set default Page Format” is selected in the context sensitive menu to reset the
local page format. The VI panel now uses the default format of the graphics
board again.
This dialogue gives a very good overview over the diagrams on the VI panel and
the variables, axis and curve styles. Fig. 24.1 shows an example of the dialogue.
Each line of the table named Curves defines a variable shown on the panel. The
variables definition applies to the plot shown in the first column. When the
dialogue is opened the plots are sorted from left to right and from top to bottom
and are numbered accordingly.
All data and settings of each variable is displayed in the table, and the columns
are used exactly like the columns in the table of a plot. To move a variable from
one plot to another, simply change the Plot Nr. of the variable to move.
In this table not only subplots (VisPlot) are shown but also plots with two y-axis
(VisPlot2) can be modified. Here additionally in the column y the y-axis can be
defined to which the variable is related. In Fig. 24.1 this can be seen in the to
last rows of the table. Here both variables are shown in one plot number 4 with
two different axis. If the number in this row is grey, only one y-axis is available in
this plot.
Like in most tables new rows can be add. Default File for Page is a reference to
the results element of the virtual instrument panel. The F ILTER ... button opens
the filter dialogue. The selected filter will be applied to all plots on the current
virtual instrument panel.
Default File for Page is a reference to the default results element of the virtual
instrument panel. This is exactly the same setting like the one displayed on the
Results page of the dialogue box of the virtual instrument panel.
Title Block
All virtual instrument panels in a Graphics Board show the same title by default.
The only difference of the title blocks on the VI-Panels are the panel name and
the page number which are unique for each panel. To create a local title for a
VI-Panel simply right-click on the title and select Create local Title from the
context sensitive menu.
Like in the single line graphics the button in the toolbar is clicked to show or
hide the title block. You can define or change the title by double-clicking on them
or use the button to modify the title text. For details about the settings of the
title object refer to section 7.8.2, page 7-144.
Results
Some VIs like the most frequently used class ”subplot” show curves stored in
one ore more result objects (ElmRes). The curves are selected in a table where
the result element, the element and a variable have to be selected.
The result column of VIs needs not to be set for most calculations. The VI itself
will look for the results element to display automatically. The default results
element is either:
1. Results reference on page Results of the VI Panel accessed by pressing
the button.
2. If 1. is empty the Results reference on the Results page of the Graphics
Board will be used by pressing the button.
3. If both (1. and 2.) are not empty, the results element used for the last
calculation will be applied. If there is no calculation the appropriate results
element in the study case will be used (if any).
Background
The default background of virtual instrument panels is empty. The background
settings for the panel can be found in the frame Background on the “Advanced”
page of the virtual instrument panel dialogue.
The Filename defines the background file, which can be either a Windows
Metafile (*.wmf), a Bitmap (*.bmp) or a AutoCad DXF file. If the selected file
does not exist, or if the filename is not set the background remains empty. VIs
can be transparent or opaque. Graphics are transparent must be activated to
make all graphics transparent. If an opaque graphic fills the complete panel area
the background will be invisible.
• Edit Actual Virtual Instrument Panel opens the virtual instrument panel
dialogue.
• Create local Page Format creates a page format for the current panel.
• Paste Text inserts text from the from the clipboard into the panel.
• A VI can be selected from the list shown in the Create VI→... option to
create a new VI on the panel.
• Style→Create new Style is selected to create a new style for the panel.
• Export Results... exports the shown result into e.g. the output window, a
ASCII file, a Comtrade file or the clipboard.
Another way to create VIs is to select the option Create VI→... from the context
menu of the SetVipage. Then a class of virtual instrument can be selected to be
added to the current VI panel.
• Paper
• Gr Paper
• Tr Paper
The ”Default” styles uses smaller line-widths and smaller fonts than the ”Paper”
styles. It was designed to get nice printouts. The paper style was designed for
reports and papers where meta-files are included in text-programs. In addition to
the layout the styles hold predefined VIs.
There are several ways to select a predefined or user-defined style for the
current virtual instrument panel. The easiest way to change the style is using the
toolbar.
The user-defined styles are described in detail in section 24.9 later in this
chapter.
24.2 Plots
Plots are the most used diagrams to show all sorts of parameters, states, signals
or variables depending on the time or on another variable. To show these
time-domain variables or to visualise a magnitude depending on other variables,
there are the following plots available:
• SubPlot (VisPlot)
A new subplot is created on the current VI panel by pressing the button and
selecting a Subplot (VisPlot) from the pull down list. More than one subplot
may be created at once by setting the Number of VI(s). The new empty subplots
appear with standard settings, as is shown in Fig. 24.2.
Editing Subplots
The edit dialogue of a subplot, as shown in Fig. 24.3 has pages for the y-axis
and x-axis of the individual subplot as well as an additional Advanced page for
auxiliary settings. The y-axis page is normally used to set the curves in the
subplot, while the x-axis normally, and by default, shows time.
The subplot edit dialogue has the following features:
Scale The y-axis may be defined for more than one subplot at the same time,
or, and by default, may be defined as a “local Axis” format. When the
option Use local Axis is disabled, a reference to the used ‘global’ axis type
is shown and can be edited by pressing the .
Automatic The colour, line style, and line width of all new curves in the subplot
will be set automatically when the corresponding option is enabled. The
S ET NOW button will apply automatic line formats all existing curves
again.
Shown Results This is a reference to the currently active result file (ElmRes).
This object will be used, if no result file is specified in the Curves definition
table.
Curves The definition table for the curves is used to specify the result file
(optional), object and parameter for each of the curves as well as their
representation.
• The Graphics Board contains the basic x-axis definition. This definition is
used by default by each new subplot.
• A VI panel, however, may define a local x-axis definition, which will then be
the default for each new subplot created on that panel.
• The subplot thus uses the Graphics Board or the panel SetViPage
definition by default, but may also use a local x-axis definition.
N OTE : If you change the settings of the x-axis, which uses the definition stored
in the graphics board, all x-axis are changed using the same definition
in the whole project. These are also affected, if the x-axis is automati-
cally scaled or zoomed.
The following list describes how to edit the definition of the different x-axes:
• For editing the graphics board definition, you may select the option
Graphics Board and go to the x-Axis page of the edit dialogue of the plot.
Using the button you can access the dialogue for changing the x-axis
definition for the complete graphics board.
Another way is to click the button for the graphics board dialogue and
then go to the x-Axis page.
• Similar to the graphics board definition, the x-axis definition of the VI panel
is changed by selecting the option Page. This will open the dialogue of the
of the VI panel (SetVipage).
Another way is to go to the panel dialogue by clicking the button or
selecting Edit actual Virtual Instrument Panel from the context menu and
then go to the x-Axis page.
• The local x-axis definition is simply accessed by selecting the option Local.
Then the options for specifying the x-axis is shown in this dialogue.
The options available for the x-axis are similar to the one for the y-axis. They are
described in the following section. The only difference is in selecting the variable
of the axis.
For the x-axis there is a list to choose the x-Axis Variable shown in Fig. 24.4.
The Default value is depending on the type of simulation and the result object
created during the previous simulation. Then for time-domain simulations
different representations of the time scale are available. For the FFT plot e.g. the
x-axis can be scale using the frequency respectively the harmonic order.
The option User defined enables you to choose any variable for the x-axis, which
is selected to be stored in the result object. As shown in Fig. 24.4 an element
and a variable can be selected for the x-axis. In this way a x-y plot can be
created. There is also an own plot type for a more convenient way to create x-y
plot: the VisXyplot is described in more detail in section 24.2.4.
Although the x- and y-scale definitions thus use somewhat other synchronising
schemes, the way a particular axis is set is quite similar. Both the y-axis and the
x-axis page in the subplot edit dialogue have the option to Use local Axis or
simply Local.
• If this option is disabled, a reference is shown which points to the used axis
definition as described in the last section.
• If the option is enabled, the axis is defined locally and the edit dialogue
changes in order to do so. See Fig. 24.3.
The axis limits can be given manually, or can be auto scaled by pressing the
S CALE button. With this button the limits are defined automatically from the
curve shape once.
On This option will automatically scale the plot at the end of a simulation.
Online This option will automatically scale the plot during the simulation.
The x-axis additionally features a Chart option. If ticked a range and a start
value can be set. This will set the x-axis to the specified range. During the
simulation only a x-range, set in the options, is shown and will ’wander’ along
with the calculation time.
The Adapt Scale settings are used to force a tick mark on the axis at a particular
value. This is the Offset value. Other tick marks will be drawn at ‘nice’ distances
from this offset. The default value for both x- and y-axis is an active adapt scale
with Trigger equal to zero. So the main ticks of the axes start at zero.
To see the deviations from the offset, the Show Deviations from Offset option will
draw a second axis on the right, which has its zero baseline at the offset value.
The Show Deviations from Offset option is available for the y-axis only.
An example of two subplots is given in Fig. 24.5 where a voltage sag is shown
with both an instantaneous and a RMS value curve. The top curve has the
Adapt option disabled, and both axes autoscaled.
The bottom subplot has a smaller x-axis, to show only the interesting part, and
has the Adapt option set on both axes.
The y-axis has its offset set to the nominal voltage level (11kV) and also shows
the deviations from that level in the right vertical axis. From this deviation, it is
directly clear that the RMS voltage initially drops more than 5kV. The x-axis has
its offset set to the event time, which in this case is 100ms when a short-circuit
was simulated. From the x-axis, it is now directly clear that this short-circuit was
cleared after 200ms, at t=300ms.
The selection of the variables to be plotted in the current plot is done in the
y-axis page of the edit dialogue. This is easily accessed by double-clicking the
background of the plot. The dialogue is shown in Fig. 24.3 and Fig. 24.6 in
detail.
The colour, line style and line width settings are edited in the same way: double
clicking or right clicking and selecting Edit.
New curve definition lines can be created by right-clicking on the column number
(on the far left) (see cursor arrow in Fig. 24.6) and selecting Insert Rows or
Append (n) Rows. Marked curve definitions can similarly be deleted from the list
by selecting Delete Rows.
If more than one curve is to be specified for the same result file and element, this
may be done in one action by selecting more than one variable from the variable
list. This will automatically create new entries in the curve definition table for all
additionally selected variables. The entered Result File and Element are copied
automatically. This very convenient procedure is shown in Fig. 24.7 and Fig.
24.8.
A plot with two y-axes can be seen in Fig. 24.5. To create this plot you have to
press the button and select a Subplot (2y) (VisPlot2) from the pull down
list. This will add a subplot with two y-axes to the current VI panel.
The second axis can then be defined and curves for this axis can be specified
similar to the ’basic’ subplot VisPlot. In the edit dialogue of this plot, as shown in
Fig. 24.9, there will now appear a page for y1-Axis and for y2-Axis.
On the page for the second y-axis, this additional axis can be deactivated by
unticking the option Use second y-Axis.
To create a x-y plot you have to press the button and then select a X-Y Plot
(VisXYPlot) from the pull down list. This will add a new x-a plot to the current VI
panel.
On the variables page the variables for the x- and y-axis are specified. Both
variables have to be stored in one result file of a simulation. To select variables
of two different elements the option Show x-Element in Table has to be activated.
The options and the tools for the curves are similar to the ones described in
section 24.2.2.
On the second page Scales of the dialogue the scales of the two axis can be set
automatically or global definitions can be used for them.
The plot is drawn for a certain time range. On page Time Range this range can
be set to the whole simulation time, or you can select only a specified range to
show these results.
Like other plots it can be created by using the ”Append VI(s)” button . An
much easier way is to click on a plotted curve and then selecting Create FFT
Plot from the context sensitive menu. Then you can ’drag’ the mouse pointer
from the selected point on the curve to the left or right. When holding the mouse
still, a quick-help box shows you the range, beginning and end of the curve to be
transformed.
By clicking the diagram again, a range for the FFT is set and the FFT is
calculated and shown in a newly created plot.
When entering the ”edit” dialogue by double-clicking the plot, the x- and y-axis
can be defined on the different pages similar to the VisPlot. Additional options
are:
Calculate This additional option on the page y-Axis modifies the Fast-Fourier
Transformation and the time range of the signal the FFT is applied to. The
S YNCHRONIZE will synchronise the time range with a given frequency.
Furthermore the different parts of the variable and the number of samples
for the FFT can be selected.
Unit The unit of the x-axis can be set to Frequency or Harmonic Order. For the
Harmonic Order the nominal frequency can be set different to the network
frequency.
Display On the Advanced page the display of the FFT results can be toggled
between the Spectral Line and a solid Curve.
Using a vector diagram complex values such as voltages, currents and apparent
power can be visualised as vectors in one or more diagrams. A complex variable
can be defined and then shown in two different representations:
• Polar coordinates, i.e. magnitude and phase of the current
• Cartesian coordinates, i.e. active-and reactive power
There are predefined vector diagrams for calculation results. The predefined
vector diagrams can easily be created using the context menu of a branch:
right-click a branch in the single line graphic or in the data manager.
select the option Show→Vector Diagram→... from the menu
select one of the predefined variable, i.e. Voltage/Currents
The example Fig. 24.11 shows the voltage and current on one terminal of a line.
N OTE : A vector diagram can only be shown when branch elements like lines,
load, transformers, etc. are selected. Then the vectors of the voltage,
current or power across the elements or at the nodes connected to the
elements are shown in diagrams.
The vector can be shown after a load-flow calculation or before and
after a transient RMS simulation.
If all shown variables have the same unit, the axis are labelled with values and
unit. If there is more than one unit, the labels show ticks. A legend showing the
ratio of the units is add at the right bottom of the plot. The balloon help of the
scale labels always the absolute values for each unit.
If the “Auto Scale” option in the dialogue is turned on, the scales are adapted
whenever a new calculation is ready. Turn off “Auto Scale” to keep the scale
limits.
• Right click the vector plot and select Set Origin. This will move the origin to
the right clicked position.
• Modify the “x-Min.” and “y-Min.” values in the plot dialogue to the starting
value of the x-and y scale.
Changing Coordinates
The plot displays the vectors in cartesian or in polar representation. The grid of a
polar plot is shown as circles and can be altered as described in section 24.2.
The representation setting is also used for the mouse position display in the
status bar.
The option Polar in the context menu toggles between representation in polar
and cartesian coordinates. On the Advanced page in the edit dialogue this
representation can also ba changed.
Label of Vectors
In the edit dialogue as well as from the context menu of the plot the label of the
vector can be displayed in the different coordinate representation, so the real
and imaginary value or the magnitude and phase angle can be shown.
• Right-clicking one of the vector plots and select Jump To. This shows a list
of all connected elements from which one can be selected. Here the side
of a branch element is automatically checked. The Jump To option is not
available if there is more than one element shown in the same plot or if
there are no calculation results available.
• Right-click the vector plot and select the Default Variables option. This will
show a list of predefined variables. This option is not available if there is
more than one element shown in the same plot or if there are no
calculation results available.
• The “Var. x-Axis” column in the variables table in the plot dialogue, as
depicted in Fig. 24.12 is double clicked to select a new variable from a list.
The variables shown in the list are either the magnitude or the real-part of
the vector. The angle or the imaginary part are set automatically. The
selection list is empty when no calculation result are available.
This plot VisPath shows the voltage profile of a radial network based on the
load-flow results. It is directly connected to a defined feeder in the network, so it
can only be created for the part of the system a feeder is assigned to.
The voltage profile plot needs a successful load-flow calculation. It can not be
created if there is no load-flow calculated. The most easy way of creating a
voltage path plot is to define such a plot in the single line graphic.
• First you have to define a feeder for the radial network you would like to
create a voltage profile for by right-clicking on a switch and then select
Define→Feeder.... A new feeder object is created.
• In the ’calculation relevant objects’ or in the data manager select the feeder
object you just created or you want to show the voltage profile of.
Right-click on it and select Show→Voltage Profile from the context
sensitive menu.
The voltage profile plot shows the voltage of terminals or busbars along a feeder.
The variable(s) shown by the plot can be changed. If there is no valid load-flow
calculation the plot remains empty. A voltage profile is shown in Fig. 24.13.
The curve shown can be clicked and marked at the busbar positions (points).
Like most plots available in DIgSILENT PowerFactory the voltage profile plot
can be labelled. See the context sensitive menu or the description of the result
graphs for details.
The plot in the example shows the voltage m:u with the unit “p.u.”. The position
of the busbars (x axis) is shown as the distance from the beginning of the feeder.
The unit is “km”. The variables shown for the busbars can be changed by the
user through the edit dialogue of the plot.
The x-Variable of the voltage profile can be changed by editing the dialogue of
the plot. On the Scales page of the Edit dialogue a list box defines the x-axis
variable. There are two predefined x axis.
Distance shows the distance of the busbar away from the feeder in “km”.
Bus Index numbers the busbars so the distance on the plot between the
busses is constant.
Other prompts for random variable input. Each variable available at all busbars
in the feeder can be input there.
The y-Variable(s) can be user-defined. The predefined variable for the plot is the
voltage m:u with the unit “p.u.”. Any other variable available at all busbars in the
feeder can be set. To change the shown variable, edit the voltage profile dialogue
and change the variable name in the table. Resize the table to append variables.
The Branch Colouring settings define a different colouring of the plot. For
example the overloading of a branch element can be defined and shown in the
plot. In Fig. 24.13 to line elements are loaded over 80%, so they are displayed in
red. Also either the maximum or the minimum values of parallel branches can be
shown.
On the Advanced page the Colouring of the busnames shown in the plot can be
defined additionally.
Coloured acc. to Feeder Colours the bus names according to the colour of the
different feeders.
The context sensitive menu shows now additional functions regarding the
voltage profile plot, when right-clicking on the plot or on the profile:
Edit Feeder opens the ”edit” dialogue of the feeder related to the plot.
Edit Data opens the ”edit” dialogue of the selected line, transformer or other
element.
Edit and Browse shows the selected element in the data manager.
Besides the voltage profile the object VisPath can also be used to show the
schematic diagram of a radial network. The usage and the different options
available for this plot are similar to the voltage profile plot in section 24.4.
In the plot you will see the terminals and busbars as well as the electrical
elements belonging to the feeder depending on the real distance of the network
or on the bus index, where the distance between every node is constant.
These functions can be activated from the context sensitive menu of the branch
element with a defined feeder similar to the voltage plot or the schematic plot
described above. Using the option Show→Schematic Visualisation→... you can
use two slightly different operations:
Distance PowerFactory will draw automatically from the database a single line
diagram for the radial network defined by the feeder. The distances
between the terminals/busbars in “km” are set automatically according to
the distances specified in the lines.
Bus Index Similar to the schematic diagram the distances between the
terminals/busbars will be neglected and a standard value will be used for
all terminals.
where
i = Index of frequency
n = Number of frequencies
t = Time
f (i) = Frequency at index i
u(i) = Magnitude at frequency i
ϕ(i) = Angle at frequency i
For the If a successful harmonic load-flow calculation with the option All
Frequencies is performed, the waveform plot will show the results of any
distorted or pure sinusoidal variable, e.g. voltages or currents, from any element
in the network. It can also be created if there is no load-flow calculated.
To create a waveform plot on the current VI panel, press the button and
selecting a Waveform Plot (VisHrm) from the pull down list. More than one
subplot may be created at once by setting the Number of VI(s). The new empty
subplots appear with standard settings.
Usage, settings and tools of this plot are similar to the subplot. A detailed
description can be found in section 24.2.1, page 24-459. Although the definition
of the variables is slightly different. Besides the result object and the element,
there can be defined the magnitude of the variable, which is to be shown in the
plot, and additionally the angle related to the magnitude can be inserted when
this information is needed.
To change the waveform plot settings either press the C ALCULATION button in
the dialogue of the plot or select Calculation in the context menu on the plot. The
Settings Waveform Plot object SetWave holds the Step Size and the Range for
the calculation of waveforms in the Waveform Plots.
Step Size
The waveforms seen in the plot are calculated by the waveform plot itself. To
avoid errors the Step Size must be smaller than half the period of the highest
Range
To be independent of the basic frequency the time range of the waveform is
entered in Number of cycles of Basic Frequency. Basic Frequency and the
resulting Range are shown just for information.
Similar to the plots on a VI page the mouse position in the embedded graphic is
shown in the status bar. The context sensitive menu of the embedded graphs
offers commands for printing and zooming.
Print Picture This option opens the print dialogue. The default print format for
embedded graphs is A4. The printer orientation is set to the orientation of
the embedded graph. The print dialogue offers to preview the printed area.
Zoom In This option changes the cursor to a magnifying glass. Drawing a
rectangle with the cursor will enlarge that area.
Zoom Back This option restores the previous zoom area.
Zoom All This option zooms out to the complete window.
Change Viewpoint This option changes the arrow to the move arrow .
Press the left mouse button, hold it down and move the mouse outside the
window. This will move the zoomed area in that direction. Press the right
mouse button or E SC to change the cursor back again.
Different kinds of plots are used to display calculation results or device data.
There are a lot of tools, which will help you interpreting and analysing these data
or results of calculations. Most of them are accessible directly through the
”status bar” of PowerFactory or through the context sensitive menu. This is
activated by right-clicking on the curve or an the plot background depending on
the function you want to choose.
Y-Axis: to edit the y-axis limits, scales and variable representation and auto
scaling options as well as the variable to be shown.
• First the value of the mouse position in the diagram is displayed in the
status bar, similar to the information shown with an open single line
diagram.
• When a curves is clicked and marked with a cross, the cross value is also
displayed in the status bar and remains unchanged until the cross is set to
a different position. If there is no cross on the active page the status bar
value is reset and no longer displayed.
Some plots have different scales on one axis, therefore these plots can not
display a value in the status bar.
• You will find the option Curve-Tracking in the status bar, normally in a grey
font style. When double-clicking this option the ”Curve-Tracking” mode will
be activated. Then a cross will appear if the mouse arrow will be near a
curve. If the mouse is hold still for one second, the x- and y-value will be
shown in a balloon window.
The label option is available from the context sensitive menu whenever a curve
or graphic was clicked and marked with a cross. The option Label→Insert ...
Label can be selected for the different labels. In addition there are two buttons
and in the toolbar, which can be used to create labels.
After selecting the appropriate label from the sub-option of label, a rubber band
from the cross to the mouse is shown. A click with the left mouse button sets the
label, the right mouse button cancels. The following different labels are available.
The Text-Label The text-label displays an user defined text above and below a
line connected to the curve with a rubber band. Edit the label to change the
text shown.
The Value-Label The value-label displays the x/y coordinates of the cross. The
label is a text-label filled with the coordinates. Edit the label to change the
text.
The Form-Label The form-label uses a form to print the displayed text. The
form is local for each label or common to all plots of the same type in the
active project.
After creating the labels, they can freely be dragged across the plot while staying
connected to the data point on the curve. The text can also be changed by
double-clicking the label or the rubber band. The edit dialogue of these two
labels is depicted in Fig. 24.17.
Value: Value displays the connected curve position of the label. For labels
created as value this position is displayed as label text. “x-Axis” displays
the x axis value, “y-Axis” the y axis value. “Time” is visible only for plots
showing a trajectory.
Delete Label when a new Simulation is started: Some plots show simulation
results. Labels in plots showing simulation results are deleted when the
simulation is started again. To keep labels in such plots, e.g. to compare
curves with the last run, turn off this option. The default of this option is
“on”.
The different information and parameters for this label are described below:
Value Value displays the connected curve position of the label. “x-Axis” displays
the x axis value, “y-Axis” the y axis value.
Data Object “Data Object” is a reference to the shown object. If “Data Object”is
not set the label itself is taken as shown object.
Shown Object The object output by the form, see “Data Object” described
above.
Edit Used Format “Edit Used Format” shows the used “Form Manager”. The
used format is either the local format or the one defined for all plots of the
same type in the active project.
Create Local Format “Create Local Format” creates a new “Form Manager”
valid for the current label only. The forms can be edit without influencing
other labels in the same plot or in the active project. The “Create Local
Format” button is replaced by the “Set Default Format” when a local format
was defined.
Set Default Format “Set Default Format” removes the local format. The format
used is the one used for all plots of the same type in the active project. The
“Set Default Format” button is replaced by the “Create Local Format” when
the local format was reset.
Delete Label when a new Simulation is started Some plots show simulation
results. Labels in plots showing simulation results are deleted when the
simulation is started again. To keep labels in such plots, e.g. to compare
curves with the last run, turn off this option.
Form the context sensitive menu of the format labels more options can be
selected
Form The format options can be directly accessed by Edit used Format and
Create Local Format for the marked format label.
Reconnect with... Reconnects the format label to another curve or data point.
The look of constant labels may vary because of different settings like the label
location, the intersection values and other options. The dialogue of the constant
label is depicted in Fig. 24.19.
To insert a constant label into a diagram or plot, the option Set
constant→x-Value or Set constant→y-Value places a constant x- or a constant
y-value into the current plot. Thus the dialogue for constant the VisXvalue object
will pop up (shown in Fig. 24.19) and a horizontal respectively vertical line will
then be displayed at the value specified in the dialogue. Also the constant value
and (if exist) the value of intersections with the curves will be shown.
There are different options and styles for the constant label:
Name defines the name of the constant line and will be displayed in the plot.
Line Only displays only the solid line and the related label.
Line with Intersections shows a solid line including label and indicates
the values when intersections with the curves of the plot.
Value defines the constant value, either X or Y. The dialogue shows if either a X
or Y is set. Also the actual position of the cross will be shown as a x-
respectively y-value. It is not possible to change a constant X into a
constant Y label other than by removing the old and creating the new one.
Linestyle and Width specifies the line style and line width for the line shown.
Invisible if “Show Values” is set to “Intersections Only”.
x-Value is Displays the type of current displayed. Visible only for constant x
values in time overcurrent diagrams.
Set User Defined The button “Set user defined” is visible for constant values
created by the short circuit in overcurrent plots. Labels showing this button
display the short circuit current. The labels are deleted whenever a new
short circuit was calculated. If one wants to modify and keep the label even
if a new short circuit was calculated the label must be changed to user
defined.
Set Secant to add a line directly through the selected data point.
Through Point defines a graphic line through the selected data point with a
defined gradient and gives back the function of the line.
User Defined defines a line independent from the curves shown with a defined
gradient and y-offset.
The function of the inserted line can also be seen, when holding the mouse
arrow over the line for 1 second. The options of the line dialogue or similar to the
options for the constant value in section 24.8.4.
The “Curve Filter” specifies the type of filter applied to the data read from the
result object. This object is a filter applied to curves in plots. There are different
filter types available. The following filter settings are available. (N=number of
points in the original curve, K=number of points in the filtered curve)
Average The filtered curve is the running average of the last n points. The first
n-1 points are omitted. K=N-n+1.
Balanced Average The filtered curve is the running average of the last (n-1)/2
points, the current point and the next (n-1)/2 points. This filter thus looks
ahead of time. The first and last (n-1)/2 values are omitted, n must be an
odd number. K=N-n+1.
Purge Points by averaging The filtered curve contains the averages of each
block of n values. K=N/n. This filter may be used to speed up the display of
large curves.
Purge Points The filtered curve only contains every n-th value. All other values
are omitted. K=N/n. This filter may be used to speed up the display of large
curves.
N OTE : A curve filter can only be applied at the end of the simulation or mea-
surement, points added during a simulation or measurement are not
filtered.
The option Filter... is not available in all plots.
24.8.7 Border
The option Border in the context sensitive menu will insert or change the border
of the selected plot or diagram. The options available are
• Off
• Simple
• 3D
• 3D with label
The border with 3-dimensional effect and label will insert an additional label on
the bottom of the selected plot. You can now define the label by double-clicking
on it. Furthermore the text style can be altered by choosing the option Select
Font for Border.
You can choose now between the export into a Windows MetaFile (*.wmf) or into
a Bitmap File (*.bmp).
• Press the E XPORT... button in the right side of the dialogue box of a
virtual instrument.
• Right-click on the VI and select Export... from the context sensitive menu.
N OTE : If in one plot or on one VI panel variables are shown from several result
objects, a dialogue will appear before the export command, where you
have to select one result file from the list.
This function will export the data from the displayed curve with the given time
range as ASCII text to the following programs/files:
• Output Window
• Windows Clipboard
• Measurement File (ElmFile)
• ComTrade
• Textfile
In this dialogue you can also set the individual step size, the columns of the
result file and the header for the export as can be seen from Fig. 24.21
Show dx/dy Right-click on data point on a curve and select Show dx/dy from
the menu. The two lines will appear, which are connected to the tip of the
mouse pointer. A balloon window will show you the x- and y-difference
between the selected data point and the point where the tip of the mouse
pointer is in the diagram. Additionally the gradient is displayed.
Each VI panel, each virtual instrument and every single plot uses a style where
line-widths, fonts, brushes and other graphical settings are defined. These
objects normally use predefined styles. In PowerFactory there are six
predefined styles available:
• Default - Standard English Text and Symbols
• Paper
• Gr Paper
• Tr Paper
These styles can be modified for all VIs or only for single plots. For this
user-defined styles can easily be created and specified. The base for an user
defined style is always the previous default style.
• The easiest way is using the list-box in the toolbar by clicking and selecting
one of the available styles.
The user-defined styles are stored in the changed settings element of the active
project. Therefore each project has its own \C HANGED
S ETTINGS\S TYLES\U SER S TYLE\... path and user defined styles. Only the
changed elements are stored in the project, the unchanged ones are the ones
predefined in the default style.
You can see the ”changed settings” elements in the database in Fig. 24.22.
The Style→Create new Style option in the context sensitive menu of the VI panel
SetVipage or every plot on the panel is selected to create a new style for the
actual virtual instrument panel. Insert a name for the style to be created in the
input dialogue. Then the new style is added to the predefined styles and is
automatically selected for the current VI panel. The created style is not set
automatically in other VI panels of the project.
If a user-defined style is selected for the current VI panel, the Style→Edit Style
option of the context sensitive menu of the panel may be selected to open the
dialogue of the new panel style. Fig. 24.23 shows the dialogue for editing the
layout of the panel.
With the settings shown in the figure, mainly the layout of the title block of the VI
panel is edited. Here you can define
• the different font styles for the various entries of the block by clicking on the
BUTTONS
• the height and the width of the columns of the title block
• the line width of the title block and of the page frame
To change the styles, right-click on a virtual instrument on the panel and select
the option Style→Edit Style in the context menu. Then a dialogue will pop up
containing the settings for
• all x-axis of VIs using this style
• all y-axis
Double-click on the object you want to change. As shown in Fig. 24.24 the
dialogue of the selected axis will be opened and can then be modified.
In the dialogue you can then specify the following settings of the axes for the
selected style:
Axis Here the style and width of the axis itself can be changed. Also the
number of small ticks shown between the divisions can be chosen.
Text The number of characters and the digits behind the decimal point as well
as the font type and size can be specified.
Arrow The representation can be altered between the normal style and a style
with an arrow at the end of the axis with a certain width and length of its tip.
Another and simpler way to change the settings of the style is to directly select
the option Style→Edit Style of clicked Element from the context sensitive menu.
These are the same dialogues shown in Fig. 24.24 and can directly be accessed
by right-clicking on the
• on the plot itself to access the settings plot style, i.e. the grid, legend, etc.
Fig. 24.25 shows all different settings available for the plots on a VI panel. Thus
you can
Grid Options to alter the width, line style and colour of the main grid and the
help grid.
Legend Edit the distances from the legend to axis and between the different
legends.
This option saves the setting of the plot and stores a new VI in the list of all VIs.
Hence if adding a plot you can now select the newly created VI from the list by
pressing the button and selecting the e.g. NewName (VisPlot) from the pull
down list or by using the option Create VI→... from the context menu of the
SetVipage to add new virtual instruments to the VI panel. The new empty
subplots appear with new defined settings.
Chapter 25
Another set of objects, commands and tools are dedicated to the handling and
presentation of results, either in text or in a graphical format. These objects,
commands and tools are the subject of this chapter.
Database ID its database ID and the date, when it was changed the last time
Info information about the currently stored data, ie.e the time interval, step
sizes, number of variables, etc
The U PDATE button will recalculate these parameters and update the shown
information if necessary. The C LEAR DATA will clear all result data.
N OTE : Clearing the data will delete the result-file and will reset the database
ID. This will destroy all calculated or measured data in the result file. It
will not be possible to restore the data.
2. Setting the Default type to Triggered will cause the calculation module to
copy and temporarily store signals in that copied result object, every time a
Trigger Event becomes active. The Triggered default type enables the
trigger time fields.
When the P ROTOCOL O UTPUT is activated, all events that happened during
the simulation, recorded by the result object, will be written again into the output
window. So you can check what events took place during the last simulation.
The contents of a result object are determined by one or more monitor variable
set (IntMon) objects. These monitor objects can be edited by pressing the
C ONTENTS button. This will show the list of monitor sets currently in use by the
result object.
Selecting a set of result variables, trough the use of monitor objects is necessary
because otherwise all available variables would have to be stored, which is
practically impossible.
This command is the same command for exporting curve data form a VI plot.
This is described further in section 24.8.9.
In this dialogue you can also set the individual step size, the columns of the
result file and the header for the export as can be seen from Fig. 25.2
This function will export the data from the displayed curve with the given time
range as ASCII text to the following programs/files:
• Output Window
• Windows Clipboard
• Measurement File (ElmFile)
• ComTrade
• Textfile
The export command allows for exporting an interval of results only and to
export every n-th result. So you can define an additional step size n for the
export. Additionally a User defined interval for the time/x-scale can be set as the
minimum and maximum value of the first recorded variable (in time domain
simulations this is of course the time).
By default, all the results for all monitored variables are exported. But also a
selection of variables can be made by entering column numbers under the
section Columns (Variables). The header of the exported result table can include
either the variable name or its long or short description.
To create a new list of parameters or to edit an existing list in a result object, the
C ONTENTS button can be pressed, which will pop up a browser with all monitor
variable sets that have already been defined. To define a new variable set, the
button in the browser can be pressed.
The result object thus combines one or more monitor variable sets, which allows
for a very flexible and highly transparent result definition. In fact, by using monitor
variable sets, just about every parameter used in the PowerFactory program
comes available as calculation result, together with a description and a unit.
The variables selected with the IntMon dialogue in the result object become
available to the subplot objects in the virtual instrument panels. In these
subplots, one or more result objects can be selected and from those result
objects a power system element and one of its variables can be chosen, if that
element and that variable was selected in one of the IntMon objects. The
subplot will then show the calculated curve of that variable.
For more information about defining result objects with monitor variable sets, see
Monitor Variable Sets, section 5.10, page 5-64.
When clicking the right mouse button, when the cursor is in the output window
area, the context sensitive menu of the output window appears. The output
window can then be undocked by deselecting the “Docking View” (by clicking the
mouse onto ”Docking View” to ’untick’ it). The undocked output window is still
confined to the main window, but now as a free floating window.
N OTE : This sometimes occurs ’accidentally’ when the user left clicks the tool
bar for the output window and drags the mouse (keeping the mouse
button down) to somewhere outside of the output window boundaries.
To rectify this simply left click in the title bar of the undocked window
and drag it down to the bottom of the screen, where it will dock once
more (if you have right clicked ’unticked’ ”Docking View” to right click
and select ”Docking View” once more.
The undocked state is not a normal situation for the output window. Because the
output messages that appear in this window are important at any stage while
using the program, the docked state is the best place because it will be visible
then and easy to locate.
The edge of the output window shows a splitter bar [a] which is used to change
the size of the output window. The ‘drag’ cursor, as shown at [a], appears
automatically when the cursor is placed on the splitter bar. The left mouse button
can be pressed when the ‘drag’ cursor is visible. This will turn the splitter bar to
grey and the output window can now be resized by holding down the mouse
button and moving the mouse up or down.
The contents of the output window may be stored, edited, redirected, etc., using
the following buttons:
Opens an editor and pastes any selected or complete text from the output
window
Opens a different output file
Either saves the selected text to an ASCII file, or the complete contents of
the output window if no selection was made
Copies the selected text to the Windows Clipboard for use in other
programs
Clears the output window by deleting all messages
Searches the text in the output window for the occurrences of a given text.
A “?” wild cart may be used
Changes the font used in the output window
Either prints the selected text or all buffered text if no selection was made
To enable the copy and paste of other than normal messages, the corresponding
message categories have to be checked. Only the selected messages will be
copied. This means, for example, that when the information texts are disabled
and a block of text is copied in which the following 4 lines are present:
In most cases only the calculation results are of interest, not the messages that
surround them. The errors, warnings, information and protocol messages are
therefore disabled by default.
The other option is to disable all escape sequences in the ASCII export to file,
printer or other editors. These escape sequences are used by PowerFactory to
code for text colour and special characters. Other programs may not be able to
display the exported text correctly. The escape sequences have to be disabled in
that case.
Additionally you can define the maximum number of lines in the output window.
This means that if this number is exceeded due to further information displayed
in the window, the oldest messages will be deleted. The value “-1” will disable
the limit for the number of lines.
Every line in the output window with a full folder and object name can be
double-clicked with the left mouse button. This will open the appropriate edit
dialogue for the shown object. See the example in Fig. 25.5.
It is also possible to press the right mouse button while pointing at the object
name. The context sensitive menu will will pop-up and show entries to easily find
and edit objects, if the printed objectname was found to be an existing object in
the database tree.
Edit and Browse Object will open the data manager and show the element
and its parameters there.
Mark in Graphic will mark the clicked element in the single line diagram and
zoom into the region of its place.
Reports of calculation results may contain bar graph information. The “voltage
profiles” report after a load-flow command, for instance, produces bar graphs of
the per-unit voltages of busbars. These bars will be coloured blue, green or red if
the “Verification” option in the load-flow command dialogue has been enabled.
They will be hatch-crossed if the bars are too large to display.
An part of a bar graph output is shown in Fig. 25.6. The following formatting is
visible:
Green Solid Bar Used when the value is in the tolerated range.
Hatch-crossed Bar Used when the value is out of reach and cannot be
displayed correctly.
Normally, not all selected lines will be copied and the format of the copied text
may undergo changes. The latter is caused by the fact that the PowerFactory
output window uses special formatting ‘escape sequences’. Other programs
may not be capable of dealing with these formatting commands.
Which lines will be copied is determined by the output window settings. See
section 25.2.1 for more information. When text from the output window is about
to be copied, an info message will pop up, informing the user about the current
settings. See Fig. 25.7. A button is supplied which brings the user directly to the
user settings dialogue. The info message may be disabled, in which case it will
never show up again.
The form editor within DIgSILENT PowerFactory is used to define text reports,
from very small result boxes, to more complex and comprehensive reports.
The form editor (IntForm) will be used in most cases to change the contents of
the result boxes in the single line graphic. PowerFactory offers three ways in
which to change a result box definition:
• selecting three variables out of three predefined lists
• selecting one or more variables out of all available variables
• writing a new user defined format, using the PowerFactory output format.
Because of all these, the result boxes are used as example to introduce the
nature and use of the form editors.
As has been explained in section 7.8.6, page 7-148, the result boxes may be
right clicked to select a particular format. When this format is selected, the “Form
Select” edit dialogue pops up which shows a reference to a form for each
calculation function (load-flow, short-circuit, etc.). Editing the reference will show
the Form Editor of the current result box definition. See Fig. 25.8.
This form editor has a page to change the format by selecting variables, and a
page to manually define a format. What is displayed on which page depends on
the input mode of the Form Editor, which can be change using the button
I NPUT M ODE .
As shown in Fig. 25.9 the three modes are:
Predefined Variables This mode lets the user select three variables from three
predefined lists of variables. This is visible in Fig. 25.8 as the three
listboxes at the bottom (’Line 1,2,3’).
User Selection This mode lets the user select any amount of parameters out of
all available parameters for the selected object or class of objects. This
includes model parameters as well as calculated values.
Text editor This is the most flexible, but also the most difficult mode. In this
mode, any text and any available variable, in any color, can be entered in
the Form. The highly flexible DIgSILENT output language allows for highly
complex automatic reports. This mode also offers a fast append of
predefined lines. The F ROM L IST button is used to select a variable from
the list shown in “Predefined Variables” mode. A standard line with that
variable is appended to the form. The U SER DEFINED button acts like the
input mode “User Selection” with one important difference. Where the
“User Selection” mode is used to redefine the complete form text, the
U SER DEFINED button appends a line for each selected variables to the
existing form text.
N OTE : To use the “Predefined Variables” is the easiest way to select variables,
if they are accessible from the pull-down list.
If not only the standard variables should be shown, but also additional
ones shall be defined, the best way is to use the option “User Selec-
tion”.
In Fig. 25.8, the editor is in the default ‘Predefined Variables’ mode. The three
listboxes show the names of the variables [1], their units [2] and their description
[3].
The three listboxes used for the ‘Predefined Variables’ mode are replaced by a
S ELECT VARIABLES button in the ‘User Selection’ mode. Pressing this button
will pop up a ‘Monitor Variable Set’ dialogue (IntMon) which is used to define a
set of variables. The IntMon dialogue is explained in the next section.
The example in Fig. 25.8 shows that the active and reactive power at the
element Xnet have been selected as well as the loading percentage. This
selection will produce three lines of DIgSILENT output language code. This
code can be viewed by selecting the View page. The text editor in this page will
be disabled, because we are selecting a format in stead of typing in the codes
ourselves. However, it still shows the format of our selection as:
#.## $N,@:m:P:_LOCALBUS
#.## $N,@:m:Q:_LOCALBUS
#.## $N,@:c:loading
This example shows the basic syntax of the DIgSILENT output language:
• The ’#’ sign is a placeholder for generated text. In the example, each line
has a placeholder for a figure with two digits after the decimal point
(’#.##’). The first ’#’-sign stands for any whole number, not necessary
smaller than 10.
• The ’$N’ marks the end of a line. A line normally contains one or more
placeholders, separated by non-’#’ signs, but may also contain normal
text or macro commands.
• After the ’$N’, the list of variable names that are used to fill in the
placeholders have to be added. Variable names must be separated with
commas. Special formatting characters, like the ’@:’-sign, are used to
select what is printed (i.e. the name of the variable or its value) and how.
12.34
4.84
103.56
The form editor offers options for the unit or name of the selected variable. If the
Unit-show option is enabled, a second placeholder for the unit is added:
#.## # $N,@:m:P:_LOCALBUS,@:[m:P:_LOCALBUS
#.## # $N,@:m:Q:_LOCALBUS,@:[m:Q:_LOCALBUS
#.## # $N,@:c:loading,@:[c:loading
The ‘[’-sign encodes for the unit of the variables, in stead of the value.
When more than just the variable name, value and unit has to be displayed, or if
we want to use colors, or other special formats, we have to use the DIgSILENT
Output Language.
By selecting the Text Editor input mode, all entries on first page of the Form
Editor disappear, except for the form name, and the editor on the second page is
activated. (see Fig. 25.10).
Almost all textual output that is produced in PowerFactory, is defined by a
report form. The use of report forms range from the simple and small result
forms that specify the contents of the single line result boxes to large and
complex forms that are used to print out complete system reports.
In all cases, the text in the editor field of a IntForm object specifies the report
that is to be generated. For result boxes, that text is normally created
P 12.34 MW
Q 4.84 MVAr
ld 103.56 %
Defining single line result boxes only asks for a basic understanding of the
DIgSILENT output language. For more complex reports, many different
variables from all kinds of objects have to be printed as listings or tables. Such a
report would require macro handling, container loops, selection of parameters,
headers, footers, titles, colors, etc. The DIgSILENT output language offers all
this, and more.
The basic syntax, which is primary used for defining result boxes is given in the
following overview.
Placeholders
A placeholder for strings like variable names or whole numbers is a single
’#’-sign. For real numbers, the placeholder consists of
• a point or comma
The number of ’#’-signs after the decimal point/comma defines the number of
decimals.
%xxx returns the long variable name, as used in the edit dialogues
&xxx returns the short variable name, as used in the database browser
The centering code | may be used in front of the formatting code for centering at
the placeholder, for example “|%.60,TITLE:sub1z”.
The cformat string may be used to alternatively reserve place for a value or text.
A cformat of ‘%10.3’ will reserve 10 characters for a figure, with 3 decimals. The
first number can be omitted for text: ‘%.6’ will reserve 6 characters for the text
field. The cformat syntax allows for centering text by adding the ‘|’-sign to the
‘%’-sign:
‘|%.10’ will reserve 10 characters and will center the text.
OBJECT(cls) Gets Element of class cls. Used to access a variable name or unit
without actually accessing such an object. Used in header lines.
EDGE Gets an arbitrary object with at least one connection, i.e. a Load, a Line,
etc. Used to access a variable name or unit without actually accessing
such an object.
example: %EDGE:m:U1:bus1
writes description of the variable U1
argument: idx: index of branch, the currently set bus index is used when
idx¡0
example: CUBIC(0):e:loc_name
returns name of cubicle at busindex 0
TITLE Gets the title that is set in the output command (ComSh or ComDocu)
example: TITLE:e:annex
writes annex of title
VARIANT Gets the active variant in which the current object is stored
example: VARIANT:e:loc_name
writes the name of the variant
example: NET:e:loc_name
writes the name of the grid
example: CMD:pabs
writes the short circuit position on the line after calculation of a
short-circuit.
example: CASE:e:loc_name
writes the name of the active calculation case
DEF: Returns the default object. The default object depends on the currently
processed output.
example: DEF:e:loc_name
writes the name of the default object
STALNE: Returns the station if the current object is a busbar. Returns a line if
the current object is a terminal between line routes. Otherwise, nothing is
returned, and the entry will be ignored.
example: STALNE:e:locname
writes the name of the line or station.
RES: Returns the currently active results object (ElmRes) used by simulation,
harmonics or other calculation modules
example: RES:e:desc
writes the first line of the description of the results object
Colour
A line can be set to another color by adding a ’_LCOL(c)’ command directly after
the ’$N,’ marker. This will color the whole line according to the color number c:
a black i gray
b black j lightgray
c red k bordeaux
d green l darkred
e blue m darkgreen
f brown n lightgreen
g cyan o marine
h magenta p darkblue
’$R’ Marker that make that the line will only be used when the specified results
are valid
The line type ’$H’, ’$F’ and ’$T’ will be treated as normal (’$N’) line types
when used inside a loop command. Line type codes may be made language
dependent by adding a ’E’, for English lines or a ’G’ for German lines, i.e.
’$HG’ specifies a German header line.
The following commands are used for page and line controls. They can only be
used directly behind the line type codes ‘$N’, ‘$F’ or ‘$H’.
LCOL(c) Changes the colour of the current line, c is the colour code.
OBJ(ClsNam) The current line will only be used for objects from the class
“ClsNam”.
BUS(inum) The current line will only be used for objects which connect to
exactly inum nodes
FIRST The current line will only be used when the loop index is 0 (first passage)
NFIRST The current line will only be used when the loop index is not 0 (all but
the first passages)
IF(boolean expression) The current line will only be written when the
expression is true. Example: _IF(m:u:bus1>0.95)
IFNOT(boolean expression) The current line will only be written when the
expression is false. Example: \IF(m:u:bus1<0.95)
Example:
DATE(c) present date: c=’e’ give the English format, c=’g’ the German one.
CLS class name without the ‘Elm’, ‘Sta’, ‘Typ’, etc. part.
Example:
$LOOP,_LROUTES()
| # |,$N,loc_name
$END
This example uses the filter “_LROUTES()”, which filters line route objects
(ElmLneroute). The format text has one line, which prints the object name.
There are two types of reports. These are either the “Short Listing” or the
detailed report. The “Short Listing” is not defined for all elements.
Device Data
Use Selection The set of reported elements depends on the “Use Selection”
setting. If “Use Selection” is checked one element or a “Set” object must be
chosen for output. If “Use Selection” is not checked the “Filter/Annex” page
specifies the set of elements for the report. This page is described further
down. Another way to select object for the report is to select the objects in
the “Data Manager” or the “Single Line” graphics and select
“Documentation” in the “Output” entry of the context menu. The “Output of
Device Data” command will pop up.
Annex Each class uses it’s own annex. There is either the default annex or the
individual annex. To use the default annex check “Use default Annex”.
Changes of the annex are stored in the “Changed Settings” of the active
project. The local annex is stored in the “Output of Device Data” command.
To modify the local annex press the “Change Annex” button. See section
25.7, page 25-519 for details.
Title Most reports display a title on top of each page. The reference “Title”
defines the contents of the header.
Filter/Annex
If one wants to report elements without defining a set of objects “Use Selection”
on the “Device Data” page must not be checked. The objects in the list “Selected
Objects” will be filtered out of the active projetcs/grids and reported. “Available
Objects” shows a list of elements which can be add to the “Selected Objects” list.
The list in “Available Objects” depends on the “Elements” radio button. Elements
in the left list are moved to the right by double-clicking them. The text in the
“Annex” input field will be set as default annex for the selected class.
the results. To generate a report with input data use the ComDocu command
(“Output of device data”, see section 25.5, page 25-516).
active calculation (Fig. 25.14 shows a load-flow). Some reports may be inactive,
depending on the object(s) chosen for output. In Fig. 25.14, a station was
selected for output. “Used Format” displays the format(s) used for the report.
Some reports are a set of different outputs. For these reports more than one
form is shown. If the form is modified it will be stored automatically in the
“Changed Settings” folder of the active project. The changed form does not
influence the reports of other projects. If “Use Selection” is active a set of objects
(selection) or a single object must be chosen. The report is generated only for
these elements. All relevant objects are used if “Use Selection” is not selected.
The relevant objects depend on the chosen report. Most reports display a title on
top of each page. The reference “Title” defines the contents of the header.
For some reports additional settings are required. These settings depend on the
chosen report, the selected objects for output and the calculation processed
before. The calculation (left top) and the used format(s) (right top) are always
shown.
The “Annex for Documentation” stores the annex for the documentation of
results. The annex number and the page number for the first page are unique for
each class.
Objects This column shows the different classes with their title.
Annex This column stores the annex number shown in the Annex field of the
report.
First Page This column defines the start page for the class in the report. The
first page number depends on the class of the first element output in your
report. The page number of its class is the page number of the first page.
Chapter 26
DPL
Such new calculation functions are written as program scripts which may use
• Flow commands like ‘if-then-else and ‘do-while’
• PowerFactory commands (i.e. load-flow or short-circuit commands)
• Input and output routines
• Mathematical expressions
• PowerFactory object procedure calls
• Subroutine calls
• A root command has its own script on the “script” page of the dialogue.
Select one or more elements in the single line diagram. Then right-click the
selection (one of the selected elements) and choose the option
Define...→DPL Commands Set... from the context sensitive menu.
The easiest way to start a DPL command AND define a selection for it is
to select one or more elements in the single line diagram or in the data
manager and then right-click the selection.
Choose the option Execute DPL Scripts from the context sensitive menu.
Then select a DPL script from the list. This list will show DPL scripts from
the global as well as from the local library.
Select a DPL script, insert/change the variables and then press the button
E XECUTE
In this way the selection is combined into a DPL Commands Set and the set is
automatically selected for the script chosen.
Only one single DPL command set is valid at a time for all DPL scripts. This
means that setting the DPL command set in one DPL command dialogue, will
change the DPL command set for all DPL commands in the database.
N OTE : To choose different sets for various DPL scripts you can either use
different selection object SetSelect like the “General Set”. Or new DPL
command sets can be created and selected inside the active study
case. This is done by pressing , selecting “other” and the element
“Set (SetSelect)” and then selecting the set type.
The interface section Input Parameters is used to define variables that are
accessible from outside the DPL command itself. DPL commands that call other
DPL commands as subroutines, may use and change the values of the interface
variables of these DPL subroutines.
The list of External Objects is used to execute the DPL command for specific
objects. A DPL command that, for example, searches the set of lines for which a
short-circuit causes too deep a voltage dip at a specific busbar, would access
that specific busbar as an external object. Performing the same command for
another busbar would then only require setting the external object to the other
busbar.
Also there can be Result parameters defined. These parameters are results
from the script and they are stored inside the result object. Hence it is possible
to access them through the variable monitor and display them in a plot.
On this page you will see the DPL code of a already defined script and/or you
can insert new command lines for modifying this script or writing a new script.
The available commands and the DPL language are described in the following
sections.
The edited program code also features a highlighting specially suited for
handling DPL scripts.
There is also an own editor available for conveniently writing a DPL script. To
activate this editor press the button on the bottom side of the Script page of
a DPL command dialogue.
Now a new window will be opened in PowerFactory. Here the script can be
written in a very convenient way similar to the programming language C++. The
highlighting will be activated automatically.
With this button “Edit Object” the edit dialogue of the script is opened and
you can C HECK your script for errors or you can E XECUTE it.
The script inside the editor and in the dialogue are synchronised each time
you save the script or the script is edited in the dialogue. If this
“Disconnect” button is pressed, the scripts will not be synchronised
anymore.
With the “search” button you can activate a Find, a Replace or also a Go
To function inside the editor.
With the “search next” button find/replace/go to the next matching word.
With the these buttons bookmarks can be set in the editor. You can also
jump from one bookmark to the next or previous as well as clear all
bookmarks.
When finished editing, press the button and the script will be synchronised
with the main dialogue. You can also jump to the main graphics board by
selecting the option Window→Graphic ... form the main menu.
The DPL script language uses a syntax quite similar to the C++ programming
language. This type of language is intuitive, easy to read, and easy to learn. The
basic command set has been kept as small as possible.
• variable definitions
• method calls
Example:
statement1;
statement2;
if (condition) {
groupstatement1;
groupstatement2;
}
• string, a string
All parameter declarations must be given together in the top first lines of the DPL
script. The semicolon is obligatory.
Examples:
double Losses, Length, Pgen;
int NrOfBreakers, i, j;
string txt1, nm1, nm2;
object O1, O2, BestSwitchToOpen;
set AllSwitches, AllBars;
Besides these global constants, all internal and external objects are constant too.
variable = expression
variable += expression
variable -= expression
The add-assignment “+=” adds the right side value to the variable and the
subtract-assignment “-=” subtracts the right-side value.
Examples:
double x,y;
x = 0.5*pi(); ! x now equals 1.5708
y = sin(x); ! y now equals 1.0
x += y; ! x now equals 2.5708
y -= x; ! y now equals -1.5708
• Arithmetic operators: +, -, *, /
• Standard functions:
sin(x) cos(x) tan(x) asin(x)
acos(x) atan(x) sinh(x) cosh(x)
tanh(x) exp(x) ln(x) log(x) (basis 10)
abs(x) min(x,y) max(x,y) sqrt(x) (square root)
trunc(x) frac(x) round(x) sqr(x) (power of 2)
pow(x,y) modulo(x,y) ceil(x) floor(x)
where all trigonometric functions are based on radians (RAD).
• Constants:
pi() π
twopi() 2π
e() e
if ( [boolexpr] ) [statlist]
if ( [boolexpr] ) [statlist] else [statlist]
do [statlist] while ( [boolexpr] )
while ( [boolexpr] ) [statlist]
for ( statement ; [boolexpr] ; statement ) [statlist]
in which
Examples:
if (a<3) {
b = a*2;
}
else {
b = a/2;
}
while (sin(a)>=b*c) {
a = O:dline;
c = c + delta;
}
if ({.not.a}.and.{b<>3}) {
err = Ldf.Execute();
if (err) {
Ldf:iopt_lev = 1;
err = Ldf.Execute();
Ldf:iopt_lev = 0;
}
}
The ‘continue’ command skips the execution of the following statements in the
smallest enclosing ‘do-while’ or ’while-do’ statement. The execution of the DPL
script is continued with the evaluation of the boolean expression of the loop
statement. The loop statement list will be executed again when the expression
evaluates to TRUE. Otherwise the loop statement is ended and the execution will
continue with the first command following the loop statement.
Examples:
O1 = S1.First();
while (O1) {
O1.Open();
err = Ldf.Execute();
if (err) {
! skip this one
O1 = S1.Next;
continue;
}
O2 = S2.First();
AllOk = 1;
DoReport(0); !reset
while (O2) {
err = Ldf.Execute();
if (err) {
! do not continue
AllOk = 0;
break;
} else {
DoReport(1); ! add
}
O2 = S2.Next();
}
if (AllOk) {
DoReport(2); ! report
}
O1 = S1.Next();
}
input(var, string);
The input command will pop up a window with the string and an input line on
which the user may enter a value. The value will be assigned to the variable
“var”.
output(string);
The string may contain “=”-signs, followed by a variable name. The variable
name will then be replaced by the variable’s value.
Example:
The output command is considered obsolete and has been replaced by the more
versatile “printf” and “sprintf” functions.
With the syntax for the parameter definitions, program flow and the input and
output, it is already possible to create a small program. However, such a script
would not be able to use or manipulate variables of ‘external’ objects. It would
not be possible, for instance, to write a script that replaces a specific line by
possibly better alternatives, in order to select the best line type. Such a script
must be able to access specific objects (the specific line) and specific sets of
objects (the set of alternative line types).
The DPL language has several methods with which the database objects and
their parameters become available in the DPL script:
• The most direct method is to create an object, or a reference to an object,
in the DPL command folder itself. Such an object is directly available as
“object” variable in the script. The variable name is the name of the object
in the database.
• The DPL command set may be used. This method is only useful when the
order in which the objects are accessed is not important. The DPL
command set is automatically filled when a selection of elements is
right-clicked in either the single line graphic or the data manager and the
option Execute DPL Script is selected.
• The list of external objects is mainly used when a script should be
executed for specific objects or selections. The list of external objects is
nothing more than a list of ‘aliases’. The external object list is used to
select specific objects for each alias, prior to the execution of the script.
objectname:parametername
In the same way, it is possible to get a value from a database object, for instance
a result from the load-flow calculations. One of such a result is the loading of a
line object, which is stored in the variable “c:loading”. The following example
performs the unbalanced load-flow and reports the line loading:
This examples is very primitive but it shows the basic methods for accessing
database objects and their parameters.
Locally stored objects (also called ’internal objects’) can be accessed directly.
They are known in the DPL script under their own name, which therefore must
be a valid DPL variable name. It will not be possible to access an internal object
which name is “My Load-flow\~{}1*”, for instance.
Internal objects may also be references to objects which are stored elsewhere.
The DPL command does not distinguish between internal objects and internal
references to objects.
An example is shown in Fig. 26.3, where a DPL script is shown on the left which
has a load-flow command and a reference to a line in its contents folder on the
right.
The example DPL script may now access these objects directly, as the objects
“Ldf” and “Line”. In the following example, the object “Ldf”, which is a load-flow
command, is used in line 01 to perform a load-flow.
The DPL contents are also used to include DPL scripts into other scripts and
thus to create DPL “subroutines”.
A more elegant way would be to use the DPL global selection and fill it with all
lines. The data manager offers several ways in which to fill this object DPL
Command Set with little effort. The selection may then be used to access each
line indirectly by a DPL “object” variable. In this way, we may create a loop in
which we search for the highest loading. This is shown in the following example.
18. if (O:c:loading>max) {
19. max = O:c:loading; ! update maximum
20. Omax = O; ! update max loaded line
21. }
22. O = S.Next();
23. }
24. output(’max loading=max for line’); !output results
25. Omax.ShowFullName();
The object SEL used in line 08 is the reserved object variable which equals the
General Selection in the DPL command dialogue. The SEL object is available in
all DPL scripts at all times and only one single “General Selection” object is valid
at a time for all DPL scripts. This means that setting the General Selection in
the one DPL command dialogue, will change it for all other DPL commands too.
The method “AllLines()” in line 08 will return a set of all lines found in the general
selection. This set is assigned to the variable “S”. The lines are now accessed
one by one by using the set methods “First()” and “Next()” in line 09, 16 and 22.
The line with the highest loading is kept in the variable “Omax”. The name and
database location of this line is written to the output window at the end of the
script by calling “ShowFullName()”.
The DPL contents make it possible to access external object in the DPL script.
The special general selection object (“SEL”) is used to give all DPL functions and
their subroutines access to a central selection of objects. i.e. the DPL Command
Set.
Although flexible, this method would create problems if more than one specific
object should be accessed in the script. By creating references to those objects
in the DPL command itself, the DPL command would become specific to the
current calculation case. Gathering the objects in the general selection would
create the problem of selecting the correct object.
If a DPL script must access a database object dependent on where and how the
DPL script is used, an “External Object” must be added to the external object list
In Fig. 26.4, an example of an external object is given. This external object may
be referred to in the DPL script by the name “Bar1”, as is shown in the example.
Example:
sagdepth = Bar1:u;
• A DPL command either executes its own script or the script of another,
remote, DPL command. In the first case, the DPL command is called a
‘root command’ and the script is called a ‘local script’. In the second
case, the DPL command is called a ‘referring’ command and the script is
called a ’remote script’.
• A root command may define interface variables that are accessible from
outside the script and which are used to define default values.
• Each root command may define one or more external objects. External
object are used to make a DPL command run with specific power system
objects, selections, commands, etc.
• A referring command may overrule all default interface values and all
selected external objects of the remote command.
The use of remote scripts, external objects and interface variables makes it
possible to create generic DPL commands, which may be used with different
settings in many different projects and study cases.
The easiest way to develop a new DPL command is to create a new ComDpl in
the currently active study case and to write the script directly in that DPL object.
In such a way, a DPL “root command” is made. If this root command needs DPL
subroutines, then one or more DPL command objects may be created in its
contents. Each of these subroutines will normally also be written as root
functions.
The newly written DPL command with its subroutines may be tested and used in
the currently active study case. However, it cannot be executed when another
study case is active. In order to use the DPL command in other study cases, or
even in other projects, we would have to copy the DPL command and its
contents. This, however, would make it impossible to alter the DPL command
without having to alter all its copies.
The solution is in the use of ‘remote scripts’. The procedure to create and use
remote scripts is described as follows.
Suppose we have created and tested a new DPL command in the currently
active study case. We would like to store this DPL command in a save place and
make it possible to use it in other study cases and projects.
• copy the DPL command to a library folder. This will also copy the contents
of the DPL command, i.e. with all it’s DPL subroutines and other locally
stored objects.
• Create a new DPL command object (ComDPL) in the active study case.
The C HECK or E XECUTE button will copy all parts of the remote script in the
library that are needed for execution. This includes all subroutines, which will
also refer to remote scripts, all command objects, and all other objects. Some
classes objects are copied as reference, other classes are copied completely.
The new DPL command does not contain a script, but executes the remote
script. For the execution itself, this does not make a change. However, more
than one DPL command may now refer to the same remote script. Changing the
remote script, or any of its local objects or sub-commands, will now change the
execution of all DPL commands that refer to it.
As with most other command objects, the DPL command only has one method:
The difference is that each DPL subroutine has different interface parameters,
which may be changed by the calling command. These interface parameters can
also be set directly at calling time, by providing one or more calling arguments.
These calling arguments are assigned to the interface parameters in order of
appearance. The following example illustrates this.
Sub1:Outages = MySelection;
! execute the subroutine:
error = Sub1.Execute();
However, using calling arguments, we may also write:
! execute the subroutine:
error = Sub1.Execute(5.0, MyLine, MySelection);
The DPL syntax is very small because it mainly serves the purpose of basic
operations like simple calculations, if-then-else selections, do-while loops, etc..
The strength of the DPL language is the possibility to call functions and to create
subroutines. A function which can be called by a DPL command is called a
“method”. Four types of methods are distinguished:
Internal methods These are the build-in methods of the DPL command. They
can always be called.
Set methods These methods are available for the DPL ‘set’ variables.
Object methods These methods are available for the DPL ‘object’ variables.
External methods These are the methods which are available for certain
external PowerFactory objects, such as the load-flow command, the line
object, the asynchronous machine, etc.
The general syntax for an object method equals that of the set method:
The following overview lists all the non-specific [OBJMETHOD] methods which
are available for all classes.
ComOutage Methods
SetObjs Sets the list of objects according to S
GetObj Returns the object at position i
ComSimoutage Methods
Reset Resets the intermediate results
ExecuteCntcy Executes an ComSimoutage without resetting results
AddCntcy Executes an ComOutage without resetting results
SetLimits Sets the limits for the outage simulation
IntCase Methods
Activate Activates the study case
Deactivate De-activates the study case
IntPrj Methods
Activate Activates the project
Deactivate De-activates the project
TypAsm Methods
CalcElParams Calculates the electrical parameters
TypAsmo Methods
CalcElParams Calculates the electrical parameters
ElmFeeder Methods
GetAll Returns all objects in this feeder
GetNodesBranches Returns all buses and branches in this feeder
GetObjs Returns all objects of class ‘ClassName” in this feeder
ComNmink Methods
AddRef Adds shortcuts
Clear Empties the selection
GetAll Returns all objects of class ‘ClassName’
ElmComp Methods
Slotupd Performs a slot update
ComRes Methods
ExportFullRange Exports the whole data range
FileNmResNm Sets the filename for the data export
ComEcho Methods
On Turns on the user interface
Off Turns off the user interface
SetTime Methods
SetTime Sets the time
Date Sets the date at actual
Time Sets the time at actual
IntMon Methods
SetFilt Methods
Get Returns a container with the filtered objects
ComDpl Methods
Execute Executes an external DPL script as a subroutine
IntMat Methods
Get Returns the (row, col) value
Set Set the value at position (row,col)
Init Initializes the matrix
Resize Resizes the matrix
NRow Returns the number of rows in the matrix
NCol Returns the number of columns in the matrix
RowLbl Sets the label of the R’th row
ColLbl Sets the label of the C’th column
IntVec Methods
Get Returns the value at index i
Set Sets the value at index i
Init Initializes the vector
Resize Resizes the vector
Size Returns the size of the vector
ElmCoup Methods
Close Closes the buscoupler
Open Opens the buscoupler
IsOpen Returns 1 when the coupler is open
IsClosed Returns 1 when the coupler is closed
ElmLne Methods
HasRoutes Returns if the line is subdivided into routes
HasRoutesOrSec Returns if the line is subdivided into routes or sections
GetType Returns the line type object
IsCable Returns if this is a cable
IsNetCoupling Returns if the line connects two grids
SetCorr Sets the correction factor of the line
CreateFeederWithRoutes
Splits the line in 2 routes
ElmLneroute Methods
IsCable Returns if the route is a cable
HasSections Returns if the line route is subdivided into sections
TypLne Methods
IsCable Returns if the line type is a cable type
SetNomCurr Sets the nominal current of the line type
ElmRes Methods
Init Initializes the result object
Clear Clears the result object
Write Writes the current results
Draw Updates all relevant plots
WriteDraw Writes results and updates all plots
SetAsDefault Sets this as default results
AddVars Adds to the list of monitored variables
GetObj Returns objects used in the result file
ElmZone Methods
GetAll Returns all objects in this zone
GetBuses Returns all buses in this zone
GetNodes Returns all nodes in this zone
GetBranches Returns all branches and buses in this zone
GetObjs Returns all objects of the given class in this zone
ComInc Methods
Execute Executes the command
ComLdf Methods
Execute Executes the command
ComShc Methods
Execute Executes the command
StaSwitch Methods
Close Closes the switch
Open Opens the switch
IsOpen Returns if the switch is open
IsClosed Returns if the switch is closed
SetFeeder Methods
SetPath Methods
GetAll Returns all objects in the path
GetBusses Returns all nodes in the path
GetBranches Returns all branches in the path
AllBreakers Returns all breakers in the path
AllClosedBreakers Returns all closed breakers in the path
AllOpenBreakers Returns all open breakers in the path
SetSelect Methods
All Returns all objects
GetAll Returns all of the given class
AddRef Add references
Clear Empties the selection
AllElm Returns all elements
AllLines Returns all lines
AllBars Returns all busbars and terminals
AllLoads Returns all loads
AllAsm Returns all asynchronous machines
AllSym Returns all synchronous machines
AllTypLne Returns all line types
AllBreakers Returns all breakers
AllClosedBreakers returns all closed breakers
AllOpenBreakers returns all open breakers
IntForm Methods
SetText Sets the format text
WriteOut Write the report to the output window
DPL VI Methods
SetDesktop Methods
Show
WriteWMF
GetPage
SetResults
SetXVar
SetScaleX
SetAutoScaleX
SetAdaptX
SetVipage Methods
GetVI
SetStyle
SetTile
SetResults
SetXVar
SetScaleX
SetDefScaleX
SetAutoScaleX
SetAdaptX
GetScaleObjX
VisPlot Methods
AddVars
AddResVars
Clear
SetXVar
SetScaleX
SetScaleY
SetDefScaleX
SetDefScaleY
SetAutoScaleX
SetAutoScaleY
SetAdaptX
SetAdaptY
GetScaleObjX
GetScaleObjY
SetCrvDesc
IntPlot Methods
SetScaleY
SetAutoScaleY
SetAdaptY
Chapter 27
Both data exchange features, DOLE and SCADA interfacing, are based on a
small set of interfacing commands. Yet, these commands enable the import and
export of a wide range of parameters in an object oriented way.
The DOLE language and the SCADA interface are treated separately in the
following sections.
The DOLE interface is a common ASCII interface for all kind of data transfer to
DIgSILENT PowerFactory. Creating new objects, changing values of existing
objects and drawing single line graphics are the main features of the interface.
Use the option Open Dole File ... of the context sensitive menu by right clicking
the the input window of the data manager.
• set • ac • ifupd
Additional functions
By default the command inserts switches between line routes. With the option
/noswt the command does not insert switches. You can change the default if
you insert a tilde (‘~’) before or/and behind the name of the terminals.
Additional functions
The set command takes the last object created with the create - command when
“obj=blank” is used.
Ifupd Command
The Ifupd command is used for composite models to update the interface and
insert references.
ac [/de] name
/de deactivate
Remark
ac/de all
Deactivates the currently active project and study case
Examples
ac \User\Factory\20kV
Activates the project or study case 20kV in the folder \U SER\FACTORY
ac/de \User\Distribution\Shc1
Deactivates the project or study case Shc1 in the folder \U SER\-
D ISTRIBUTION
Syntax:
Remarks
The new command with the option /sgl will automatically activate the newly
created grid.
Example
new/sgl pTarget=\User\Factory sName=20kV
This will create the new grid with the name 20kV and the corresponding
single line graphic in the folder \U SER\FACTORY.
The graphic command can be used in three different modes specified by the
first option.
Syntax:
Examples
grp/new sFKey=99/KT05 symbol=ShortTermStrip size=0.1 ...
... pos=0.65,1.25
This will create a new graphic object with according to the definition of the
symbol ’ShortTermStrip’. The graphic object will get the position (0.65/1.25)
and the size 0.1. If the PowerFactory database contains an appropriate
data object (a Terminal) with the foreign value ’99/KT05’ it will be linked to
the created graphic object, otherwise it will be created and linked, too.
This will create a new graphic object according to the definition of the sym-
bol ’d tr2’. The object (a Transformer) will be connected with the busbar or
terminal referenced by the position (0.65/0.75) and the busbar or terminal
referenced by the position (0.65/1.25). The position of the created object will
be (0.65/1.05) using a simulated double click. Result attributes for the object
will not be visible. If the PowerFactory database contains an appropriate
transformer with the specified complete name (inclusive the path) it will be
linked to the created graphic object, otherwise it will be created and linked,
too. If it is created, the topology of the data objects will be taken from the
graphical topology, otherwise the graphical topology must match the given
topology at data object level.
• Identify the object by entering the complete name (incl. path) of the object
with the parameter ’obj’
• Identify the object by entering the foreign key value of the object with the
parameter ’sFKey’
• Identify objects by entering the positions of the object in the drawing with
the parameter ’pos’.
• If only one coordinate is entered, the coordinate will have to lay inside the
surrounding rectangle of the desired object. By entering more than one
coordinate you can reference more than one object. Then the coordinates
are interpreted as points of an imaginary polyline in the drawing. Objects
are referenced if their surrounding rectangles will be intersected by this
imaginary polyline.
Syntax:
Examples
grp/mod size=1.15 pos=0.65,0.8
This will change the size of the graphic object whose surrounding rectangle
is referenced by the position (0.65/0.8).
symbol= If given this parameter will limit the group of referenced objects via the
parameter ’pos’ to objects which graphical symbol names matches the
value of this parameter.
pos= A list of coordinates used to identify the object(s) in the drawing. The
coordinates are separated by a comma. Each coordinate consists of two
values (one for the dimension x and one for the dimension y), separated by
a comma (see description above).
sAttr:index= For every referenced object the specification of this parameter will
set the foreign key parameter of the linked data object to the given value.
Therefore the term :index specifies the index in the list of all referenced
objects, beginning with the value ’0’. Note that it is not necessary that you
specify values for all identified objects. The list of referenced objects is
sorted in increasing order according to their intersection with the points of
the imaginary polyline given by the parameter ’pos’.
Example
grp/sfk symbol=d_bus_h pos=0.25,0.7,0.25,1.0 sAttr:0=99/2b ...
... sAttr:1=99/1a
This will set the foreign key values for two data objects whose linked graphic
objects are first intersected by the imaginary polyline with the start point
(0.25/0.7) and end point (0.25/1.0) and whose symbol name is ’d bus h’.
By activating the last measured system status which will comprise generation,
loads, transformer tap settings, shunt reactor switching and system
configuration, this option allows the analysis of the actual system operation with
respect to:
• active and reactive power flow, voltage profile, system losses and reactive
power compensation requirements
The access to previously stored data allows the analysis of any occurred fault or
otherwise specific situation needed to be studied. In this case, the main
advantage of accessing SCADA history files is the ability of updating power
system data easily without being forced to edit any data manually.
PowerFactory SCADA interfacing has been realized in a very general manner,
ensuring that a PowerFactory SCADA on-line link can be realized with nearly
any SCADA hardware and software.
3. Read in one of the transfer files using the main menu ”File/Import”.
This will automatically update the operation information. The program is then
ready to execute any available command concerning power flow, fault analysis,
stability calculation etc.
2. operation data
which are both using the set command. The Set-Command has the following
definition:
a) 2-winding transformer
set/def obj=ElmTr2 var=nntap
Define variable set
nntap = tap position
b) General load
set/def obj=ElmLod var=plini,qlini
Define variable set
plini = active power [MW]
qlini = reactive power [MVAr]
c) Synchronous Machine
set/def obj=ElmSym var=pgini,qgini
Define variable set
pgini = active power [MW]
qgini = reactive power [MVAr]
d) Switch
set/def obj=StaSwitch var=on_off
Define variable set
on off (1=closed, 0=opened)
Chapter 28
The ComGis conversion command takes a special “.DGS” format file and
creates a single graph and a list of electrical models from that file. The syntax of
the “.DGS”-file, which is in plain ASCII, is explained further on in this section.
The GIS conversion uses millimeter units with respect to the bottom-left origin
and a limit up A0 paper format (1188 x 840 mm). It could therefore be necessary
to transform the GIS coordinates before creation of the “.DGS”-file file.
The first sheet of “Gis2Dole.xls” is called ’Description’. All the parameters of the
different conversion elements and types are described here. The actual data is
entered in the other worksheets:
• ‘Terminals’
• ‘Loads’
• ‘Lines’
• ‘Transformers
• ‘LV Transformers’
• ‘DigSI Lines’
The button C REATE C ONVERSION F ILE is used to generate the “.DGS”-file. The
created “.DGS”-file is stored in the current directory and will receive the same
named as the excel file (but with the extension ‘DGS’).
Alternatively, the “.DGS”-file can be generate by the GIS itself, without using the
Excel spreadsheet. The format of the “.DGS”-file is described hereinafter for that
purpose.
The import of the GIS data from the “.DGS”-file is performed in the following
steps.
• Create a new project in the PowerFactory database or activate an existing
project or study case.
• Within the File - Conversion... menu, select the GIS... option to open the
GIS conversion command dialogue.
In most cases, the default settings of the conversion command can be used. The
general page of the conversion command is depicted in Fig. 28.1.
The “New Grid” option are used to select
• Graphic Name: optionally select an existing single line graphic to which the
new graphic objects will be added.
• Grid Name: Either enter the name of an existing grid, or a new name. The
new electrical models will be created in the given grid.
If no single line graphic is selected, then the default graphic in the selected grid
will be used to draw the new graphic symbols.
The “GIS Conversion File” option is used to enter the name and path of the
“.DGS”-file on disk.
The “Line Types” option is used to generate routes and sections, dependent on
the selected type libraries:
The “.DGS”-File syntax uses special sections for defining all graphical and
electrical information for all power system objects. Comment lines are started
with an asterisk.
Each new section must start at a new line that starts with two dollar characters
’$$’ followed by the section name:
Each line within a section must start with a line number, followed by comma
separated fields. The line numbers are the the adjacent sheet row number of the
spreadsheet, when the “.DGS”-File was created by the Excel spreadsheet. The
available parameters are found on the “Description” page of the “Gis2Dole.xls”
spreadsheet.
Example:
$$Version
1.1
$$Terminals:xlsLineNumber,Name,uknom,X,Y,Length,Rotation,GrType
2,X3177,11,250,350,60,90,1
3,X3702,11,150,350,60,90,1
Type?, Length?,
3,Line(001),C-3177__C-3702,,C-3177,1,,C-3702,1,2284,8120,0,1,
Cables\300 Al,0.0067108,OHL\185 Cu,0.017003,OHL\300 Al,
0.08713,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
$$Transformers:xlsLineNumber,Name,Type,Busbar1,Conn1,Busbar2,Conn2,OoS,
Par.no.,TapPos
2,2WTr1,Transformer\300 kVA,C-3462 H,1,C-3462 L,0,1,2,0
3,2WTr2,Transformer\300 kVA,C-3462 H,1,C-3462 L,1,0,1,0
Chapter 29
Converting/Importing PSS/E
Files
This however has changed in the latest versions, allowing the user to
Convert/Import directly all type of PSS/E files (supporting versions 23 to 26)
from the software itself, making it even more user friendly.
If the user would like to convert dynamic data files, it is suggested to first copy
the IEEE library folder located in the main database into the user directory. The
IEEE folder has the structure defined in figure Fig. 29.1.
The following subdirectories are of importance in the Conversion/Importing.
Frame Library Folder This folder contains the composite frame’s which are
basically wired diagram.
It is also important to note that the DSL models defined in the model library
folder should not be in different subdirectories (e.g. AVR’s, PSS, etc). If this is
the case the user must copy all of the models into one specific library folder.
After the conversion, the user can then arrange the specific models according to
his projects (recommended).
Before following the next steps, the user must verify that no projects are currently
activated.
Select from the main menu File → Conversion → PSS/E → Import Afterwards
the window of the import command will pop-up, asking for the user to fill up more
specific details about the PSS/E file Conversion/Import to take place.
PSS/E Raw data Location on the hard disk of the PSS/E raw data file. By
default the program searches for *.raw extensions. The user may consider
all types of files by typing *.*.
Add Graphic Files Location on the hard disk of the PSS/E drw files. Again by
default the programs searches for files with extension *.drw. The user may
consider all types of files by typing *.*. Important Note: After the
Conversion/Importing has finished, the resulting project will contain a
graphics folder where all of the PSS/E drw converted graphics will be
stored. The user must therefore relocate each one of them in the
corresponding grids.
Project The project name that the Converted/Imported file will have in the data
manager window.
in Location in the data manager tree where the imported file will be stored.
Sequence Data Location on the hard disk of the PSS/E sequence data file. By
default the program searches for *.seq extensions. The user may consider
all types of files by typing *.*.
Dyn Models Data Location on the hard disk of the PSS/E Dynamic Models data
file. By default the program searches for *.dyn extensions. The user may
consider all types of files by typing *.*.
DSL - Model Path Location in the PowerFactory data manager tree where the
DSL models are stored (IEEE/Models....).
Unit of ‘LEN’ for lines in miles instead of km With this option enabled, all
lengths will be interpreted in miles in the PSS/E raw files.
Convert only sequence data file With this option enabled, the converter will
add only the sequence data to an existing project.
Convert Induction Machines (P < 0) With this option enabled, all generators
in the raw data file that have negative active power will be converted to
asynchronous machines.
Consider transformer phase shift With this option enabled, transformer phase
shifts will be considered.
Convert only dynamic model file With this option enabled, the converter will
add only the dynamic model file to an existing project.
Convert only graphic file With this option enabled, the converter will add only
a graphic to an existing project.
Only convert file Internal option. Not intended for the normal user (this box
should be unchecked).
Output only used dynamic models Displays a list of used dynamic models.
Busbar naming: ‘PSSE NAME’ With this option enabled, the busbars are
named similar as in the PSS/E raw data file (without bus number).
Branch naming: ‘BUSNAME1 BUSNAME2 ID’ With this option enabled, the
branches are named as the name of the busbars + ID.
Rotate with respect to busbar The converter will rotate the graphical layout in
case of the majority of busbars being in vertical or horizontal position.
Snap coordinates to grid The converter will snap to grid all objects in the
single line graphics.
Scaling factor The graphic files are scaled according to the showed scaling
factor.
DIgSILENT GmbH
Gomaringen, Germany
2004
DIgSILENT PowerFactory Glossary
Glossary
Node The mathematical or generic description for what are commonly known as
busbars in the electrical world. In PowerFactory nodes may be
represented by ”Busbars” or ”Terminals” of various kinds. These are
treated in the same manner in mathematical terms but treated slightly
differently in the database. As far as possible the user should use terminals
as Busbars can be somewhat inflexible. See also Busbars, Edge
Elements, Branch Elements.
Edge Elements The elements between two nodes. May also be termed ’two
port element.’ Source, topological studies; picture a 3 dimensional box, the
corners of the box would be called the nodes, and the edges between
corners are hence ’edges.’ See also nodes, branch elements.
Glossary 1
DIgSILENT PowerFactory Glossary
Glossary 2
DIgSILENT PowerFactory Glossary
Result Object A result object keeps one or more lists of parameters which are
to be monitored during a calculation. Results objects are used for building
calculation result reports and for defining virtual instruments.
Glossary 3
DIgSILENT PowerFactory Glossary
Glossary 4
DIgSILENT PowerFactory Glossary
Spare Unit A reserve component, not connected to the system, which may be
used as a replacement for a component on outage by switching or
replacing.
Failure The event in which a component does not operate as intended or stops
operating as intended. An example of the first kind is a circuit breaker that
fails to strip, an example of the second kind is a transformer that is tripped
by its Buchholz relay.
Passive Failure A failure of a component which does not activate the automatic
protection system.
Adequacy The ability of the electrical power system to meet the load demands
under various steady state system conditions.
Security The ability of the system to meet the loads demands during and after a
transient or dynamic disturbance of the system.
Glossary 5
DIgSILENT PowerFactory Glossary
Base State The state of the system were all components are able to operate as
intended.
(n-1) system A system for which all relevant components are redundant units.
(n-k) system A system for which the outage of any k or less components will
never lead to an interruption which cannot be restored by normal switching
actions (i.e normal network reconfiguration) alone.
Glossary 6
Index
Index
Index
Index
BlockGraph, 20-395 ChaMat, 8-165, 8-169
Boolean expression, 26-528 Change Directory, 5-84
Branch Elements, 2 ChaPol, 13-273
Branch elements, 7-139 Characteristic, 8-165
Branch off, 8-163 Continous, 8-173
Branches Discreet, 8-171
creating, D-27 Discrete time, 8-167
Editing, D-33 Handling, 8-177
Break, 26-529 Importing, 8-176
Browser window, 5-57 One dimensional, 8-168
Busbar Reference, 8-177
Failure model, 18-333 Scalar, 8-167
Types, 8-154 Time, 8-176
Busbar Systems, 8-158 Two dimensional, 8-169
Cubicles, 8-154 ChaRef, 8-165, 8-177
Defining, 8-152 ChaScalar, 8-167
In station, 8-151 ChaVec, 8-165, 8-168, 8-171, 8-173,
Busbars, 1, 7-139, 8-150 8-176, 13-273
Connecting, D-27 ChaVecfile, 8-176
creating, D-25 Class, 2
Editing, D-30 Class Methods (DPL), 26-541
Buscoupler Classification
Methods, 26-543 BlkSlot, 20-386
Buttons, 2-18 Clear Data
Result Object, 25-495
Cable Clear Window, 5-84
Damage curve, 12-256 Coloring
Failure model, 18-334 feeder, 8-180
CAIDI, 18-318 Colour Representation Mode, 7-143
CAIFI, 18-318 ComCapo, 16-282
Calculate, 9-186 ComCd, 5-84
Calculation ComCl, 5-84
Comparison between cases, ComCls, 5-84
9-188 ComCv, 5-81
EMT Simulation, 19-356 ComDiff, 9-189
Initial Conditions, 19-359 ComDir, 5-84
RMS Simulation, 19-356 ComDocu, 25-516
Run Simulation, 19-376 ComDpl, 26-522
Simulation of Transients, 19-354 ComEd, 5-84
Calculation Blocks, 20-397 ComExit, 5-84
Calculation of Initial Conditions, ComFsweep, 13-268
19-359 Advanced Options, 13-269
Calling conventions, 26-537 Frequency, 13-269
ceil Impedance Calculation, 13-269
DPL, 26-527 Network-Representation, 13-268
DSL, 21-427 ComHldf, 13-266
ChaDisctime, 8-167
Index
Advanced Options, 13-267 ComRel3, 18-306
Calculate, 13-266 ComRes, 25-497
Frequency, 13-267 Plot Data, 24-487
Network-Representation, 13-266 ComSh, 25-517
THD, 13-267 Filter Analysis, 13-270
ComIdent, 23-444 ComShc, 11-201
ComInc, 19-359 ComShcsweep, 12-246
ComLdf, 10-192 ComSim, 19-376
Troubleshooting, 10-199 ComSimoutage, 18-297
ComMan, 5-85 ComStop, 5-85
Command Line, 5-83 ComSys, 5-85
Commands ComTieopt, 17-291
Cd, 5-84 ComWr, 5-85
Cl, 5-84 Conductor Temperature, 11-209
Cls, 5-84 Connect, 7-136
Dir, 5-84 Connecting Blocks, 20-398
Ed, 5-84 Connecting Slots, 20-398
Exit, 5-84 Connecting subsystems, 7-140
Man, 5-85 Consider Protection Devices, 10-198
Op, 5-85 Constant Value, 24-483
Pause, 5-85 Constant X-Value, 24-483
Pr, 5-85 Constant Y-Value, 24-483
Rd, 5-85 Constants
Stop, 5-85 DPL, 26-527
Sys, 5-85 DSL, 21-427
Wr, 5-85 Contingency, 5
ComMod, 22-432 Contingency Analysis, 18-295
Common Model, 20-390 Continue, 26-529
Common model failures, 18-349 Continuous Scale, 8-173
ComNew, 6-94, 7-115 Controllers Modelling, 20-378
ComNmink, 18-296 conversion, GIS, 28-567
ComOp, 5-85 Converting Data
ComOutage, 18-300 PSS/E, 29-572
Comparing case results, 9-188 Copy, 7-134
ComPause, 5-85 cos
Composite Block Definition, 20-393 DPL, 26-527
Drawing, 20-395 DSL, 21-427
Composite Frame, 3, 20-386 cosh
Drawing, 20-395 DPL, 26-527
Composite Model, 3, 20-382 DSL, 21-427
Composite models, I-74 Coupler
ComPr, 5-85 Methods, 26-543
ComPrjdiff, 6-107 Create FFT Plot, 24-468
ComPsse, 29-572 Create local page format, 24-457
ComRd, 5-85 Create new Style, 24-457
ComRed, 14-277 Create VI, 24-457
Index
Creating DiaGrfopts, 7-135
Step Response, 20-385 DiaLnefeed, 8-163
Creating a DSL Model, 21-402 dialogue Diagrams, 24-478
Creating DSL Models, 21-410 dialogue Drawings, 24-478
Creating VIs, 24-457 dialogue Plots, 24-478
Cubicle, 1 DiaPagetyp, 7-127
Options, 7-145 DIgSILENT Output Language,
Cubicles, 8-150 25-508
Current Transformer, 12-230 DIgSILENT Programming Language,
Current Transformer Type, 12-233 26-521
Curve-Input, 12-262 DIgSILENT Simulation Language
Curve-Tracking, 24-480 (DSL), 21-414
Directional Relay, 12-238
Damage Curve Directories
Conductor/Cable, 12-256 settings, 4-41
Motor start, 12-260 Disconnect Element, 7-136
Transformer, 12-258 Discrete Scale, 8-171
DAQ, 4 Display a List of Objects, 5-84
Data interface, 27-547 Distance-time diagram, 12-248
Data Manager Distortion Analysis, 13-265
Database, 5-43 Distribution Function, 6
settings, 4-39 Distribution system
Data manager, E-42 Reliability assessment, 18-306
Data reports, 25-495 Divisor, 20-397
Database do, 26-528
multi-user, 3-24 Docking View
database update, 9-189 Output Window, 25-499
DataManager, 5-45 Documentation, 25-495, 25-516
Datamode, 5-59 Documentation Annex, 25-519
Define DOLE, 5-77, 5-79, 27-547, 29-572
Feeder, 8-180 Dos command, 5-85
Defining a DSL Model, 21-402 double (DPL variable), 26-526
delay, 21-428 Double port elements, 7-139
DSL, 21-428 DPL, 4
Delete, 5-50, 7-133 Access to Objects, 26-531
Deleting graphics only, 7-134 Advances Options, 26-524
Demo account, 3-27 Assignement, 26-527
Dependent failures, 18-349 Boolean expression, 26-528
Device, 1 calling subroutines, 26-537
Device Data Documentation, 25-516 Class Methods, 26-541
DiaAnx, 25-519 Command Object, 26-522
DiaCalctab, 8-169 Command Set, 26-523
Diagram Constant Parameters, 26-526
Results, 24-479 Creating a Command, 26-522
Tools, 24-479 Execute, 26-523
Voltage Profile, 24-472 Expressions, 26-527
Diagram Vector, 24-469
Index
External Methods, 26-541 Language, 21-414
external objects, 26-534 Macros, 21-423
Flow instructions, 26-528 Messages, 21-424
input, 26-530 Model Primitives, 21-410
Internal Methods, 26-538 Models, 21-423
internal objects, 26-532 Special Functions, 21-427
Macros, 26-537 Stability analysis, 20-378
Methods, 26-543 Standard Functions, 21-427
Object Methods, 26-540 Structure, 21-417
output, 26-530 Terms and abbreviations, 21-415
Remote Scripts, 26-535 Variable Units and Descriptors,
Script Editor, 26-524 21-417
Script Page, 26-524 Variables, 21-416
SEL, 26-533 DSL Model
Set Methods, 26-540 Creating, 21-402
Subroutines, 26-537 DSL primitive, 3
Syntax, 26-525
Variable Definition, 26-526 e()
VI Methods, 26-545 DPL, 26-527
DPL Command Set, 26-523 DSL, 21-427
DPL Editor, 26-524 Edge Elements, 1
DPL General Selection, 26-533 Edge elements, 7-139
Drag and Drop, 4 Edit and Browse, 7-113
Database to graphic, 7-116 Edit Data, 7-133
Draw existing net elements, 7-117 Edit Line Points, 7-136
Draw Radial Network Automatically, Edit Relevant, 9-187
24-475 Editing
Drawing area, 7-132 detail mode, 5-59
Drawing generators and machines, In browser window, 5-57
7-139 object mode, 5-58
Drawing lines, transformers and Editing a Block Definition, 21-411
loads, 7-139 Editor
drwbrowse, 7-135 settings, 4-41
DSL, 21-414 EIC, 18-318
Common Model, 20-390 Eigenvalue Calculation, 22-432
Defining Models, 21-410 Background, 22-432
Definition Code, 21-417 Perfoming a Calculation, 22-434
Equation code, 21-421 Theory, 22-432
Equation statement, 21-421 Eigenvalues, 22-432
Events, 21-424 Eigenvectors, 22-432
Example, 21-425 Element, 1
Functions, 21-427 ElmComp, 20-382
General syntax, 21-415 Slot assignment, 20-382
Initial conditions, 21-418 ElmCompare, 23-443
Inserting Equations, 21-411 ElmDsl, 20-390
Introduction, 21-405 ElmFeeder, 8-180
ElmLne, 8-162
Index
ElmNet, 5-87, 6-94, 6-97 Export data, 5-74
Elmrelay, 12-237 Expressions, 26-527
ElmRes, 19-367, 25-495 External Methods (DPL), 26-541
ElmStat, 8-151 External objects, 26-534
ElmTerm, 8-158
else, 26-528 Failure, 5
Embedded Graphs, 24-478 Failure Effect Analysis, 18-311
Encrypt a Macro, 21-411 Failure Model
ENS, 18-318 Busbar, 18-333
Equivalent Network, 14-277 Cable, 18-334
Euler Constant Line, 18-334
DPL, 26-527 Synchronous machine, 18-336
DSL, 21-427 Terminal, 18-333
event, 21-431 Transformer, 18-335
Event Function Fault clearance, 18-311
DSL, 21-431 Fault separation, 18-311
Event Object, 19-369 FEA, 18-311
Events, I-76 Feeder
Events of Loads, 19-372 Methods, 26-545
Events of Synchronous Feeder Folder, 8-184
Machines, 19-372 Feeder Object, 8-180
Intercircuit Faults, 19-372 Feeder options, 7-145
Outage of Element (Sim), 19-373 Feeder Position, 8-163
Save Results (Sim), 19-373 Feeder scaling, 8-180
Set Integration Step Size, 19-373 Feeders, 8-180
Set Parameter, 19-371 FFT Plot, 24-468
Short-Circuit, 11-204, 19-372 File
Switching, 19-371 Restore data, 5-74
EvtLod, 19-372 Save data, 5-74
EvtOutage (Sim), 19-373 file, 21-429
EvtParam, 19-371 DSL, 21-429
EvtShc, 19-372 Filter
EvtShcll, 19-372 Methods, 26-543
EvtStep, 19-373 Filter for Curves, 24-486
EvtSwitch, 19-371 Find Object, 5-52
EvtSym, 19-372 Flexible page tab, 5-63
EvtTrigger (Sim), 19-373 flipflop, 21-429
Exit DIgSILENT, 5-84 DSL, 21-429
exp floor
DPL, 26-527 DPL, 26-527
DSL, 21-427 DSL, 21-427
Export Flow instructions, 26-528
Result Object, 25-497 Folder for Feeders, 8-184
Export Data for, 26-528
settings, 4-39 Forced Outage, 5
Spreadsheet Format, 5-75 Form
Methods, 26-545
Index
Formatted Labels, 24-482 methods, 26-545
Forms, 25-505 Graphics Board Window, 4
frac Graphs, Embedded, 24-478
DPL, 26-527 Grid, 2
DSL, 21-427 Adding to Project, 6-97
Frame, Composite, 20-386 Creating Project, 6-94
Frame, composite
Drawing, 20-395 Harmonic Load-flow
Freeze mode, 7-119 Advanced Options, 13-267
Frequency Analysis, 13-265 Calculate, 13-266
Frequency Dependency, 13-273 Command, 13-266
Frequency Relay, 12-239 Frequency, 13-267
Frequency Sweep Network-Representation, 13-266
Advanced Options, 13-269 THD, 13-267
Command, 13-268 Harmonic Sources
Frequency, 13-269 Modelling, 13-271
Impedance Calculation, 13-269 Harmonics, 13-265
Network-Representation, 13-268 Defining Results, 13-275
Functions Filter Analysis, 13-270
DPL, 26-527 Frequency Dependency, 13-273
DPL Class, 26-541 Harmonic Load-flow, 13-266
DPL external, 26-541 Harmonic Sources, 13-271
DPL internal, 26-538 Results Variables, 13-275
DPL objects, 26-540 Waveform Plot, 13-274, 24-476
DPL sets, 26-540 Hazard Rate Function, 6
DPL VI, 26-545 Hidden Failure, 5
DSL, 21-427 HMC, 13-265
settings, 4-41 Results, 13-275
Fuse Model, 12-240 Icons, 2-18
General Filter, 5-52 Identification of parameter, 23-439
General selection IEAR, 18-318
DPL, 26-533 if, 26-528
GIS conversion, 28-567 Ignore Composite Elements, 10-198
Gis2Dole, 28-567 Impedance Frequency
Global library Characteristics
settings, 4-39 Command, 13-268
Graphic, 7-110 Import Data
Graphic Board, 7-110 Build Single Line Graphic, 7-117
Layers, 7-123 Older Versions, 5-81
Options, 7-125, 7-129 PSS/E, 29-572
Right mouse menus, 7-125 Spreadsheet Format, 5-75
Settings, 4-39, 7-125 Import data, 5-74
Graphic Windows Imported power systems, 7-116
Basic functions, 7-110 Importing
PageTab, 7-113 Characteristic, 8-176
Graphics Board inc, 21-418
Index
Inc(), 21-418 Load-Flow Calculations, 10-196
inc0, 21-418
Inc0(), 21-418 Label
incfix, 21-418 Border, 24-482
IncFix(), 21-418 Form, 24-482
Individual Colour, 7-135 Format Label, 24-482
Initial conditions (DSL), 21-418 Reconnect with..., 24-482
Input instruction, 26-530 Text Label, 24-481
Input of Curves, 12-262 Value Label, 24-481
Input Window, 5-83 Language
Insert a branch off, 8-163 Output, 25-508
Insert a T-off, 8-163 Language dependent text, 25-511
Inserting DSL Equations, 21-411 lapprox, 21-430
Instantaneous Overcurrent Relay, DSL, 21-430
12-240 lapprox2, 21-430
int (DPL variable), 26-526 DSL, 21-430
IntCase, 5-89, 6-101 Level of DSL Models, 21-411
Interactive instructions, 26-530 License key, 3-24
Internal DPL objects, 26-532 License server settings, 3-24
Internal Methods (DPL), 26-538 lim, 21-427
Internal Variables, 21-416 DSL, 21-427
Interruption, 5 Limiting Signals
Interruption costs, 18-343 BlkSlot, 20-386
intervalinc, 21-418 Limits, 21-417
Intervalinc(), 21-419 Limits Function (DSL), 21-417
IntEvt, 19-369 limits(), 21-417
IntEvtshc, 11-204 limstate, 21-428
IntFeeder, 8-184 DSL, 21-428
IntFolder, 5-86 Line
IntForm, 25-505 Failure model, 18-334
Output Language, 25-508 Methods, 26-543
IntGrfnet, 7-129 Line Route
IntLogon, 3-24 Methods, 26-544
IntMat, 5-90 Line Type
IntMon, 5-64, 5-73 Methods, 26-544
Methods, 26-542 Linkage between data and graphics,
IntMonsel, 5-63 4-39
Intnewobj, 5-47 ln
IntPlot DPL, 26-527
methods, 26-546 DSL, 21-427
IntPrj, 6-95, 6-97, 6-101 Load
IntRef, 5-92 Interruption costs, 18-343
IntVariant, 5-88, 6-105 Shedding, 18-345
invlapprox, 21-430 Transfer, 18-345
DSL, 21-430 Load damage functions, 18-343
Iteration Control Load level
store, 9-189
Index
Load Profiles, 8-165 Maintenance, 5
Load Scaling, 8-182 Mark All, 7-133
Load state estimation, 8-180 Markov Model, 18-329
Load-Flow Mathematical Functions, 21-427
Active Power Control, 10-194 Matrix
Advanced Options Page, 10-195 Methods, 26-543
Advanced Simulation Options, Matrix object, 5-90
10-198 max
Basic Options Page, 10-193 DPL, 26-527
Command Ldf, 10-192 DSL, 21-427
Iteration Control, 10-196 Measurement and identification,
Low Voltage Analysis, 10-195 23-439
Optimal, 15-281 Method
Outputs Page, 10-194 Definition, 26-538
Troubleshooting, 10-199 min
Loadflow, D-34 DPL, 26-527
Local DPL objects, 26-532 DSL, 21-427
Local load model, 18-338 Modal Analysis
log Performing a Calculation, 22-434
DPL, 26-527 Modal analysis, 22-432
DSL, 21-427 Background, 22-432
Log On Page, 3-26 Theory, 22-432
logarithm Model Definition, 20-393
DPL, 26-527 Drawing, 20-395
DSL, 21-427 modulo
Logon, 3-24 DPL, 26-527
Advanced Settings, 3-27 DSL, 21-427
Appearance, 3-27 Motor start, H-67
License, 3-24 Motor Start Curve, 12-260
Log on, 3-26 Move, 7-136
Log On Page, 3-26 Multi-user Database, 3-24
LOOP, 25-515 Multiplier, 20-397
Loop control, 26-529
loopinc, 21-418 N-K simulation, 18-295
Loopinc(), 21-419 Network Equivalent, 14-277
Lost load, 4 Network Reduction, 14-277
Low Voltage Analysis New DPL Command, 26-522
Load-Flow Calculations, 10-195 New Position, 8-163
LPEAR, 18-318 newtoninc, 21-418
LPEIC, 18-318 Newtoninc(), 21-419
LPENS, 18-318 Node, 1
LPES, 18-318 Num(), 21-424
LPIF, 18-318 Number of customers, 18-318
LPIT, 18-318 Object, 2
Macros, 21-411, 26-537 object (DPL variable), 26-526
Main toolbar, 2-18 Object Methods (DPL), 26-540
Index
Object mode, 5-58 Creating a new subplot, 24-458,
Open File, 5-85 24-459
Open Tie Optimization Curve-Tracking, 24-480
Command, 17-291 Editing a Subplot, 24-459
Optimal Capacitor Placement Export Data, 24-487
Command, 16-282 Export Graphic, 24-487
Optimal Load-Flow, 15-281 FFT Plot, 24-468
Outage, 5 Filter, 24-486
Outage simulation, 18-295 Grid, 24-488
Output instruction, 26-530 Insert Label, 24-480
Output Language, 25-508 Results, 24-479
Output Results, 25-517 Schematic Diagram, 24-474
Output Window, 25-499 Schematic Visualisation, 24-474
settings, 4-40 Setting the X-Axis, 24-461
Outputs Setting the y-Axis, 24-462
Load-Flow Calculations, 10-194 Specifying Curves, 24-464
Overcurrent Relay SubPlot, 24-459
Instantaneous, 12-240 SubPlot (2y), 24-465
Time, 12-244 Tools, 24-479
Overview, 2-6, B-4 Two y-Axes, 24-465
Overvoltage relay, 12-245 Various Tools, 24-488
Vector Diagram, 24-469
Pack a Macro, 21-411 Virtual instruments, 24-449
Page Tab Graphic Windows, 7-113 Voltage Profile, 24-472
Page Tab Graphic Windows, Menu, Waveform, 24-476
7-115 Window, 24-452
Page tab, flexible, 5-63 X-Y Plot, 24-466
Page Tabs, 4 Plotting, I-79
Paper size, 7-132 Pop up dialogue Box, 5-84
Parameter Characteristics, 8-165 Position Feeder, 8-163
Parameter identification, 23-439 pow
Parameter Range, 8-165 DPL, 26-527
Passive Failure, 5 DSL, 21-427
Paste, 7-134 Power Quality, 13-265
Path Power restoration, 18-311
Methods, 26-545 Print, 5-85
pi() Print Graphic, 7-127
DPL, 26-527 Printing paper, 7-132
DSL, 21-427 Probability Calculation, see
twopi() (DPL), 26-527 Reliability assessment
twopi() (DSL), 21-427 (18-295)
picdro, 21-429 Probability Density Function, 6
DSL, 21-429 Program appearance, 3-27
Place Feeder Dialog, 8-163 Programming language, 26-521
Placing Signals, 20-398 Programming Language DPL,
Plot 26-525
Border, 24-487
Index
Project, 2 State Enumeration, 18-306
restore, 5-74 Reliability Indices, 18-318
save, 5-74 RelIoc, 12-240
Projects, 6-93 RelLogic, 12-242
Add a grid, 6-97 RelMeasure, 12-243
Add study case, 6-101 RelToc, 12-244
Add System Stage, 6-105 RelUlim, 12-245
Comparing, 6-107 Remote system stage, 6-105
Creating, 6-94 Repair, 5
Expanding, 6-95 Report Language, 25-508
Protection Relay, 12-237 Reporting, 25-505
Protocol Output Reports, 25-495
Result Object, 25-495 Reset settings
PSS/E, 29-572 result box, 7-146
PSS/E conversion, 29-572 Resize, 20-400
Restore, 5-50
RAM Calculations, see Reliability Result box
assessment (18-295) move, 7-146
Range of Values, 8-165 reference points, 7-146
Rebuild, 7-127 reset settings, 7-146
Reconnect Element, 7-136 Result box format, D-36
Recycle Bin, 5-50 Result Boxes, 7-146
Redirect output, 5-85 Editing, 7-148
Reducing Network, 14-277 Result Object, 3
Redundant Unit, 6 Result Report Language, 25-508
Reference Result variables, I-78
Characteristic, 8-177 Results, 25-495
Reference points Eigenvalue Calculation, 22-436
result box, 7-146 Methods, 26-544
Reference to object, 5-92 Modal Analysis, 22-436
Relay Results Output, 25-517
Directional, 12-238 Revision, 6-105
Frequency, 12-239 Risk assessment, 18-306
Fuse Model, 12-240 root
Instantaneous Overcurrent, DPL, 26-527
12-240 DSL, 21-427
Time overcurrent, 12-244 Rotate, 7-135
Under/Over voltage, 12-245 round
Relay Model, 12-237 DPL, 26-527
RelDir, 12-238 DSL, 21-427
Relevant Objects, 9-187
RelFmeas, 12-239 SAIDI, 18-318
RelFrq, 12-239 SAIFI, 18-318
RelFuse, 12-240 sapprox, 21-430
Reliability Assessment, 18-295 DSL, 21-430
Introduction, 18-295 sapprox2, 21-430
Network, 18-306 DSL, 21-430
Index
Save Project, 5-74 SetGrfPage, 7-132
SCADA, 27-547 SetLevelvis, 7-123
Scales, 8-165 SetMotorst, 12-260
Continuous, 8-173 SetOcplt, 12-260
Discrete, 8-171 Setselect, 5-91
Time, 8-175 SetTime, 8-175
Scaling paper, 7-132 Settings
Scheduled Outage, 5 Calculation, 24-477
Schematic Diagram, 24-474 data manager, 4-39
Schematic Visualisation Directories, 4-41
Bus Index, 24-475 Editor, 4-41
Distance, 24-475 functions, 4-41
Plot, 24-474 General, 4-38
Script (DPL), 26-525 Graphics, 4-39
SEAR, 18-318 output window, 4-40
Search and find, 5-52 SetTitm, 7-144
Secondary Winding (VT), 12-235 SetTrfdmg, 12-258
Secondary Winding Type (VT), SetUser, 4-37
12-235 SetViPage, 24-452
Sector customer damage function, SetVipage, 24-449
18-343 methods, 26-546
Security, 5 SetWave, 24-477
SEL, 26-533 Shed load, 4
select, 21-428 Shedding of load, 18-345
DSL, 21-428 Shift to Layer, 7-123
Select Style, 24-457 Short-Circuit
Selection, 5-91 Options, 11-206
Methods, 26-545 Sweep, 12-246
Sequence Short-circuit, D-39
BlkSlot, 20-386 Short-Circuit Calculation
Serial number, 3-24, 3-25 Advanced Options, ANSI
SES, 18-318 Method, 11-212
set (DPL variable), 26-526 Advanced Options, Complete
Set Constant Method, 11-213
X-Value, 24-483 Advanced Options, IEC/VDE
Y-Value, 24-483 Methods, 11-209
Set Methods (DPL), 26-540 Basic Options, 11-206
Set of objects, 5-91 Basic Options, ANSI Method,
SetBussys, 8-154 11-211
SetColgr, 7-143 Basic Options, Complete
SetCondmg, 12-256 Method, 11-213
SetCrvfilt, 24-486 Basic Options, IEC/VDE Method,
SetCubop, 8-154 11-208
SetDesktop Command, 11-201
methods, 26-545 Complete Method Theory,
SetFilt, 5-52 11-216
Index
EvtShc, 11-204 limstate(), 21-428
Fault on line, 11-203 picdro(), 21-429
IEC Method Theory, 11-217 sapprox(), 21-430
Multiple Faults, 11-204 sapprox2(), 21-430
Options, 11-206 select(), 21-428
SetSelect, 11-206 time(), 21-428
Technical Background, 11-214 Special Functions
Show DSL, 21-427
Graphics, 24-449 Specifying Curves, 24-464
Show Results from two Simulations, Spectrum, 13-271
19-369 Spreadsheet
Signals Export To, 5-76
Connecting, 20-398 Import From, 5-76
Simulation, 19-354 sqr
Initial Conditions, 19-359 DPL, 26-527
Run, 19-376 DSL, 21-427
Simulation Language, 21-414 sqrt
Simulation of Transients, 19-354 DPL, 26-527
Initial Conditions, 19-359 DSL, 21-427
Run Simulation, 19-376 square root
sin DPL, 26-527
DPL, 26-527 DSL, 21-427
DSL, 21-427 Stability Analysis, 19-354, 20-378
Single port elements, 7-139 Initial Conditions, 19-359
sinh Run Simulation, 19-376
DPL, 26-527 StaCt, 12-230
DSL, 21-427 Standard Functions
Size, paper, 7-132 DSL, 21-427
Slot, 3, 20-386 Starting PowerFactory, 3-24
Assigning a Block Definition, State Enumeration
20-389 Reliability assessment, 18-306
Assignment, 20-382 State Variables, 21-416
Slots, 20-382 StatGraph, 8-160
Solving Load-Flows, 10-199 Stations, 8-158
Sources of Harmonics, 13-271 Cubicles, 8-154
Spare Unit, 5 Defining in data manager, 8-157
Special DSL Functions Defining in SLG, 8-155
aflipflop(), 21-429 Edit dialog, 8-157
delay(), 21-428 Feeder options, 7-145
event(), 21-431 Folder, 5-87
file(), 21-429 Statistic, 4
flipflop(), 21-429 StaVt, 12-233
invlapprox(), 21-430 StaVtsec, 12-235
lapprox(), 21-430 Step Size, 19-362
lapprox2(), 21-430 StoChaLod, 18-340
lim(), 21-427 Stochastic, 4
Index
Stochastic Load Model, 18-338 DSL, 21-427
Stochastic Model, 18-329 tanh
StoCommon, 18-349 DPL, 26-527
StoLod, 18-338 DSL, 21-427
StoMaint, 18-349 Tap positions
Stop Redirect Output, 5-84 store, 9-189
Store results, 9-189 Temperature
StoSym, 18-336 Pre fault, 11-209
StoTypbar, 18-333 Terminal
StoTyplne, 18-334 Failure model, 18-333
StoTypTrf, 18-335 Terminals, 7-137, 8-150, 8-158
Straight Line, 24-485 Time
Secant, 24-485 Methods, 26-542
string (DPL variable), 26-526 time, 21-428
Study Case, 2 DSL, 21-428
Adding to Project, 6-101 Time Overcurrent Relay, 12-244
Defining, 6-98 Time Scale, 8-175
Renaming, C-21 time()
Study Cases DPL, 26-527
Active Graphics, 7-110 DSL, 21-427
Style, 24-489 Time-distance diagram, 12-248
Create new Style, 24-490 Toolbar definitions, 2-18
Edit Style, 24-491 Transfer of load, 18-345
Edit Style of clicked Element, Transformer
24-493 Current, 12-230
Save as Predefined VI, 24-493 Current Type, 12-233
User Defined, 24-489 Damage curve, 12-258
Subplots, 24-459 Failure model, 18-335
Subplots (2y), 24-465 Voltage, 12-233
Subsystem interconnections, 7-140 Voltage Type, 12-236
Summation Point, 20-397 Transient Analysis, 19-354
Sweep short-circuit, 12-246 Initial Conditions, 19-359
Switch Run Simulation, 19-376
Methods, 26-544 Transient analysis, I-74
Switch for Block Diagrams, 20-397 Transition Rates, 18-329
Synchronous machine TriCont, 8-173
Failure model, 18-336 TriDisc, 8-171
Syntax (DPL), 26-525 TriFreq, 13-273
System Stage, 2 Trigger
Adding to Project, 6-105 Scale, 8-165
Reducing, 6-107 trigonometric
System stage DPL, 26-527
Remote, 6-105 DSL, 21-427
Trigonometric Functions, 21-427
T-off, 8-163 TriTime, 8-175
tan trunc
DPL, 26-527
Index
DPL, 26-527 VI, 24-449
DSL, 21-427 VI Methods (DPL), 26-545
Tutorial Errors, B-16 VI Panel
Tutorial Manager, D-23 Background, 24-457
twopi() Context Sensitive Menu, 24-457
DPL, 26-527 Creating VIs, 24-457
DSL, 21-427 Edit Variables, 24-455
TypCt, 12-233 Graphics Board, 24-452
Type, 1 Moving, Resizing, 24-454
Types Page Format, 24-455
Busbar, 8-154 Results, 24-456
Cubicle, 8-154 Scale Axes automatically, 24-453
TypHmcCur, 13-271 Styles, 24-458
TypStat, 8-151 Tile, 24-454
TypVt, 12-236 Title Block, 24-456
TypVtsec, 12-235 Virtual Instrument, 3
Tools, 24-479
Undervoltage relay, 12-245 Virtual Instrument Panel, 4
Undo, 7-134 Virtual Instruments, 24-449
Undock VisDefcrv, 12-262
Output Window, 25-499 VisFft, 24-468
Update VisHrm, 24-476
Result Object, 25-495 Visibility, 7-123
Update database, 9-189 VisLabel, 24-482
Updating Slots, 20-385 VisLegend, 7-144
User Accounts, 3-24, 3-27 VisOcplot, 12-254
User Interface, 2-7, B-5 VisPlot, 24-459
User Settings, 4-37 methods, 26-546
User-interface appearance, 3-27 VisPlot2, 24-465
Value Range, 8-165 VisPlottz, 12-248
Vardef(), 21-417 VisTitle, 7-144
vardef(varname), 21-417 VisValue, 24-481
Variable Definitions, 26-526 VisVec, 24-469
Variable Manager, 5-85 VisXvalue, 24-483, 24-485
Variable Set VisXyplot, 24-466
Methods, 26-542 Voltage Profile Plot, 24-472
Variable units and descriptors, Voltage Sag Assessment, 18-295
21-417 Voltage Transformer, 12-233
Variant, 6-103 Secondary Winding, 12-235
Creating, 6-105 Secondary Winding Type,
Reducing, 6-107 12-235
System Stage Folder, 6-102 Voltage Transformer Type, 12-236
Varnm, 21-417 VT, 12-233
Vector Secondary Winding, 12-235
Methods, 26-543 Secondary Winding Type,
Vector Diagram, 24-469 12-235
Index
Waveform Plot, 24-476
Calculation Settings, 24-477
Weibull distribution, 18-329
Weibull-Markov Model, 18-329
while, 26-528
Write File, 5-85
Zones, 8-185
Zoom All, 7-126
Zoom In, 7-126
Zoom Out, 7-126
Zooming, 7-126
Index