Keywords

1 Introduction

The evolution of the industry and the consequent increase of non-linear loads on the factory facilities, increase the associated electrical power quality problems, namely harmonic distortion and low power factor [1]. These problems translate into unbalanced currents and excessive current in the neutral conductor, which can lead to overeating and deterioration of the installation. Furthermore, the harmonics and unbalances propagate to the voltages eventually causing the equipment malfunction [2].

With the arrival of industry 4.0, which aims to increasingly integrate sensors and smart meters designed to obtain large amounts of data from different variables of the facility, there is an opportunity to carry out more detailed analyses on the operation of installed equipment as well as the impact exerted under the quality of the electrical energy of the installation [3, 4].

Traditionally, passive LC filters and capacitor banks are used to mitigate power quality problems. However, these solutions are usually not adaptable to dynamic loads and tend to be robust and expensive [5, 6]. Given that, today’s industry is designed not to consume reactive power, capacitor banks can present themselves as harmful solutions for the system, because they can contribute to increase the harmonic distortion of the system.

The shunt active power filters (SAPF) have been increasingly adopted due to their ability to perform real-time compensation. Depending on the control theory and hardware topology, it is possible to compensate in real time the harmonic currents, current unbalances as well as the low power factor [7]. The SAPF used in this study presents a three-phase four-wire power electronics converter. The Fryze-Buchholz-Depenbrock theory is used to calculate the reference currents to carry out the correct power management of the system [8]. In order to obtain results from real factory situations, the real loads of the factory, that is, production lines and electrical switchboards, were modeled in order to understand the effectiveness and benefits of the application of the SAPF. These loads are modeled in simulation using data collected by sensors employed at the factory.

Thus, this paper is divided into 6 sections. Section 1 presents the introduction to the paper as well as the topics approached. Section 2 presents the topology of the applied SAPF and its operation. Section 3 deals with the control algorithms used to control powers and currents. Section 4 refers to the reconstruction of the loads used, which is based on data provided by the factory sensors. Section 5 presents the simulation developed as well as the results obtained. Finally, Sect. 6 presents the conclusions regarding the results obtained in simulation.

2 Shunt Active Power Filter

A shunt active power filter (SAPF) is an equipment connected in parallel to the electrical power grid functioning as a current source, used to compensate in real time, harmonics, current unbalances (in the case of three-phase installations) and power factor of an installation, through the production of reactive power and harmonic currents [9, 10]. A SAPF can be single-phase or three-phase. The purpose of a SAPF is to make the currents in the electrical power grid sinusoidal and in phase with the power grid voltages, balance the current of the three phases which leading to a practically null neutral current [8, 11]. The aim is to supply, from the electrical power grid to the loads, only the necessary active power. A SAPF allows a dynamic response, adjusting itself to the needs of the load and the conditions of the electrical power grid [12]. As a result of the operation of a SAPF, when compensating the current harmonics, it allows the decrease of the harmonic distortion of the grid voltage, as well as reducing the losses in the conductors. Since the RMS values of the currents are reduced, the losses in the conductors are also decreased.

There are several hardware topologies for the SAPF such as a three-wire converter with one dc-link, a three-wire converter with two dc-links, where the neutral is connected to the midpoint of the two dc-links, and the four-wire converter topology here the neutral conductor connects to the fourth leg [13].

The chosen SAPF topology for this study consists of a two-level four-wire voltage source inverter (VSI), which uses 08 IGBTs and a capacitor in the dc-link. The use of a four-wire topology allows to compensate for the neutral current. Figure 1 shows the block diagram of the three-phase four-wire SAPF. The inductance (L) is used to connect the inverter to the power grid.

Fig. 1.
figure 1

Schematic of the SAPF simulation model.

By using sensors to measure the loads currents, the currents in the SAPF and the power grid voltages, the control system generates the gate signals to the switching devices, so that the currents in the grid (ig1, ig2, ig3) are balanced and in phase with the voltages (vg1, vg2, vg3) and the current in the neutral (ign) is practically zero.

3 Control Algorithm

