1 Introduction

As the adoption of plug-in electric vehicles (PEVs) continue to increase, the power grid experiences new challenges in terms of grid stability, reliability, power quality and harmonics [1,2,3,4,5,6]. This has led to extensive research on bidirectional PEV chargers that feature grid-to-vehicle (G2V) operations for battery charging as well as vehicle-to-grid (V2G) operations. V2G operations of bidirectional PEV chargers are highly attractive due to the potential of PEVs fulfilling the energy storage needs of the grid and assisting the grid in terms of providing active power for load leveling, reactive power support, ancillary services, voltage regulation, harmonic filtering and power factor correction [7,8,9,10,11,12,13,14]. Supplying reactive power using on-board chargers that are connected to a distribution system has some inherent disadvantages, such as the mobility and the power limitation of on-board chargers [15, 16]. V2G services using off-board chargers are more advantageous compared with using on-board chargers since off-board stations are stationary and are rated at higher power levels. Hence, the utility grid can compensate respective stations via an annual agreement [15].

Furthermore, charging stations can be integrated with renewable energy sources (RES) such as wind or solar with suitable maximum power point trackers to lessen grid dependency. PEVs can act as distributed energy storage units attribute to the large energy reserve of an electric vehicle battery and the potential of thousands of units connected to the grid. Hence, by integrating RES with charging stations, the impact of PEV charging on the electric grid can be mitigated, while at the same time helping to achieve renewable portfolio standards [17,18,19,20,21,22,23,24].

To provide reactive power compensation without degrading PEV’s battery during charging, several research works on bidirectional PEV chargers have been reported. A bidirectional off-board charger proposed by [15] employs two linear controllers to track reference active power and reactive power in conjunction with a phase-locked loop algorithm. The proposed charger is capable of four quadrant operations but does not have RES integration, thus limiting its potential to be self-sufficient. Meanwhile, in a single-phase on-board bidirectional charger proposed by [25], proportional-integral (PI) controllers are employed in AC/DC converters and DC/DC converters to provide constant voltage and constant current charging as well as reactive power compensation. However, the proposed charger is only capable for two quadrants of operation. Reference [26] proposes a PEV DC charging station using a neutral point clamped converter. The proposed DC bus architecture allows the connection of distributed power systems such as RES and energy storage devices. The grid-connected converter in the system is regulated using voltage oriented control with multiple linear controllers and for the voltage balancing mechanism, another linear control is utilized. In a separate study, a unified single-phase and three-phase control of on-board PEV chargers proposed by [27] utilizes separate linear controllers with respective references to provide desired control for grid power flow and battery charging.

In the aforementioned PEV chargers [15, 25,26,27], their control of desired variables as well as the modulation required to generate the expected voltage are realized using linear controllers such as PI controllers. In order to fulfill numerous control requirements, the linear controllers are cascaded with multiple outer loops that may result in higher bandwidth for the inner controller loops. Although this control technique is easy to implement, its performance for the whole system is heavily dependent on the performance of the inner control loop. For this reason, the parameters of the inner controller must be chosen carefully to provide system stability at all operating points. Moreover, the usage of linear controllers leads to more complicated and time consuming gain tuning [28,29,30].

In recent years, finite control set model predictive control (FCS-MPC) has gained greater popularity due to having several advantages such as fast dynamic response, easy inclusion of nonlinearities and constraints of the system and the flexibility to include other system requirements in the controller [31,32,33]. FCS-MPC is an optimization problem where a sequence of future actuations is obtained by minimizing the cost function. Since power converters are systems with finite number of states, the MPC optimization problem can be simplified and reduced to the prediction of the behavior of the system for each possible state. Extensive research work has been done on performance evaluation between FCS-MPC and traditional linear-based controllers such as the PI controller [31, 34,35,36,37,38,39,40,41].

