S2023.05.08.Online Pyt - en Scripting in PowerFactory With Python
S2023.05.08.Online Pyt - en Scripting in PowerFactory With Python
with Python
S2023.05.08.Online_Pyt.En
Training schedule
Central European Time (UTC +02:00)
DAY 1
09:00h Fundamentals
Familiarisation with the general handling of the Python programming language in PowerFactory, e.g.:
Creation of a Python script in PowerFactory and access to data by using Python. Presentation of the
PowerFactory module and comparison between DPL and Python. Presentation of loops, statements,
lists and indexing in Python.
DAY 2
9:00h Execution of PowerFactory commands with Python
Access and execute any type of calculation objects available in PowerFactory.
DAY 3
09:00h Python functions
Introduction of functions in Python. Use of PowerFactory methods to obtain descriptions and units for PowerFac-
tory attributes. Use of input parameters and remote scripts.
DAY 4
9:00h Result Files
Familiarisation with the Result File element (ElmRes) in PowerFactory. Read and write a Result File and export
its data.
10:00h Plots
Familiarisation with the anatomy of plots in PowerFactory. Automatic creation of plots.
DAY 5
09:00h Engine Mode
Start of PowerFactory from a Python interpreter.
10:00h Parallelisation
Options for parallel computation and setting up of the Task Automation command via script.
11:00h Performance
Introduction to the Environment Functions in PowerFactory and best practises for efficient scripting with Python in
PowerFactory.
Creating AddOn attributes for a PowerFactory object class and writing values onto these attributes.