Automatized AVR tuning with Python in DIgSILENT PowerFactory

Automatized AVR tuning with Python in DIgSILENT PowerFactory

Sometimes it is needed to tune an AVR (automatic voltage regulator) to fulfill specific requirements. Requirements such as rise time, overshoot, and settling time are often used to specify the desired behavior for a given step response of the AVR. Since it is difficult to tune the controller by hand, this post presents an automatized…

DQ0-transformation: calculate active and reactive power from instantaneous voltage and current signals

DQ0-transformation: calculate active and reactive power from instantaneous voltage and current signals

The DQ0-transformation, or direct-quadrature-zero transformation, is a very useful tool for electric power engineers to transform AC waveforms into DC signals. In particular, for three-phase systems, the use of DC signals simplifies the calculations immensely. The DQ0-transformation is the product of the Clarke and Park transformation. The Clarke transformation converts the abc-phase-components to αβγ-components while…

Load model identification in electric power systems: a linear least-squares approach

Load model identification in electric power systems: a linear least-squares approach

Load modeling is one of the most important aspects when it comes to the stability analysis of electric power systems. The way we model loads significantly impacts the results of the analyses. The so-called ZIP model considers the voltage dependency of loads and serves this purpose very well. ZIP stands for the three defined load…

Split lines or cables into a pre-defined number of sections in DIgSILENT PowerFactory

Split lines or cables into a pre-defined number of sections in DIgSILENT PowerFactory

In this post, I present an approach to automatically split lines or cables in DIgSILENT PowerFactory into a pre-defined number of sections. The main idea is to loop over every line and split it into a pre-defined number of sections. The sections assume the same line type as the original line. Whereas the length of…

A template for rate-of-change-of-frequency (RoCoF) analysis of synchronous generators/condensers

A template for rate-of-change-of-frequency (RoCoF) analysis of synchronous generators/condensers

The importance of grid connection studies increases around the world. TSOs focus more on the grid impact of new generation units as the energy transition moves forward. Adding more converter-based units changes the power system dynamics fundamentally, e.g. higher frequency gradients. That’s also why TSOs require rate-of-change-of-frequency (RoCoF) analyses before the approval of prospective units….

A template for fault-ride-through (FRT) analysis of synchronous generators/condensers

A template for fault-ride-through (FRT) analysis of synchronous generators/condensers

The importance of grid connection studies increases around the world. TSOs focus more on the grid impact of new generation units as the energy transition moves forward. Adding more converter-based units changes the power system dynamics fundamentally. That’s also why most TSOs require a fault-ride-through (FRT) analysis of prospective units before approval. Similarly important is…

How to create a measurement file for DIgSILENT PowerFactory from a CSV, TXT, or XLSX file?

How to create a measurement file for DIgSILENT PowerFactory from a CSV, TXT, or XLSX file?

Many times when you model time-domain simulations in DIgSILENT PowerFactory you want to use time-series data stored in CSV, TXT, or XLSX files. In PowerFactory you can integrate these time series by means of measurement files (*.ElmFile). These measurement files are simple ASCII files with a column for each variable including the time. The time…

How to check the consistency of PMU data?

How to check the consistency of PMU data?

The first thing before analyzing phasor measurement unit (PMU) data is to check its consistency. PMU data shall be checked for missing samples and consistency of the measurements. Missing samples are timestamps, for which no measurement value was recorded. The definition of data consistency is not as easy because there are many possible inconsistencies. For…

How to query data from the ENTSO-E transparency platform using Python?

How to query data from the ENTSO-E transparency platform using Python?

A step-by-step guide to install the Python API for the ENTSO-E transparency platform and sample code on how to query data. Most of the people working in the energy field know the ENTSO-E (European network of transmission system operators for electricity) transparency platform, which is an open-source collection of electricity generation, transportation, and consumption data…