0% found this document useful (0 votes)
41 views

S2023.05.08.Online Pyt - en Scripting in PowerFactory With Python

This document provides details about a 5-day online training course on scripting in PowerFactory with Python. The training will take place from May 08-12, 2023 and will introduce participants to the fundamental aspects of writing scripts in PowerFactory using Python. Over the five mornings, the course will cover topics such as accessing and modifying PowerFactory objects, automating calculations, importing/exporting data, and more. The training is aimed at utility engineers, power system operators, and other electrical professionals familiar with PowerFactory.

Uploaded by

Michel Caraballo
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views

S2023.05.08.Online Pyt - en Scripting in PowerFactory With Python

This document provides details about a 5-day online training course on scripting in PowerFactory with Python. The training will take place from May 08-12, 2023 and will introduce participants to the fundamental aspects of writing scripts in PowerFactory using Python. Over the five mornings, the course will cover topics such as accessing and modifying PowerFactory objects, automating calculations, importing/exporting data, and more. The training is aimed at utility engineers, power system operators, and other electrical professionals familiar with PowerFactory.

Uploaded by

Michel Caraballo
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Scripting in PowerFactory

with Python
S2023.05.08.Online_Pyt.En

May 08th - May 12th 2023 (only in the morning)


Online training course via Zoom

Python is a programming language, which can be WHO SHOULD ATTEND:


used to control PowerFactory. It is commonly used
to automate the execution of time-consuming The training course is intended for
simulations - however, its application extends far
• Utility engineers
beyond that. Python may also be used to process
• Power system operators
results, or to implement a routine that applies
• Project developers
sequential changes to a network and calls Power-
• Manufacturers
Factory’s analysis functions in each step.
• Consultants
• Electrical engineers in general
This training course provides a compact and
efficient introduction to the fundamental aspects of Participants should be familiar with the basic
writing scripts inside of PowerFactory by using Py- handling of DIgSILENT PowerFactory. Experienc-
thon. The course includes basic concepts, syntax, es with PowerFactory’s DPL, Python itself, as well
accessing and modification of objects from within as C++, C, Java or other scripting languages is not
the code, automation of a series of calculations needed but it is an advantage.
and presentation of the results etc.
PRICE PER PARTICIPANT:
Within the context of the training course numerous
scripts will be created, which are supposed to • € 1,340.00* (with valid maintenance contract)
encourage own ideas or which can be adapted to • € 1,575.00* (without valid maintenance contract)
suit particular requirements. • € 472.50* (with valid student identification)

*Prices are exclusive of VAT

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.

10:15h Exercise: Hello PowerFactory


Creating a Python script command (ComPython) in PowerFactory and displaying different messages in the out-
put window.

10:30h Coffee break and Q&A session

11:00h PowerFactory object access with Python


Access to calculation relevant objects of different classes inside of the PowerFactory database. Read and modify
attributes of objects.

11:30h Exercise: Object access with Python


Accessing all elements of a specific class in the network. Reading their attributes and working with the values.
Using attributes to categorise elements into different groups and modifying attribute values.

12:30h End of the first day

DAY 2
9:00h Execution of PowerFactory commands with Python
Access and execute any type of calculation objects available in PowerFactory.

9:30h Exercise: Execution of calculation commands


Automatic execution of the Load Flow Calculation command, while adapting settings in the command. Reading of
calculation results from network elements.

10:30h Coffee break and Q&A session

11:00h Navigation through the PowerFactory project


Showcase of different methods for accessing objects in PowerFactory. Navigation through the project contents
and the database.

11:30h Exercise: Navigation through the project


Applying different methods to access relevant objects in PowerFactory. Automatic execution of load flow calcula-
tions for multiple study cases. Checking for valid calculation results and reporting critical values.

12:30h End of the second day

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.

09:30h Exercise: Reporting results


Creating a generic function for reporting results with descriptions in the output window. Providing input parame-
ters in the script object and executing it as a remote script.

10:30h Coffee break

10:45h Q&A session

11:00h Create, delete and connect network elements


Introduction of the methods to modify a network model. Working with characteristics.

11:30h Exercise: Network modifications


Creating a new load in a network model and connecting it. Assigning time characteristics to network elements
and executing a Quasi-Dynamic Simulation.

12:30h End of the third day

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.

9:15h Exercise: Result Files


Reading data with different methods from an existing Result File and analysing the findings. Exporting results into
a csv-file.

10:00h Plots
Familiarisation with the anatomy of plots in PowerFactory. Automatic creation of plots.

10:15h Exercise: Plotting of calculation results


Creating plots in PowerFactory via script.

10:30h Coffee break

10:45h Q&A session

11:00h User interaction


Introduction of different methods for user interaction. Integration of scripts in the PowerFactory GUI via User-de-
fined Tools.

11:30h Exercise: User Interaction


Implementing user input parameters and verifying the entries. Offering selection browsers and opening command
windows for user input during the script execution.

12:30h End of the fourth day

DAY 5
09:00h Engine Mode
Start of PowerFactory from a Python interpreter.

09:45h Exercise: Engine Mode


Working in GUI-less unattended mode.

10:00h Parallelisation
Options for parallel computation and setting up of the Task Automation command via script.

10:30h Coffee break

10:45h Q&A session

11:00h Performance
Introduction to the Environment Functions in PowerFactory and best practises for efficient scripting with Python in
PowerFactory.

11:30h Import and export of data


Introduction of possibilities to import and export data to the PowerFactory database via script.

11:45h Exercise: Import and export projects


Preparing a Python script to automatically import a project file into the database and one script for exporting a
project to a file.

12:00h AddOn Module


Definition of user specific variables via script in PowerFactory.

12:15h Exercise: AddOn Module

Creating AddOn attributes for a PowerFactory object class and writing values onto these attributes.

12:30h End of the training course

DIgSILENT GmbH T +49 7072 9168-0


Heinrich-Hertz-Str. 9 F +49 7072 9168-88
72810 Gomaringen [email protected]
Germany
www.digsilent.de

You might also like