1 Introduction

The fast development in the field of manufacturing which we are living nowadays along with the well-being brought to humanity, as well there is a downside which is the contamination of electrical distribution networks companying this large scale development.

It is a key issue benefiting a good power quality for supply systems to ensure good function in convenient conditions for electrical equipments. Unfortunately wide spread use of non-linear charges in industry led to a significant degradation of power quality in the electrical distribution systems due of high harmonic currents generation. Therefore a lot of experts and researchers oriented to find solutions and to develop new techniques to address this new challenge.

Hence, in the literature various solutions were introduced to mitigate undesired harmonics as power filtering (passive, active, and hybrid) with numerous topologies (shunt, series) for two-wire single phase, three-wire three-phase and four-wire three-phase systems (Singh et al. 1999). These solutions have been implemented by using electrical passive elements or current and voltage source inverters to upgrade network power quality.

Though, passive filtering by second order filters solution involving many drawbacks such as aging, adjustment problems and resonance, and as well need to design one filter for every undesired harmonic frequency to be wiped out (Chaoui et al. 2007).

The development in power electronics technology and digital signal processing opened the way for the emergence of active power filters as a effective solution for harmonics currents and low power factor (Akagi 1996; Singh et al. 1999). The shunt active power filter (SAPF) has been introduced to eliminate complications companying the use of passive filters, hence SAPF systems knew significant attention since its release by Gyugyi (Gyugyi 1976). Practically found that harmonic mitigation via a shunt active power filter (SAPF) more efficient and more flexible compared to a passive power filter (Izhar et al. 2004; Routimo et al. 2007). The efficiency of the SAPF depends mainly on the topology of voltage source inverter and type of extraction algorithm which used to provide reference signals (current or power) and as well the applied control approach for the filtering system.

The SAPF has excellent compensation capability permits simultaneous suppression of harmonic currents and compensation of the reactive power. For this purpose, the main goal of SAPF control process is to generate compensation current that is equal to the harmonic current contents.

In this context, and as pointed out by Soares et al. (2000), majority of active filters use the current control approach in a cascaded multi-loop control structure. Harmonics and reactive power are compensated by the inner current control loop, and the outer voltage control loop regulates the dc link voltage. Due to the dynamic response rapidity of the inner current control loop compared to output voltage control loop then it is necessary using a capacitor with sufficient storage capability in order to avoid overshot of dc link voltage in transient conditions and maintained constant. Several control methods are proposed and reported in the literature such as proportional-integral (PI) control and hysteresis control (Buso et al. 1998), dead-beat control (Malesani et al. 1998), repetitive-based control (Mattavelli et al. 2001),adaptive control (Shyu et al. 2008), and nonlinear control (Rahmani et al. 2010).Due to the quick development of micro-processing technology, many control methods based current controller are developed including of a proportional controller plus multiple sinusoidal signal integrators (Rahmani et al. 2010), a PI controller plus a series of resonant controllers (Lascu et al. 2009; Limongi et al. 2009), or vector PI (VPI) controllers (Lascu et al. 2007).

The control of SAPF based current Suffers from several drawbacks such as steady state error and band width limitation. In order to overcome drawbacks introduced by the current controllers an efficient control is proposed for three phase PWM converters called direct power control DPC by Noguchi et al. (1998). Advantages of this control method presents in fast dynamic response and simplicity of implementation compared to other strategies. DPC control strategy is developed analogously with the well-known direct torque control (DTC) used for adjustable speed drives (Takahashi and Nogushi 1986). The controlled variables for DPC method are active and reactive powers while DTC method regulates flux and torque terms. The most important features of DPC control are lack of closed current loops and the direct selection of optimal switching state from a heuristic switching table based on dual variable criterion. The dual variable criterion consists digitized signals of power errors and grid voltage position.

Emergence of conventional DPC usage for SAPF systems is introduced by (Chaoui et al. 2008; Chen and Joos 2008). Furthermore, a modified DPC applied for an SAPF system is proposed by (Mesbahi et al. 2014; Djazia et al. 2015) in order to remedy adverse effects created by unbalance and distorted grid voltage conditions. As well, multifunctional SAPF system based DPC for a photovoltaic generator is presented by Boukezata et al. (2016).

Research paper proposed by Cortes et al. (2008) introduced a predictive DPC control for PWM rectifiers. This latter is conducted by the evaluation of the effect of each vector among finite set of possible switching states in the aim to minimize power errors. The switching state that produces the minimum variation for power errors is opted and applied during the next sampling period.

