Introduction

To achieve higher fuel efficiency and lower carbon dioxide emissions, the concept of (MEA) has garnered significant attention in the aviation industry1,2. MEA technology replaces multiple secondary energy sources in traditional aircraft with electrical energy, thereby enhancing energy conversion efficiency, power density, and overall aircraft performance3. The power system serves as the energy source for MEA, and a stable and reliable power system is crucial to ensuring the safe operation of the aircraft4. Variable-frequency-grids of the MEA, which output AC power with frequencies ranging from 380 to 800 Hz, significantly reduce the weight of onboard equipment5. These systems feature a simple primary power structure, high energy conversion efficiency, lightweight design, high reliability, and ease of operation and maintenance, making them a key developmental direction for future MEA power systems6.

As shown in Fig. 1, a typical variable-frequency-grid of MEA includes various energy conversion components, such as the autotransformer unit (ATU), transformer rectifier unit (TRU), autotransformer rectifier unit (ATRU). These components are key components of MEA energy conversion, but they are essentially nonlinear conversion devices based on power electronic devices. In addition, the widespread use of nonlinear aerospace electronic loads in variable-frequency grids presents significant challenges. These challenges include the generation of numerous harmonics, three-phase imbalance, and substantial frequency variations in grid currents, all of which degrade the power quality and reliability of the system7,8. Such issues can pose considerable risks to the flight safety and stable operation of the aircraft. Therefore, ensuring the safety and reliability of the MEA’s variable-frequency-grids, along with improving power quality, is of paramount importance9.

Fig. 1
figure 1

Schematic diagram of MEA’s variable-frequency grid power system.

Active Power Filters (APF) are essential onboard devices for MEA, designed to dynamically compensate harmonics and improve power quality, thereby addressing harmonic pollution in variable-frequency-grids of the MEA and enhancing the reliability of power supply10. A key component of APF operation is the harmonic current detection process, as the accuracy and speed of the detection algorithm directly determine the effectiveness of harmonic compensation11. Figure 2 illustrates the structure of aviation active power filter. Given that load currents fluctuate with varying load conditions, harmonic current detection algorithms typically isolate the fundamental component from the total load current. The harmonic current is then determined by subtracting the fundamental component from the overall load current, enabling accurate detection of harmonic distortions.

Fig. 2
figure 2

Schematic diagram of aviation active power filter.

In variable-frequency-grids, common time domain harmonic current detection methods include: ip-iq method based on instantaneous reactive power theory12. This method has a simple structure, which transforms the input signal into synchronous rotating frame through park transform, and uses a fixed cut-off frequency low-pass filter (LPF) to filter the harmonic signal, which has a certain frequency adaptability. P. Kanjiya et al. proposed an adaptive low pass filter (ALPF) with variable cut-off frequency to overcome the disadvantage of fixed cut-off frequency in LPF13, but this method has poor filtering ability and long dynamic time in complex power grid environment14. Harmonic detection method based on moving average filter (MAF)15, this method used MAF to replace the LPF in ip-iq method, and improved the filtering performance, but has a fixed average window length. E. Robles et al. proposed a MAF filter with variable average window length to enhance the frequency adaptability16, but it has more coordinate transformation links and complex structure. G. Panda et al. used a phase-locked loop (PLL) to update the average window length, but did not consider dynamic response17. Harmonic current detection method based on adaptive notch filter (ANF)18,19. This method can detect each harmonic component in the input signal without PLL. However, the parameters in ANF structure are often fixed, which limits its application. Harmonic current detection method based on sinusoidal amplitude integrator (SAI)20, which realized frequency adaptation through PLL, has poor filtering performance when the harmonic content of power grid is high. Harmonic current detection method based on cascaded delayed signal cancellation (CDSC)21, which required many delayed signal cancellations (DSCs), has poor real-time performance and is not suitable for aviation APF. The harmonic detection method in frequency domain is usually based on the Fourier transform. E. Lavopa et al. proposed a real-time implementation of Discrete Fourier Transform (DFT)22, which can effectively detect the fundamental and harmonic components when the frequency changes. V. I. Suryawanshi et al. proposed a smart discrete Fourier transforms (SDFT) based algorithm to solve the calculation error problem caused by the traditional Fourier transform in the case of frequency change23. But these methods have a large amount of calculation. To reduce the computational complexity, B. Yang et al. proposed a recursive discrete Fourier transform (RDFT) based algorithm24. This method reduced the computational complexity, but the selectivity of RDFT algorithm also decreases. K. Selvajyoth et al. proposed composite observers to detect harmonics, but the dimension of the system is relatively large and has certain conservativeness25. Guojing Li et al. proposed a harmonic detection algorithm based on the optimize reduced order observer, this method optimizes the number of projects to be estimated. However, it requires prior knowledge of the frequency during design26. Table 1 presents the Total Harmonic Distortion (THD) results of the literature (References [12,14,15,20,24]) in harmonic condition.

Table 1 Comparative analysis of THD performance across mentioned methods.

The variable-frequency-grids of MEA are complex and dynamic, posing significant challenges for traditional harmonic detection methods, which often exhibit poor accuracy and speed when applied to aerospace active power filters. The harmonic current detection method utilizing a LPF depends heavily on the selection of the LPF cutoff frequency. This cutoff frequency must strike a balance between achieving a fast dynamic response and maintaining detection accuracy. However, this trade-off presents a challenge in meeting the demands for rapid tracking of high frequency signals with frequency variations, particularly in MEA’s variable-frequency-grids where fast and accurate detection is essential. Other time domain harmonic detection methods, such as harmonic detection based on ANF and SAI, rely on precise and adaptive adjustment of the filter notch frequency and bandwidth. Their performance tends to degrade when subjected to large frequency deviations or unbalanced power grid conditions, making them less reliable in dynamic or irregular operating environments. Additionally, the improved harmonic current detection method based on DFT and mathematical matrix calculations generally suffer from the problem of large computational complexity and are not suitable for application in aviation active power filters.

