1 Introduction

In order to improve the performance of the existing power systems, the flexible ac transmission system (FACTS) devices have been widely applied in the power systems [1]. Among the FACTS device family, the unified power flow controller (UPFC) is the most creative FACTS device, which can simultaneously regulate multi electrical parameters to improve the power transfer capability and stability level of the power grid [2].

Since the modular multilevel converter (MMC) has the advantages of modular structure, inherent redundancy and ease of expandability, it has successfully made its way into industrial high voltage and larger power applications [35]. The carrier phase shifted sinusoidal pulse width modulation (CPS-SPWM) or the nearest level modulation (NLM) is usually adopted by the MMC to reduce the switching frequency, voltage and current harmonics [46].

The basic principle of NLM is to calculate the number of submodules (SMs) which should be put into operation based on the voltage modulation ratio, and then generate trigger pulses according to the sort of the SMs’ capacitor voltages. If the voltage levels reach to a large number (such as tens or hundreds), the NLM stands out among other modulation methods, since it has the following advantages: ease of implementation, low switch frequency, and small output voltage harmonics [7, 8].

For the voltage source converter based high voltage direct current (VSC-HVDC) application, the single phase unit of the MMC consists of hundreds of SMs, and the output voltage of MMC is usually around the rated value under normal operation condition. In this context, the harmonics in the output voltage are very small [4, 8].The dc side harmonic in MMC is studied in [9, 10]. The analytical approaches to calculate the harmonics for MMC with different modulation methods are presented in [7, 11]. A modular harmonic domain modeling technique for UPFC is developed in [12]. However, being different from the operation condition of the VSC-HVDC, the output voltage of the series MMC in MMC-UPFC can be regulated from 0 and the rated value [13, 14]. The waveform of the output voltage would be distorted if the voltage is not so large, and the harmonics would be rather remarkable. Hence, the research on the harmonic characteristics of MMC-UPFC is of great significance to the safe and stable operation of the power grid with UPFC.

To this end, the influence of the MMC-UPFC on the harmonics of the power grid is analyzed in this paper. The structure and operating principle of MMC-UPFC is put forward. The theoretical calculation method and spectra of the output voltage harmonics of the MMC based on NLM are proposed. Then the harmonic study approach of the power grid with MMC-UPFC is presented. Finally, the simulation study which validates the proposed harmonic analysis approach is demonstrated. The harmonic suppression measures are discussed.

2 MMC-UPFC model

The topology of the MMC is depicted in Fig. 1 [15].

Fig. 1
figure 1

The topology of MMC

It can be found that the MMC consists of three parallel-connected phase units, each with upper and lower arms. The single arm has a modular structure with N series-connected submodules (SMs) and a series inductance. Each SM contains two insulated-gate bipolar transistor (IGBT)/diode switches and a capacitor [4, 5].

The MMC-UPFC consists of shunt MMC and series MMC which are connected back-to-back with the common dc bus [13], as shown in Fig. 2. The shunt MMC interfaces to the power grid through the shunt transformer, and can absorb or generate controllable reactive power for AC bus voltage regulation. Meanwhile, it can exchange the active power with the power grid to maintain the dc bus voltage constant. In addition, the series MMC interfaces to the power grid through the series transformer. The power flow of the transmission line can be regulated by adjusting the magnitude and phase angle of the voltage injected by series MMC [1, 2].

Fig. 2
figure 2

System structure of UPFC

3 Harmonic spectra of MMC based on NLM

3.1 Basic principle of NLM

At present, the NLM is the most commonly used modulation technology for MMC, whose basic principle can be elaborated as follows [7]:

According to the operating principle of MMC, the number of SMs which are put into operation at every switch cycle should always be N (N is number of the SMs in the single arm). u ref is the modulation voltage, V C is the capacitor voltage of single SM.

With the increase of the instantaneous value of u ref , the number of SMs which are put into operation in the lower arm should increase, and the number of SMs which are put into operation in the upper arm should decrease at the same time. Consequently, the output voltage would increase. At every switch cycle, the numbers of SMs which are put into operation in the upper and lower arms can be determined according to (1).