In terms of dynamic response, FCS-MPC is slightly faster and has less overshoot than the PI controller. Furthermore, the PI controller suffers from decoupling capability between the d and q axes. From the studies in [31, 37, 41], the current in the q axis is disturbed when step changes in the d axis current reference are applied. This coupling is not present in the response of the FCS-MPC. In addition, FCS-MPC requires simpler implementation as compared to linear controllers, since saturation of the manipulated variables, anti-windup protection, decoupling networks, modulator and tuning of the controller parameters are not required. In addition, numerous research studies have established that FCS-MPC yields smaller total harmonic distortion (THD) and smaller mean absolute current reference tracking error as compared to traditional linear controllers [31, 36, 37, 40, 41]. Hence, FCS-MPC could be an excellent alternative for PEV charger control. However, there is a lack of application of MPC using either current control or power control in the PEV charger. To the author’s best knowledge, the MPC of the PEV charger with renewable energy integration has never been reported.

Motivated to fill this research gap, this paper presents a model predictive control (MPC) of off-board PEV chargers with photovoltaic (PV) integration using two-level four-leg inverter topology. The charger operates in four quadrants in the active-reactive power planes to achieve multiple functions (i.e. PEV battery charging, PEV battery discharging for load leveling, providing reactive power support and acquiring maximum PV power generation). The control of the four quadrant modes is realized by incorporating both direct power and current MPC that dynamically controls the decoupled active-reactive power flow in a smart grid environment as well as controlling the PEV battery charging and discharging reliably.

Through implementation of direct power and current MPC, optimal switching states for the charger is directly generated, thus eliminating the need for a modulator. By adopting direct power and direct current FCS-MPC, the charger is able to provide higher quality of power and current with low THD and ripple content for the grid’s power flow and PEV charging as well as good dynamic response to the overall system. In addition, using the proposed control strategy, PV generation with maximum power tracking could be seamlessly integrated with the power flow control to provide additional power generation to charge the PEV battery or supplied to the grid, reducing the grid dependency on the charging station. Detailed analyses of the proposed system and its control are presented here. The results show that the charger exhibits fast dynamic response and good steady-state performance under all power flow modes and various environmental conditions. The remainder of the paper is arranged as follows. Section 2 elaborates on the proposed system topology and control algorithm. Section 3 presents the simulation study of the proposed system and its performance analysis. Finally, a conclusion is drawn in Section 4.

2 PEV chargers with PV integration

2.1 System configuration

Figure 1 shows the circuit configuration of the proposed PEV charger system with PV integration. The system consists of two integral stages, AC/DC converter and DC/DC converter. The AC/DC converter is a three-phase voltage source converter (VSC). The VSC is responsible for directing the power flow of the system by controlling switches S1 to S6 with the help of model predictive direct power control (MPDPC). Active power can be drawn from the grid for PEV battery charging as well as additional power generated by the PV array can be fed back to the grid seamlessly. At the same time, reactive power support can be delivered to the grid when requested by the utility using MPDPC.

Fig. 1
figure 1

Configuration of the proposed PEV charger system

Hence, the proposed PEV charger system operates in all four quadrants of the power plane as illustrated in Fig. 2. In the meantime, the DC/DC converter controls the PEV battery charging through switches S7 and S8. A current MPC is implemented to control battery’s charging and discharging. When S7 is turned on and S8 is turned off, the current flows through S7 and the inductor L, thus charging the battery. When S7 is turned off, the free-wheeling diode of switch S8 conducts the inductor current back to the inductor and battery. During this operation, the voltage at the DC link is stepped down from 400-600 V to 240 V.

Fig. 2
figure 2

Power flow operation of PEV charger

Hence, buck converter operation is achieved during battery charging. Meanwhile, when S8 is turned on and S7 is turned off, the battery current energizes the inductor. When S8 is turned off, the inductor current flows through the free-wheeling diode of switch S7, thus sending power back into the grid. During this boost operation, the battery voltage of 240 V is stepped up to the 400-600 V range. Note that active power and reactive power sent from the grid to the charger have a positive sign and vice versa. While a negative sign for the battery’s power denotes that the battery is receiving power from the grid and vice versa. These notations will be used throughout this paper. A detailed description of applied MPC can be found in the next section.

