WorksEngineering
Characterisation of the DQsym Framework Against Harmonic State-Space and Dynamic Phasor Models for Modular Multilevel Converters
Abstract
Modern power systems rely on power converters that exhibit multifrequency periodic dynamics, such as modular multilevel converters (MMCs). Such converters are commonly analysed using harmonic state-space (HSS) and dynamic phasor (DP) representations. Both approaches rely on building state matrices based on the system topology, whose size grows with the number of harmonics retained in the model. This paper shows that a symmetrical direct-quadrature (dq) dynamic phasor formulation for time-domain simulation, named DQsym, has a smaller solver state matrix than HSS and DP, and whose size is independent of the truncation order K. This reduction results from evaluating harmonic coupling outside the state matrix, in the nonlinear signal blocks. The open-loop MMC model used in this paper is derived in three harmonic-domain (HD) formulations and validated against a three-phase time-domain reference model. The models are compared in terms of state-space size and sparsity, harmonic content, steady-state accuracy and eigenvalues. For truncation at K = 4, the DQsym solver has 45 states against 135 for HSS and DP, stays within about 4% of the reference, and, once closed with its coupling blocks, yields eigenvalues identical to those of HSS and DP.
Introduction
For power systems and power electronics analysis, engineers rely on Harmonic-Domain (HD) state-space models to expose frequency coupling, such as circulating current harmonics, that dictates interactions between a power converter’s internal dynamics and the AC/DC networks it connects to.
HD modelling represents time-varying or linear time-periodic (LTP) electrical systems through the complex Fourier coefficients of their signals, referred to as harmonic vectors in harmonic state-space (HSS) modelling and as dynamic phasors (DP) in generalised averaging [1, 2]. Instead of tracking rapidly oscillating instantaneous waveforms, HD models describe the dynamics of these coefficients, which vary slowly compared with the fundamental period. In DP, each coefficient is computed over a sliding window of one fundamental period, so it is a time-varying quantity [3]. In HSS, the signal is expanded with exponentially modulated periodic components around a periodic steady state, so the coefficients are defined in the Laplace domain [4, 5].
While both methods are frequency-lifted modelling techniques, based on generalised Fourier expansion, they differ in origin and primary focus [6]. HSS stems from the harmonic analysis framework that is structured around block Toeplitz matrices; on the other hand, DP originates from generalised averaging concepts with the primary focus on increasing the simulation time step to simulate large interconnected power system networks efficiently [3, 7].
HSS relies on a block-banded, block-Toeplitz LTI state-space representation over a contiguous harmonic range, , thereby converting LTP power converters, such as a Modular Multilevel Converter (MMC), into an equivalent LTI state-space model. HSS is widely used for small-signal stability analysis and exact harmonic impedance extraction [5, 8]. On the other hand, the DP approach retains only non-negative harmonic orders and is typically implemented in a real-valued form to reduce system computational burden [9, 10, 11, 12]. Analytically, both approaches share a structural cost: the state space matrix size scales with the truncation order , thereby affecting the state matrix sparsity and the resulting harmonic coupling. In addition, the sparsity and coupling structure only becomes apparent after the full harmonic-domain matrices are derived.
To avoid this dependence of the state matrix on the number of harmonic orders, the DQsym framework [13, 14, 15] represents harmonics in the signals rather than in the states. Each signal is expressed as a complex matrix, whose rows correspond to the positive-, negative-, and zero-sequence components and whose columns correspond to the DC term and harmonic orders 1 to , with each entry given in form. The system matrices of the studied model are therefore retained without augmentation, regardless of . Harmonic coupling is introduced only where signals are multiplied, in coupling blocks outside the solver, so the coupling structure follows directly from the block topology rather than from a derived global matrix. The computational cost is thereby shifted from the size of the solver state matrix to the width of the signals and the convolutions evaluated at each time step.
Throughout this paper, DQsym solver refers to the arm- and neutral-current dynamics integrated by the solver, and DQsym to the complete model including the capacitor and multiplication blocks. The contributions of this paper are as follows:
Derivation of an open-loop MMC model in the frame and in three harmonic-domain formulations: HSS, DP, and DQsym.
A comparison of the three formulations for the same MMC at a matched harmonic truncation order, in terms of state-vector size, state-matrix sparsity, harmonic content, time-domain accuracy against the reference, and eigenvalues.
A demonstration that DQsym achieves accuracy comparable to HSS and DP with a diagonal, -independent solver state matrix and that closing the coupling blocks around the solver recovers the same eigenvalues.
The remainder of this paper is organised as follows. Section 2 reviews the HSS and DP formulations and outlines the mathematical approach adopted in this work. Section 3 develops the MMC model in the frame and derives the corresponding HD models from the converter’s ordinary differential equations. Section 4 presents and discusses the results of the analysis. Finally, Section 5 concludes the paper.
Harmonic Domain Formulations
Building a model in HD relies on three fundamental mathematical operations:
Fourier Series Expansion: A time-domain signal is expanded into Fourier components using
where is the -th dynamic phasor or harmonic, and is the harmonic order, corresponding to the frequency , and is the truncation order, so that only harmonics with are retained.
Derivative Property (Frequency Shift): Differentiating a signal in the time domain translates into a state derivative plus an imaginary frequency offset in the harmonic domain:
This offset creates diagonal matrices, such as the differentiation matrix , that shift the system dynamics along the selected frequency.
Linearisation: The non-linear differential equations governing the model are expanded around a steady-state operating point using Taylor series or Jacobian linearisation to derive an LTP or LTI system.
These steps transform the system from nonlinear and time-periodic to linear and time-invariant. Fourier series expansion and the derivative property are universal core transformations shared across all three frameworks. However, Toeplitz matrices are fundamental to HSS and DP, whereas DQsym replaces global Toeplitz matrices with a specialised 4-step phase-domain multiplication algorithm that involves transforming the multiplied variables to the frame, extracting Fourier coefficients from each signal, applying convolution, and packing the result into a complex sequence-dq signal for the DQsym solver [13, 15].
Multiplication of power converter state variables by non-linear switching functions in the time domain transforms into a discrete convolution across the harmonic domain . When expressed in matrix form, these convolutions are represented as block-Toeplitz matrices, which capture the coupling between harmonic orders.
Table 1 compares the HD formulations in terms of state-matrix structure, sparsity and retained harmonic orders.
| Feature | DP | DQsym | HSS |
| State matrix form | Real-valued, with frequency-shift rotation blocks | Complex-valued as sequence | Block-Toeplitz minus frequency shift, |
| Retained harmonic order | contiguous | ||
| State dimension | (real-split) | , each state transformed into complex , independent of | |
| Structure | Banded, with real rotation blocks | Diagonal and decoupled per sequence and harmonic | Banded block-Toeplitz |
Table 1. Comparison of DP, DQsym and HSS formulations
Benchmark Model of Modular Multilevel Converter (MMC)
Open-loop MMC Model in the Frame
An MMC phase leg consists of an upper and a lower arm connected between the DC bus and the AC terminal, as in Figure 1. Each arm contains a series inductor , a resistance and an equivalent capacitor representing the series connection of the submodule capacitors. The arm-averaged representation is used, with each arm described by its aggregated capacitor voltage and a controlled voltage source defined by its insertion index, which captures the main electrical behaviour without modelling individual submodules. The model is open-loop with no controllers included, and the insertion indices are treated as inputs. The AC side is represented by an ideal voltage source at the converter terminals, and a star-point grounding reactor, - branch, is connected at the AC terminals. The converter DC side is held constant at and with respect to ground.
Figure 1. Three-phase MMC with half-bridge submodules: upper (blue) and lower (red) arms, split DC link, AC grid with star-point grounding, and showing the used arm-averaged model.
The modulated arm voltages are, for ,
where and are the upper and lower insertion indices. The upper arm current flows from the positive pole to the AC terminal, and the lower arm current from the AC terminal to the negative pole. Three-phase quantities are collected in vectors, , , and denotes elementwise multiplication. Applying Kirchhoff’s voltage law in each arm, with the neutral voltage set to , gives the averaged nonlinear model:
With the three phases are decoupled, and does not influence the arm quantities.
For interpretation, the sum and difference variables:
are used, where is the AC output current and the circulating current. They are obtained from the arm quantities
| Parameter & Description | Value |
| : Pole-to-pole DC voltage | 640 kV |
| , : Arm resistance, inductance | 1.07 , 50 mH |
| , : Submodule capacitance, submodules per arm | 10 mF, 400 |
| : Equivalent arm capacitance | 25 F |
| , : Star-point reactor resistance, inductance | 10 , 5 H |
| : AC voltage (phase, peak) | 271.9 kV |
| , : Modulation amplitude, angle | 0.85, |
| : Fundamental frequency | rad/s |
by a linear transformation and are used as outputs only. The models below are formulated in terms of upper- and lower-arm variables.
The AC source is a balanced positive-sequence voltage, where . The insertion indices are set in open loop with a sinusoidal reference and no harmonic injection,
and the pole potentials are and . The parameters are listed in tbl:2.
Collecting (4), the state and input vectors are:
Every term in (4) is either linear in the states and inputs or a product of an insertion index with a state, so the model is bilinear,
where is constant and contains the circuit parameters and the insertion indices. Since the insertion indices (6) are -periodic with , the steady state is periodic, . Linearising around gives the LTP system:
Because (8) is bilinear, the state Jacobian is simply evaluated along the steady-state inputs, and the same symbol is used for it. In open loop, depends only on the insertion indices , , whereas depends on the steady-state capacitor voltages and arm currents through the columns associated with and . Figure 2 shows the sparsity pattern of the linearised open-loop abc arm-averaged MMC model, with () and () each have 27 nonzeros.
Figure 2. Sparsity pattern of the linearised open-loop abc arm-averaged MMC model. Each cell is one signal of phase , , or . Dots are nonzero entries.
MMC Model in harmonic domain formulation
This subsection derives the three harmonic-domain models of the benchmark MMC. Linearising the open-loop state-space model in (12) around the periodic steady state and expanding the result in Fourier series gives the HSS model. Applying generalised averaging to the nonlinear model instead gives the DP model, and transforming each harmonic of the DP model to sequence dq components gives the DQsym model. All three use the same model, parameters and variables.
HSS Model
The HSS model is obtained from the linearised model (13) by representing its time-periodic matrices in the harmonic domain. The periodic matrices are expanded as
with
the same expansion can be done to , and the signals as
Truncating to and stacking , likewise , gives the linear time-invariant HSS model:
where and is the block-Toeplitz matrix built from in the same way as (15). For an MMC model with states and inputs, truncating at yields an HSS model with complex states and complex inputs.
Because (10) contains only the DC and fundamental components, only and are nonzero in (15), and each harmonic of the arm quantities couples only to its neighbours . Figure 3 shows the sparsity pattern of the HSS model for , has , 483 nonzeros, and has , 1107 nonzeros. Each signal block spans the contiguous harmonic components . The banded blocks in are the Toeplitz coupling through , and the full blocks in come from the harmonic content of and .
Figure 3. Sparsity pattern of the HSS model for : and . Dots are nonzero entries.
DP Model
Whereas HSS linearises first and then expands in Fourier series, DP first transforms the nonlinear model (12) and then linearises it.
The -th dynamic phasor of is
with the properties
Applying (16) to (4) gives, for and with ,
where and are the DPs of the modulated arm voltages (3),
The modulation (10) has and , where and . The pole voltages enter only at and the AC source only at .
A real-valued model is obtained by taking the real and imaginary parts of each DP as states,
with built from in the same way, which gives the nonlinear time-invariant DP model. For , the state-space formulation of the DP model has 135 real states and 99 real inputs.
The DP model is inherently time-invariant, and at steady state it has a constant equilibrium . Linearising around this operating point gives an LTI representation.
Figure 4 shows the sparsity pattern of the DP model for , has , 699 nonzeros and has , 1059 nonzeros. Each signal block holds and the real and imaginary parts of . The frequency shift appears as blocks in , which makes it denser than .
Figure 4. Sparsity pattern of the DP model for . Dots are nonzero entries.
DQsym
In the DQsym implementation, the model is split into two parts. The first is the arm current dynamics of {(xref)}(4a)–(5),
which is linear and time-invariant. Because and are identical in all three phases, the symmetrical-component transformation
commutes with the arm impedance and decouples {(xref)}(16) into independent positive-, negative-, and zero-sequence channels. Each sequence component is then expressed as a sum of complex dq phasors, one per retained harmonic order ,
where is the fundamental angular frequency. Substituting {(xref)}(18) into the sequence form of {(xref)}(16) gives, for each harmonic order , where is the identity matrix,
with states and inputs
giving 9 states and 15 inputs forming the solver state-space matrix. The solver matrix remains for any , and the harmonic order enters only through a diagonal frequency shift applied to each harmonic column of the signal. As shown in Figure 5, the solver state matrix is diagonal, and each row of the input matrix contains a single nonzero entry per input group, located in the same sequence channel as the state. Each sequence current is therefore driven only by the inputs of its own sequence, and no coupling between sequences or between harmonics appears in this part of the model.
Figure 5. Sparsity patterns of the DQsym state matrix and in pnz coordinates. Dots are nonzero entries.
The second part is the arm voltage calculation: the open-loop insertion indices {(xref)}(6) are used directly to compute the capacitor voltages {(xref)}(4c)–(7) and the modulated arm voltages {(xref)}(3),
which are transformed with {(xref)}(17) and fed to {(xref)}(16) as the inputs and . All harmonic coupling and nonlinearity are therefore confined to the arm voltage calculation, while the arm current dynamics remain diagonal and sparse.
Results
All three HD models are evaluated on the same open-loop MMC of subsection 3.1, with no circulating current control or energy control. The open-loop MMC has an AC side with a star-point reactor, as shown in Table 2, and is used to investigate three forms of a single model. DP and HSS are truncated at in their state matrices. DQsym uses the same truncation, , but applies it to the signals. Each signal carries harmonics , and the truncation acts in the multiplication and integration blocks rather than in the solver matrix. The averaged arm model integrated directly in the frame (“abc ODE”) serves as the reference. All matrices in Figure 2 to Figure 4 are shown in the same harmonic basis, so the structural differences reflect only where the modulation-capacitor coupling is placed, not the choice of coordinates.
Matrix structure and sparsity
Table 3 summarises the sizes and sparsity. The DQsym solver holds only the arm and neutral currents (, , ), giving 9 states per harmonic, 45 in total, instead of 135. The capacitor-voltage rows are evaluated outside the solver by the multiplication and integration blocks. Therefore, contains only the per-harmonic diagonal blocks of the arm branches, and it has no off-diagonal bands. In and , the modulation spectrum couples each arm current to its capacitor voltage through banded Toeplitz blocks (, ). has the same pattern with each complex entry expanded into a real block.
| DQsym | DQsym† | DP | HSS | |
| States / inputs | 9 / 15 | 45 / 75 | 135 / 99 | 135 / 99 |
| / | 9 / 21 | 45 / 105 | 699 / 1059 | 483 / 1107 |
| Density / (%) | 11.1 / 15.6 | 2.2 / 3.1 | 3.8 / 7.9 | 2.65 / 8.3 |
| Total nnz | 30 | 150 | 1758 | 1590 |
| State type | complex dq | complex dq | real | complex |
Table 3. State-space dimensions and sparsity for . †Solver over all harmonics; excludes capacitor states and harmonic coupling, evaluated outside the solver.
The input matrices differ in the same way. In and , the modulation inputs , enter as dense blocks in both the current and the capacitor-voltage rows, and linearising the products and uses the operating point of and at the periodic steady state. The DQsym solver instead takes the arm voltages as inputs, which map onto the current rows harmonic by harmonic. Its input vector has 15 entries per harmonic, 75 in total, instead of 99.
Steady state
Figure 6 shows one fundamental period of the phase- upper and lower arm currents and arm capacitor voltages in periodic steady state. All three HD formulations overlap closely with the reference ODE model. The capacitor voltages ripple between about 608 and 673 kV around the 640 kV mean, and the upper-arm current reaches its minimum of about A at ms in all models.

