Electricity is a basic energy need whose access is recognized as a right. It has become indispensable in everyday life and represents an essential component for the development of a country. Therefore, the availability of this energy as well as the maintenance of the balance between production and consumption requires constant monitoring to ensure the quality of service (transmission problem), its security (protection problem) and its stability (regulation problem). Electrical networks until the last few years are controlled mechanically (capacitor bank, inductor, phase-shifting transformer...). These during the problems of wear and their relative slowness make them insufficient to respond effectively to these remarkable requirements. The rapid development of power electronics has a considerable effect in improving the operating conditions of electrical networks by improving the control of their parameters through the introduction of control devices based on very advanced power electronics components (GTO, IGBT) known under the acronym FACTS . FACTS systems are recently discovered compensators that combine capacitor banks and inductors coils with power electronics converters. These compensators, depending on their connection to the grid, are distinguished into shunt, series and hybrid compensators such as: STATCOM, SSSC, UPFC respectively. This work complements the work of TRAN Quoc Tuan  who worked on the control of power flow in a network using a UPFC. In his work, he has been able to demonstrate the ability of the PI regulator to control a UPFC to improve the stability of the network and to compensate the reactive power but for small variations. Our work is then based on the use of this universal controller but controlled by a three-level inverter applied to a highly disturbed network in the optimization of the transient stability of electric power transmission networks.
2. Materials and Methods
To carry out our work, we made the following considerations: the generator and the switches of our converter will be assumed ideal, the line will be balanced, the voltage drops across the line represented by the reactance X, the inductance of the line is represented by the inductance L. the characteristics of the line are given in the following Table 1.
Subsequently, we will proceed with the modeling of the serial converter while knowing that for the parallel converter the principle will be the same.
2.1.2. Dynamic Equations of the Series Compensator
The application of Kirchhoff's laws . To the meshes of the circuit in Figure 1 gives us the mathematical equations governing our system as follows:
Table 1. Characteristics of the studied line .
Figure 1. Physical representation of a UPFC converter connected to the network for modeling purposes.
In order to minimize the computing time, we have switched from the three-phase system to the two-phase system, i.e. from three-phase reference frames with coordinates a, b and c, to two-phase reference frames with coordinates d and q. The transformation matrix is the following (Park’s matrix) :
So the system becomes:
Using the matrix representation on the system we have:
The equation above corresponds to our serial converter model. It will be used to build, under Simulink, the block that represents the serial part of the system. Therefore, this equation is represented by the following block diagram (r = R): (Figure 2)
Figure 2. Block diagram of the serial circuit .
2.1.3. Dynamic Equation of the Continuous Circuit
The DC-Link connects the serial converter and the shunt converter of the UPFC. To model the DC-Link, we will use the single-phase model of the following converter (Figure 3).
We will first define the input/output relationships of our converters. We are going to assimilate them to a quadripole whose modulation function w(t) connects their inputs and outputs in the following way:
➢ For the shunt converter
The equation verified by the quadrupole is as follows:
Due to the independence of the current Ie from the voltage Vin and since the current Iin does not depend on the voltage Ve either, the matrix representation of the input system is therefore:
In this quadrupole, the instantaneous power is preserved. The following relationship is therefore verified:
➢ For the serial converter
In the same way as for the shunt, one can write:
Figure 3. Diagram of the UPFC DC-link .
The equations verified by the DC-Link shown in the figure above are the following:
Because of the equality of tensions , and ( ), we obtain, from the previous equations, the following expression of :
this equation will be used in MATLAB/SIMULINK to form a block having the following form: (Figure 4).
2.1.4. Calculation of the Instantaneous Active and Reactive Powers of the UPFC
Active and reactive power
Theoretically, UPFC should be treated as a multi-variable system because both serial and parallel converters are connected on one side to the transmission line and on the other side to the DC circuit and therefore each have two outputs. To facilitate the synthesis of the controllers, the two converters will be processed separately. There are several possible configurations to control this compensator. But before that, it is necessary to determine the references to control the device. There are several methods of identification of the references (control quantities): Method based on the principle of active current, Decoupled Watt-Var Method and Instantaneous Real and Imaginary Power Method. In this work we have adopted the Decoupled Watt-Var Method. The idea of this method comes from
Figure 4. Block diagram of the DC-link.
the equations of the voltages obtained after the Park transformation, the problem of non-linearity is avoided in this method by considering only the fundamental quantities for the control of our system (Figure 5).
The principle of this method is to transform the measured quantities of current and voltage of the three phases on the two d-q axes using the Park transformation. Then the values of the active and reactive powers are imposed and the reference currents are calculated from these values (desired powers) and the values of the voltages measured by the two following equations:
2.2.1. Classic Decoupled Watt-Var Algorithm
To drive our converter correctly, we need to remove this interdependence of the d and q axes. So we are going to create a decoupling block that will reproduce the coupling signal that we want to eliminate and then we are going to introduce this signal with the opposite sign at the input of our system. Our decoupling algorithm will therefore have the following form:
The association of the decoupling block and the system model will have the form of the following Figure 6 and Figure 7. We will only be left with our PI with a serial model of the system without coupling .
2.2.2. Calculation of the Parameters of the Controllers Pi
The classical proportional-integral regulator used in figure (9) ensures
Figure 5. Control circuit of the UPFC .
Figure 6. Diagram of the PI corrector and serial system model on the d-axis, after suppression of the disturbances of the voltages V1 d and V3 d.
Figure 7. Diagram of the PI corrector and serial system model on the q-axis after suppression of the disturbances of the voltages V1 q and V3 q.
maximum control of the error when its gains are maximal. It is also the most widely used regulator on an industrial scale due to its simplicity of implementation and its relatively low cost compared to advanced models :
By introducing the following simple function linking the controller parameters
We obtain a first-order transfer function with a time constant of
Given the above equations and a suitable choice of the value of T(T Td) with Td = 0.1 ms (critical time of fault elimination). The gains KP and KI can be obtained as follows
2.2.3. IGBT Switch Control
The purpose of the control is to generate the commands to open and close the switches so that the voltages created by the inverter are as close as possible to the reference voltage. By multiplying the number of intermediate levels, the amplitude of each rising or falling edge of the output voltage is reduced: the amplitude of the harmonic lines is therefore lower. In the specific case of PWM operation, the use of multilevel converters combined with a judicious control of the power components also makes it possible to suppress certain families of harmonic lines  (Figures 8-10).
Figure 8. Principle of the MLI sinus-triangle.
Figure 9. Adjustment circuit of the serial and parallel converters.
Figure 10. DC-LINK DC bus control circuit.
3. Results and Discussion
In this part, we started by highlighting the model of our network in the matlab Simulink environment as shown in Figure 11.
This network will be considered to be in a three-phase configuration change process: before, during and after contingency elimination.
3.1. Simulation of the Undisturbed Network
During the pre-fault phase, the network is usually in a stable steady state. Under these conditions, the network has a very specific transport angle δ.
This angle which corresponds to the equality between the electric power and the mechanic power according to the following formula:
➢ Visualization of voltages
➢ Power display
We see here that all the voltages are equal in amplitude (0.01) and offset from each other by 120 degrees.
3.2. Simulation in the Presence of the Defect
Figure 14 below represents a line in the presence of a contingency.
As soon as a disturbance occurs, the network enters the so-called transient fault conditions. The fault simulated in this example is a three-phase short circuit that we applied at time t = 0 s and which lasted 0.1 ms. Under these conditions, the active power varies very quickly during this time, the variation of the mechanical power is relatively slow, therefore due to this slow response speed, a temporary deviation of power balance takes place causing the oscillations of the network parameters as we can see below (Figure 15 and Figure 16).
Figure 11. Empty line.
Figure 12. Steady-state network voltage.
Figure 13. Power of the network in steady state.
Figure 14. Diagram of a disturbed line.
Figure 15. Network voltage under fault conditions.
Figure 16. Power of the network under the right conditions.
➢ Visualization of the voltage
➢ Power display
If we come to the level of the first oscillation, we notice that the most disturbed phase has an amplitude which has gone from 0.01 V for the steady state to 5 V under fault conditions and it is therefore this rise in power of the parameters which often provokes the opening of the protection devices which in case of failure of the reclosing procedures will lead to a prolonged interruption as well as to the modification of the topology of the network (Table 2).
Although the system in this case is not seriously disrupted, its stability is still critical. In the absence of control, the system was subjected to unacceptable transport angle oscillations (up to 65 degrees). In this case the network tends towards instability, the course of the various network parameters is undamped oscillation (instability of several oscillations), and this is caused by the loss of the production-consumption equality.
3.3. Simulation of the Fault in the Presence of UPFC
The network plus our device is shown below: (Figure 17).
Figure 17. Network with UPFC under fault conditions.
Figure 18. Network voltage under fault conditions.
➢ Visualization of the voltage
➢ Power display
We note that the appearance of a fault in the presence of the UPFC causes all the phases to oscillate in unison some time after the network regains a new stable operating regime, the oscillations generated by the disturbance fade with a damped amplitude, which increases the critical time of elimination of the fault. Another observation is that the system manages to recover its synchronism before the end of the fault, which approves the efficiency of the UPFC to converge the trajectories of the network interest parameters to an acceptable operating regime after a certain fault clearance time (Table 3).
Figure 19. Power of the network under fault conditions.
Table 2. Network synthesis without regulator.
Table 3. Network synthesis with regulator.
The development of power electronics has improved the management of electrical networks by introducing a new concept by the power transmission systems called FACTS, with which the control of the active and reactive power flow, the increase of the load capacities of the lines as well as the improvement of the stability of the network are achieved and performed by the injection of the voltages (or current) of the converters designed with modern static switches. The study presented in this paper was part of this concept and focused on the improvement of the transient stability of an electrical network with a FACTS device called UPFC based on voltage inverters. The Integral Proportional Controllers used for the regulation of the quantities of this device brought us satisfactory results in terms of response time and damping of oscillations. This study has allowed us to predict this very advantageous device for electrical networks by demonstrating a major flexibility in the control of the majority of the network parameters, based on the MLI control of the converters which represents the basic component of this device. The reliability of these devices would be to use control based on FPGA technology.
 Gholipour Shahraki, E. (2003) UPFC’s Contribution to Improving the Transient Stability of Electrical Networks. Doctoral Thesis, Faculty of Sciences & Techniques, Henri Poincaré University, Nancy-I.
 IEEE/CIGRE Joint Task Force on Stability Terms and Definitions. Definition and Classification of Power System Stability. IEEE Transactions on Power Systems, 19, 1387-1401.