$$ \left\{ \begin{aligned} n_{p} = \frac{N}{2} - \left[ {\frac{{u_{ref} }}{{V_{C} }}} \right],\;0 \le n_{p} \le N \hfill \\ n_{n} = \frac{N}{2} + \left[ {\frac{{u_{ref} }}{{V_{C} }}} \right],\;0 \le n_{n} \le N \hfill \\ \end{aligned} \right. $$
(1)

where n p is the number of SMs which are put into operation in the upper arm; n n is the number of SMs which are put into operation in the lower arm; [x] is the integer which is the closest to x.

Theoretically, the error between the output voltage and the instantaneous value of the modulation voltage can be controlled within ±V C /2.

3.2 Analysis on the output voltage harmonics of MMC

Assume that the modulation voltage of phase j (which is denoted by u ref j , and j represents a, b and c) is the sinusoidal wave and can be expressed as

$$ u_{ref\,j} = U_{m} \sin \;\omega t $$
(2)

where U m is the peak value of the modulation voltage.

According to the definition given in [2], the voltage modulation ratio m can be expressed in (3).

$$ m = \frac{{U_{m} }}{{\frac{1}{2}U_{dc} }} $$
(3)

where U dc is the dc bus voltage.

Assume each SM has the same capacitor voltage, then

$$ U_{dc} = NV_{c} $$
(4)

Hence, the following expression can be obtained.

$$ u_{ref\,j} = \frac{mN}{2}V_{C} \sin \;\omega t $$
(5)

Then the numbers of SMs which are put into operation in the upper and lower arms of the j phase unit are

$$ \left\{ \begin{aligned} n_{pj} = \frac{N}{2} - \left[ {\frac{mN}{2}\sin \;\omega t} \right],\;0 \le n_{pj} \le N \hfill \\ n_{nj} = \frac{N}{2} + \left[ {\frac{mN}{2}\sin \;\omega t} \right],\;0 \le n_{nj} \le N \hfill \\ \end{aligned} \right. $$
(6)

Hence, the output voltage of phase j is

$$ u_{vj} = \frac{{u_{nj} - u_{pj} }}{2} = \left[ {\frac{mN}{2}\sin \omega t} \right]V_{C} = KV_{C} $$
(7)

where u pj and u nj are respectively the upper arm voltage and lower arm voltage of the phase j unit; K is the integer and satisfies the following condition:

$$ K - \frac{1}{2} < \frac{mN}{2}\sin \;\omega t \le K + \frac{1}{2} $$
(8)

Taking the MMC with 11 voltage levels for example, Fig. 3 depicts the modulation voltage and the output voltage of MMC.

Fig. 3
figure 3

Modulation voltage and output voltage of MMC

In Fig. 3, K max is the number of the voltage levels in the first quarter period (for the MMC with 11 voltage levels, K max should be 5). The electrical angles of each voltage level are respectively denoted by θ 1,…,θ K ,…,θ Kmax .

According to (8), (9) can be obtained.

$$ - \frac{mN}{2} - \frac{1}{2} \le K < \frac{mN}{2} + \frac{1}{2} $$
(9)

Meanwhile, K should satisfy the following condition:

$$ - \frac{N}{2} \le K \le \frac{N}{2} $$
(10)

Since it is an integer, K max should be

$$ K_{max} = \min\left( {\left\lfloor {\frac{m \cdot N}{2} + \frac{1}{2}} \right\rfloor \;,\;\,\frac{N}{2}} \right) $$
(11)

where \( \left\lfloor x \right\rfloor \) is the largest integer that smaller than x, and min (a,b) is to obtain the smaller one of a and b.

Besides, θ K should satisfy the following expression.

$$ K - \frac{1}{2} = \frac{mN}{2}\sin (\theta_{K} ),\;\;\;K = 1,2, \cdots ,K_{max} $$
(12)

Hence,

$$ \theta_{K} = \arcsin \left( {\frac{2K - 1}{m \cdot N}} \right)\,,\;\;\;K = 1,2, \cdots ,K_{max} $$
(13)

Moreover, apply Fourier decomposition to the output voltage of MMC, and (14) can be obtained.

$$ u_{vj} = a_{0j} + \sum\limits_{s = 1,2, \cdots } {[a_{sj} \cos (s\omega t) + b_{sj} \sin(s\omega t)]} $$
(14)

As Fig. 3 shows, output voltage of MMC is odd symmetry, subsequently,

$$ a_{s} = 0,\;\;s = 0,1,2, \cdots $$
(15)
$$ b_{s} = 0,\;\;s = 2,4,6 \cdots $$
(16)
$$ \begin{array}{ll} b_{s} = \frac{8}{T}\int_{0}^{{\frac{T}{4}}} {u_{vj} \sin (s\omega t){\text{d}}t} = \hfill \\ \;\;\;\;\;\;\frac{8}{\omega T}\sum\limits_{K = 1}^{{K_{max} }} {\int_{{\theta_{K} }}^{{\theta_{K + 1} }} {KV_{c} \sin (s\theta ){\text{d}}\theta } } ,\;s = 1,3,5, \cdots { = } \hfill \\ \;\;\;\;\;\;\frac{{4V_{c} }}{\pi }\frac{1}{s}\sum\limits_{K = 1}^{{K_{max} }} {\cos (s\theta_{K} )} \hfill \\ \end{array} $$
(17)

where \( \theta_{{K_{max} { + 1}}} = \pi /2 \).

Hence, the output voltage of MMC can be expressed by

$$ u_{vj} = \frac{{4V_{c} }}{\pi }\sum\limits_{s = 1,3, \cdots } {\left[ {\frac{1}{s}\sum\limits_{K = 1}^{{K_{max} }} {\cos (s\theta_{K} )} } \right]} \cdot \sin(s\omega t) $$
(18)

It can be found that there are odd harmonics, but no even harmonic in the output voltage of MMC. Moreover, the content of each harmonic can be calculated with (19).

$$ Hu_{vj} (s) = \frac{{\frac{1}{s}\sum\limits_{K = 1}^{{K_{max} }} {\cos (s\theta_{K} )} }}{{\sum\limits_{K = 1}^{{K_{max} }} {\cos (\theta_{K} )} }}\;\quad s = 3,5,7, \cdots $$
(19)

4 Harmonic analysis of UPFC

Since the output voltage of the shunt MMC in UPFC is always close to the rated value, and the voltage modulation ratio is close to 1.0, the harmonics in the output voltage of the shunt MMC and their influence on the power grid are very small. Hence, the harmonics in the output voltage of the shunt MMC is not discussed here.

In order to study the influence of the series MMC in UPFC on the harmonics of the power grid, Fig. 4 gives the equivalent circuit of the power grid with UPFC.

Fig. 4
figure 4

The equivalent circuit of the power grid with UPFC

In Fig. 4, the series part of UPFC (consists of series MMC and series transformer) is entirely represented by the equivalent voltage source e v which is series-connected in the transmission line MN at Bus M. The equivalent system sources at the two terminals are represented by e m and e n , the equivalent inductances of the two voltage sources are respectively denoted by L m and L n . Besides, the resistance of the transmission line MN is ignored since it is very small, and the inductance is L l .

It can be obtained from Fig. 4 that

$$ e_{m} = e_{v} + e_{n} + \frac{{(L_{m} + L_{l} + L_{n} ){\text{d}}i}}{{{\text{d}}t}} $$
(20)
$$ \left\{ \begin{aligned} u_{n} = e_{n} + L_{n} \frac{{{\text{d}}i}}{{{\text{d}}t}} \hfill \\ u_{m} = e_{m} - L_{m} \frac{{{\text{d}}i}}{{{\text{d}}t}} \hfill \\ \end{aligned} \right. $$
(21)

Accordingly, the voltages of Bus M and Bus N which are denoted by u m and u n are respectively:

$$ \left\{ \begin{aligned} u_{n} = \frac{{e_{m} L_{n} + e_{n} (L_{m} + L_{l} )}}{{L_{m} + L_{l} + L_{n} }} - \frac{{L_{n} }}{{L_{m} + L_{l} + L_{n} }}e_{v} \hfill \\ u_{m} = \frac{{e_{m} (L_{l} + L_{n} ) + e_{n} L_{m} }}{{L_{m} + L_{l} + L_{n} }} + \frac{{L_{m} }}{{L_{m} + L_{l} + L_{n} }}e_{v} \hfill \\ \end{aligned} \right. $$
(22)

Moreover, the equivalent circuit of the series transformer in UPFC is given in Fig. 5.

Fig. 5
figure 5

Equivalent circuit of the series transformer

In Fig. 5, u v is the output voltage of the series MMC, e p is the voltage of the series transformer’s primary winding. e p  = ku v , and k is the turns ratio of the series transformer. L T and L Tm are respectively the equivalent leakage inductance and magnetic inductance of the series transformer.

Hence, the detailed equivalent circuit of the power grid with UPFC is depicted in Fig. 6.

Fig. 6
figure 6

The detailed equivalent circuit of the power grid with UPFC

By replacing L l and e v in (22) respectively with L l +L T and ku vj , the following expression can be obtained.

$$ \left\{ \begin{aligned} u_{n} = \frac{{e_{m} L_{n} + e_{n} (L_{m} + L_{l} + L_{T} )}}{{L_{m} + L_{l} + L_{T} + L_{n} }} - \frac{{L_{n} }}{{L_{m} + L_{l} + L_{T} + L_{n} }}k \cdot u_{vj} \hfill \\ u_{m} = \frac{{e_{m} (L_{l} + L_{T} + L_{n} ) + e_{n} L_{m} }}{{L_{m} + L_{l} + L_{T} + L_{n} }} + \frac{{L_{m} }}{{L_{m} + L_{l} + L_{T} + L_{n} }}k \cdot u_{vj} \hfill \\ \end{aligned} \right. $$
(23)

It can be found that u m and u n both consist of two parts. The first parts are fundamental frequency components and only related to the equivalent system sources. The second parts are related to the output voltage of the series MMC. Hence, there are also odd harmonics in u m and u n .

Rewrite (23) in the following forms:

$$ \left\{ \begin{aligned} u_{n} = A_{n} \sin (\omega t + \varphi_{n} ) + B_{n} \cdot u_{vj} \hfill \\ u_{m} = A_{m} \sin (\omega t + \varphi_{m} ) + B_{m} \cdot u_{vj} \hfill \\ \end{aligned} \right. $$
(24)

where A n , φ n , A m and φ m can be determined by applying triangular calculation to the first parts of u m and u n . B n and B m satisfy the following conditions.

$$ \left\{ \begin{array}{ll} B_{n} = - \frac{{L_{n} k}}{{L_{m} + L_{l} + L_{T} + L_{n} }} \hfill \\ B_{m} = \frac{{L_{m} k}}{{L_{m} + L_{l} + L_{T} + L_{n} }} \hfill \\ \end{array} \right. $$
(25)

According to (17), (18) and (24), the harmonic contents in u m and u n can be calculated with (26).

$$ \begin{aligned} \left\{ \begin{aligned} Hu_{n} (s) = \frac{{B_{n} b_{s} }}{{\sqrt {A_{n}^{2} + 2A_{n}^{{}} b_{1} B_{n} \cos \varphi_{n} + \left( {b_{1}^{{}} B_{n} } \right)^{2} } }} \hfill \\ Hu_{m} (s) = \frac{{B_{m} b_{s} }}{{\sqrt {A_{m}^{2} + 2A_{m}^{{}} b_{1} B_{m} \cos \varphi_{m} + \left( {b_{1}^{{}} B_{m} } \right)^{2} } }} \hfill \\ \end{aligned} \right.\quad \hfill \\ s = 3,5,7, \cdots \hfill \\ \end{aligned} $$
(26)

5 Simulation analysis

5.1 Output voltage harmonics of MMC

For different voltage modulation ratios, Fig. 7 demonstrates the harmonic contents in the output voltage of MMC, whose orders are not larger than 51. It is noted that N = 26, U dc  = 40 kV.

Fig. 7
figure 7

Output voltages of MMC and the harmonic contents

Besides, for different SM numbers, the relationship between the total harmonic distortion (THD) in the output voltage of MMC and the voltage modulation ratio m is given in Fig. 8.

Fig. 8
figure 8

Relationship between THD of output voltage and modulate ratio

According to the results shown in Fig. 7 and Fig. 8, the following conclusions can be drawn.

  1. 1)

    There are odd harmonics in the output voltage of MMC.

  2. 2)

    If m ≤ 1.0, with the increase of m, the harmonic contents would decrease. When m reaches to 1.0, the harmonic contents are the smallest. If m > 1.0, the harmonic contents would increase greatly.

  3. 3)

    With the increase of N, the harmonic contents in the output voltage of MMC would decrease. However, if N is larger than 20, with the increase of N, the improvement of the harmonic contents would be not that significant.

5.2 Harmonic analysis of the power grid with UPFC

The parameters of the components in Fig. 6 are: L m  = 0.1 H, L n  = 0.2 H, L l  = 0.02 H, L T  = 0.5 H, k = 26.5/20.8 kV, e m  = 127sin(ωt+0.175) kV, e n  = 127sin ωt kV.

For N = 26 and U dc  = 40 kV, the waveforms of u m and u n , as well as their harmonic contents with different voltage modulation ratios are depicted in Fig. 9 and Fig. 10. Besides, for different SM numbers, the relationships between the THD of u m , u n and the voltage modulation ratio m are given in Fig. 11.

Fig. 9
figure 9

Bus voltages and harmonic contents (m = 0.8)

Fig. 10
figure 10

Bus voltages and harmonic contents (m = 0.4)

Fig. 11
figure 11

Relationships between THD of bus voltages and modulate ratio

Based on the results shown in Fig. 9, Fig. 10 and Fig. 11, the following conclusions can be drawn.

  1. 1)

    There are odd harmonics in the bus voltages, related to the odd harmonics in the output voltage of MMC.

  2. 2)

    If m < 1.0, with the increase of m, the harmonic contents decreases slightly. When m reaches to 1.0, the harmonic contents are the smallest. If m > 1.0, the harmonic contents would increase greatly with the increase of m.

  3. 3)

    With the increase of N, the harmonic contents in the bus voltages would decrease. However, if N is larger than 20, with the increase of N, the improvement of the harmonic contents would be not that significant.

5.3 Simulation results

The simulation model of the power grid with UPFC is built using PSCAD/EMTDC, where N = 26, U dc  = 40 kV, and NLM is adopted. Besides, the parameters of the power grid are configured according to a practical UPFC project.

With different voltage modulation ratios, Fig. 12 shows the comparison of the theoretical results and simulation results of the series MMC’s output voltage, and Fig. 13 demonstrates the comparison of the theoretical results and simulation results of the system voltage.

Fig. 12
figure 12

Output voltages of series MMC and the harmonic contents

Fig. 13
figure 13

System voltage and harmonic contents

It can be found that the simulation results about the harmonic contents of the series MMC’s output voltage and the system voltage agree with the theoretical results rather well, which validate the effectiveness of the proposed theoretical analysis method.

6 Influence factors of harmonics in the power grid and countermeasures

6.1 Influence analysis of UPFC on harmonics

It can be found from the above analysis that the harmonics of the power grid caused by MMC-UPFC are related to the SM number, voltage modulation ratio, rated dc bus voltage of UPFC, and the AC system parameters.

  1. 1)

    Influence of the AC system voltage

    According to (23), the smaller the voltage of the AC system is, the larger the influence of UPFC on the harmonics of the power grid is. In order to validate the theoretical analysis result, Table 1 shows the relationship between the AC system voltage and the maximum harmonic content, THD in the bus voltage of the power grid. It is noted that m = 0.5, U dc  = 40 kV, and N = 20.

    Table 1 Maximum harmonic content and THD under different AC system voltages
  2. 2)

    Influence of rated dc bus voltage of UPFC

    For the same SM number, with the increase of the rated dc bus voltage of UPFC, the single SM’s capacitor voltage would also increase. Hence, the number of the output voltage levels would decrease when the voltage modulation ratio is small. In this context, the influence of UPFC on the bus voltage harmonics of the power grid would be larger with the increase of the rated dc bus voltage of UPFC. Table 2 shows the relationship between the rated dc bus voltage of UPFC and the maximum harmonic content, THD in the bus voltage of the power grid. It is noted that m = 0.5, U ac  = 220 kV, and N = 20.

    Table 2 Maximum harmonic content and THD under different rated dc bus voltages
  3. 3)

    Influence of AC system parameters

    As shown in (23), the influence of UPFC on the harmonics of the power grid would increase with the decrease of the short circuit capability of the AC system. In order to validate the theoretical analysis result, Table 3 shows the relationship between L n and the maximum harmonic content, THD in the bus voltage of the power grid. Noted that m = 0.5, U ac  = 220 kV, U dc  = 40 kV and N = 20.

    Table 3 Maximum harmonic content and THD with different L n