The purpose of the SAPF is to compensate harmonic currents present in the load side. To calculate the compensation reference currents, the Fryze-Buchholz-Depenbrock (FBD) power theory is used. This power theory is implemented in the time domain and is based on the idea of representing a load by its conductance in parallel with a harmonic current source and a reactive element [14]. The conductance corresponds to the power component of the load that the grid must supply, i.e., the active power. To applicate this theory, it is calculated the average value of the total instantaneous power consumed by the loads, which correspond to the active power. The active power is divided by three, to be equally divided by the three phases. The explanation of the next steps of the FBD theory, will be done for one phase and for the other two phases the procedure is the same, being only replicated [15].

Knowing that the conductance is the inverse of the resistance and knowing the active power value for each phase (P1) and the power grid RMS voltage (VG1), the conductance is defined by Eq. (1). To calculate the value of the reference current (ig1ref) Eq. (2) is applied, where vg is the instantaneous value of the voltage. Since the grid voltage may be distorted, a phase locked-loop (PLL) algorithm is applied in order to perform synchronization with the grid voltage.

The PLL algorithm produces a sinusoidal signal in phase with the fundamental component of the grid voltage [16]. The produced signal is used for the calculation of the reference current, allowing the reference current to be sinusoidal even for a distorted voltage. Replacing in Eq. (2) the grid voltage by the PLL (vpll1) gives Eq. (3). Knowing the reference current for the grid and the current at the loads (il1), apply Eq. (4) to calculate the reference current for the SAPF (if1ref), and this reference current is then applied on the current control.

$$ G_{1} = \frac{{P_{1} }}{{V_{G1}^{2} }} $$
(1)
$$ i_{g1ref} = G_{1} v_{g1} $$
(2)
$$ i_{g1ref} = G_{1} v_{pll1} $$
(3)
$$ i_{f1ref} = i_{l1} - i_{g1ref} $$
(4)

For the semiconductor switching, the periodic sampling technique is applied. This technique is widely used and it is simple to implement. Figure 2 shows the block diagram. This technique defines a maximum value for switching frequency, not having a fixed switching frequency [17].

Fig. 2.
figure 2

Schematic of the periodic sampling switching technique.

The periodic sampling technique works as follows, when the reference current (if1ref) is higher than the SAPF current (if1), the S1 semiconductor is switched ON and the S2 semiconductor is switched OFF. If the reference current is lower than the current in the filter the bottom semiconductor is switched ON. The clock frequency has been set to 100 kHz, meaning that the maximum switching frequency is 50 kHz.

4 Industrial Loads

As the factory under analysis has taken a step forward into the industry 4.0, it has employed different power quality analyzers throughout its system. These analyzers (sensors), allow a more precise analysis of the installed electrical system. As such, data of the RMS values of the voltage, current and their waveforms, harmonic distortion, power factor, among others, are taken.

With this data it is possible to define the different loads both theoretically, resorting to the manufacturer’s datasheets, and practically through the data recorded at regular intervals (programmed by the user). It is also possible to check the data and waveforms in real time. Thus, in the case study used for this situation, there are very different loads, but these will be divided into two groups, air conditioning system (HVAC) and line productions switchboards (electrical switchboards). Note that only these main loads are considered, as they are the ones with the highest power consumption and make the study more generic.

4.1 HVAC System

The air conditioning system consists of two switchboards where four air treatment units (ATUs) are connected in each, and five equal independent chillers. The ATUs are divided into two switchboards due to belonging to different areas of the industrial complex and the five chillers are distributed throughout the industrial complex.

Regarding the ATUs there are two types, which are presented in Table 1. The data presented are taken from the builder’s plates. In one of the tables there are four type 1 ATUs and in the other table there are four type 2 ATUs. In Table 1, it is also presented the type of chiller applied as well as its characteristics.

Table 1. Characteristics of ATU of type 1, type 2 and chillers.

Through the analyzers, it was possible to extract other data about these two switchboards of the HVAC system. A complete month of the year 2021 was analyzed and the monthly average value was taken for the current consumed, apparent power, harmonic distortion of the current (THD%I) and power factor. In the case of the switchboard of ATU type 1. The Table 2 presents the summarized data for selected month. Note that in this month this switchboard presents a current unbalance between the three phases of 2.11% and that the variable L1, L2, L3 refers to the three phases of the system.

