Professional Documents
Culture Documents
Python is a powerful tool, which is integrated into the standard PowerFactory application. It
is commonly used to automate the execution of time-consuming simulations, but its application
extends far beyond that. It may be used to process results, or to implement a routine that applies
sequential changes to the network and calls PowerFactorys analysis functions in each step.
This seminar provides a compact and efficient introduction to the fundamental aspects of writing
a scripts inside of PowerFactory by using Python. The course includes basic concepts, syntax,
accessing and modification of objects from within the code, automation of a series of calcula-
tions and presentation of the results etc. Participants will be provided with numerous examples
of Python scripts, which they may use for ideas, or adapt to suit their particular requirements.
The number of participants is limited to 10. Each participant will have access to a workstation
which will be used for the completion of exercises. Each participant should be familiar with
the general handling of the PowerFactory software, acquired through our load flow and short
circuit seminar, a PowerFactory basic training course or through relevant experience in the use
of PowerFactory. Programming experience is a prerequisite.
Time Schedule
Time Duration
Start of the training 9:00 -
1st Coffee break 10:30 30 min
Lunch break 12:30 60 min
2nd Coffee break 15:00 30 min
End of the training 17:00 -
Program
Introduction
Welcome
Presentation
Level: Basic.
Level: Basic.
Purpose: Learn how to output customised results in the output window, use sub-
routines, keep the script readable by avoiding long code.
Level: Intermediate.
Purpose: Get familiarised with the Result File element (ElmRes) and learn how
to write it and read from it.
Level: Intermediate.
6 Graphical Representation
Level: Intermediate.
Purpose: Get familiarised with graphical user interface build in library that Python
offers, and implementation of the this library in PowerFactory.
Level: Advanced.
Purpose: Access an external file to read the date into PowerFactory or to write
date out of PowerFactory into file.
Level: Advanced.
Level: Advanced.