From the above theoretical analysis and simulation study, it can be found that if the AC system voltage is rather high, its influence on the harmonics in the bus voltage of the power grid is rather small and can be ignored. If the rated dc bus voltage of the UPFC is large, or the short circuit capability of the AC system is weak, the influence of UPFC on the bus voltage harmonics of the power grid is relatively larger, which should be taken into consideration for the UPFC project design and operation. Meanwhile, special countermeasures should be taken to improve the power quality of the power grid.

6.2 Countermeasures

In order to reduce the influence of the MMC-UPFC on the harmonics of the power grid, some special countermeasures are presented, such as optimizing the planning and design of the UPFC project, as well as improving the control scheme of UPFC.

  1. 1)

    During the planning and design stage of the UPFC project, the access point of UPFC, AC system voltage and UPFC parameters (such as rated dc bus voltage and SM number) should be chosen reasonably. Moreover, the filters should be installed when necessary, though the investment would increase.

  2. 2)

    If the voltage modulation ratio is small, the number of the output voltage levels would decrease, which increase the harmonic contents. In order to address the above issue, improved control scheme of UPFC should be adopted. For example, the coordinate control of the series MMC and shunt MMC should be implemented, to improve the number of output voltage levels by reducing the single SM’s capacitor voltage. Moreover, the margin of the voltage modulation ratio, redundant SMs and on-load tap regulation switch of the shunt transformer should be employed to increase the number of the output voltage levels. The above improved control scheme of UPFC would not increase the investment, and can improve the control and operation feasibility of UPFC.