Table 2. Monthly average value of current, apparent power, THD%I and power factor of the ATU type 1.

In Table 3, it is presented the same data that was shown for the Type 2 switchboard. In this type 2 switchboard an average monthly current unbalance of 1.43% was calculated.

Table 3. Monthly average value of current, apparent power, THD%I and power factor of the ATU type 2.

In addition to these calculated data, it was possible to obtain the waveform of these two at specific frames, through an Excel file generated by the analyzers with several points of the current waveform. In Fig. 3 and Fig. 4, the current in the Type 1 and Type 2 switchboard is presented, where the currents of phases L1, L2 L3 and neutral (N) are shown.

Fig. 3.
figure 3

Current waveform of the ATU of type 1: (a) L1 (b) L2 (c) L3 (d) neutral.

Fig. 4.
figure 4

Current waveform of the ATU of type 2: (a) L1 (b) L2 (c) L3 (d) neutral.

For the five chillers, only one was analyzed due to the fact that they are all equal. The same happens to the two HVAC switchboards. So, through the data recorded by the analyzers, over the same month, and applying a monthly average, Table 4 is obtained. In addition to this data, the current unbalance calculated through the monthly data of the currents of the three phases resulted in 4.44% unbalance between the three phases, although the monthly average value of the current does not show this unbalance. The waveform of this chiller, in operation, can be seen in Fig. 5.

Fig. 5.
figure 5

Current waveform of the chiller: (a) L1 (b) L2 (c) L3.

Table 4. Monthly average value of current, apparent power, THD%I and power factor of the chiller.

4.2 Electrical Switchboard

The electrical switchboards are used to ensure a better management and protection of the production lines throughout the case study analyzed. In general, in each switchboard it is possible to connect about four production lines, thus allowing a better protection of each line (because it can be made individual protection of machines and the application of smaller protections) and facilitating the management of them each time it is necessary to make adjustments. For this case study, an electrical switchboard is considered, which is normally the set of four production lines. For a brief contextualization, one of the production lines analyzed contains three-phase and single-phase machines. In the set of three-phase machines there is a combination of maximum theoretical power of 98.2 kVA, in the set of single-phase machines of 6.7 kVA and a THD%I between 5.5% and 6.5%.

That said, and as presented in the previous section, the monthly average value of the consumed current, apparent power, harmonic distortion of the current and power factor was done through the power quality analyzers. Table 5 presents the monthly average values. It was possible to calculate the unbalance between the phases of the electric board, which resulted in an unbalance of about 7.17%.

Table 5. Monthly average value of current, apparent power, THD%I and power factor of the electrical switchboard.

In addition to these values calculated using the data recorded by the analyzers, the waveform of the current for an instant, from the analyzed switchboard, was also taken. This waveform is shown in Fig. 6.

Fig. 6.
figure 6

Current waveform of the electrical switchboard: (a) L1 (b) L2 (c) L3 (d) neutral.

5 Simulation and Results

In Sect. 2 was presented the electrical scheme of the SAPF used in this study. In order to validate its correct functioning with the factory loads, two different situations were designed. For both situations the SAPF only starts its operation after the instant of 0.2 s and the considered loads are: 5 chiller equipment, 2 HVAC electrical switchboards and 10 electrical switchboard that provide power to the production lines.

– Scenario 1: In the first approach, it was considered that there are 5 chillers and 12 electrical switchboards in operation, however, it is considered that the 5 chillers and 2 HVAC electrical switchboards are on the load side and the remaining 10 electrical switchboards are on the grid side. This means that the 5 chillers and the 2 HVAC electrical switchboards are being compensated by the SAPF and that the remaining 10 electrical switchboards are not compensated.

– Scenario 2: In a second approach the inverse is done, that is, the 5 chillers and the 2 HVAC electrical switchboards are now on the grid side and the remaining 10 electrical switchboards are on the load side. Thus, the 10 switchboards are being compensated by the developed SAPF while the 5 chillers and HVAC switchboards are not compensated.