2.2 Predictive control of bidirectional power flow between AC and DC terminals

Figure 3 shows the control diagram of the MPC of the proposed PEV charger system. From the diagram, there are two predictive models in charge of providing the optimal switching action to switches S1 to S8 of the proposed charger. The proposed predictive strategy is based on the fact that only a finite number of possible switching states are available to the power converter.

Fig. 3
figure 3

Control diagram of MPC of PEV charger system

The first predictive model is responsible for controlling the switching of the VSC (switches S1 to S6) to control active and reactive power flow between the AC and DC terminals as well as controlling the DC link voltage. First, the grid phase voltages and phase currents are sampled in order to calculate the grid’s instantaneous power for the predictive model. Since the upper and lower switches of the VSC are operating in a complementary mode, there are eight different switching states available, which lead to the formulation of seven different voltage vectors in the αβ orthogonal coordinates, as illustrated in Fig. 4.

Fig. 4
figure 4

Voltage vectors for VSC

There are a total of six active vectors and two zero vectors. Voltage vectors generated by the inverter, when expressed in terms of switching states and DC link voltage are:

$$\varvec{v}_{\alpha \beta } = \sqrt {\frac{2}{3}} V_{dc} \left( {S_{\text{a}} + S_{\text{b}} \text{e}^{{\text{j}\frac{{2\uppi}}{3}}} + S_{\text{c}}\text{e}^{{\text{j}\frac{{4\uppi}}{3}}} } \right)$$
(1)

where Sa, Sb and Sc are the switching states at each leg of the inverter. The switching states can be represented in binary states 1 or 0 at which state 1 indicates that the upper switch is on and the lower switch is off and vice versa for binary state 0. Hence, the voltage vectors are represented in the form of (SaSbSc) as shown in Fig. 4.

In order to produce instantaneous active and reactive power for the predictive controller, the grid voltages and currents are first measured. Then, the grid voltages and currents are expressed in a stationary reference αβ frame by using power invariant Clarke transformation, which is given by:

$$\left[ {\begin{array}{*{20}c} {v_{\alpha } } \\ {v_{\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} {v_{\text{a}} } \\ {v_{\text{b}} } \\ {v_{\text{c}} } \\ \end{array} } \right]$$
(2)
$$\left[ {\begin{array}{*{20}c} {i_{\alpha } } \\ {i_{\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_{\text{a}} } \\ {i_{\text{b}} } \\ {i_{\text{c}} } \\ \end{array} } \right]$$
(3)

The three-phase VSC is connected to the grid through an inductor with an inductance of Ls and an equivalent series resistance (ESR) of Rs. Although the ESR of the inductor is small and can be neglected, it is taken into consideration here for more precise control of the power. By applying Kirchoff’s voltage law at the VSC, the grid voltage, vsαβ can be expressed as:

$$\varvec{v}_{s\alpha \beta } = L_{s} \frac{{\text{d}\varvec{i}_{\alpha \beta } }}{{\text{d}t}} + R_{s} \varvec{i}_{\alpha \beta } + \varvec{v}_{o\alpha \beta }$$
(4)

where iαβ denotes the grid current; voαβ denotes the output voltage of the converter, all in the αβ reference frame. Thus, the derivative of the phase current components can be obtained as:

$$\frac{{{\text{d}}i_{\alpha } }}{{\text{d}t}} = \frac{1}{L}(v_{s\alpha } - v_{o\alpha } - i_{\alpha } R_{s} )$$
(5)
$$\frac{{{\text{d}}i_{\beta } }}{{\text{d}t}} = \frac{1}{L}(v_{s\beta } - v_{o\beta } - i_{\beta } R_{s} )$$
(6)

The power invariant instantaneous active and reactive power are given by:

$$P = v_{s\alpha } i_{\alpha } + v_{s\beta } i_{\beta }$$
(7)
$$Q = v_{s\beta } i_{\alpha } - v_{s\alpha } i_{\beta }$$
(8)

Then, differentiating (6) and (7) yields:

$$\frac{{{\text{d}}P}}{{{\text{d}}t}} = v_{s\alpha } \frac{{{\text{d}}i_{\alpha } }}{{{\text{d}}t}} + i_{\alpha } \frac{{{\text{d}}v_{s\alpha } }}{{{\text{d}}t}} + v_{s\beta } \frac{{{\text{d}}i_{\beta } }}{{{\text{d}}t}} + i_{\beta } \frac{{{\text{d}}v_{s\beta } }}{{{\text{d}}t}}$$
(9)
$$\frac{{{\text{d}}Q}}{{{\text{d}}t}} = v_{s\beta } \frac{{{\text{d}}i_{\alpha } }}{{{\text{d}}t}} + i_{\alpha } \frac{{{\text{d}}v_{s\beta } }}{{{\text{d}}t}} - v_{s\alpha } \frac{{{\text{d}}i_{\beta } }}{{{\text{d}}t}} - i_{\beta } \frac{{{\text{d}}v_{s\alpha } }}{{{\text{d}}t}}$$
(10)

By considering the balanced sinusoidal three-phase voltages at grid frequency ωs (rad/s) in the system, the grid voltages can be denoted as:

$$v_{s\alpha } = v_{s} \sin \left( {\omega_{s} t} \right)$$
(11)
$$v_{s\beta } = - v_{s} \cos \left( {\omega_{s} t} \right)$$
(12)

Subsequently, the derivative of the grid voltages can be obtained as:

$$\frac{{{\text{d}}v_{s\alpha } }}{{{\text{d}}t}} = - \omega_{s} v_{s\beta }$$
(13)
$$\frac{{{\text{d}}v_{s\beta } }}{{{\text{d}}t}} = \omega_{s} v_{s\alpha }$$
(14)

By substituting (11) to (14) into (9) and (10), and simplifying with (7) and (8), the resulting dynamic models of the active and reactive power are:

$$\frac{{{\text{d}}P}}{{{\text{d}}t}} = \frac{1}{L}(v_{s\alpha }^{2} + v_{s\beta }^{2} - v_{s\alpha } v_{o\alpha } - v_{s\beta } v_{o\beta } - R_{s} P) - \omega_{s} Q$$
(15)
$$\frac{{{\text{d}}Q}}{{{\text{d}}t}} = \frac{1}{L}(v_{s\alpha } v_{o\beta } - v_{s\beta } v_{o\alpha } - R_{s} Q) + \omega_{s} P$$
(16)

Considering the power variation within one switching period Ts, discretization of (10) enables the calculation of the predicted active and reactive power at the next sampling instant Pp(k+1) and Qp(k+1), i.e.,

$$\begin{aligned} P^{\text{p}} (k + 1) = P(k) + \frac{{T_{s} }}{L}\left( {v_{s\alpha }^{2} (k) + v_{s\beta }^{2} (k) - v_{s\alpha } (k)v_{o\alpha } (k)} \right. \hfill \\ \left. { \, - v_{s\beta } (k)v_{o\beta } (k) - R_{s} P(k)} \right) - \omega_{s} T_{s} Q(k) \hfill \\ \end{aligned}$$
(17)
$$\begin{aligned} Q^{\text{p}} (k + 1) = Q(k) + \frac{{T_{s} }}{L}\left( {v_{s\alpha } (k)v_{o\beta } (k) - v_{s\beta } (k)v_{o\alpha } (k)} \right. \hfill \\ \left. { \, - R_{s} Q(k)} \right) + \omega_{s} T_{s} P(k) \hfill \\ \end{aligned}$$
(18)

Following the principle of MPC, a quadratic cost function which computes the deviation between the reference power and predicted power is minimized by selecting the optimal voltage vector from all of the possible candidate voltage vectors as illustrated in Fig. 4. The cost function g1 is represented as:

$$g_{1} = \left( {P^{*} - P^{\text{p}} (k + 1)} \right)^{2} + \left( {Q^{*} - Q^{\text{p}} (k + 1)} \right)^{2}$$
(19)

where \(P^{*}\) denotes the reference active power and \(Q^{*}\) denotes the reference reactive power. Pp(k+1) and Qp(k+1) are calculated by using (17) and (18) respectively for each of the seven possible voltage vectors shown in Fig. 4. Then, the cost function g1 evaluates the error between the reference and predicted active power and reactive power in the next sampling interval. The voltage that minimizes the cost function g1 and has the smallest error is selected as the optimal voltage vector and is then applied to the system.

2.3 Predictive control of PEV for charging and discharging operations

Meanwhile, the second predictive model in Fig. 3 is responsible for regulating the charging and discharging of the PEV battery by controlling switches S7 and S8. A reference battery power, \(P_{bat}^{*}\) is delivered to the predictive controller to determine the operation of the DC/DC converter. By setting the battery charging voltage to a predetermined level (240 V), the control of the power flow for the battery could be simplified and achieved with a single current predictive control to control inductor current IL. The inductor current, IL is first sampled and its value is used to predict the inductor current in the next sampling period. Then, the inductor voltage, VL can be represented as:

$$V_{L} = L\frac{{{\text{d}}I_{L} }}{{\text{d}t}}$$
(20)

In order to obtain the predicted inductor current at the next sampling instant, (20) is discretized and rearranged, yielding:

$$\left\{ \begin{aligned} V_{L} = L\frac{{I_{L}^{\text{p}} (k + 1) - I_{L} (k)}}{{T_{s} }} \hfill \\ I_{L}^{\text{p}} (k + 1) = \frac{{T_{s} }}{L}V_{L} + I_{L} (k) \hfill \\ \end{aligned} \right.$$
(21)

Since there are only two switches involved in the current predictive control (S7 and S8) and they are working in complementary mode, there are only two possible voltage vectors available.

When S7 is turned off and S8 is turned on, VL is equal to the battery’s voltage Vbat. Conversely, when S7 is turned on and S8 is turned off, VL is equal to VbatVpv where Vpv is the PV array’s voltage. Then, the cost function, g2 evaluates the error between the predicted inductor current and the sampled inductor. Cost function g2 can be represented as:

$$g_{2} = \left( {I_{L}^{*} - I_{L}^{\text{p}} (k + 1)} \right)^{2}$$
(22)

Finally, the voltage vector that yields the lesser error is implemented for the current control.

2.4 Maximum power point tracking of PV array

On the PV array side, a maximum power point tracking (MPPT) using perturb and observe algorithms is implemented to extract maximum available PV power to feed into the system. The MPPT algorithm will produce a reference voltage point \(V_{pv}^{*}\). The difference between the voltage reference and DC link capacitor voltage will then be inserted into a PI controller in order to compute the reference active power for cost function g1. It is important to note that the range of PV array’s voltage which corresponds to the maximum power point, VMPP must be within the range of the DC link capacitor voltage. If the VMPP is located beyond the range of the DC link capacitor voltage, an additional buck or boost converter is needed to step-up or step-down the PV array’s voltage to the appropriate voltage level in the DC link capacitor.

2.5 Summary of the control algorithm

The control algorithm is comprised of two MPCs to handle the bidirectional power flow between the AC and DC terminals and the control of the PEV charging and discharging. Cost function minimization is implemented as a repeated loop for each voltage vector to predict the active power, reactive power, and inductor current values, evaluate the cost function, and store the minimum value and the index value of the corresponding switching state for the respective switches.

The control of the bidirectional power flow can be summarized as follows:

  1. 1)

    Sample the input phase current iabc and input phase voltage vabc.

  2. 2)

    Express those phase currents and voltages in stationary reference αβ frame by using the power invariant Clarke transformation.

  3. 3)

    Those values are used to predict the active power and reactive power by using (17) and (18).

  4. 4)

    All predictions are evaluated by using the cost function g1.

  5. 5)

    The optimal switching state that corresponds to the optimal voltage vector that minimizes the cost function is selected to be applied at the next sampling time.