The advantage of increasing number of output voltage levels on the harmonic suppression is analyzed as follows.

If N = 30, U dc  = 40 kV, then the single SM’s capacitor voltage U sm should be 1.33 kV. Assuming m = 0.8, the peak value of the output voltage of the shunt MMC is

$$ U_{acP} = m\frac{{U_{dc} }}{2} = 20 \times 0.8 = 16\;{\text{kV}} $$
(27)

On condition that the output voltage of the shunt MMC keeps constant, the following expressions can be obtained.

$$ \left\{ \begin{array}{ll} U_{dc} = 2\frac{{U_{acP} }}{m} = 2U_{acP} = 32\;{\text{kV}} \hfill \\ U_{sm} = \frac{{2U_{acP} }}{{N_{e} }} = 1.067\;{\text{kV}} \hfill \\ \end{array} \right. $$
(28)

It can be found that U sm reduces to be 1.067 kV.

Furthermore, if the redundant SMs whose number is 5 are put into operation, U sm would reduce to be 0.914 kV, as given in (29):

$$ U_{sm} = \frac{{2U_{acP} }}{{N_{e} + N_{red} }} = 0.914\;{\text{kV}} $$
(29)

where N red is the number of the redundant SMs.

For the different AC system voltages, the numbers of the output voltage levels with and without reducing single SM’s capacitor voltage are given in Table 4.

Table 4 The level numbers with different AC system voltage

It can be found that with reducing single SM’s capacitor voltage, the number of the output voltage levels can be increased to reduce the harmonics injected by UPFC.

7 Conclusion

According to the operation of MMC-UPFC, the harmonics of the MMC-UPFC is studied in this paper. Based on the harmonic features of MMC and equivalent circuit of the power grid with UPFC, the harmonic spectra analysis method of the power grid is studied. Moreover, the influence of SM number, voltage modulation ratio, and AC system voltage on the harmonics of the power grid are analyzed. The effectiveness of the proposed analysis method is validated using PSCAD/EMTDC simulation. Finally, the countermeasures which can help to suppress the harmonics in the power grid are presented. The study results of this paper can provide guideline for the design and operation of the UPFC project.