As knowledge gap and main contribution, in this paper we incorporate and benefit concept and merits offered by the predictive DPC control to improve steady state operation of a three phase SAPF system.

This paper is organized as follows. In Sect. 2 description and modeling and function principle analysis of the studied system. In Sect. 3 basics and mathematical background of conventional and predictive DPC are outlined. In Sect. 4 proposed control scheme is tested in terms of validity and effectiveness and a comparative study between conventional and proposed DPC is carried out.

2 Topology description and modelling of SAPF system

2.1 Topology description of SAPF system

The role of SAPF is the cancelation of current harmonics in the distribution networks by injecting compensating current at the point of common coupling (PCC) which characterizes with the same magnitude and phase compared to the harmonic current drawn by the nonlinear loads to achieve sinusoidal waveform for line currents. The fundamental structure block of the SAPF is shown in Fig. 1. The SAPF system is consisted of standard three-phase IGBT based voltage source inverter (VSI) bridge with the input impedance (Z f ) and a dc bus capacitor (C) has ability managing sudden transients. A three-phase ac grid with line impedance (Z s ) is supplying power for an non-linear load constituted of uncontrolled three-phase rectifier based diodes with a resistive-inductive load (Mesbahi et al. 2014).

Fig. 1
figure 1

System based shunt active power filter (SAPF) unit

2.2 SAPF modelling

Detailed knowledge about the structure and operation mechanism of SAPF is very important to be able to provide accurate mathematical model. The SAPF composed from an ideal two level three phase voltage source inverter which consists three branches (a, b, c) with two switches in each one. The switch state in the xth branch has two possible states Sx = 1 (closed switch) or Sx = 0 (opened switch).

The three phase voltage system assumed balanced and pure sinusoidal waveform:

$$\left\{ {\begin{array}{*{20}l} {e_{sa} \left( t \right) = V_{m} \sin \left( {\omega t} \right)} \hfill \\ {e_{sb} \left( t \right) = V_{m} \sin \left( {\omega t - \frac{2\pi }{3}} \right) } \hfill \\ {e_{sc} \left( t \right) = V_{m} \sin \left( {\omega t - \frac{4\pi }{3}} \right)} \hfill \\ \end{array} } \right.$$
(1)

V m is the magnitude of simple phase voltage and \(\upomega\) is the angular frequency of the grid.

As already reported supply network is symmetrical and balanced then some assumptions are taking into account:

$$\left\{ {\begin{array}{*{20}c} {e_{sa} } & + & {e_{sb} } & + & {e_{sc} } & { = 0} \\ {i_{sa} } & + & {i_{sb} } & + & {i_{sc} } & { = 0} \\ {i_{la} } & + & {i_{lb} } & + & {i_{lc} } & { = 0} \\ {i_{fa} } & + & {i_{fb} } & + & {i_{fc} } & { = 0} \\ \end{array} } \right.$$
(2)

As depicted in Fig. 2 a simplified phase circuit for the system is presented. It consists of power grid (e s ) connected with PCC point through source impedance Z s and non-linear load absorbs pure distorted current i l and SAPF which represents the association between voltage source inverter and filter impedance \(Z_{f}\).

Fig. 2
figure 2

Equivalent circuit of SAPF system (Mesbahi et al. 2014)

By ignoring effect of source impedance the relationship which links network and SAPF unit can be expressed in the following simplified formulation:

$$V_{SAPF} = e_{s} - L_{f} \frac{{di_{f} }}{dt} - R_{f} i_{f}$$
(3)

where \(V_{SAPF}\) the output voltage provided by the SAPF while is the grid voltage.

As already mentioned the grid power considered symitrical and balanced and by application of Kirchhoff law on the simplified phase circuit of SAPF in Fig. 2. Then a detailed expression of Eq. 3 can be rewritten in the following equation pattern:

$$\begin{aligned} V_{SAPF}^{a} = &\, e_{sa} - L_{f} \frac{{di_{fa} }}{dt} - R_{f} i_{fa} = S_{a} V_{dc} - V_{nk} \\ V_{SAPF}^{b} = &\, e_{sb} - L_{f} \frac{{di_{fb} }}{dt} - R_{f} i_{fb} = S_{b} V_{dc} - V_{nk} \\ V_{SAPF}^{c} = &\, e_{sc} - L_{f} \frac{{di_{fc} }}{dt} - R_{f} i_{fc} = S_{c} V_{dc} - V_{nk} \\ C\frac{{dV_{dc} }}{dt} = & \,S_{a} i_{fa} + S_{b} i_{fb} + S_{c} i_{fc} \\ \end{aligned}$$
(4)

The sum of the first three equations in Eq. 4 leads to:

$$\left\{ {\begin{array}{*{20}l} {V_{SAPF}^{a} + V_{SAPF}^{b} + V_{SAPF}^{c} = 0} \hfill \\ {V_{nk} = \frac{{S_{a} + S_{b} + S_{c} }}{3}V_{dc} } \hfill \\ \end{array} } \right.$$
(5)

Substituting Eq. 5 in Eq. 4 yields

$$\begin{aligned} \frac{{di_{fa} }}{dt} = - \frac{{R_{f} }}{{L_{f} }}i_{fa} - \frac{{V_{dc} }}{{L_{f} }}\left( {S_{a} - \frac{{S_{a} + S_{b} + S_{c} }}{3}} \right) + \frac{1}{{L_{f} }}e_{sa} \hfill \\ \frac{{di_{fb} }}{dt} = - \frac{{R_{f} }}{{L_{f} }}i_{fb} - \frac{{V_{dc} }}{{L_{f} }}\left( {S_{b} - \frac{{S_{a} + S_{b} + S_{c} }}{3}} \right) + \frac{1}{{L_{f} }}e_{sb} \hfill \\ \frac{{di_{fc} }}{dt} = - \frac{{R_{f} }}{{L_{f} }}i_{fc} - \frac{{V_{dc} }}{{L_{f} }}\left( {S_{c} - \frac{{S_{a} + S_{b} + S_{c} }}{3}} \right) + \frac{1}{{L_{f} }}e_{sc} \hfill \\ \end{aligned}$$
(6)

Can summarize control signals as follow:

$$\begin{aligned} \left\{ {\begin{array}{*{20}c} {q_{a} = } & {S_{a} - \frac{{S_{a} + S_{b} + S_{c} }}{3}} \\ {q_{b} = } & {S_{b} - \frac{{S_{a} + S_{b} + S_{c} }}{3}} \\ {q_{c} = } & {S_{c} - \frac{{S_{a} + S_{b} + S_{c} }}{3}} \\ \end{array} } \right. \hfill \\ q_{abc} = KS_{abc} \hfill \\ \end{aligned}$$
(7)

With: \(q_{abc} = \left[ {q_{a} q_{b} q_{c} } \right]^{T}\); \(S_{abc} = \left[ {S_{a} S_{b} S_{c} } \right]^{T}\) and \(K = \frac{1}{3}\left[ {\begin{array}{*{20}c} 2 & { - 1} & { - 1} \\ { - 1} & 2 & { - 1} \\ { - 1} & { - 1} & 2 \\ \end{array} } \right]\)

According to instantaneous reactive power theory proposed by Akagi (1996) an algebraic transformation (Concordia transformation) for grid voltages and currents from \(\left( {a,b,c} \right)\) to (αβ) coordinates is performed.

$$\left[ {\begin{array}{*{20}c} {e_{s}^{\alpha } } \\ {e_{s}^{\beta } } \\ \end{array} } \right] = \sqrt {\frac{2}{3}} \left[ {\begin{array}{*{20}c} 1 & { - \frac{1}{2}} & { - \frac{1}{2}} \\ 0 & {\frac{\sqrt 3 }{2}} & { - \frac{\sqrt 3 }{2}} \\ \end{array} } \right]\left[ {\begin{array}{*{20}c} {e_{sa} } \\ {e_{sb} } \\ {e_{sc} } \\ \end{array} } \right]$$
(8)
$$\left[ {\begin{array}{*{20}c} {i_{s}^{\alpha } } \\ {i_{s}^{\beta } } \\ \end{array} } \right] = \sqrt {\frac{2}{3}} \left[ {\begin{array}{*{20}c} 1 & { - \frac{1}{2}} & { - \frac{1}{2}} \\ 0 & {\frac{\sqrt 3 }{2}} & { - \frac{\sqrt 3 }{2}} \\ \end{array} } \right]\left[ {\begin{array}{*{20}c} {i_{sa} } \\ {i_{sb} } \\ {i_{sc} } \\ \end{array} } \right]\varvec{ }$$
(9)

Instantaneous active and reactive power of the grid can be written as follow:

$$\left[ {\begin{array}{*{20}c} {P_{s} } \\ {Q_{s} } \\ \end{array} } \right] = \left[ {\begin{array}{*{20}c} {e_{s}^{\alpha } } & {e_{s}^{\beta } } \\ { - e_{s}^{\beta } } & {e_{s}^{\alpha } } \\ \end{array} } \right]\left[ {\begin{array}{*{20}c} {i_{s}^{\alpha } } \\ {i_{s}^{\beta } } \\ \end{array} } \right]$$
(10)

2.3 SAPF function principle

Shunt active power filter (SAPF) can be considered as a controlled current source has ability to generate the suitable compensating current which must be corresponding to load current harmonic content drawn by non-linear loads.

In order to provide a reference system based on power quantities then instantaneous power balance between power transmitted by grid and SAPF unit and power drawn by load have to be investigated.

As shown in Fig. 3, it is considered that (P s ,Q s ) are respectively active and reactive powers delivered by the grid, (P f ,Q f ) are respectively active and reactive powers injected by the filter and (P l ,Q l ) are respectively active and reactive consumed powers by non-linear load. The role of SAPF is to compensate reactive power and to address problem of harmonic currents in the grid side. This aim is possible to achieve by the regulation of grid side active power to be equal to the continuous component (fundamental part) of load power (\(P_{s} = \bar{P}_{l}\)) and as well grid side reactive power equal to zero (Q s  = 0). In order to impose this condition on the system then it is necessary that harmonic power component and reactive power in load side be fully fed by SAPF unit. So the power balance of the system can be written in the following form:

$$\left\{ {\begin{array}{*{20}c} {P_{s} = \bar{P}_{l} } \\ {Q_{s} = 0} \\ \end{array} } \right.$$
(11)
$$\left\{ {\begin{array}{*{20}l} {P_{f} = P_{l} - P_{s} = P_{l} - \bar{P}_{l} = \tilde{P}_{l} } \hfill \\ {Q_{f} = Q_{l} - Q_{s} = Q_{l} } \hfill \\ \end{array} } \right.$$
(12)
Fig. 3
figure 3

Power flow in the SAPF system

3 Control of SAPF

3.1 Conventional direct power control (DPC)

As shown in Fig. 4 overview on the control scheme based conventional DPC is presented. The three-phase ac voltages and currents of the network are measured and transformed into the stationary α − β reference frame. The active and reactive powers are calculated according to Eq. 10.

Fig. 4
figure 4

Conventional direct power control block diagrm

The grid voltage position is estimated by using phase locked loop block (PLL) or by a simple trigonometric function as given in Eq. 16. The calculated active and reactive P s Q s power are compared to their references values \(P_{s}^{*} ,Q_{s}^{*}\) respectively in order to generate digitized power error signals S P and \(S_{Q}\).

The selection of optimal switching state is performed via predefined switching table. The accuracy of selection requires the accurate calculation of digitized power error signals and grid voltage angular position.

3.1.1 Digitized signals of power errors

Instantaneous active and reactive power variation over a given reference is very important for the process of optimal vector selection.

$$\left\{ {\begin{array}{*{20}l} {\Delta P_{s} = P_{s}^{*} - P_{s} } \hfill \\ {\Delta Q_{s} = Q_{s}^{*} - Q_{s} } \hfill \\ \end{array} } \right.$$
(13)

The DPC controller needs to use the power error signal in a digitized form and it is possible to obtain by using two level hysteresis comparators.

$$\left\{ {\begin{array}{*{20}l} {S_{P} = 1} & {if} & {P_{s}^{*} - P_{s} \ge h_{p} } \\ {S_{P} = 0} & {if} & { P_{s}^{*} - P \le_{s} - h_{p} } \\ \end{array} } \right.$$
$$\left\{ {\begin{array}{*{20}l} {S_{Q} = 1} & {if} & {Q_{s}^{*} - Q_{s} \ge h_{q} } \\ {S_{Q} = 0} & {if} & { Q_{s}^{*} - Q_{s} \le_{s} - h_{q} } \\ \end{array} } \right.$$
(14)

h p , \(h_{q}\) are hysteresis bands.

3.1.2 Grid voltage angular position identification

Angular position of grid voltage is required in digitized data form in order to fulfil the control process hence the (αβ) plan is divided into twelve sectors as depicted in Fig. 5.

$$\left( {n - 2} \right)\frac{\pi }{6} \le \theta \le \left( {n - 1} \right)\frac{\pi }{6} , \quad n = 1,2 \ldots ..12.$$
(15)
Fig. 5
figure 5

Angular position of grid voltage vector

The angular position can be calculated with the following equation:

$$\theta = arctg\left( {\frac{{e_{s\beta } }}{{e_{s\alpha } }}} \right)$$
(16)

3.1.3 Switching table synthesizing

Application of any one out of the set of possible eight switching vectors (V 0V 7) for the power converter, leads to make specified variation amount for the grid instantaneous power. The influence of each vector can be outline in two main effects on power converter which are capacitive (power source) or inductive effect (load) (Figs. 6, 7). The optimal switching states are summarized in Table 1.

Fig. 6
figure 6

Influence of switching states on vector diagram of SAPF system

Fig. 7
figure 7

Predictive direct power control block diagrm

Table 1 Switching table

3.2 Direct power control based predictive approach

In order to maintain power balance mentioned in Eqs. 11 and 12 then, predictive control concept based DPC is applied for the SAPF system. Similarly as conventional DPC also predictive DPC considers active and reactive grid power as controlled variables.

Predictive DPC control strategy is executed basically through the following two steps:

3.2.1 Generation of the predictive model

In Order to simplify the modelization we are adopted the dynamic equation of grid current in the vector form.

$$L_{s} \frac{{di_{s} }}{dt} = e_{s} - V_{SAPF} - R_{s} i_{s}$$
(17)

The discretization act is done by approximating the derivative operation as variation over one sampling period.

$$\frac{{di_{s} }}{dt} \approx \frac{{i_{s} \left( {k + 1} \right) - i_{s} \left( k \right)}}{{T_{s} }}$$
(18)

By substituting Eq. 18 in Eq. 17 then predicted current model is provided:

$$i_{s} \left( {k + 1} \right) = \left( {1 - \frac{{R_{s} T_{s} }}{{L_{s} }}} \right)i_{s} \left( k \right) + \frac{{T_{s} }}{{L_{s} }}\left[ {e_{s} \left( k \right) - V_{SAPF} \left( k \right)} \right]$$
(19)

where i s (k + 1) is the predicted grid current vector at k + 1 instant, for a given voltage vector generated by SAPF.

Then the predicted active and reactive power terms can be expressed in the following form:

$$\left\{ {\begin{array}{*{20}l} {P_{s} \left( {k + 1} \right) = Re\left[ {e_{s} \left( {k + 1} \right)i_{s} \left( {k + 1} \right)^{*} } \right]} \hfill \\ {Q_{s} \left( {k + 1} \right) = Im\left[ {e_{s} \left( {k + 1} \right)i_{s} \left( {k + 1} \right)^{*} } \right]} \hfill \\ \end{array} } \right.$$
(20)

* represents conjugate operator. Re represents the real component of the vector. Im represents the imaginary component of the vector.

The predicted input grid voltage e s (k + 1) after one sampling time period \(T_{s}\).

$$e_{s} \left( {k + 1} \right) = e_{s} \left( k \right)e^{i\Delta \theta }$$
(21)

where Δθ = ωT s is the angle of forward progression with angular velocity \(\omega\) of the grid voltage vector during one sampling period.

Can assume that grid voltage is constant over two successive periods by considering that sampling time period T s is small enough.

Hence, Eq. 20 can be simplified as follow:

$$\left\{ {\begin{array}{*{20}l} {P_{s} \left( {k + 1} \right) = Re\left[ {e_{s} \left( k \right)i_{s} \left( {k + 1} \right)^{*} } \right] } \hfill \\ {Q_{s} \left( {k + 1} \right) = Im\left[ {e_{s} \left( k \right)i_{s} \left( {k + 1} \right)^{*} } \right] } \hfill \\ \end{array} } \right.$$
(22)

As well, it is possible to express the predictive model in different way according to the complex power form.

Based on what was already reported by Zhang et al. (2013), the grid side complex power S s expression can be calculated from grid voltage and current vectors as:

$$S_{s} = P_{s} + jQ_{s} = \frac{3}{2}\left( {\varvec{e}_{s} \varvec{i}_{s}^{*} } \right)$$
(23)

Based on Eq. 17 derivative expression of line current could be represented as follow:

$$\frac{{di_{s} }}{dt} = \frac{1}{{L_{s} }}\left[ {e_{s} - V_{SAPF} - R_{s} i_{s} } \right]$$
(24)

As mentioned before it is considered that the grid is symmetrical and balanced. Therefore the voltage source can be expressed in the exponential form \(e_{s} = \left| {e_{s} } \right|e^{\omega t}\).

The derivative expression of line voltage is given by the following expression:

$$\frac{{de_{s} }}{dt} = \omega e_{s}$$
(25)

Substituting Eqs. 24 and 25 in Eq. 23 then derivative expression of complex power is given as:

$$\frac{{dS_{s} }}{dt} = \frac{1}{{L_{s} }}\left[ {\left( {\left| {e_{s} } \right|^{2} - V_{SAPF}^{*} e_{s} } \right) - \left( {R_{s} i_{s} - j\omega L_{s} } \right)S_{s} } \right]$$
(26)

Slop terms of input active and reactive powers can be obtained by decomposing Eq. 26 into real and imaginary parts (Zhang et al. 2013).

$$\frac{{dP_{s} }}{dt} = \frac{3}{{2L_{s} }}\left[ {\left( {\left| {e_{s} } \right|^{2} - Re\left[ { V_{SAPF}^{*} e_{s} } \right]} \right)} \right] - \frac{{R_{s} }}{{L_{s} }}P_{s} - \omega Q_{s}$$
(27)
$$\frac{{dQ_{s} }}{dt} = \frac{3}{{2L_{s} }} Im\left( { V_{SAPF}^{*} e_{s} } \right) - \omega P_{s} + \frac{{R_{s} }}{{L_{s} }} Q_{s}$$
(28)

So it is possible to predict the behaviour of grid power in the next sampling period through the following predictive model:

$$P_{s} \left( {k + 1} \right) = P_{s} \left( k \right) + [ \frac{3}{{2L_{s} }}\left[ {\left( {\left| {e_{s} } \right|^{2} - Re\left[ { V_{SAPF}^{*} e_{s} } \right]} \right)} \right] - \frac{{R_{s} }}{{L_{s} }}P_{s} - \omega Q_{s}]T_{s}$$
(29)
$$Q_{s} \left( {k + 1} \right) = Q_{s} \left( k \right) + [\frac{3}{{2L_{s} }} Im\left( { V_{SAPF}^{*} e_{s} } \right) - \omega P_{s} + \frac{{R_{s} }}{{L_{s} }} Q_{s}]T_{s}$$
(30)

3.2.2 Selection of optimal vector via cost function

The main task for the proposed control technique is to establish the power balance reported in Eqs. 11 and 12 which represents the main condition to ensure efficient power filtration. Predictive control approach is used in order to drive the controlled variables to their respective references.

As depicted in Fig. 8 the basic idea of cost function is to evaluate effects of a set of switching vectors (six active vectors) at every sampling period. The decision about the optimal vector is done by the selection of the vector with low variation effect on cost function.

$$C_{F} = \left| {Q_{s}^{*} - Q_{s} \left( {k + 1} \right)} \right| + \left| {P_{s}^{*} - P_{s} \left( {k + 1} \right)} \right|$$
(31)

where P * s the reference value for grid active power which represent the output of dc link voltage controller and \(Q_{s}^{*}\) the reference value for grid reactive power which taken to be equal to zero in the aim to unify the power factor.

Fig. 8
figure 8

Selection of the optimal switching state

$$C_{F} = \left| {Q_{s} \left( {k + 1} \right)} \right| + \left| {P_{s}^{*} - P_{s} \left( {k + 1} \right)} \right|$$
(32)

Figure 8 introduces the selection process of optimal switching vector which is depending on the level of variation occurred by each active vector on the cost function where the corresponding vector with low variation is chosen to be applied in the next sampling time period.

3.2.3 Dc link voltage regulation

Dc link voltage regulation depends mainly on the established power balance. For the stability of the system DC bus voltage must be constant in the steady state with limited variability during transients and start up. The dc bus voltage regulator can play the role of dynamic adapter in order to maintain the power balance between grid and load in the two following cases:

  • P s  > P l the excessed power is drawn by the SAPF.

  • P s  > P l the lacked power is fed by the SAPF.

Figure 9 shows block diagram of the dc link voltage regulator and detailed analysis of regulator parameters is given as:

Fig. 9
figure 9

Block diagram of the dc bus voltage regulation loop

Based on the regulator structure depicted in Fig. 9 the identification of the transfer function with the general second order is defined as (Chaoui et al. 2008):

$$H\left( s \right) = \frac{{2\xi \omega_{n} s + \omega^{2} }}{{s^{2} + 2\xi \omega_{n} s + \omega_{n}^{2} }}$$
(33)

Then parameters of capacitor voltage regulator can be expressed as

$$K_{p} = \frac{{2\xi \omega_{n} }}{{\sqrt 2 {\text{V}}}}\quad {\text{and}}\,\tau_{i} = \frac{2\xi }{{\omega_{n} }}\quad {\text{and}}\,K_{i} = \frac{1}{{\tau_{i} }}$$
(34)

In order to compromise between dynamic performance and stability of the closed loop control it is recommended to choose: ξ = 0.707 and \(f_{n} = \frac{{\omega_{n} }}{2\pi } = 50 \, \left[ {\text{Hz}} \right].\)

4 Simulation results and discussion

The simulation of the system depicted in Fig. 1 is performed in the Matlab/SIMULINK environment. Data parameters used in the simulation process are listed in the “Appendix B”.

Results which have been presented in this section are the outcomes of the studied system for two control algorithms (conventional DPC and predictive DPC) under bellow cases:

Case 1 analyse study of steady state operation with load value \(R_{l} = 10 \varOmega\) and capacitor voltage \(V_{dc} = 180 {\text{V}}.\)

Case 2: analyse study of transient state operation with step load variation \(R_{l} = 10\sim20 \varOmega .\)

Case 3: analyse study of transient state operation with step capacitor voltage variation \(V_{dc} = 180\sim200 \;{\text{V}}.\)

For all simulation process it has been regarded the grid system as sinusoidal balanced network.

In order to highlight the superiority of the proposed control configuration a comparative study is carried out as a conclusion for this section.

  • Case 1: steady state operation.

SAPF unit is switched on at instant t = 0.2 s.

Figures 10 and 12 show the source voltage (e sa ), source current (i sa ), load current (i la ), filter current (i fa ) and dc bus capacitor voltage (V dc ) for both control strategies. The instant the filter is switched on the source current turns quickly and gradually from the full distorted shape to the sinusoidal waveform which means effective attenuation of low order harmonic contents (5th, 7th, and 11th harmonics) induced due of non-linear load, as well capacitor voltage reaches a steady-state value around \(V_{dc} = 180 \,{\text{V}}\) within a few mains periods (3 mains cycles).It is necessary to recall that capacitor is pre-charged in the aim to avoid start up divergence of input power and undesired overshot for dc bus voltage.

Fig. 10
figure 10

Start up of SAPF in the case of conventional DPC a Line voltage phase-A (V). b Line current phase-A (A). c Filter current phase-A (A). d Capacitor voltage (V)

Fig. 11
figure 11

Start up of SAPF in the case of conventional DPC a input active power (W), b input reactive power (VAR)

Fig. 12
figure 12

Start up of SAPF in the case of predictive DPC. a Line voltage phase-A (V). b Line current phase-A (A), c Filter current phase-A (A), d Capacitor voltage (V)

Figures 11 and 13 shows the input power evolution for both control strategies. We can observe that active power is achieved its rated value and reactive power regulated at zero level in the aim to ensure unity of power factor (Fig. 12).

Fig. 13
figure 13

Start up of SAPF in the case of predictive DPC a input active power (W), b input reactive power (VAR)

  • Case 2: transient state operation with stepped resistor load from \(R_{l} = 10\) to 20 Ω and fixed capacitor voltage \(V_{dc} = 180\).

The resistor load is stepped at instant t = 0.5 [s].

Figures 14 and 15 show various waveforms of source current (i sa ), input active power (P s ), input reactive power (Q s ) and dc bus capacitor voltage (V dc ) respectively for both control strategies. During resistor load change at instant 0.5 s can observe magnitude reduction of source current and active power delivered by grid and as well increasing in level of capacitor voltage which can be explained as dynamic power compensation ability for dc bus voltage regulator during transient conditions to maintain the power balance (mentioned in Sect. 3.2) at point of common coupling (PCC). In this case, excessed power delivered by grid is absorbed instantaneously by the capacitor element which explains the slight and temporary rise in level of dc link voltage then the steady state of system can be restored within few cycles of time.

Fig. 14
figure 14

Load variation in case of conventional DPC. a Line current phase-A (A). b Input active power (W). c Input reactive power (VAR). d Capacitor voltage (V)

Fig. 15
figure 15

Load variation in case of predictive DPC. a Line current phase-A (A). b Input active power (W). c Input reactive power (VAR). d Capacitor voltage (V)

  • Case 3 transient state operation with stepped capacitor voltage from \(V_{dc} = 180\) to 200 V and fixed resistor load \(R_{l} = 10\) Ω.

The capacitor voltage is stepped at instant t = 0.5 s.

Figures 16 and 17 shows various waveforms of source current (i sa ), input active power (P s ), input reactive power (Q s ) and dc bus capacitor voltage (V dc ) for both control strategies. As can be seen variation of capacitor voltage has no effect on the level of generated power only temporary limited disturbance as transient perturbation. The capacitor voltage reaches its new level within 2 to 3 periods with low overshot which demonstrates satisfactory dynamic performance for dc bus voltage closed loop regulation.

Fig. 16
figure 16

Transient impact of capacitor voltage variation in case of conventional DPC. a Line current phase-A (A). b Input active power (W). c Input reactive power (VAR). d Capacitor voltage (V)

Fig. 17
figure 17

Transient impact of capacitor voltage variation in case of predictive DPC. a Line current phase-A (A). b Input active power (W). c Input reactive power (VAR). d Capacitor voltage (V)

4.1 Comparative study

In order to prove effectiveness and superiority of the proposed control approach over the conventional one which is proposed by Chaoui et al. (2008), a comparative evaluation is done focused on key points such as:

  • source current waveform,

  • response time during start up and transient conditions,

  • power ripple level and total harmonic distortion factor (THD).

As can be seen from previous results, during transient state operation in case of change of load or capacitor voltage the two control strategies converge to similar results, which means similarity of time response (t s ) around 3 cycles of ac mains is achieved.

From Fig. 18 we can report two points the first one is that unity of power factor is satisfied by both control strategies and the second is a clear superiority for predictive DPC in terms of line current waveform where can observe a smooth sinusoidal waveform is established but on the other hand line current waveform in case of conventional DPC includes some distortion traces due of improper power regulation.

Fig. 18
figure 18

Line voltage (V) and current (A) for phase-A a conventional DPC b predictive DPC

Figures 11 and 13 show the level of input power fluctuation in the steady state for both control strategies. Mentioned results demonstrate a clear superiority for predictive DPC over conventional one especially in terms of reactive power ripples.

For example the power ripple in conventional DPC case is around 100 VAR whereas for predictive DPC was restricted at level of 50 VAR.

Figure 19 presents the total harmonic distortion before and after the start up of SAPF for both control strategies. Presented results demonstrate that both control strategies has ability to drive source current below standard harmonic current limits (IEEE-519). The same results prove the superiority of proposed predictive DPC than conventional DPC in terms of THD with 1.42 and 2.88% respectively.

Fig. 19
figure 19

Harmonic spectrum of line current phase-A a before filtration b conventional DPC c predictive DPC

Briefly, both control strategies has similar performance and robustness for transient state operation but predictive DPC outperforms than conventional one with significant improvement for the steady state operation.

5 Conclusion

This paper has discussed integration of predictive DPC control for a shunt active power filter (SAPF) system. The concept of control approach is mainly based on the mathematical model of PWM converter to precalculate its behaviour for the next sampling cycle. Briefly, control process is done according to two phases, calculation of predicted power terms and an optimization act via a cost function minimization in order to select the optimal switching states. The optimal switching states which selected every sampling time could to establish the desired power balance for the system; hence the suppression of harmonic power induced by non-linear loads in the grid side can be achieved successfully.

The numerical simulation is carried out in order to investigate the behaviour of system in steady and transient states for both control strategies. As wise findings, we can mention that predictive DPC control has been maintained main merits of conventional DPC such as perfect dynamic performance and lack of current closed loops and as well it has been offered significant improvement regarding to line current THD factor and power ripple in the steady state operation. A comparative study between proposed and conventional control techniques for SAPF application has been introduced. The obtained results were in accordance to the mathematical findings in previous sections and it has confirmed effectiveness and superiority of predictive DPC method over the conventional one.