Meanwhile, the control of PEV charging and discharging can be summarized as follows:

  1. 1)

    Sample inductor current IL.

  2. 2)

    The sampled value is used to predict the inductor current by using (21).

  3. 3)

    All predictions are evaluated using the cost function g2.

  4. 4)

    The optimal switching state that minimizes the cost function is selected to be applied at the next sampling time.

3 Simulation results

In order to evaluate the performance of the proposed PEV charger system, the system is implemented in the MATLAB/Simulink environment. The system parameters are listed in Table 1.

Table 1 System parameters used in the proposed system

3.1 Power flow modes

The proposed system has multiple power flow modes depending on various system parameters such as the amount of PV power generated, reactive power demand, and the power level of the PEV battery. Therefore, the system is simulated for all possible power flow modes in order to evaluate its effectiveness and performance. For an exhaustive study, the system is simulated at its maximum operating range, i.e. ±10 kW battery active power, ±10 kvar grid reactive power and 12.5 kW to 0 kW PV power. Table 2 illustrates the various modes of power flow of the proposed system and Fig. 5 presents the corresponding simulation results. In order to operate the PEV charger in a single mode, the active power of the PEV battery, PV power generation and the grid’s reactive power are set according to the parameters in Table 2.

Table 2 Various modes of power flow of the proposed system
Fig. 5
figure 5