In order to simulate these two scenarios, it was necessary to create models of the factory loads. To do this, the data provided by the installed sensors was collected, where the Fast Fourier Transform (FFT) was applied, in order to obtain the values of magnitude and phase for each harmonic component associated to currents in the production lines, electrical switchboards and HVAC equipment and also the voltages of the transformers in parallel. The Fig. 7 presents the voltage values of transformer 1 and transformer 3 when both are operating in parallel.

Fig. 7.
figure 7

Voltage waveform of the coupling point of transformer 1 and 3.

In this situation the voltage values for L1 are 231.1 V, L2 is 229.8 V and L3 is 232.7 V. It is also noted that the THD values recorded are 5.7% for L1, 6.34% for L2 and 6.35% for L3.

In Sect. 5.1 and Sect. 5.2 it is presented the results obtained for both Scenario 1 and Scenario 2 respectively.

5.1 Scenario 1

In this scenario, all the proposed loads are connected to the system, but only the 5 chillers and the 2 HVAC switchboards are being compensated. The results presented in Fig. 8 are the grid currents, when considering all the connected loads.

The Fig. 8 shows the grid currents waveforms for before and after the SAPF operation.

Fig. 8.
figure 8

Current waveform of the power grid, before and after the SAPF is turn-on in instant 0.2 s: (a) L1 (b) L2 (c) L3.

Before the SAPF operation, the grid currents present values of 3168 A at L1, 2933 A at L2 and 3370 A at L3. With regard to THD%I, it should be noted that this presents a value of 16.38% at L1, 20.59% at L2 and 16.70% at L3. Subsequently, it is possible to observe the compensation of the currents carried out by the SAPF, where a grid-side current of 3132 A at L1, 2851 A at L2 and 3328 A are recorded. The THD%I is significantly reduced to 7.8% at L1, 8.94% at L2 and 7.35% at L3. Table 6 presents these results.

Table 6. THD%I and grid current values before and after the parcial compensation of the loads.

Figure 9 presents the grid reference currents that are calculated by the implemented control algorithm.

Fig. 9.
figure 9

Current waveform of the power grid Ig1 and the reference Ig1_ref generated by the control system.

Figure 10 shows the current waveforms of the loads that will be compensated. These loads are the chiller and the 2 HVAC electrical switchboards. It can be observed that at this point the current values are 1011 A at L1, 1042 A at L2 and 1015 A at L3. Regarding the THD%I values, 46.89% is observed for L1, 45.06% for L2, and 44.68% for L3. After 0.2 s the moment when the SAPF begins to act, it can be seen that the current and THD%I values are reduced. There is a current value of 915 A at L1, 918 A at L2 and 918 A at L3. THD%I has been reduced to 3.98% for L1, 4.06% for L2 and 3.96% for L3. Such results are highlighted in Table 7.

Fig. 10.
figure 10

Current waveforms of the combination of chillers and HVAC loads, before and after the SAPF is turned-on, in instant 0.2 s: (a) L1 (b) L2 (c) L3.

Table 7. THD%I and loads current values before and after filter’s action.

Figure 11 shows the waveform of the reference currents produced by the control system and applied to the SAPF.

Fig. 11.
figure 11

Current waveform of the active power SAPF If1 and the reference generated by control system If1_ref, for the chillers and HVAC system.

Figure 12 shows the current produced by the SAPF in order to compensate the current of the loads. In this case the loads to compensate are the chiller and HVAC electrical switchboards.

Fig. 12.
figure 12

Current waveforms of the SAPF, before and after it starts its compensation: (a) L1 (b) L2 (c) L3.

It can be seen that the values of the currents produced by the SAPF are 437.1 A at L1, 431.3 A at L2 and 419 A at L3.

Figure 13 shows the current values present in the neutral before and after the SAPF operation.

Fig. 13.
figure 13

Current waveform of neutral line, before and after the SAPF is turned-on in instant 0.2 s.

It can be seen that before the SAPF operation the neutral current value is 642 A, and that after the SAPF operation (instant 0.2 s) the neutral current value is reduced to 65.7 A.

5.2 Scenario 2

In this second scenario, all the mentioned loads are connected to the system, but only the 10 electrical switchboards are being compensated. The results presented in Fig. 14 are the grid currents, when considering all the connected loads.

Figure 14 shows the grid-side current values before and after the SAPF operation.

