{'fraction_non_alphanumeric': 0.042858060785195655, 'fraction_numerical': 0.021268392983357965, 'mean_word_length': 4.299284984678243, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Performance Evaluation of DSTATCOM for 180 km 33 kV Feeder from Shinyanga to Bariadi in Tanzania

Abstract— This article presents the performance evaluation of distribution static compensators (DSTATCOM) for the 180 km 33 kV line from Shinyanga to Bariadi in Tanzania. First, the voltage drop existing on the line is explained, and its negative consequences are mentioned. Secondly, the 180 km line is presented in the nominal π model. Then, DSTATCOM capacitive and inductive dynamic ranges of ±1900 kVAr are calculated based on the system fault level. Using the energy storage of five cycles, a DC capacitor with a value of 0.19 mF is calculated. The DSTATCOM is designed using the voltage source converters (VSC) employing the neutral point clamped (NPC) topology. A proportional integral (PI) control algorithm was implemented to the DSTATCOM. Simulation of the modeled system of the feeder with DSTATCOM is carried out in MATLAB/Simulink environment for different loading conditions (light and heavy loading) to evaluate the steady-state performance. Simulation results reveal that for the light load of 0.45 MW, the receiving end voltage is 37.2 kV RMS and 31.5 kV RMS, before and after application of DSTATCOM, respectively. For the heavy load of 4.5 MW, the results are 28.45 kV RMS and 33.1 kV RMS, before and after application of DSTATCOM, respectively. The frequency-domain analysis reveals a gain margin of infinity implying stable system operation. The Nyquist plot shows no encirclement of the negative one point, further verifying the stability. It is concluded that the proposed DSTATCOM is capable of keeping both the voltage drop and rise of the line at acceptable levels for system stability of the ShinyangaBariadi feeder.


INTRODUCTION
Tanzanian medium voltage of 33 kV and 11 kV is used as the system voltage for primary distribution feeders. The design of these feeders is mainly radial topology. Due to the nature of dispersed and scattered load centers (towns) in Tanzania [1], the feeders have to run over long routes, such as the 180 km 33 kV Shinyanga-Bariadi line [2]. The feeder runs all this distance without any voltage control compensators; thus at the receiving end, it suffers a voltage drop of more than 7%. The result of this voltage drop is failing to start the large water pumping motors connected close to the end of the feeder, especially during peak load. Voltage improvement can be achieved using the volt-ampere reactive (VAR) compensation, series compensation and flexible alternating current transmission system (FACTS). However, these methods cannot handle dynamic voltage changes effectively. Therefore, fast reactive power compensation is necessary [3]. Distribution static synchronous compensator (DSTATCOM) can provide fast and continuous reactive power ( ) compensation to control the voltage of the feeder. However, off-the-shelf DSTATCOM cannot be used without the knowledge of the line parameters, control, power and other data of the feeder. Therefore, this paper proposes the use of the DSTATCOM for the 180 km 33 kV feeder for the Shinyanga-Bariadi line.
Power quality problems are inevitable due to the presence of nonlinear loads [4]. Nonlinear loads draw non-sinusoidal currents from the network and cause power quality problems [5]. The techniques to improve power quality are necessary due to the increasing trend of the use of nonlinear loads. This paper is organized as follows: section 2 presents the Shinyanga-Bariadi feeder, covering the physical design, modeling and design of the DSTATCOM. Section 3 presents the field and simulation results together with the discussions. Section 4 presents the conclusions and future work in this direction.

MODELING THE SHINYANGA-BARIADI FEEDER
The mode of the 180 km 33 kV Shinyanga-Bariadi feeder, and the design of the DSTACOM are covered in the following subsections.

Description of the Feeder
Shinyanga-Bariadi radial feeder is captured in Fig. 1. It has a circuit breaker (CB) at the sending end at Shinyanga 220/33 kV substation. The line feeds Meatu, Malampaka, Maswa and Bariadi. Metering units and protection switchgear are installed at the sending end. These protection units include relays and the mentioned CB. Along the line, the spur lines are protected by dropout fuses. Switching is undertaken at Shinyanga. In case the dropout fuses fail to isolate a fault, the CB kicks in to isolate the feeder.

Design of the Feeder
Shinyanga-Bariadi radial feeder is constructed of wooden poles, aluminium conductor steel reinforced (ACSR) of 100 mm 2 , porcelain insulators and other materials. The conductors are spaced at 1.2 m. This gives a geometric mean distance (GMD) of 1.5119 m. The feeder's recorded power for six months starting from December 2015 to May 2016 is shown in Table 1. The average of these maximum powers allows selecting the ACSR conductors based on the code given in Table 2. Nominal powers ( and ), nominal power factor angle ( ) and the feeder 33 kV taken as the nominal voltage ( ) give together the feeder's nominal ampacity ( ).
The nominal apparent power is represented by . This is a very simple view, as load flow studies use the node voltages, currents, and admittance in power computations. According to IEC 60287-1-1 [7] and Riba [8], the values in per meter of and are computed by Eqs.
The ≤ 2.8 is the limit to meaningful applicability of Eq. (4). For larger values, other methods of computing are suggested by Riba [8]. The line capacitance ( ), and inductance ( ) per km are calculated by: The permittivity of free space is 0 = 8.854 × 10 −12 F/m; permeability of free space is 0 = 4 × 10 −7 H/m; is the radius of the ACSR conductor. The feeder inductive reactance ( ), admittance ( ) and characteristic impedance ( ) are calculated by:

Modeling the Distribution Feeder
The 180 km feeder is modeled using the nominal model since it is a medium transmission line [9] captured by Fig. 2. The sending end voltage and current are and , respectively; ℎ is the Thevenin equivalent reactance of the sending end; the , , and are the feeder's DC resistance, reactance, and admittance, respectively; the receiving end voltage and current are and , respectively and is the load. The nominal model of the linedepicted in Fig. 2 -is presented by , , , and line parameters in Eqs. (8) and (9) [10]. The line parameter has been purposely defined to avoid confusion with the other line constant that was discussed prior. Here, it is assumed that ℎ is the terminal voltage of the sending end. The line impedance is . The design of this feeder considers a short circuit current ten times (i.e., = 10 ). Therefore, the short circuit apparent power is in Eq. (10). Then, the ℎ is computed by Eq. (11). The receiving end powers -apparent, active, and reactive (i.e., = + ) are computed from Eqs. (12) and (13), and the voltage regulation ( ) is computed by Eq. (14).
Other variables in Eqs. (12) and (13) are defined here and were computed by Eq. (8): is the angle of the negative short circuit transfer impedance, is the sending end voltage angle and is the angle of the open circuit voltage ratio.

Description of the DSTATCOM
The distribution static compensator is described in the section. First, the working principle is explained. Then, its design and sizing of the DC capacitor are presented, and lastly, the control part is elaborated.

Working Principle of DSTATCOM
Guerrero et al. [11] proposed DSTATCOM for voltage control of a feeder. This equipment works by injecting reactive power through shunt reactance ( ) to the feeder [12].   If = , the DSTATCOM is at equilibrium. The power dynamics involved in the voltage control described above are encapsulated by the following expressions.
The angle shift between and is represented by . The role of a control system in the DSTATCOM is to make in phase with (i.e., = 0 radians) so that only the reactive power flows. Then, by Eq. (15), = 0 and Eq. (16) turns to Eq. (17).

Design and Sizing the DSTATCOM
The DSTATCOM is designed using the three-level voltage source converter (VSC) with a neutral point clamped (NPC) topology. This topology is explained in detail by Mhagama [2] and Kerrouuche et al. [12]. This VSC NPC is a simpler design than the five-level flying capacitor VSC proposed by Roncero-Sanchez [13]. Sizing the DSTATCOM begins with selecting the short circuit power handling capability according to Eq. (10). Then, the allowable variation of the reactive power at the receiving end is selected to be 10% . Therefore, the dynamic range capability ( ) of the DSTATCOM will be computed by Eqs. (18) The energy storage capacitor ( ) for the DSTATCOM DC link voltage is designed to be able to store and discharge for five cycles (i.e., = 5 ) given by Eqs. (21) and (22) energy balance. Assuming ideal DSTATCOM switches and lossless coupling transformer, the DC storage capacitor voltage is related to the PCC voltage by Eq. (23). Note that = = .

Control of the DSTATCOM
The DSTATCOM is controlled by the industrially widely applicable proportionalintegral controller (PI). Due to the nature of this controller, the synchronous reference frame (d -q axis) is utilized. The frame rotates at the grid frequency so that the d -q voltage ( , ) and currents ( , , 0 ) generated by the DSTATCOM is DC. The measured AC quantities are operated on by Park transformation (PkTF) to give the DC quantities, such as in Eq. (24).
The AC measured quantities are first passed through a low pass filter (LPF) to remove the measurement noises; the transfer function of the filter ( ( )) is given by Eq. (25). The feeder voltages ( , , or in short ), after passing through the LPF is used in the phase-locked loop (PLL) to generate the synchronous angle . These voltages are used to generate the voltage error from the reference * = = .
H(s) = 1 1+ This error is worked upon with the PI controller mentioned previously, and the output is the reference currents * presented in s domain by: The * is operated upon by an inverse PkTF to generate the reference currents in d -q frame, 0 * . This is used to generate error signal from measured, and low pass filtered line currents . This current error is used to generate the six PWM pulses for the six legs of the VSC NPC. The control algorithm is shown in Fig. 4 excluding the grid and the VSC NPC parts. The DSTATCOM implemented on the feeder's equivalent circuit is shown in Fig. 5. Note the DSTATCOM is represented as a voltage-controlled voltage source i.e., VCVS ( ). This circuit renders itself to the transfer function given in Eq. (28). When the DSTATCOM is engaged in PI feedback loop, the closed-loop transfer function ( ( )) will be as in Eq. (29).

Simulation of the Feeder and the DSTATCOM
The feeder model developed in section 2.1.2 and its DSTATCOM control developed in section 2.2.3 are implemented in MATLAB/Simulink. The sampling frequency is chosen as = 20 kHz. Feeder frequency is set to = 50 Hz giving a period of = 20 ms. The chosen frequency is the power system frequency of Tanzania. The feeder is simulated for different scenarios -with and without DSTATCOM for light and heavy load.

RESULTS AND DISCUSSION
This section presents field data and the design results in addition to simulation results as was discussed in previous sections.

Field Data and Design of the Feeder and the DSTATCOM
The feeder's nominal voltage = 33 kV is taken to be the PCC voltage, a short circuit current is selected as = 10 = 910 A, basing the = 3.8 MW and cos( ) = 0.8 from Table 2. The feeder's and DSTATCOM parameters are presented in Table 4.
Eq. (30) is used to elicit the frequency response of the feeder with the DSTATCOM by the Bode and Nyquist plots as shown by Figs. 6 and 7, respectively. From the Bode plot, the gain margin is infinity, and the phase margin is positive. From the Nyquist plot, there is no open-loop pole on the right half-plane.

Simulation Results of the Feeder and the DSTATCOM
The designed feeder is implemented in MATLAB/Simulink under two conditions; light and heavy load. The light load was selected as = 10% = 0.45 MW at p.f.= cos ( ) = 0.8 lagging. The heavy load was selected as = 100% = 4.5 MW at p.f.= 0.8 lagging. These two cases were evaluated without/with DSTATCOM compensation.

Lightly Loaded Feeder
Figs. 8 and 9 show the lightly loaded feeder's line-to-line voltage waveforms at the receiving end without/with the DSTATOM compensation, respectively. Without the compensation (Fig. 8), the voltage increases drastically to 37.2 kV RMS, this is a VR of 14.24%. After compensation (Fig. 9), the voltage is maintained at 31.5 kV RMS but with distortion and = 4.54%. The fast Fourier transform (FFT) analysis of the receiving end line voltage of this lightly loaded feeder is shown in Fig. 10 without the DSTATCOM for which the total harmonic distortion (THD) is 0.0%. The DSTATCOM succeeds in maintaining the voltage magnitude, but results a larger THD of 11.86% on the line voltage as shown in Fig. 11. The line currents without the DSTATCOM are shown in Fig. 12 with THD = 2.06% as shown on Fig. 13. When the DSTATCOM is applied, the line currents are shown by Fig. 14, with THD = 2.06% on Fig. 15.

Heavy Loaded Feeder
Figs. 16-23 show the heavy loaded feeder's line to line voltage waveforms at the receiving end without/with the DSTATOM compensation respectively. Without compensation (Fig. 16), the voltage drops to 28.45 kV RMS, this is a VR of 13.79%. After compensation, the voltage is maintained at 33.33 kV RMS (Fig. 17), a = 1.01%; a very impressive improvement. The FFT of the receiving end heavy load uncompensated feeder is displayed on Fig. 18, with THD = 0.0%. There is no distortion of the receiving end line voltage of the heavy load compensated feeder shown by FFT of Fig. 19 with THD = 0.0%. The line currents for the uncompensated heavy loaded feeder are shown by Fig. 20, with its FFT on Fig. 21 where THD = 0.0%. The line currents for the compensated heavy loaded feeder are shown by Fig. 22, with its FFT on Fig. 23 where THD = 0.0%. From these results it is seen that the DSTATCOM works as designed to keep the voltage of the light or heavily loaded feeder within acceptable limits in steady-state. By installing the DSTATCOM apart from controlling voltage, harmonics current can be reduced and frequency regulation can be achieved [14]. The DSTATCOM can improve power quality with the economical cost for power quality improvement [15]. The variation in voltage affects the power quality [16], and this paper has shown that the THD can be controlled using the proposed DSTATCOM for the Shinyanga-Bariadi feeder.

CONCLUSIONS
This paper has presented the design and performance evaluation of the 180 km, 33 kV RMS Shinyanga-Bariadi feeder. The feeder was modeled without DSTATCOM and also with DSTATCOM to evaluate the performance of the DSTATCOM. The DSTATCOM was modeled as a voltage source with reactance to improve the voltage profile at the receiving end during both light and heavy loading. Frequency analysis showed that the feeder with the DSTATCOM is stable in an open loop. Control algorithm based on PI was implemented on the DSTATCOM. Simulation results showed that the feeder with the DSTATCOM can keep the voltage at the receiving end within acceptable operating limits. Future work may focus on developing a dynamic model of the feeder with DSTATCOM so that transient analysis can be performed. Further, load flow studies considering the load demand of Maswa, Meatu, and Malampaka should be conducted to elucidate an improved voltage profile.