Simulation results of various power flow modes of the proposed PEV system

From Fig. 5, the simulation starts with mode “000” and ends with mode “111” and each mode transition is set to occur every 5 s in the simulation. Mode “000” represents that the PEV battery receives 10 kW of active power from the grid for charging, the PV array does not provide any active power generation while the grid receives 10 kvar of reactive power. Similarly for mode “111”, the PEV battery supplies 10 kW of active power to the grid, the PV array is generating 12.5 kW of active power while the grid supplies 10 kvar of reactive power. In these modes, the switches will operate based on the MPC implemented in the system that yields the smallest cost function.

The DC link capacitor voltage which corresponds to the voltage of the PV array, Vpv is determined by the MPPT algorithm which extracts the maximum available PV power. As can be seen from Fig. 5, the range of Vpv is limited to within 400 V to 600 V.

Depending on the state of the PEV battery, the grid supplies and receives active power accordingly. During the first half of the simulation (mode “000” to “011”), the PEV battery receives 10 kW of active power for charging. Since the PV array initially does not provide any power (modes “000” and “001”), the grid supplies 10 kW of active power to the battery. Then, the PV array starts to supply 12.5 kW of power (modes “010” and “011”) and the battery receives the 10 kW of active power required for charging while the grid absorbs the remaining excess power from the PV array. Note that from the figure, the active power of the grid falls from the positive region to negative region at mode “011” signifying that the grid is receiving net active power. During the second half of the simulation, the PEV battery supplies active power to the grid for the V2G operation and the active power of the grid further falls deeper into the negative region, signifying that the grid receives even more active energy. Throughout the simulation as shown in Fig. 5, the converter is also able to supply and receive reactive power without affecting the various active power transfers within the system.

In a separate simulation to study the active power flow in the system, the reactive power reference is set to zero while the battery reference power is set to − 10 kW. Figure 6 shows the grid voltage and current for phase a when PV power generation is turned on. Initially, the grid is supplying 10 kW of active power to the PEV battery for charging without PV power generation and the grid voltage is in phase with its grid current.

Fig. 6
figure 6

Grid voltage and current for phase a when PV power generation is turned on

Once PV generation is activated at t = 0.1 s, the MPPT algorithm begins to track the maximum available power and the PV array starts to supply active power to the charger. During this event, the magnitude of the grid current gradually decreases, as shown in the figure, indicating that the grid is reducing active power to the battery. After approximately 0.2 s, the grid current is almost zero, hence negligible power transfer occurs from the grid. This shows that the net power flow from the PV array is equal to the power received by the PEV battery for charging. Shortly after, there is a 180 degrees phase change in the grid current with respect to the grid voltage signifying that the direction of the power flow is reversed. At this moment, the maximum point of the PV array is reached and the PV array generates 12.5 kW of active power into the charger. Therefore, the proposed charger supplies 10 kW of active power from the PV array to the PEV battery for charging and forwards the remaining 2.5 kW of active power back to the grid. Hence, the proposed charger is successfully proven to be able to efficiently control the power flow from various sources.