Figure 6. Periodic steady state of the open-loop MMC over one fundamental period: phase- upper and lower arm currents and arm capacitor voltages. Reference ODE compared with DQsym, DP, and HSS.
Figure 7 extends the comparison to three fundamental periods and shows the error of each model with respect to the reference. The three formulations achieve comparable accuracy: for all three, the arm-current error remains below about 4% of the peak arm current, and the capacitor-voltage error remains below about 0.2% of the mean capacitor voltage. DQsym shows slightly larger peaks than DP and HSS (about 28 A versus 20 A in ), but its error is of the same order of magnitude and does not grow over the simulated interval. This accuracy is obtained with the diagonal DQsym solver of Figure 5, with the harmonic coupling evaluated outside it.
Figure 7. Response of the open-loop MMC over three fundamental periods: phase- upper and lower arm currents and arm capacitor voltages (top), and error of each model with respect to the reference abc ODE model (bottom).
Harmonic content
Figure 8 and Table 4 compare the harmonic magnitudes of the phase- upper arm current and capacitor voltage in the periodic steady state of Figure 6, with the ODE as reference. DP and HSS give identical spectra at every order.
| Quantity | Model | 0 | 1 | 2 | 3 | 4 |
| [A] | abc ODE | 37.0 | 89.6 | 411.8 | 162.1 | 40.7 |
| DQsym | 38.0 | 93.4 | 417.0 | 164.2 | 40.4 | |
| DP / HSS | 37.3 | 90.2 | 411.7 | 161.3 | 38.9 | |
| [kV] | abc ODE | 639.6 | 14.70 | 16.47 | 7.52 | 1.79 |
| DQsym | 640.0 | 14.90 | 16.69 | 7.61 | 1.76 | |
| DP / HSS | 639.6 | 14.72 | 16.46 | 7.49 | 1.71 |
Table 4. Harmonic magnitudes of and for .
Figure 8. Harmonic magnitudes of the phase- upper arm current and upper capacitor voltage in periodic steady state (logarithmic scale).
All three formulations reproduce the reference closely, both for the dominant components, such as the 2nd harmonic of the arm current (about 410 A) and the dc capacitor voltage (about 640 kV), and for the smallest ones at (about 40 A and 1.8 kV). The largest deviation is 4.2% for DQsym in the 1st harmonic of , and 4.5% for DP and HSS in the 4th harmonic of . DP and HSS are within 0.8% of the reference up to and deviate only at the truncation order . DQsym deviates up to 4.2% more uniformly across the orders, but is closer to the reference at , and , against for DP and HSS.
Eigenvalues
DQsym evaluates and the capacitor integration outside the solver. Writing this part as , , where maps the arm voltages into the solver and extracts the arm currents, and closing it around the solver gives
where . is similar to the linearised abc ODE model, with and as the modulation couplings. The loop has no algebraic path, and the Park and sequence transformations act as a similarity transformation, so the eigenvalues of can be compared directly with DP and HSS.
The eigenvalues of the three models are identical, as seen in Figure 9(a), with only three real parts, , and , and repeat at shifts of as these copies stem from the harmonic formulation, so the distinct modes are those in with .
Figure 9. Eigenvalues of the open-loop MMC for : (a) DP, HSS and DQsym (); (b) DQsym solver alone and closed loop. The shaded band marks .
The solver alone, Figure 9(b), has real eigenvalues at , and , and repeated at . The last two belong to the star branch, where the shared damps only the zero sequence, and they do not involve the capacitors and are unchanged in the closed loop. The arm pole moves to and becomes oscillatory, as the capacitors turn each first-order arm into an underdamped second-order one. All twelve arm modes take this value, showing that the arm resonance exists only after adding the capacitor dynamics.
Conclusion
This paper compared three harmonic-domain formulations of the same MMC model: dynamic phasors (DP), harmonic state space (HSS) and DQsym. They differ only in where the harmonic coupling between the modulation and the arm capacitor voltages is placed. HSS and DP store this coupling in the state matrix, whereas DQsym evaluates it outside the solver through multiplication and integration blocks. Closing the DQsym solver with the capacitor dynamics recovers the same linear time-periodic system, as confirmed by the identical eigenvalues of all three formulations.
The formulations also differ in size and structure. For a truncation order , HSS and DP both have 135 states, and their input matrices are dominated by full blocks, so the number of nonzeros grows quadratically with (1590 for HSS and 1758 for DP). The DQsym solver contains only the network in sequence coordinates. It is diagonal with 9 states (45 for ), each a complex signal of width , so it stays 9 for any . The harmonic coupling is not removed but moved into the multiplication and integration blocks. All three reproduce the steady-state harmonic content of the time-domain model up to . HSS is the natural choice for analytical stability and impedance studies, DP for real-valued time-domain simulation, and DQsym when modularity and a -independent solver structure matter.
Because the solver alone does not contain the capacitor dynamics, stability analysis with DQsym must linearise the solver together with its multiplication and integration blocks, as done here. Future work will extend the comparison to closed-loop operation with circulating-current suppression and to asymmetric operating points, use the DQsym linearisation for small-signal stability analysis, and present a systematic procedure for assembling the DQsym system matrices.
References
References
- [1]Pallavi Ghimire, Samip Poudel, Mariko Shirazi, Donald M. Hummels, and Reinaldo Tonkoski. Application of dynamic phasor modeling in power systems: A review. IEEE Access, 14:28573–28594, 2026.DOI
- [2]Wilsun Xu, Roberto Langella, Antonio Bracale, Yuanyuan Sun, Kuo Lung Lian, Yang Wang, and Jason David. Modeling of inverter-based resources for power system harmonics studies. IEEE Transactions on Power Delivery, 40(1):166–177, 2025.DOI
- [3]Seth R. Sanders, J. M. Noworolski, X. Z. Liu, and George C. Verghese. Generalized averaging method for power conversion circuits. In Proc. 21st Annual IEEE Conference on Power Electronics Specialists, pages 333–340, 1990.
- [4]Philippe De Rua, Özgür Can Sakıncı, and Jef Beerten. Comparative study of dynamic phasor and harmonic state-space modeling for small-signal stability analysis. Electric Power Systems Research, 189:106626, 2020.DOI
- [5]J. B. Kwon, X. Wang, F. Blaabjerg, C. L. Bak, A. R. Wood, and N. R. Watson. Harmonic instability analysis of a single-phase grid-connected converter using a harmonic state-space modeling method. IEEE Trans. Ind. Appl., 52(5):4188–4200, 2016.DOI
- [6]Nicolas Blin, Pierre Riedinger, Jamal Daafouz, Louis Grimaud, and Philippe Feyel. A comparison of harmonic modeling methods with application to the interconnection and the control of switched systems. European Journal of Control, 58:245–257, March 2021.DOI
- [7]Jose Daniel Lara, Rodrigo Henriquez-Auba, Deepak Ramasubramanian, Sairaj Dhople, Duncan S. Callaway, and Seth Sanders. Revisiting power systems time-domain simulation methods and models. IEEE Transactions on Power Systems, 39(2):2421–2437, 2024.
- [8]Johanna Kristin Maria Becker, Andreas Martin Kettner, and Mario Paolone. Harmonic stability analysis of microgrids with converter-interfaced distributed energy resources, Part I: Modeling and theoretical foundations. IEEE Transactions on Smart Grid, 16(3):2316–2326, 2025.
- [9]Aliakbar Jhamshidifar and Dragan Jovcic. Small-signal dynamic DQ model of modular multilevel converter for system studies. IEEE Trans. Power Del., 31(1):191–199, 2016.
- [10]Udoka C. Nwaneto, Seyed Ali Seif Kashani, and Andrew M. Knight. An Equivalent Dynamic Phasor Model for a Single-Phase Boost Power-Factor-Correction Converter. IEEE Open Journal of Power Electronics, 6:1002–1021, 2025.DOI
- [11]Udoka C. Nwaneto and Andrew M. Knight. Full-Order and Simplified Dynamic Phasor Models of a Single-Phase Two-Stage Grid-Connected PV System. IEEE Access, 11:26712–26728, 2023.DOI
- [12]Wonbae Choi. Dynamic phasor modeling of type 3 wind turbine generators for large-scale power system transient stability studies. PhD thesis, University of British Columbia, 2017.DOI
- [13]Saif Alsarayreh, Robert Dimitrovski, and Aleksandra Lekić. Dynamic phasor state-space solver for hybrid AC/DC systems. Electric Power Systems Research, 262:113547, January 2027.DOI
- [14]Saif Alsarayreh, Robert Dimitrovski, and Aleksandra Lekić. A novel dynamic phasor-based mathematical framework for hybrid AC/DC power system simulation. IEEE Open Access Journal of Power and Energy, 13:651–663, 2026.
- [15]Saif Alsarayreh, Robert Dimitrovski, and Aleksandra Lekić. DQsym: A MATLAB/Simulink library for dynamic phasor simulation of AC/DC power systems. SoftwareX, 34:102719, 2026.DOI







