1. Introduction
Among the Flexible AC Transmission Systems (FACTSs), there is the so-called Unified Power Flow Controller (UPFC), which is considered one of the most flexible converters to control and optimize the power flow in transmission lines combining interesting characteristics that are typical for FACTS equipment made with shunt and series converters. Thanks to these features, a UPFC can regulate, at the same time, the voltage and phase angle and operate series compensation. Thus, with a UPFC, the transmission line can be compensated with active and reactive power independently controlled [
1], and it is possible to increase the power flux up to the thermal limit of a critical bond line without having a reduction in the stability margin.
Figure 1 shows a schematic diagram of a UPFC consisting of two Voltage Source Converters (VSCs). As can be seen, one VSC is connected in series to the connection line between the sending bus coming from a generator and the transmission line through a transformer (T1), while the other VSC is connected in shunt to the line through another transformer (T2). The DC output of the shunt VSC is connected to the DC input of the series converter. As usual, the DC voltage of this bus is kept constant with the support of a special capacitor bank.
The series converter, the so-called Static Synchronous Series Compensator (SSSC), takes care of controlling the amplitude and angle of the voltage added in series with the line, thus modulating the real and reactive power exchanged with the line. The reactive power is generated by this inverter, while the real power comes from the DC bus. The independent control of the active and reactive powers flowing through the transmission line is permitted precisely because the controlled voltage is applied in series to the bus in question. This characteristic of being able to control the flow of power in the desired quantity brings clear advantages to power system managers. For example, it facilitates decreases in the power flow of an overloaded line, thus mitigating the problem of congestion of the power distribution system.
Instead, the shunt converter draws the real power needed by the series converter from the line between the sending bus and the transmission line. Of course, the shunt inverter also exchanges reactive power with the sending bus, but this may not be controlled. The shunt converter is responsible for regulating both the UPFC bus voltage (generating the appropriate amount of reactive power) and the voltage across the DC-link capacitor [
2].
A UPFC can operate in several modes. Among these, there is the automatic power flow (
P and
Q) control. In this mode, the reactive current is automatically regulated, applying a droop control with a defined characteristic. Then, once the reference values of active and reactive power (
Pref,
Qref) are set, the series converter regulates them [
1]. This feature of the UPFC makes it very interesting for use in modern microgrids where droop control is widely used [
3] to facilitate load sharing among different sources, enable stable operation in islanded mode, and enhance resilience and stability by providing a decentralized control mechanism.
In this work, we will focus on the voltage control mode of the shunt converter and the automatic power flow operation mode of the series converter. We will consider both stationary and dynamic conditions.
In the literature, UPFCs have traditionally been used to improve power quality issues such as harmonic distortion, even without passive filters [
4]. The authors of [
5] present a new sensitivity analysis index that uses a genetic algorithm to find the optimal size and location of the UPFC to improve the distribution system’s power quality characteristics, as tested on the IEEE 14-bus network. The results reveal that active and reactive power losses are reduced by 55% and 11%, respectively, while total harmonic distortion (THD) decreases from 27.12% when the UPFC is not utilized to 11.11% when it is installed. Furthermore, ref. [
6] investigates the impact of a modular multilevel converter (MMC)-based UPFC on power grid harmonics when the MMC is modulated using the nearest level modulation (NLM) technique and operated with various sub-module numbers and voltage modulation ratios. Moreover, ref. [
7] recommends using a 48-pulse gate turn-off (GTO) thyristor-based UPFC to reduce THD in the transmission line. The implemented solution reduces grid current THD from 43.93% without UPFC to 1.81% with UPFC. In addition, the authors of [
8] suggest a UPFC system for THD reduction in a 20 MW grid-connected wind farm. The THD at various nodes in the system is tested, and the findings reveal that at one node, the voltage THD decreases from 29.21% without the UPFC to 2.54% with the UPFC.
At the device level, the UPFC is often composed of multi-level inverters (MLIs), which are utilized to enhance power while decreasing the harmonics of AC-side converter waveforms. Compared to the traditional two-level VSIs, the stepwise output voltage is the major advantage of MLIs. However, one of the most difficult challenges in the field of MLIs is calculating the optimal switching/conduction angles for power switches so that low-order harmonics are eliminated in the output signal waveforms [
9]. Nature-inspired algorithms such as Particle Swarm Optimization (PSO), the Bee Algorithm (BA), the Genetic Algorithm (GA), Ant Colony Optimization (ACO), and others are commonly used to solve complex, non-linear, and transcendental equations, resulting in selective harmonic elimination (SHE) for THD minimization. The authors of [
10] employ the Moth Flame Optimization (MFO) technique to determine the optimal switching angles of an 11-level cascaded H-bridge MLI so as to reduce the THD of the converter output voltage waveform. In [
11], GA optimization is used to determine the optimal switching angles for a seven-level Nested Neutral Point Clamped (NNPC) converter to minimize THD in the output voltage waveform. The authors of [
12] present a technique for minimizing THD in a seven-level cascaded H-bridge MLI with resistive load using the Teaching–Learning-Based Optimization (TLBO) algorithm, demonstrating that this optimization technique outperforms previous strategies such as the GA. In [
13], the Marine Predator Algorithm (MPA) is proposed for solving transcendental non-linear equations in a selective harmonic elimination technique to obtain optimum switching angle values to control a three-phase 11-level cascaded H-bridge MLI. They claim that the proposed algorithm is more efficient and accurate than other algorithms like TBLO, hybrid-PSO, and the Flower Pollination Algorithm (FPA). Reference [
14] uses Artificial Neural Networks (ANNs) to generate optimum switching angles for the elimination of undesirable lower-order harmonics to minimize the THD in both five-level and seven-level cascaded H-bridges. In [
15], the authors use the Whale Optimization Algorithm (WOA) for SHE in a single-phase 11-level inverter to find the optimal conduction angles that minimize the THD. The WOA produces better results than other algorithms like PSO and the Firefly Algorithm (FA) in terms of inverter performance, convergence rate, and computational overhead.
As illustrated above, it is important to choose the optimal harmonic component (
m) and conduction angle (
σ) of the MLI to achieve the minimum THD in the design of the UPFC VSI. In [
16],
m is selected with a specific value for a three-level NPC-based MLI, but there is no detailed clarification about this choice. Hence, here, we propose an optimal
m-tracking system to minimize the THD with an optimal value of
m. The goal is to generate an
m value in the range of 2 to 120, along with the corresponding THD at a 60 Hz fundamental frequency. The
m value is only changed when the THD reaches saturation by calculating the difference between two consecutive samples (ΔTHD) under a certain threshold, where the THD at that
m remains almost the same. At the next stage, a function is applied to track the minimum THD and its corresponding
m. These values are utilized in simulations of the Static Synchronous Compensator (STATCOM) and SSSC. This configuration produces a near-sinusoidal output voltage.
This paper is organized as follows: First, the six-step modulation of a three-level Neutral Point Clamped (NPC) converter will be performed, followed by a transformer arrangement to form a 48-pulse VSC. Then, the proposed algorithm for THD minimization by optimal m tracking is described. Next, the STATCOM modeling and simulations are shown. Following that will be the open-loop simulation of the SSSC, after which the model of the whole UPFC with the closed loop will be implemented in the ways already outlined, and then we conclude the work.
2. Power Converter Design
2.1. Power Topology
The three-level NPC power converter can achieve a three-level phase-to-neutral voltage to generate a sinusoidal voltage of higher quality. The more sinusoidal nature of the three-level NPC is due to an increase in levels which reduces the harmonic issue that relieves the dependency on the filter. Moreover, the use of such multilevel converters increases the efficiency of the conversion process, as all devices are switched at the fundamental grid frequency [
17].
The schematic representation of the diode-clamped three-level inverter is shown in
Figure 2. The DC-bus voltage includes three levels of two series-connected bulk capacitors,
C1 and
C2. If
Vdc is the voltage of the DC bus, the output voltage,
Van, can assume three levels,
Vdc/2, 0, and −
Vdc/2, when the switch pairs S
1a and S
2a, S
2a and S
1b, and S
1b and S
2b are switched ON, respectively. The output voltage phase-neutral waveform for one of the phases is shown in
Figure 3.
From the Fourier analysis of the waveform in
Figure 3 [
18], the RMS value of the
m-th order odd harmonic of the VSC output voltage is given by Equation (1), while the general formulation used to compute the conduction angle (
σ) of the three-level inverter as defined by [
16] is given by Equation (2):
where
m is the order of the harmonic components.
For example, if we set
σ = 172.5° (corresponding to a zero-vector angle of 3.75°), inverting Equation (2), we obtain
m = 24 and the 23rd and 25th harmonic components are negligible. This arrangement creates a nearly sinusoidal output voltage because the lowest significant harmonic component is the 47th one [
16]. This will be demonstrated with a new algorithm.
From Equation (1), we can observe that the magnitude of the output voltage can be changed by varying the sigma angle while keeping the DC-link voltage constant. This principle will come in handy for the STATCOM control.
2.2. Modulation
The modulation is designed with a six-step operation. It can be carried out using either indirect control, where the sigma angle shown in
Figure 3 is fixed, or direct control, where the sigma angle is variable. In the indirect control, the DC-link voltage is made to vary, while in the direct control, the sigma angle is varied to vary the converter output voltage by keeping the DC-link voltage constant.
In this work, the indirect control modulation strategy was chosen for the STATCOM, while the direct control approach was used for the SSSC.
The MATLAB-Simulink 2022b implementation of the six-step modulation is carried out using the switching sequence shown in
Figure 3, and a MATLAB script is written to execute this.
Figure 4a shows the block diagram of the subsystem implemented in Simulink to obtain the three-level converter waveforms. Here, each leg of the inverter is implemented with a MATLAB function, receiving two parameters, which are the theta value from the phase-locked loop (PLL) block, which has a sinusoidal phase voltage of the grid as input, and another angle called
phi, which is just half the zero-angle value. For example, in
Figure 4a, the phi angle is set to 30°.
Vdc can be set to a variable saved in the Workspace of MATLAB. Outside each function block of a phase leg, a phase shift of 120° is set. Then, each phase voltage of the VSC output is phase-shifted from the other phase voltage by 120°.
Figure 4b shows the flow chart of the program implemented in each of the function blocks shown in
Figure 4a to generate the PWM signals of each of the switches in each phase leg. In
Figure 4b,
x = 1, 3, 5 while
y = 2, 4, 6, which are used to denote the various switches according to both
Figure 2 and
Figure 4a.
2.3. Forty-Eight-Pulse Voltage Source Converter
In the previous part, a three-level NPC converter with a six-step (or six-pulse) modulation was designed at the switching frequency of 60 Hz. Nevertheless, the goal is to accomplish a 48-pulse voltage at the converter output. The NPC converter provides another step in the voltage (three levels), so only four converters are required to have 48 pulses [
19].
Figure 5 shows the configuration used to obtain the 48-pulse VSC. As can be seen from the figure, to produce a 48-pulse VSC, there is an establishment between four three-level diode-clamped multilevel inverters with a specific phase shift between them. Each three-level bridge generates a voltage on the secondary windings of four different Phase-Shifting Transformers (PSTs).
There are two 1:1-turn-ratio transformers with a wye configuration at the primary side, the other two with a turns ratio equal to 1:√3, and a Δ primary configuration. The PSTs’ secondary windings are in series and the proper pulse pattern angles as shown in
Figure 5. The secondary windings of the PST at the bottom of
Figure 5 are wye-connected, and the other PSTs’ secondary windings are connected in series between them. This way, on the secondary side, we have a wye configuration composed of three branches, each made by four windings in series [
16].
By combining four three-level VSCs to obtain a 4 × 6-pulse converter, as seen in
Figure 5, the PST number required is decreased to half of that needed in a traditional 48-pulse operation. Moreover, this combined multi-level and multi-pulse topology also has the added advantage that it produces significantly less THD compared to that of a traditional 48-pulse inverter, with the selective elimination of the 23rd and 25th harmonics, as shown in
Section 2.1, setting an optimum sigma angle of 172.5° and phi equal to 3.75°.
Figure 6a shows the phase-A-to-neutral voltages of the four three-level diode-clamped inverters, while
Figure 6b shows the three-phase generated voltages.
Figure 6c depicts the series of harmonic amplitudes from an FFT analysis.
Figure 6d shows how the harmonic distortion obtained with the Multi-Pulse Converter (MPC) compares to that obtained with the NPC topology. We see that the steady-state THD of the MPC over the simulation time is 3.78%, which is far less than that of the NPC (43.28%). This shows the benefit of the MPC topology in improving power quality by drastically reducing the THD of the voltage and current waveforms.
The excessive harmonics generated by the NPC converter into the power system increase the power losses and thermal stress on the equipment, reduce the utilization of the electric energy, disrupt control systems, interfere with communication systems, affect the electromagnetic torque of motors and generators, may cause unwanted resonant conditions, and may cause the malfunctioning of system or plant equipment. Although both passive and active filters can be employed to eliminate undesired harmonic effects on the AC side of the converter, passive filters cause delays in system response and suffer from resonance concerns, and active filters have a high starting cost, particularly in high-power applications. The usage of MPC topologies mitigates most, if not all, of the difficulties raised by the NPC due to its very low harmonic content.
2.4. Algorithm for THD Minimization by Optimal m Tracking
From Equation (2), the m value must be appropriately monitored to reach an optimum conduction angle for obtaining the least THD.
In the proposed algorithm, a comparison between two consecutive samples of THD (ΔTHD) is considered. Once ΔTHD does not show any significant variation in a specific number of samples, m will change its value. This way, the THD will be examined based on the variation of the m value.
There are two thresholds to set up:
ΔTHDthres, which is a desired tolerance, indicating where the change in THD between two consecutive samples over time is smaller than it, which means their values are almost the same.
A counter (C) indicates the repetition number of ΔTHD < ΔTHDthres and a counter threshold (Cthres) is utilized to change the m value. Once C reaches Cthres, it will be reset to 0 automatically. Algorithm 1 shows the pseudocode for changing the value of m.
Algorithm 1 m tracking |
1: if ΔTHD < ΔTHDthres 2: C+ = 1 3: end if 4: if C = Cthres 5: m+ = 1 6: C = 0 7: end if |
For instance, given a threshold Cthres of 20,000 and a tolerance ΔTHDthres = 0.001, m will automatically increase by 1 if, after 20,000 sampling periods, the change in THD is still less than 0.001.
Once THD as a function of
m has been obtained, it is then possible to search its absolute minimum value, identifying the optimum value of the harmonic number (
mopt). In the Algorithm 2, the minimum THD and its index are detected, and then the value of
m is evaluated at the detected index.
THDmin and
mopt are then the last values at the end of the iterative process.
Algorithm 2 Identification of the optimal m |
1: THDmin = min(THD) 2: Indexmin = find(THD == THDmin) 3: mmin = m(Indexmin) |
Figure 7a shows a block diagram of the optimal m-finding algorithm, which has been explained above, while
Figure 7b illustrates how this algorithm has been implemented in MATLAB-Simulink.
Figure 7c shows the relationship between the THD and the corresponding harmonic number (
m). We can then use this figure to determine the optimum
m and the least THD as
mopt = 24 and
THDmin = 0.0378, respectively. Then, setting
m = 24 gives a conduction angle of 172.5°, which produces a near-sinusoidal signal.
3. STATCOM Modeling
The parameters used for implementing the UPFC are taken from a real scenario discussed in [
20]. They are summarized in
Table 1 and used to test the models of the STATCOM and SSSC.
3.1. STATCOM Operation
The STATCOM is a piece of shunt-connected reactive compensation equipment that is utilized to generate and/or absorb reactive power and whose output can be varied to maintain control over specific parameters of the electric power system. Its connection with the system to control and the equivalent circuit to study the power flows are shown in
Figure 8.
The equations of mathematically modeling the system powers are as follows [
21]:
where
α is the phase angle of
VBUS with respect to
VO, and
X is the reactance of the coupling transformer.
When the voltage (Vo) generated by the VSI is in phase with VBUS (α = 0), only reactive power can flow between the VSI and the grid (P = 0). If Vo is lower than VBUS, Q flows from the grid to the VSI (STATCOM absorbs reactive power). In contrast, if Vo is higher than VBUS, Q flows from the VSI to the grid (STATCOM generates reactive power).
In an ideal lossless power converter,
Vo is controlled to be in phase with
VBUS; then, the real power does not circulate, and a real power source is not required. Actually, beyond the one to exchange between the AC line and the DC bus, a small part of real power is also derived from the line to provide the converter losses [
17].
When a DC source such as a battery of an energy storage device is connected to the DC side of a STATCOM, it can supply real power to the AC side. This can be carried out by changing the phase angle of the voltage at the AC side of the STATCOM terminal and then the phase angle of the AC power line. When the VSI phase angle is led by one of the AC power lines, the STATCOM absorbs real power from the AC line, whereas when there is a lag between these angles, the STATCOM supplies real power to the AC line.
3.2. STATCOM Model
The model of the STATCOM connected to the grid and the DC bus is shown in
Figure 9. Here, a resistance to take into account the power losses is added in series with the reactance related to the leakage inductance of the shunt transformer and the stray inductances of the electrical connections. This model is then implemented in MATLAB-Simulink 2022b.
As mentioned in
Section 1, our goal is to implement the STATCOM in voltage control mode. The control approach used here is indirect control. With it, only the phase angle of the output voltage is controllable, and the magnitude remains proportional to the DC-link voltage. However, the DC-link voltage can be varied by regulating the angular position of the output voltage. In this situation, real power is exchanged with the transmission line to charge or discharge the DC-link capacitor to the desired level [
22].
The control system is made up of two loops. An inner current loop generates the required converter angle, and an outer voltage loop is meant to regulate the bus voltage and generate the reactive current references for the current loop. The schematic diagram used to implement the current loop control is shown in
Figure 10.
Considering the Park reference frame, the magnitude of the quadrature current (ILq) is compared to the reference quadrature current (ILq*). Thus, the obtained error signal provides an angle (α), defining the essential phase shift between the converter output and the AC line voltages for changing (by charging or discharging the capacitor) the DC voltage level to the one needed. The phase-locked loop is driven by the AC system voltage, and it generates the fundamental synchronizing signal angle (θ). Angle θ1 = θ + α drives the logic circuit, which generates each gate logic signal to control the power switches of the converter.
It should be noted that the reference quadrature component (ILq*) of the current through the VSC could be either positive or negative if the STATCOM is emulating a capacitive or inductive reactance, respectively.
The tuning process of the PI controller in
Figure 10 depends on the transfer function linking the output angle to its input reactive current. A small signal analysis carried out in [
23] produces the input–output transfer function of Equation (5):
where
mc is the modulation index of the converter,
Ls is the leakage inductance of the coupling transformer,
Rs is the resistance related to the converter and coupling inductor losses (effective coupling resistance), and
C is the capacitance of the DC-link capacitor. The modulation index can easily be computed from Equation (1) by setting
m = 1. This is given in Equation (6):
where
Vo1 is the magnitude of the harmonic at the fundamental frequency of the phase voltage at the AC side of the STATCOM.
The DC-link capacitance value can be computed using Equation (7) derived from [
24]:
with
Irms given by Equation (8):
Using Equations (6)–(8), we obtain mc = 0.9, Irms ≅ 669.4 A, and C ≅ 1665 µF. The bandwidth of the PI controller is chosen to be 2 kHz.
Finally, the limiting range of
α has to be computed. This is carried out using Equations (9)–(11) obtained from [
25]:
where
p = the pulse number,
n = the primary-to-secondary transformer-winding-turns ratio, and
v1 = the fundamental AC output voltage of each set of three-level 24-pulse VSCs. Then, we can write that
and
Q is chosen to be ±1.2 pu (leading and lagging), considering a 0.2 pu margin during dynamic conditions.
The tuning of the PI controller is carried out using the SISO Toolbox of MATLAB. The results are shown in
Figure 11. We see that when a positive reactive current is demanded, the STATCOM supplies capacitive reactive power to the grid, as observed in the first 3 s of the responses. When the reactive current demand changes to a negative value, the STATCOM responds to that change and absorbs the reactive power from the grid, acting as an inductor in this case. We also see how insignificant the real power exchange is, at almost 0 W. The small, steady value of 60 W of active power seen in
Figure 11 is just that needed by the DC-link capacitor during its charge and discharge process, as was already explained before, and to supply losses in the VSC.
We also observe from
Figure 11 the change in the DC-link voltage of the STATCOM. This is necessary, since we are implementing the indirect control of the STATCOM, and we see from Equation (1) that the unique way to vary the converter output voltage when the zero angle is fixed is for the DC-link voltage to vary.
Next, the outer voltage loop, whose function is to control the bus voltage to a specific reference value and generate the reactive current reference for the power system, is designed. The block diagram used to do this is shown in
Figure 12.
The droop factor is chosen to be 0.03. Since the voltage loop is external to the current loop, it has to be slower. Consequently, the PI controller bandwidth chosen is 180 Hz. The transfer function used to represent the plant is defined as follows in Equation (12):
The tuning of the controllers is carried out using the zero-pole cancellation technique with different gains defined as
KP = 2
πfoL and
KI = 2
πfoR. A factor of
is added to the input of the error amplifier of
Figure 13. This factor smoothens out the waveform and increases the response time [
26].
Figure 13 shows the voltage control waveforms (top graph) of the STATCOM as well as the reactive current (bottom graph) being provided by the STATCOM. We observe that the STATCOM can regulate the bus voltage. However, the voltage regulation range is limited. Moreover,
Figure 13 shows that the STATCOM current controller can track the required reactive current generated by the voltage loop. As observed, the system possesses some disturbances within the first 0.08 s due to the filters used in the system and the bandwidth of the controllers chosen.
6. Conclusions
In this study, we successfully implemented a UPFC in a closed loop, where we were able to regulate the power flowing in the line using the SSSC and control the node voltage using the STATCOM. A tracking system was established to obtain the best value of the harmonic components, which led to the optimal value of the conduction angle for minimizing the THD. Furthermore, the VSCs of both controllers were built using a combined multilevel–multi-pulse converter, which improved the harmonic distortion of the output voltage waveforms. Finally, as has been seen, the UPFC can improve the voltage quality, power transmission capacity, and stability of the system by suppressing system oscillations. Also, the UPFC gives a quick system response. Furthermore, a harmonic analysis of the system current was performed, and it was found to meet the IEEE 519 standard.
The AC power grid is constantly stressed due to increased load demands, which may cause it to perform beyond its initial capacity. Furthermore, when power system constraints are exceeded due to overload, transient stability concerns might emerge, resulting in system disturbances and grid operators’ incapacity to handle daily power demands. Such system disruptions create oscillations, which may result in asynchronous generator operation or even a partial system shutdown. These hazardous effects could be avoided by using FACTS devices that effectively and effortlessly control dynamic power across the AC power network. As a result, the deployment of FACTS devices to the AC grid will result in increased energy efficiency due to better energy utilization.
Future research areas in this field include, but are not limited to, lowering the cost of UPFC equipment, developing new cost-effective UPFC converter topologies and architectures with experimental validation, developing new UPFC control algorithms with reconfigurable architecture, developing wide-area-coordinated control algorithms, and developing new models, methods, and simulation tools for integrating UPFCs into the smart power grid.
The contributions of this study are the methodological approach used in designing and controlling these kinds of systems, which is usually absent in similar papers, and the new algorithm for tracking and determining the optimal conduction angle of the NPC converter, which leads to the least harmonic distortion in the output voltage and current signals. The modeling technique proposed foresees to (i) build open-loop models of each compensator of the UPFC and run simulations varying the parameters to control power flows and/or voltages to verify the dynamics of voltages, currents, and powers; (ii) carry out the numerical study of each compensator with closed-loop controls to expand the testing carried out at step (i); and (iii) execute simulations of the whole UPFC, again in open and closed loops, and compare the results with the ones obtained in the previous steps. The first two steps are needed to verify the models of single parts, while the last step shows the effects of coupling the shunt and series compensators in back-to-back configuration by applying different control strategies. Then, this procedure can be very useful to designers of power flow controllers.