To address these challenges, this paper proposes a novel harmonic current detection method based on Generalized Delayed Signal Superposition (GDSS) operators, specifically tailored to the characteristics of MEA’s variable-frequency grids. Firstly, two GDSS operators with strong frequency-selective properties and rapid dynamic response are derived using an algebraic recursive approach. These operators are capable of accurately and swiftly extracting the fundamental component from distorted input signals, generating a pair of clean, orthogonal signals. Secondly, the system frequency is continuously monitored through a PLL, enabling real-time adjustment to variations in input frequency. Simultaneously, fractional delay interpolation is achieved using Lagrange interpolation polynomials, significantly enhancing the adaptability and accuracy of the GDSS algorithm under varying frequency conditions. Thirdly, a positive-sequence separation structure is introduced to isolate the positive-sequence fundamental component in the context of a three-phase unbalanced power grid. Finally, Experimental validation and comparative analysis with traditional harmonic detection methods were carried out under four different conditions: harmonic distortion, three-phase imbalance, frequency jump, and complex distortion. The experimental results demonstrate that the proposed detection algorithm exhibits both high accuracy and fast dynamic response while maintaining strong robustness. It can rapidly and accurately extract harmonic currents in various complex environments, offering an effective solution for harmonic detection in dynamic and variable-frequency MEA power grids. This significantly enhances the practicality of Active Power Filters (APFs) in aviation power systems.

The proposed GDSS operators

Analysis principle algorithm

When current contains harmonics, the current signal can be decomposed into a combination of a fundamental component with a frequency of ω and harmonic components with frequencies of . The mathematical expression for this decomposition is as follows:

$$i(t) = \sum\limits_{h = 1}^{H} {I_{h} \cos (h\omega t + \varphi_{h} )}$$
(1)

where h is harmonic order(for fundamental component, h = 1), H represents the maximum harmonic order, ω and φh are the fundamental frequency and initial phase of the h-order harmonics, respectively. Two different types of generalized delayed signal operators (GDS1 and GDS2) for i(t) are considered in this paper:

$$GDS1[i(t)] = i(t - \frac{k}{{h_{s} n}}T)\cos \frac{2k\pi }{n}$$
(2)
$$GDS2[i(t)] = i(t - \frac{k}{{h_{s} n}}T)\sin \frac{2k\pi }{n}$$
(3)

where T is the fundamental period, hs is the harmonic order to be detected, and n, k are arbitrary integers. If GDS1[i(t)] and GDS2[i(t)] are added with k ranging from 0 to m(m < hsn) and then multiplied by 2/(m + 1), two types of GDSS operators can be constructed as follows:

$$GDSS1[i(t)] = \frac{2}{m + 1}\sum\limits_{k = 0}^{m} {i(t - \frac{k}{{h_{s} n}}T)\cos (\frac{2k\pi }{n})}$$
(4)
$$GDSS2[i(t)] = \frac{2}{m + 1}\sum\limits_{k = 0}^{m} {i(t - \frac{k}{{h_{s} n}}T)\sin (\frac{2k\pi }{n})}$$
(5)

Considering the h-order harmonic signal \(i_{h} (t) = I_{h} \cos (h\omega t + \varphi_{h} )\) in \(i\left( t \right)\), Eq. (4) can be expressed as Eq. (6). By applying the product-to-sum trigonometric identity, Eq. (6) can be rearranged to be Eq. (7).

$$GDSS1[i_{h} (t)] = 2\frac{{I_{h} }}{m + 1}\sum\limits_{k = 0}^{m} {\cos (\alpha - \frac{2hk\pi }{{h_{s} n}})\cos (\frac{2k\pi }{n})}$$
(6)
$$GDSS{1}[i_{h} (t)] = G\sum\limits_{k = 0}^{m} {[\cos (a - 2kA) + \cos (a - 2kB)]}$$
(7)

where \({\text{G = I}}_{{\text{h}}} {/}({\text{m + }}1)\);\(\alpha { = }h\omega t + \varphi_{h}\);\(A = (h - h_{s} )*\pi /h_{s} n\);\(B = (h + h_{s} )*\pi /h_{s} n\). According to the certain sums of trigonometric functions provided in reference [29], Eq. (7) can be further simplified as follows:

$$GDSS1[i_{h} (t)] = \left\{ {\begin{array}{*{20}c} {\begin{array}{*{20}c} {G(CD\csc A + EF\csc B),} & {h \ne h_{i} } \\ \end{array} } \\ {\begin{array}{*{20}c} {I_{h} \cos \alpha + GEF\csc B,} & {h = h_{s} (jn + 1)} \\ \end{array} } \\ {\begin{array}{*{20}c} {I_{h} \cos \alpha + GCD\csc A,} & {h = h_{s} (jn - 1)} \\ \end{array} } \\ \end{array} } \right.$$
(8)

where \(C = \cos (\alpha - mA)\);\(D = \sin [(m + 1)A]\);\(E = \cos (\alpha - mB)\);\(F = \sin [(m + 1)B]\);\(h_{i} = h_{s} (jn \pm 1)\); j represents an arbitrary natural number; csc is a trigonometric function defined as the reciprocal of the sine function, expressed as \(\csc \left( x \right) \, = \, 1/\sin \left( x \right)\). The same derivation process can be applied to analyze Eq. (5) and a similar expression can be obtained as follows:

$$GDSS2[i_{h} (t)] = \left\{ {\begin{array}{*{20}c} {\begin{array}{*{20}c} {G(JD\csc A + KF\csc B),} & {h \ne h_{i} } \\ \end{array} } \\ {\begin{array}{*{20}c} {I_{h} \sin \alpha + GKF\csc B,} & {h = h_{s} (jn + 1)} \\ \end{array} } \\ {\begin{array}{*{20}c} {I_{h} \sin \alpha + GJD\csc A \cdot } & {h = h_{s} (jn - 1)} \\ \end{array} } \\ \end{array} } \right.$$
(9)

where \(J = \sin (\alpha - mA)\);\(K = \sin (\alpha - mB)\). Observing Eqs. (8) and (9), it can be concluded that when D and F are both zero, GDSS1 operator will exhibit a zero gain for any harmonic components at h ≠ hi, but a unity gain and zero phase shift for harmonic components at h = hi, including the selected harmonic order hs. The same conclusion can be drawn for the GDSS2 operator except that it will introduce an extra -π/2 phase shift to the harmonics at h = hi.

When extracting the harmonic order to be detected, it is necessary to select the values of parameters hs, m and n. The value of hs is related to the order of harmonic signal to be detected. Therefore, for an arbitrary integer value of h, D and F can both be zero simultaneously only if the values of m and n satisfy the integer condition specified in Eq. (10):

$$\frac{{(m + 1)*(h \pm h_{s} )}}{{h_{s} n}}$$
(10)

Considering that m is an integer smaller than n, the solution where both D and F are zero is given by:

$$m = h_{s} n - 1$$
(11)

The value of n determines the harmonic orders that can’t be filtered out by the two operators. Therefore, the selection of n must be based on the dominant harmonic components present in the input signal, as well as the result from Eq. (8) where hi = hs(jn ± 1), in order to effectively avoid the harmonics that cannot be filtered out.

Table 2 presents the selection of parameters m and n for extracting different detected harmonic orders hs, along with the corresponding calculated values of hi. It is evident that with a reasonable selection of parameters hs, m and n, the GDSS1 and GDSS2 operators can effectively extract the desired harmonic components from the input signal, and the maximum delay time for GDSS1 and GDSS2 is mT/(hsn). For example, if the fundamental component is to be extracted, set hs = 1. Using Eq. (10) and Eq. (11), along with the constraints on hi, the values of m = 14 and n = 15 are obtained.

Table 2 Relationships among m, n, hs and hi.

Both GDSS1 and GDSS2 operators have strong frequency selection characteristics, and the extracted two signals are orthogonal to each other. Therefore, they can be configured as a quadrature signal generation (QSG) algorithm, which is called the quadrature signal generation algorithm based on general delay signal superposition operators (GDSS-QSG) in this paper. Figure 3 illustrates the QSG algorithm based on the GDSS operators, where Ihs represents the hs-order harmonic component to be detected from the input signal Iin and q = e-jπ/2 denotes a π/2 phase delay operator.

Fig. 3
figure 3

Illustrates of GDSS-based QSG method.

Frequency domain characteristic analysis

To further observe the filtering capabilities of the GDSS-QSG, Eq. (4) and Eq. (5) are converted to frequency domain by Laplace transform. The transfer functions of GDSS1 and GDSS2 are:

$$H_{GDSS1} (s) = \frac{2}{m + 1}\sum\limits_{k = 0}^{m} {e^{{ - \frac{kT}{{h_{s} n}}s}} } \cos \left( {\frac{2k\pi }{n}} \right)$$
(12)
$$H_{GDSS2} (s) = \frac{2}{m + 1}\sum\limits_{k = 0}^{m} {e^{{ - \frac{kT}{{h_{s} n}}s}} } \sin \left( {\frac{2k\pi }{n}} \right)$$
(13)

Assuming the grid fundamental frequency f0 = 400 Hz and T = 1/f0, the GDSS-QSG parameters are chosen as hs = 1, m = 14, and n = 15. The magnitude frequency and phase frequency characteristic curves of Eq. (12) and Eq. (13) are shown in Fig. 4.

Fig. 4
figure 4

Frequency responses of the GDSS-QSG at fundamental frequency 400 Hz.

As shown in Fig. 4(a), the frequency response of GDSS1 operator exhibits a unit gain and zero phase shift at frequencies f = (15 k ± 1)f0(k = 0,1,2,3……), and zero gain at frequencies f ≠ (15 k ± 1)f0(k = 0,1,2,3……).This demonstrates that when m = 14 and n = 15, the GDSS1 operator can accurately extract the harmonic sequence (15 k ± 1)f0 from the characteristic sequence of the input signal. As shown in Fig. 4(b), the frequency response of GDSS2 operator exhibits a unit gain and a phase shift of -π/2 at frequencies f = (15 k ± 1)f0(k = 0,1,2, 3……), while exhibits zero gain at frequencies f ≠ (15 k ± 1)f0(k = 0,1,2,3……). This demonstrates that when m = 14 and n = 15, the GDSS2 operator can accurately extract the harmonic sequence (15 k ± 1)f0 from the characteristic sequence of the input signal, while exhibiting a phase lag of π/2 relative to the GDSS1 operator. The peak value of the amplitude frequency characteristic curves of GDSS1 and GDSS2 is about 1.029 (Abs), slightly deviating from the fundamental frequency. However, this deviation does not affect the operators’ ability to accurately extract the fundamental component.

It is worth noting that when hs = 1, m = 14, and n = 15, the GDSS-QSG method shown in Fig. 3 can’t eliminate the influence of the 14th and 16th even-order harmonics. However, in the MEA variable frequency AC power generation system, the power electronic converters and nonlinear onboard loads primarily generate odd-order harmonics below the 25th harmonic, with very few even-order harmonics. Therefore, it can be considered that the GDSS-QSG algorithm is capable of extracting a pure fundamental component orthogonal signal while effectively suppressing the influence of harmonics.

From the above analysis, it is evident that the proposed GDSS operators exhibit mathematical completeness in extracting the fundamental component. By constructing a linear combination of the delayed signal and the input signal, the required harmonic components can be directly extracted with extremely high accuracy. When used for fundamental component extraction, the delay time of the GDSS operators is 14 T/15, resulting in a relatively short dynamic response time. This effectively addresses the issue faced by some traditional harmonic current detection methods, which struggle to balance detection speed and accuracy when processing high-frequency, rapidly changing signals.

Positive-sequence fundamental component extraction and harmonic detection based on GDSS

Positive-sequence fundamental component extraction structure based on GDSS

In practical engineering applications, the GDSS-QSG operators for calculating the fundamental component is implemented using digital signal processing chips. Therefore, it is necessary to discretize Eq. (4) and Eq. (5). If the number of sampling points of the input signal i(t) within one fundamental period is Ns, the discretized GDSS-QSG operators for extracting the fundamental component can be expressed as follows:

$$I_{1} [{\text{t}}i] = \frac{2}{15}\sum\limits_{k = 0}^{14} i [{\text{t}}i - \frac{k}{15}N_{s} ]{\text{cos}}(\frac{2k\pi }{{15}})$$
(14)
$$qI_{1} [{\text{t}}i] = \frac{2}{15}\sum\limits_{k = 0}^{14} i [{\text{t}}i - \frac{k}{15}N_{s} ]{\text{sin}}(\frac{2k\pi }{{15}})$$
(15)

Assuming the sampling frequency of the airborne high frequency active power filter is fs = 100 kHz and the fundamental frequency is f0 = 400 Hz, the number of sampling points Ns is calculated as Ns = fs/ f0 = 250. In this case, the delay modules of the GDSS-QSG operators for fundamental extraction \(N_{k} = kN_{s} /15\) (k = 0,1,……14) may result in fractional values. In this case, if the system performs calculations by truncating the fractional part and using only the integer Nk, rounding errors will occur, leading to the GDSS-QSG operators unable to accurately extract the fundamental component from the input signal. Therefore, a finite impulse response (FIR) filter based on the Lagrange interpolation method is used to approximate fractional order delays. Transformed the delay modules \(z^{{{ - }N_{k} }}\) to \({\text{z}}^{{{\text{ - N}}_{{\text{k}}} }} {\text{ = z}}^{{{\text{ - N}}_{{\text{D + d}}} }}\), where D is the integer part and d is the fractional part. The FIR filter is used to approximate the fractional part of the delay modules.

According to Lagrange interpolation principle:

$$z^{ - d} \approx \mathop \sum \limits_{j = 0}^{n} \left[ {h(j)z^{ - j} } \right]$$
(16)

where h(j) is a polynomial coefficient, j = 0,1, ……n, The coefficient h(j) can be obtained from Eq. (17):

$$h(j) = \prod\limits_{{\begin{array}{*{20}c} {i = 0} \\ {i \ne k} \\ \end{array} }}^{n} {\frac{{{\text{d}} - i}}{j - i}}$$
(17)

where, j is the order of FIR filter, with a range of values from 0 to n. Table 3 shows the values of polynomial coefficients of FIR filters of order 1 to 3 based on Lagrange interpolation.

Table 3 FIR filter polynomial coefficient table.

Figure 5 shows the structure diagram of the FIR filter based on the Lagrange interpolation, while Fig. 6 illustrates the implementation form of the GDSS-QSG method proposed in this paper.

Fig. 5
figure 5

Structure diagram of FIR filter based on Lagrange interpolation method.

Fig. 6
figure 6

Implementation of GDSS-QSG structure.

In Fig. 6, the parameters ak in GDSS1 and GDSS2 operators are cos(2/15) and sin(2/15), respectively, k = 0,1,……14. By embedding the FIR filter into the delay modules, the GDSS-QSG operators are able to accurately extract the fundamental component even when Nk contains fractions, thus enhancing the accuracy of the operators.

Figure 7 presents a block diagram for extracting the positive-sequence fundamental component using the GDSS method. As shown in the frequency response curves in Fig. 4, the GDSS-QSG operators simultaneously extract both the positive-sequence and negative-sequence components of the fundamental wave. However, the method does not allow for the selective extraction of the positive-sequence component alone. Therefore, it is necessary to perform Positive–Negative Sequence Separation (PNSC) on the extracted results. The derivation of the PNSC process is outlined in reference28, and the resulting expression can be directly applied in this study. According to reference28, the positive-sequence component in the αβ reference frame can be calculated as:

$$\begin{gathered} \left[ {\begin{array}{*{20}c} {I_{\alpha }^{ + } } \\ {I_{\beta }^{ + } } \\ \end{array} } \right] = \left[ {\begin{array}{*{20}c} {T_{\alpha \beta + } } \\ \end{array} } \right]\left[ {\begin{array}{*{20}c} {I_{\alpha } } \\ {I_{\beta } } \\ \end{array} } \right]; \hfill \\ \left[ {\begin{array}{*{20}c} {T_{\alpha \beta + } } \\ \end{array} } \right] = \frac{1}{2}\left[ {\begin{array}{*{20}c} {\begin{array}{*{20}c} 1 \\ q \\ \end{array} } & {\begin{array}{*{20}c} { - q} \\ 1 \\ \end{array} } \\ \end{array} } \right] \hfill \\ \end{gathered}$$
(18)
Fig. 7
figure 7

Block diagram of positive-sequence fundamental component extraction based on GDSS.

Harmonic current detection algorithm based on GDSS

This paper primarily investigates the harmonic current detection algorithm applied to aviation APF onboard equipment, which operates within the variable-frequency-grids of MEA, with a frequency range of 380 to 800 Hz. Consequently, in addition to extracting the positive-sequence fundamental component, it is essential to incorporate a frequency detection step to ensure that the proposed algorithm is frequency-adaptive.

From the expressions of the GDSS-QSG operators during fundamental component extraction (as shown in Eq. (14) and Eq. (15)), it is evident that only Ns in the algorithm parameters is affected by changes in system frequency. When the system frequency varies, the delay modules in \(z^{{{ - }N_{k} }}\) the GDSS-QSG must be adjusted accordingly to accurately extract the fundamental current from signals that vary in frequency.

To address this issue, a PLL is employed for real-time frequency tracking. Based on the frequency detection results from the PLL, Ns is updated in real-time, and the adaptive delay modules of the GDSS-QSG is dynamically adjusted. This approach ensures that the proposed harmonic current detection algorithm can track system frequency changes in real time and accurately extract the fundamental component, even under varying grid conditions.

Ideally, the grid voltage is a balanced three-phase sine wave. However, the operating conditions of the MEA’s variable-frequency-grids are often challenging, and various practical factors can cause grid voltage imbalances. To mitigate the impact of three-phase voltage unbalance on frequency detection, this study employs a decoupled double synchronous reference frame phase-locked loop (DDSRF-PLL)29. The DDSRF-PLL operates within a synchronous rotating reference frame, tracking the frequency by monitoring the positive-sequence components of the voltage. This method demonstrates excellent frequency adaptability, enabling accurate frequency detection even in the presence of grid voltage unbalance and frequency fluctuations.

The harmonic current detection algorithm based on GDSS proposed in this paper is illustrated in the block diagram shown in Fig. 8. In this structure, the GDSS-QSG operators incorporate adaptive delay modules, with the delay time varying according to the current system frequency.

Fig. 8
figure 8

Block diagram of harmonic current detection algorithm based on GDSS.

Assuming that the fundamental frequency of the power grid changes to f0 = 500 Hz while the sampling frequency remains constant, the number of sampling points per period in the GDSS parameter will change accordingly. The new number of sampling points per period, denoted as Ns, can be calculated by \(N_{s}^{\prime } = f_{s} / \, f_{0}^{\prime } = 200\). Figure 9 shows the frequency response of the GDSS1 and GDSS2 operators after frequency changes. It can be observed that after the frequency change, the harmonic sequence extracted by GDSS-QSG operators from the characteristic sequence of the input signal remains (15 k ± 1)f0. This evidences that positive-sequence fundamental component extraction structure based on GDSS using the adaptive delay modules can adapt to the change of the system frequency and complete the accurate extraction of the positive-sequence fundamental component.

Fig. 9
figure 9

Frequency responses of the GDSS-QSG when the fundamental frequency changes to 500 Hz.

By combining the GDSS operators with a PLL, the delay time can be dynamically adjusted without the need for complex parameter tuning, thereby maintaining high accuracy as the grid frequency fluctuates. This combination enhances the method’s robustness against frequency variations, making it well-suited for application in MEA’s variable-frequency-grids. The process of harmonic current detection algorithm based on GDSS is outlined as follows:

When the load current is distorted and the three phases are unbalanced, the load current iL can be expressed as:

$$\left[ {\begin{array}{*{20}c} {i_{La} } \\ {i_{Lb} } \\ {i_{Lc} } \\ \end{array} } \right] = \left[ {\begin{array}{*{20}c} {\sum\limits_{n = 1}^{\infty } {\sqrt 2 } I_{an + } \sin \left( {n\omega t + \varphi_{n} } \right)} \\ {\sum\limits_{n = 1}^{\infty } {\sqrt 2 } I_{bn + } \sin \left( {n\left( {\omega t - \frac{2\pi }{3}} \right) + \varphi_{n} } \right)} \\ {\sum\limits_{n = 1}^{\infty } {\sqrt 2 } I_{cn + } \sin \left( {n\left( {\omega t + \frac{2\pi }{3}} \right) + \varphi_{n} } \right)} \\ \end{array} } \right] + \left[ {\begin{array}{*{20}c} {\sum\limits_{n = 1}^{\infty } {\sqrt 2 } I_{an - } \sin \left( {n\omega t + \varphi_{n} } \right)} \\ {\sum\limits_{n = 1}^{\infty } {\sqrt 2 } I_{bn - } \sin \left( {n\left( {\omega t + \frac{2\pi }{3}} \right) + \varphi_{n} } \right)} \\ {\sum\limits_{n = 1}^{\infty } {\sqrt 2 } I_{cn - } \sin \left( {n\left( {\omega t - \frac{2\pi }{3}} \right) + \varphi_{n} } \right)} \\ \end{array} } \right]$$
(19)
$$\left\{ {\begin{array}{*{20}l} {i_{{{\text{L}}.{\text{a}}}} = i_{{{\text{L}}a + }} + i_{{{\text{L}}a - }} } \hfill \\ {i_{{{\text{L}}b}} = i_{{{\text{L}}b + }} + i_{{{\text{L}}b - }} } \hfill \\ {i_{{{\text{L}}c}} = i_{{{\text{L}}c + }} + i_{{{\text{L}}c - }} } \hfill \\ \end{array} } \right.$$
(20)

where, iLaiLbiLc are the load currents of each phase respectively; Ian+Ibn+Icn+ are the effective values of positive-sequence components of each load current respectively; Ian-Ibn-Icn- are the effective values of negative-sequence components of each load current respectively; n is the harmonic number; φn is the initial phase. First, the load current iL is transformed from the three-phase stationary reference frame to the two-phase αβ reference frame, resulting in ii, using the Clarke transformation.

$$\left[ {\begin{array}{*{20}c} {i_{{{\text{L}}\alpha }} } \\ {i_{{{\text{L}}\beta }} } \\ \end{array} } \right] = {\varvec{C}}_{32} \left[ {\begin{array}{*{20}c} {i_{{{\text{La}}}} } \\ {i_{{{\text{Lb}}}} } \\ {i_{{{\text{Lc}}}} } \\ \end{array} } \right] = \left[ {\begin{array}{*{20}c} {\sum\limits_{n = 1}^{\infty } {\sqrt 3 } I_{\alpha n + } \sin \left( {n\omega t + \varphi_{n} } \right)} \\ {\sum\limits_{n = 1}^{\infty } {\sqrt 3 } I_{\beta n + } \sin \left( {n\omega t + \varphi_{n} } \right)} \\ \end{array} } \right] + \left[ {\begin{array}{*{20}c} {\sum\limits_{n = 1}^{\infty } {\sqrt 3 } I_{{\alpha n{ - }}} \sin \left( {n\omega t + \varphi_{n} } \right)} \\ {\sum\limits_{n = 1}^{\infty } {\sqrt 3 } I_{{\beta n{ - }}} \sin \left( {n\omega t + \varphi_{n} } \right)} \\ \end{array} } \right]$$
(21)

where \({\varvec{C}}_{32} = \sqrt{\frac{2}{3}} \left[ {\begin{array}{*{20}c} 1 & { - \frac{1}{2}} & { - \frac{1}{2}} \\ 0 & {\frac{\sqrt 3 }{2}} & { - \frac{\sqrt 3 }{2}} \\ \end{array} } \right]\); Iαn+Iβn+ are positive-sequence components of load current in two-phase αβ reference frame respectively; Iαn-Iβn- are negative-sequence components of load current in two-phase αβ reference frame. When the load currents i and i in the α and β axes are processed through the GDSS-QSG for filtering and positive negative-sequence separation, the corresponding positive-sequence fundamental components i+αfp and i+βfp in the two-phase reference frame can be obtained. Subsequently, these components can be transformed back to the three-phase stationary reference frame using the inverse Clarke transformation, resulting in the three-phase positive-sequence fundamental currents i+afp, i+bfp, and i+cfp.

$$\left[ {\begin{array}{*{20}c} {i_{afp}^{ + } } \\ {i_{bfp}^{ + } } \\ {i_{cfp}^{ + } } \\ \end{array} } \right] = C_{23} \left[ {\begin{array}{*{20}c} {i_{\alpha fp}^{ + } } \\ {i_{\beta fp}^{ + } } \\ \end{array} } \right] = \left[ {\begin{array}{*{20}c} {\sqrt 2 I_{a1 + } \sin \left( {\omega t + \varphi_{1} } \right)} \\ {\sqrt 2 I_{b1 + } \sin \left( {\omega t - \frac{2\pi }{3} + \varphi_{1} } \right)} \\ {\sqrt 2 I_{c1 + } \sin \left( {\omega t + \frac{2\pi }{3} + \varphi_{1} } \right)} \\ \end{array} } \right]$$
(22)

where C23 is the inverse matrix of C32; Ia1+Ib1+Ic1+ are the effective values of positive-sequence current of each fundamental component respectively. Finally, the three-phase harmonic currents iahibhich to be detected can be obtained by subtracting the three-phase positive-sequence fundamental currents i+afpi+bfpi+cfp from the three-phase load currents iL.

Experimental validation

To verify the superior performance of the harmonic current detection algorithm based on GDSS in adverse power grid conditions, this paper comprehensively considered the influence of current harmonics, three-phase unbalance and frequency jump on the performance of harmonic detection algorithm, compared and analyzed the filtering performance, dynamic performance and robustness of the proposed algorithm with traditional harmonic detection method based on ip-iq method12, MAF method17, ANF method19 and SAI method20.

In the practical application of multi-electric aircraft, hardware resources are typically limited. Therefore, it is essential to evaluate the computational complexity of the proposed algorithm before conducting experiments. By observing the discrete expressions of the GDSS-QSG operators in Eq. (14) and Eq. (15), it can be inferred that GDSS-QSG operators consists of two parts: the number of sampling points within a single fundamental period and the mathematical operations after fixing parameters. Among them, the trigonometric function part can be pre calculated and stored. Therefore, the process of the GDSS- QSG operators can simply be realized with 2(m + 1) multiplications and 2 m additions. According to Fig. 8, the process of proposed algorithm mainly requires to compute two GDSS-QSG operators and a PNSC. Consequently, the proposed detection method requires a total of 62 multiplications, 58 additions. Actually, considering the sliding window update strategy and hardware parallel acceleration, the mathematical operations of the GDSS operators can be further reduced. In summary, the processing time of the proposed algorithm is beneficial for the real-time operation of the control system.

In the comparison methods, the ip-iq method typically uses second-order LPFs with a fixed cutoff frequency, resulting in the lowest computational complexity. MAF takes the average of the number of sampling points within a single sampling period, while SAI multiplies and integrates the input signal with the reference signal, resulting in a lower computational complexity than the proposed algorithm. ANF uses adaptive algorithms for filtering, which requires dynamic adjustment of weights and has a higher computational complexity than the proposed algorithm. Although the proposed algorithm has a high computational complexity, it can meet the requirements of real-time feasibility and still has advantages in MEA’s variable-frequency grid power system which require both detection accuracy and dynamic response speed.

According to the experimental modeling of MEA loads and FFT analysis of load currents in references [12,30] and [31], the MEA’s variable-frequency-grids mainly contains fifth and seventh harmonics. In the experiment, three sets of sine signal generation modules containing fundamental and harmonic were used to simulate the phase A, phase B, and phase C of the load current. To reproduce the real conditions of variable-frequency-grids of the MEA, experiments were conducted using a simulated harmonic source under four distinct operating conditions. The experimental conditions were designed as follows:

Condition 1 Simulates a load current with a fixed frequency of 400 Hz under balanced three-phase conditions. The amplitudes of phases A, B, and C are all 10 A with positive-sequence phases, and harmonic content consists of 10% for the fifth and seventh harmonics.

Condition 2 simulates load current with a fixed frequency of 600 Hz and unbalanced three phase conditions. The amplitude of phase A is 5A, phase B is 10A, and phase C is 15A, and content consists of 10% for the fifth and seventh harmonics.

Condition 3 simulates load current under small frequency variations and balanced three phases. The amplitudes of phases A, B, and C are all 10A with a positive-sequence phase, and content consists of 10% for the fifth and seventh harmonics. The system frequency transitions from 400 to 380 Hz.

Condition 4 simulates load current under large frequency variations and three-phase unbalance. The amplitude of phase A is 5A, phase B is 10A, and phase C is 15A, and content consists of 20% for the third harmonic, 15% for the fifth harmonic, and 10% for the seventh harmonic. The system frequency transitions from 800 to 750 Hz. Table 4 shows the load current parameters under different working conditions, in the condition 2 and condition 4, the amplitude of the positive sequence fundamental component contained in the three-phase unbalanced load current is 10A. Table 5 presents the model parameters for different harmonic current detection algorithms.

Table 4 Load current parameters under different under different working conditions.
Table 5 Parameters for different detection methods.

Experiments were conducted on the RTU-BOX Real-Time Simulation System based on DSP TMS320C28346. Simulink based algorithm models can be directly generated into code and downloaded to hardware, and then form a loop with hardware to complete real-time operation and rapid verification of control code. The experimental process is illustrated in Fig. 10. First, the RTU-Toolbox library in Simulink is utilized to construct a simulation model of the current sources and the harmonic current detection algorithms. Next, the simulation models are converted into a C language program using the RTU-BOX software platform, and the program is subsequently downloaded to the RTU-BOX hardware platform. Finally, the program’s operation is monitored in real time using an oscilloscope, and the waveform data is transferred to the upper computer for FFT analysis. The sampling frequency used during the experiment was 15 kHz.

Fig. 10
figure 10

Experimental process.

Condition 1 experimental analysis

The system operates at a frequency of 400 Hz with balanced three phase simulated currents. Figure 11 shows the simulated current waveform and the FFT analysis results of phase A current. It can be observed that after 6 ms, the THD of the phase A load current is 14.14%.

Fig. 11
figure 11

Current waveform and FFT analysis under condition 1.

Figure 12 shows the proposed harmonic current detection algorithm and the comparison detection methods for extracting positive-sequence fundamental current and FFT analysis results under condition 1. It can be observed that when the current contains only a small amount of harmonic content, all detection methods demonstrate satisfactory filtering performance. Among these methods, the proposed GDSS algorithm, ip-iq method, and detection method based on MAF achieve 100% accuracy in the amplitude of the positive-sequence fundamental current, while detection method based on ANF and SAI are slightly less accurate, with an accuracy of 98.2%. In terms of THD, the proposed GDSS algorithm outperforms the other methods, with a THD value close to zero, indicating superior filtering performance. In terms of dynamic response time, the proposed detection method achieves a response time of 14/15 fundamental periods, the shortest among all the compared methods. In contrast, the ip-iq method, which utilizes a low-pass filter, exhibits the longest response time of approximately 1.5 fundamental periods. The other detection methods, including those based on MAF, ANF, and SAI, demonstrate a response time of one fundamental period.

Fig. 12
figure 12

Positive-sequence fundamental current waveform extracted by various detection methods and FFT analysis in condition 1.

Condition 2 experimental analysis

The system frequency is 600 Hz. At 6 ms, a three-phase unbalance occurs in the simulated current. The amplitude of phase A is 5A, phase B is 10A, and phase C is 15A. At the same time, 10% of the fifth and seventh harmonics are added. The simulated current waveform and the FFT analysis results of the positive-sequence current A phase current after phase sequence calculation are shown in Fig. 13. It can be observed that the THD of phase A load current is 14.12%.

Fig. 13
figure 13

Current waveform and FFT analysis under condition 2.

Figure 14 shows the proposed harmonic current detection algorithm and the comparison detection methods for extracting fundamental positive-sequence current and FFT analysis results under condition 2. It can be seen that after adding three-phase unbalance, the proposed GDSS detection algorithm returned to normal after a brief adjustment. After stabilization, the three-phase unbalance had almost no impact on the detection of the positive-sequence fundamental component. In contrast, the other detection methods are significantly affected by the three-phase unbalance, resulting in a slight decrease in detection accuracy.

Fig. 14
figure 14

Positive-sequence fundamental current waveform extracted by various detection methods and FFT analysis in condition 2 .

Condition 3 experimental analysis

The system operates at a frequency of 400 Hz with balanced three phase simulated currents, containing 10% of the fifth and seventh harmonics. At 6 ms, a frequency jump occurs and the frequency changes to 380 Hz. The simulated current waveform and the FFT analysis results of phase A current are shown in Fig. 15. The THD of the phase A load current is 14.12%.

Fig. 15
figure 15

Current waveform and FFT analysis under condition 3.

Figure 16 shows the proposed harmonic current detection algorithm and the comparison detection methods for extracting fundamental positive-sequence current and FFT analysis results under condition 3.

Fig. 16
figure 16

Positive-sequence fundamental current waveform extracted by various detection methods and FFT analysis in condition 3.

It is evident that the proposed GDSS detection algorithm completes the positive-sequence fundamental components detection after the frequency jump the fastest, with a short adjustment time, smooth transition process, and the highest detection accuracy. In contrast, due to the inherent cutoff frequency of the low-pass filter, the performance of the ip-iq method detection method decreases and the dynamic time is long. The MAF detection method can dynamically adjust the window length based on frequency changes, but the detection time is still one fundamental period. For detection method based on ANF and SAI, although these methods can adapt to frequency variations, their filtering capabilities are limited. Compared to other detection methods, the proposed GDSS detection algorithm demonstrates superior performance under conditions of frequency variation.

Condition 4 experimental analysis

The system operates at a frequency of 800 Hz with unbalanced three phase simulated currents, containing of 20% third, 15% fifth, and 10% seventh harmonics. At 3 ms, a frequency jump occurs, changing the frequency to 750 Hz. The simulated current waveform and the FFT analysis results of the positive-sequence current A phase current after phase sequence calculation are shown in Fig. 17. It can be observed that the THD of phase A load current is 27.16%. Among all operating conditions, the power environment under this condition is the most complex and can rigorously test the performance of harmonic current detection methods.

Fig. 17
figure 17

Current waveform and FFT analysis under condition 4.

Figure 18 shows the proposed harmonic current detection algorithm and the comparison detection methods for extracting fundamental positive-sequence current and FFT analysis results under condition 4.

Fig. 18
figure 18

Positive-sequence fundamental current waveform extracted by various detection methods and FFT analysis in condition 4.

The results demonstrate that the proposed GDSS detection algorithm exhibits strong robustness, maintaining superior filtering performance and dynamic response under complex conditions. It accurately detects the positive-sequence fundamental current within one fundamental period following a frequency jump, achieving a positive-sequence amplitude error of 0.01% and a THD of 0.47%, both of which are the lowest among the detection methods. In contrast, the ip-iq method and detection method based on MAF have good robustness, they are less effective than the proposed algorithm in terms of detection accuracy and response speed. The ANF and SAI detection methods yield high THD for the positive-sequence fundamental component due to degraded filtering performance in complex power grid environments, leading to poor robustness.

Table 6 presents the results of detection accuracy, filtering performance of all harmonic current detection algorithms under different experimental conditions. These results are presented in the form of accuracy percentages for the positive-sequence fundamental current extraction, as well as the THD of the detected signal. Table 7 presents the results of dynamic response time and robustness of all harmonic current detection algorithms under different experimental conditions. The results demonstrate that, compared to other methods, the proposed GDSS detection algorithm exhibits superior detection accuracy, enhanced filtering performance, and a faster dynamic response time. Especially under challenging conditions such as severe harmonic interference, three-phase imbalance, and frequency jump typical of aviation power grids, The proposed method demonstrates robust performance, ensuring continuous and reliable detection under various operating conditions.

Table 6 Detection accuracy and filtering performance of different detection algorithms under different experimental conditions.
Table 7 Dynamic response time and robustness of different detection algorithms.

Conclusion

This paper begins by deriving the GDSS operators and analyzing its discrete form in practical applications. The accuracy of the operator’s calculation is improved through Lagrange interpolation. Subsequently, a PLL and a positive–negative sequence separation module are integrated with the GDSS operator to achieve accurate harmonic current extraction in environments with variable frequency and three-phase unbalanced grids. Finally, experiments were designed to validate the proposed algorithm under various operating conditions. The main conclusions drawn from the experimental results are as follows:

The proposed harmonic current detection algorithm based on the GDSS is capable of accurately extracting harmonic currents within a single fundamental cycle, with a dynamic response time of 14 T/15. The proposed algorithm simultaneously offers high detection accuracy and fast response speed, making it well-suited for MEA’s variable-frequency-grids, which demand both rapid detection and precise harmonic current extraction.

The proposed harmonic current detection algorithm based on GDSS demonstrates exceptional robustness, enabling it to quickly and accurately extract harmonic currents even in complex aviation environments. Compared to other methods, the proposed harmonic current detection algorithm based on GDSS achieves rapid and accurate synchronization under complex conditions, highlighting its exceptional capability in variable-frequency-grids of MEA.

While the proposed detection algorithm exhibits impressive performance, it does have limitations regarding computational complexity. Future work can focus on optimizing the operators to reduce the computational burden on the hardware.