3.2 PV MPPT performance under various temperatures and irradiances

A perturb and observe MPPT algorithm is implemented in the system to extract maximum availability of the PV power from the PV array under various environmental conditions. Two important factors that affect the location of the maximum power point of the PV array are the incident irradiance and the operating temperature of the array. Therefore, a simulation study is conducted with different irradiances and temperatures to investigate the effectiveness of the algorithm in tracking the maximum power.

Figure 7 shows the PV MPPT performance of the proposed PEV system under the aforementioned testing conditions.

Fig. 7
figure 7

PV MPPT performance of the proposed PEV system under different irradiances and temperatures

In this simulation study, Pbat is set to − 10 kW to receive power for battery charging while the charger is set to consume 10 kvar excess reactive power from the grid. From Fig. 7, it can be pointed out that VMPP is located between 400 V and 600 V for various environmental conditions. Therefore, the maximum power point can be tracked directly without the help of an additional buck or boost converter.

In Fig. 7a, the irradiance level begins at 1000 W/m2, decreases to 600 W/m2, and subsequently increases to 800 W/m2. At the start of the simulation, Vpv starts at 600 V and begins to track to VMPP. After approximately 2 s, the maximum power point is reached and the PV array is producing 12.5 kW of active power to the system. After supplying 10 kW of active power to the battery, the excess power is feed into the grid as can be seen from the figures. At the irradiance level of 600 W/m2, the lower maximum power point of approximately 7.5 kW is attained by the PV array. Therefore, the grid is required to top up an additional 2.5 kW of active power for PEV battery charging as shown in Fig. 7a. Meanwhile, at a irradiance level of 800 W/m2, the maximum power point of approximately 10 kW is achieved by the PV array. Therefore, there is no net power transfer from the grid as the PV array is self-sufficient to meet the demand of the PEV battery.

In Fig. 7b, the operating temperature of the PV array starts at 25 °C, increases to 50 °C after 10 s and subsequently decreases to 35 °C. Similarly, it can be seen that the MPPT algorithm is able to track the maximum power with good proficiency. Since the PV array is producing power above the required power for PEV battery charging for all of the different testing temperatures, excess active power is transferred to the grid. Furthermore, the MPPT operation does not affect the reactive power transfer of the system as shown in the figures.

3.3 PEV charging performance

One of the most important aspects of the PEV charger is the ability to provide suitable charging profiles for PEV batteries depending on the battery’s state of charge to ensure the safety of the person and vehicle as well as to preserve the battery’s operating life. Examples of PEV battery types are a nickel metal hydride battery or lithium ion battery. The common charging profiles for PEV batteries are constant current, constant voltage and float charging. During constant current charging, the charging current is maintained at a specific level until the state of charge (SOC) of the battery reaches a certain level. Then, the charging profile is switched to constant voltage charging and the battery is charged at a constant voltage level while the charging current is decreasing. When the charging current reaches a certain level, the battery is fully charged and the battery voltage is maintained at a float voltage level. This profile is called float charging. Figure 8 illustrates that the charger with the proposed control strategy is able to provide all three charging profiles to the PEV battery with good dynamic and steady-state results.

Fig. 8
figure 8

PEV charger performance of the proposed PEV system for different battery charging profiles

3.4 System performance analysis

In order to comply with IEEE Standard 519, the grid current iabc must have a THD less than 5% and its individual harmonic components must be well regulated. Figure 9 shows the harmonic spectrum of phase a current when the system is delivering 10 kvar of reactive power to the grid and 10 kW of active power to the battery. The system demonstrates a low THD count of 0.96% which is well within the regulation requirements of IEEE Standard 519. The individual harmonic components of the phase current also show relatively low percentage of harmonic distortion throughout the spectrum.

Fig. 9
figure 9

Harmonic spectrum of phase a current with system parameters of Q = 10 kvar and Pbat = − 10 kW (fundamental (50 Hz) is equal to 56.08, THD is equal to 0.96%)