Fig. 14.
figure 14

Current waveform of the power grid, before and after the SAPF is turned-on in instant 0.2 s: (a) L1 (b) L2 (c) L3.

Before the SAPF operation, current values of 3168 A at L1, 2933 A at L2 and 3370 A at L3 are presented. Regarding THD%I, values of 16.38% at L1, 20.59% at L2 and 16.70% at L3 are presented. At instant 0.2 s the SAPF is active and compensating. After this instant the values of current and THD%I are reduced. It can be observed current values of 3041 A at L1, 3076 A at L2 and 3051 A at L3. Regarding THD%I, values of 14.34% at L1, 14.14% at L3 and 13.82% at L3 are presented. Table 8 presents these results.

Table 8. THD%I and grid current values before and after the filter’s action.

Figure 15 illustrates the reference current generated by the control system in order to compensate the currents on the grid side.

Fig. 15.
figure 15

Current waveform of the SAPF If1 and the reference generated by control system If1_ref, for the electrical switchboard.

Figure 16 presents the current values to be compensated by the SAPF (before 0.2 s). In this case, this current refers to the electrical switchboards.

Fig. 16.
figure 16

Current waveforms of the electrical switchboards, before and after the SAPF is turned-on at instant 0.2 s: (a) L1 (b) L2 (c) L3.

Figure 16 shows the currents before and after the operation of the SAPF. It can be seen that before the SAPF actuation, the current values are of 2225 A at L1, 1940 A at L2 and 2416 A at L3 are presented. Regarding THD%I values of 11.09% at L1, 13.36% at L2 and 10.22% at L3 are presented. At instant 0.2 s the SAPF becomes active and begins to compensate. After this instant the values of current and THD%I are reduced and current values of 2097 A at L1, 2097 A at L2 and 2097 A at L3 are observed. Regarding THD%I, values of 1.70% at L1, 1.70% at L2 and 1.70% at L3 are presented. Table 9 presents these results.

Table 9. THD%I and loads current values before and after the filter’s action.

Figure 17 shows the reference current calculated by the control system and which is applied to the SAPF.

Fig. 17.
figure 17

Current waveform of the SAPF If1 and the reference generated by control system If1_ref, for the electrical switchboards.

Fig. 18.
figure 18

Current waveforms of the SAPF, before and after it starts its compensation: (a) L1 (b) L2 (c) L3.

Figure 18 presents the SAPF current value which is of 346.7 A at L1, 337.8 A at L2 and 415.6 A at L3.

Figure 19 shows the neutral current before and after the SAPF operation.

Fig. 19.
figure 19

Current waveform of neutral line, before and after the SAPF is turned-on in instant 0.2 s.

It can be seen that before the SAPF actuation the current value is 640 A and that after the SAPF actuation, this current is reduced to 37.2 A.

6 Conclusions

After analyzing the results obtained in simulation of the two different scenarios, it is possible to verify a reduction of THD%I, a reduction of the current in the neutral, as well as a balance of currents among the three phases.

In the simulation presented in Sect. 5.1, there is a reduction of about 42% of THD%I recorded after the operation of the SAPF, and a reduction of about 53.3% of the current in the neutral conductor.

Regarding the simulation presented in Sect. 5.2, there is a reduction of about 10% after the operation of the SAPF, and a reduction of about 94.2% of the current present in the neutral conductor.

It can also be seen that after the SAPF operation, the currents always present quite identical values throughout the three phases of the system, which translates into a balanced system. If two SAPF were applied, one for the production lines and another for the HVAC system, it is assumed that the reduction of THD%I and neutral current would be even higher.

Thus, with the reduction of THD%I and consequent reduction of the neutral current, problems associated with the malfunction of the machines in the factory will be avoided. Also, since there is less current circulating in the neutral conductor, it’s overheating is avoid.

There will also be monetary savings associated with the cost of electricity. Even though the active power is maintained, the overall system’s current is decreased. This results in fewer losses in the conductors and transformers. So, according to the results presented, the installation of the SAPF brings technical benefits to the electrical installation of the industrial complex.

In summary, this article aims to present the benefits that a SAPF can bring to the plant installation, in order to prevent problems derived from harmonics and unbalances.