DQsym

A MATLAB/Simulink library for dynamic phasor simulation of AC/DC power systems

Journal Article (2026)
Author(s)

Saif Alsarayreh (TU Delft - Electrical Engineering, Mathematics and Computer Science)

Robert Dimitrovski (TenneT TSO GmbH, TU Delft - Electrical Engineering, Mathematics and Computer Science)

Aleksandra Lekić (TU Delft - Electrical Engineering, Mathematics and Computer Science)

Research Group
Intelligent Electrical Power Grids
DOI related publication
https://doi.org/10.1016/j.softx.2026.102719 Final published version
More Info
expand_more
Publication Year
2026
Language
English
Research Group
Intelligent Electrical Power Grids
Journal title
SoftwareX
Volume number
34
Article number
102719
Downloads counter
7
Reuse Rights

Other than for strictly personal use, it is not permitted to download, forward or distribute the text or part of it, without the consent of the author(s) and/or copyright holder(s), unless the work is under an open content license such as Creative Commons.

Abstract

AC/DC converter–based power systems require modelling tools that can capture dynamic and harmonic behaviour while integrating seamlessly into established simulation environments. This paper presents DQsym, an open-source MATLAB/Simulink library for dynamic phasor–based simulation using a unified state-space formulation. Using DQsym, multiple harmonic orders are represented through multiple rotating DQ reference frames within a single simulation run. DQsym is implemented using standard MATLAB/Simulink functions and masked subsystems, allowing seamless integration into existing workflows. Available components include sources, mathematical operation blocks, state-space blocks, and measurement tools. DQsym provides structured numerical outputs and visualization utilities to support reproducible simulation studies. The design and architecture of DQsym are described, and an illustrative example based on a single-station Modular Multilevel Converter (MMC) with full control demonstrates its correctness. Simulation results closely match those obtained from conventional Simulink implementations, validating the approach and confirming its suitability for harmonic-capture power system simulation.