Scripting in Powerfactory With Python
Scripting in Powerfactory With Python
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 calculations 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
2 Days Training. 19-20 November
Time
Duration
9:00
10:30
12:30
15:00
17:00
30 min
60 min
30 min
-
Program
Introduction
Welcome
Presentation
Purpose:
Contents:
Level:
Basic.
Purpose:
Contents:
Level:
Basic.
Purpose:
Contents:
Level:
Purpose:
Learn how to output customised results in the output window, use subroutines, keep the script readable by avoiding long code.
Contents:
Level:
Intermediate.
Results File
Purpose:
Get familiarised with the Result File element (ElmRes) and learn how
to write it and read from it.
Contents:
Level:
Intermediate.
Graphical Representation
Purpose:
Contents:
Virtual Instruments.
Graphic Board.
Create a plot and change its variables.
Level:
Intermediate.
Purpose:
Get familiarised with graphical user interface build in library that Python
offers, and implementation of the this library in PowerFactory.
Contents:
tkinter module.
Tkinter objects widgets.
Level:
Advanced.
Purpose:
Contents:
Level:
Advanced.
Purpose:
Contents:
Level:
Advanced.