Meanwhile, Fig. 10 shows the THD of the grid current phase a for various power flow modes under different power factors. From the figure, the four power flow modes represent the four quadrant operations of the PEV charger as depicted in Fig. 2. The power factor varying from zero to unity indicates that the PEV charger is supplying/receiving only reactive power initially while the reactive power decreases and active power increases gradually. As a result, the power factor increases until it reaches the value of one which indicates that the PEV charger is engaging in only the active power operation. As can be seen from Fig. 10, the system demonstrates low THD (less than 1.5%) in all four quadrants of operation.

Fig. 10
figure 10

THD of grid current phase a under various power factors for different modes of power flow

In general, low active and reactive power ripple from the grid is desirable to minimize power loss due to oscillation as well as to produce balanced grid currents and voltages with low distortions. A study is conducted to evaluate the proposed system’s active and reactive power performances. Figure 11 shows the active and reactive power ripples experienced by the system in different operating power quadrants.

Fig. 11
figure 11

Active and reactive power ripples for different quadrants

From Fig. 11, we can see that the active power ripple experienced by the proposed charger increases with the magnitude of the net active power of the grid. However, the reactive power ripple of the system does not exhibit similar characteristics as that of the active power ripple and its ripple fluctuates in a more random manner. Nevertheless, both active and reactive power ripples are relatively small, less than 700 W and 600 var respectively for maximum ripple experienced by the charger. Accordingly, the maximum active and reactive power ripple percentages are less than 7% and 8% respectively throughout all operating conditions, demonstrating the good performance of the charger and the MPC in place. Hence, power flow can be tracked with great accuracy as shown in the results before.

Another important aspect of the proposed system is the PEV charger performance characteristics. The charger’s output voltage and current must be well regulated to protect and ensure the maximum operating life of the battery. A high charging current ripple could result in a temperature increase in the battery cells resulting in degradation of the battery. General limits for Li-ion and/or lead-acid batteries are RMS current ripples of 5%-10% of the rated charging current and RMS voltage ripples of 1.5% of the rated battery voltage.

Figure 12 shows the battery current and power ripples for various battery reference powers. Notably, the power ripple followed the current ripple as the battery voltage is set constant. During charging, it can be seen that the current ripple is lower for larger active power as compared to when the battery is delivering power to the grid. Overall, the charging current ripple is small (less than 1.04 A) and well within 5% of the rated charging current. As a matter of fact, the maximum percentage of current ripple per rated charging current experienced by the charger is about 2.5%. Furthermore, the battery power ripple is relatively low (less than 250 W) for the full range of battery reference power. Hence, the power loss due to oscillation is greatly minimized and the charger operates efficiently.

Fig. 12
figure 12

Battery current and power ripples for various battery reference powers

4 Conclusion

This paper presents a MPC of an off-board PEV charger with PV integration using two-level four-leg inverter topology. The control of the charger is realized by incorporating both direct power and current MPC that dynamically controls the decoupled real and reactive power flow as well as PEV battery charging and discharging current. The result shows that the charger using the proposed control strategy achieves four active-reactive quadrants of operations with PV integration with good steady-state and dynamic responses. PV power generation is seamlessly integrated into the charger while maximum PV power is consistently tracked for different environmental conditions. From the grid-side performance analysis, the charger demonstrates less than 1.5% THD as well as low active and reactive power ripple of less than 7% and 8% respectively for all power flow modes.

Furthermore, the charger is able to provide good charging characteristics to the PEV battery for the different states of charge of the PEV battery as well as delivering a low charging and discharging current ripple of less than 2.5%. These results validate the performance of the proposed charger and its control strategy, hence the proposed charger is an excellent option for a PV integrated off-board charger in the charging stations.

Future research work on the proposed charger and its control can include: implementing long horizon predictive control to improve its control performance, a unified control algorithm for managing power flow to multiple PEV batteries concurrently, as well as charger topology improvements to further reduce THD, power ripples and charging ripples.