1 Introduction

As noise and polluting gases as well as fuel consumption keep steadily rising, interest in electric vehicles (EVs) is constantly renewed. EV is one of the solutions recommended by vehicle manufacturers and research organizations to gradually replace conventional vehicles especially in city centres [1]. Computer modeling and simulation can be used to reduce the expense and length of the design cycle of EVs by testing configurations and energy management strategies before prototype construction begins. Interest in EV and hybrid EV grew in the 1970’s leading to the development of several prototypes [2].

Table 1 Parameters of vehicle body [13]
Fig. 1
figure 1

Block diagram of the proposed system

With revolutionary contributions of power electronics and energy storage systems, electric drive trains are totally or partially replacing gradually internal combustion engine (ICE) in standard vehicles despite several shortcomings [3]. EV’s major drawback is the energy storage issue. Many researches have been conducted to increase electric driving range, improve efficiency, decrease cost and makes EV competitive with conventional vehicles in the market [3, 4].

Actually reliable energy sources such as batteries, fuel cells, supercapacitors and high speed flywheels seem to offer the best potentialities for EV. As for now, advances in flywheels technology are not in pace with EV development [4]. Fuel cells have high energy density and clean energy properties but have poor response time to instantaneous power demands, due to air delivery system low response time. Besides they are costly and incapable of accepting the regenerative energy during EV braking or downhill driving [3, 4]. On the other hand supercapacitors (SCs) offer several gains over electrolytic capacitors amid which high energy, efficiency, as well as extended durability [5]. Batteries (BTs) remain as the main energy storage devices in transportation applications. In spite of their relatively high energy density, they are characterized by a low power density depending on the battery type. Furthermore, they have a relatively short life cycle and low dynamics [6].

Finally one can conclude that available energy sources are not ideal and offer either high specific power (HSP) or high specific energy (HSE). While both of these qualities are required, they are yet to be found in one type of energy source. HSE allows for acceptable driving range, whereas HSP is needed for rapid accelerations and hill climbing. It is therefore imperative to use different type of sources with a sound energy flow strategy management [7].

Power sharing between supercapacitors and batteries is a promising solution for improving system performance due to the dynamic behavior of the SCs and their long life which can help preventing battery overstress [8, 9].

Converting kinetic energy available during braking into electrical energy supplied to an energy storage system is a formidable way to boost range capabilities of EVs and to reduce their energy storage source sizes [10]. In this way, reference [10] pointed out that the regenerative braking can increase the EV range in the interval of 8–25%.

Experiment in reference [11] indicates that hybrid power system can improve the efficiency of braking energy recovery and decreases the demanding power of the battery. It also shows that the braking energy recovery rate of hybrid power system is 11% higher than of the battery system alone, the main reason being that SC has ability to charge very quickly. Authors in reference [9] proposed an advanced energy management system based on the adequate discharge of the supercapacitor bank in order to utilize all the energy available from the regenerative braking but the state of charge (SOC) of the battery bank never increases; due to the fact that the SC is the unique active source during the regenerative braking. In the reference [8], the authors presented a power-sharing method between supercapacitors and lead-acid battery in a 500-KVA rated uninterruptible power supply (UPS) but they did not take into account the regenerative braking mode. Another remarkable work is given in reference [12] where the authors showed that an \(\hbox {H}\infty \) robust controller out-performed the traditional PID regulator in many respects including stability, error, responding speed and driving distance between battery charges.

Fig. 2
figure 2

Schematics of the EV electric system

In this work, we present a new energy management strategy, which can perform an appropriate exchange of power between the load and the two sources of the energy storage system of the vehicle by considering the two modes of operation: motor and regenerative braking modes for a known displacement of an urban vehicle. Simulation results show that both batteries and supercapacitors benefit from the regenerative braking mode while the state of supercapacitors charge remains at a high level yielding improved electric vehicle range and extended battery lifetime.

2 System modeling and control strategy

The power train of the electric vehicle consists of an energy storage system, two bidirectional dc–dc converters, and motor drive. The electric power train was dimensioned taking into account the physical characteristics of the EV specified in Table 1.

The system architecture under study is given in Fig. 1.

2.1 Energy storage system (ESS)

The proposed energy management system (EMS) was developed considering a hybrid energy storage system that consists of a battery bank and supercapacitor bank. In MATLAB library, the blocks of battery and supercapacitor implement generic models parameterized to represent most popular types of rechargeable batteries and supercapacitors [14, 15]. For this study we used a lithium battery as the main energy storage device with a rated voltage of 278 V, and a rated capacity of 90 Ah. The auxiliary source ratings (Supercapacitors) are 240 V voltage and a capacitance of 23.9 F.

2.2 DC–DC converters

Two DC–DC converters are linked to the same DC-Link, one manages the battery power flow and the other manages the SCs power flow, as shown in Fig. 2. Energy transfer is enabled between sources and load and back in the aforementioned structure as well as from one source to another independently of energy flow direction. DC-link current, \(\hbox {I}_{\mathrm{DC}}\), can be positive or negative whereas voltage across the DC bus is always positive. The two parallel DC–DC converters that interface the SCs and the battery with the DC-Link give a good flexibility power management either when energy flow to DC-Link rising the voltage level which is boost behavior, or when energy flows from DC-Link to sources showing a typical buck behavior. In boost-mode, \(({K}_{1} /{K}^{'}_{1})\) and \(({D}_{2} / {D}^{'}_{2})\) are active. In the buck-mode, \(({K}_{2}/ {K}^{'}_{2})\) and \(({D}_{1} / {D}^{'}_{1})\) are active [16, 17]. The dynamic braking chopper is used to absorb the energy produced during motor deceleration or when the load torque tends to accelerate the motor, this occurs when the battery and supercapacitors are fully charged. Power inductors \({L}_{\mathrm{BT}}\) and \({L}_{\mathrm{SCs}}\) play an important role in the overall performance of the system, limiting current oscillations magnitude; a smoothing inductance is placed in series with each source circuit while a good choice of capacity \({C}_{\mathrm{DC}}\) justifies good damping of ripple of DC bus [18]. DC bus voltage \(({U}_{\mathrm{DC}})\) control is used for the purpose of maintaining a constant reference value by controlling the process of loading and unloading of the capacitor. The power flow in the DC-link capacitor is described by Eq. (1):

$$\begin{aligned} P_{\mathrm{DC}}=\,C_{\mathrm{DC}}\frac{\mathrm{d}U_{\mathrm{DC}}}{\mathrm{d}t}U_{\mathrm{DC}}=\,\frac{\mathrm{d}E_{\mathrm{DC}}}{\mathrm{d}t}=\,P_\mathrm{Sour}-P_\mathrm{Load} \end{aligned}$$
(1)

\({P}_{\mathrm{DC}}\hbox {(W)}\): resulted DC-link power, \({E}_{\mathrm{DC}}\hbox {(J)}\): energy stored in the DC-link capacitor, \({P}_{\mathrm{Sour}}\hbox {(W)}\): power source, \({P}_{\mathrm{Load}}\hbox {(W)}\): Asked power from the load, \({C}_{\mathrm{DC}}\hbox {(F)}\): capacitor.

Fig. 3
figure 3

Control scheme of DC–DC converters

Table 2 Parameters of PMSM

The control of the DC–DC converter is realized via a cascade configuration (Fig. 3). In order to upkeep the dc bus voltage, a main voltage loop with a proportional-integral (PI) controller generates the total current reference \({I}^{*}_{\mathrm{DC}}\) that should be taken from the DC-link bus. This total current reference is then distributed by the EMS that generates the set points currents for all sources. The regulators of supercapacitor and battery converters are current-controllers with hysteresis regulators [19, 20].

Fig. 4
figure 4

Diagram of the FOC principle

2.3 Field-oriented variable-frequency PMSM drive

2.3.1 PMSM model

The permanent magnet synchronous machine (PMSM) operates in either generating or motoring mode. Motor parameters are summarized in Table 2.

The following equations expressed in the rotor reference frame describe the PMSM model [21].

2.3.1.1 Electrical system

$$\begin{aligned} \left\{ {\begin{array}{l} \frac{\mathrm{d}}{\mathrm{d}t}i_d =\,\frac{1}{L_d }v_d -\frac{R}{L_d }i_d +\frac{L_q }{L_d }p\omega _\mathrm{r} i_q \\ \frac{\mathrm{d}}{\mathrm{d}t}i_q =\,\frac{1}{L_q }v_q -\frac{R}{L_q }i_q -\frac{L_d }{L_q }p\omega _\mathrm{r} i_d -\frac{\lambda p\omega _\mathrm{r} }{L_q } \\ T_\mathrm{e} =\,1.5p[\lambda i_q +(L_d -L_q )i_d i_q ] \end{array}} \right. \end{aligned}$$
(2)

\({i}_{d},{i}_{q}\) (A) represent \(d{-}q\) axis stator currents, \({v}_{d}, {v}_{q}\) (V): \(d{-}q\) axis stator voltages, \(\lambda _{d},\lambda _{q}\) (Wb): \(d{-}q\) axis stator fluxes, \({L}_{d}, {L}_{q}\) stator inductances, R: resistance of the stator windings, p: number of pole pairs, \(\omega _{\mathrm{r}}\) (rad/s) the mechanical speed, Te (N m): electromagnetic torque, and \(\lambda \hbox {(Wb)}\): rotor magnet flux.

2.3.1.2 Mechanical System

$$\begin{aligned} \left\{ {\begin{array}{l} \frac{\mathrm{d}}{\mathrm{d}t}\omega _\mathrm{r} =\,\left( \frac{1}{J}T_\mathrm{e} -F\omega _\mathrm{r} -T_L \right) \\ \frac{\mathrm{d}\theta _\mathrm{r} }{\mathrm{d}t}=\,\omega _\mathrm{r} \\ \end{array}} \right. \end{aligned}$$
(3)

F (N m s): the viscous friction, \(J (\hbox {kg m}^{2})\): the rotor inertia, and \(\theta _{\mathrm{r}}\) (rad): the mechanical rotor angle.

2.3.2 Field-oriented control (FOC)

Figure 4 illustrates the block diagram of the FOC. The product of the mechanical rotor angle \(\theta _{\mathrm{r}}\) (rad) by the number of pair poles (p) gives the electrical rotor angle \(\theta _{\mathrm{e}}\) (rad) which is used in the conversion of the dq component of the rotor flux rotating field reference frame into abc phase variables. Derivative of mechanical angle provides the mechanical speed \(\omega _{\mathrm{r}}\) (rad/s). The motor speed \(\omega _{\mathrm{r}}\) is compared to the reference \(\omega ^{*}_{\mathrm{r}}\) and the error is processed by the speed controller to produce a torque command \({T}^{*}_{\mathrm{e}}\). The speed controller is of a PI type. The stator direct and quadrature-axis current references \({i}^{*}_{d}\) and \({i}^{*}_{q}\) are converted into phase current references \({i}^{*}_{a}\), \({i}^{*}_{b}, {i}^{*}_{c}\) for the current regulators. The regulators process the measured and reference currents to produce the inverter gating signals [22]. The equation of the flux in the \(d{-}q\) reference is given by:

$$\begin{aligned} \lambda _d= & {} L_d i_d +\lambda \nonumber \\ \lambda _q= & {} L_q i_q \end{aligned}$$
(4)

As the PMSM is fully controllable by the stator, the air-gap flux is weakened by the introducing of a negative current \({i}_{d}\) which creates a flux in opposition to that of the magnets. The flux weakening used when the motor speed exceeds the nominal speed \(\omega _{0}\) is defined by the following nonlinearity:

$$\begin{aligned} {\hbox {df}}=\,\left\{ {{\begin{array}{ll} 1 &{}\quad {\hbox {if}}\;\;\left| {\omega _\mathrm{r}\le \omega _0} \right| \\ \frac{\omega _0 }{\left| {\omega _\mathrm{r} } \right| }&{}\quad {\hbox {if}}\;\;\left| {\omega _\mathrm{r} } \right| >\omega _0 \\ \end{array}}}\right. \end{aligned}$$
(5)

3 Vehicle dynamics analysis [23, 24]

3.1 Road load and tractive force

The total tractive effort is the sum of all present forces:

$$\begin{aligned} F_{\mathrm{te}} =\,F_{\mathrm{roll}} +F_{\mathrm{aero}} +F_{\mathrm{gr}} +F_a \end{aligned}$$
(6)

The first force \(F_{\mathrm{roll}}\) is called rolling resistance which is produced by the tire flattening at the roadway contact surface. The second resistance is the aerodynamic force \(F_{\mathrm{aero}}\). The third resistance force is applied when the vehicle is climbing a hill thus depending on the slope of the roadway. The fourth is called the acceleration force, it is positive when the vehicle accelerates, and negative when the vehicle decelerates.

$$\begin{aligned} \left\{ {\begin{array}{l} F_{\mathrm{roll}} =\,M \cdot g \cdot \mu \\ F_{\mathrm{aero}} =\,0.5 \cdot \,\rho \cdot C_\mathrm{d} \cdot A_\mathrm{f} \cdot (v\pm v_{\mathrm{wind}} )^{2} \\ F_{\mathrm{gr}} =\,\pm M \cdot g \cdot \sin \alpha \\ F_a =\,\pm M_{\mathrm{e}} \frac{\mathrm{d}v}{{\mathrm{d}t}} \\ \end{array}} \right. \end{aligned}$$
(7)

v (m/s): the vehicle speed, v: wind speed (m/s), \(\alpha \) (rad): angle of the slope and \({M}_{\mathrm{e}}\) is the equivalent mass:

$$\begin{aligned} M_{\mathrm{e }}=\,\delta M \end{aligned}$$
(8)

\(\delta \) is the rotational inertia factor or mass factor:

$$\begin{aligned} \delta =\,1+0.04+0.0025i^{2} \end{aligned}$$
(9)

3.2 Motor ratings and transmission

The equation describing dynamics behavior of the electric motor, in the motor referential, is given as:

$$\begin{aligned} T_{\mathrm{e}} -T_{\mathrm{L}} =\,J_T \frac{\mathrm{d}\omega _\mathrm{r} }{\mathrm{d}t} \end{aligned}$$
(10)

The load torque in the motor referential is given by

$$\begin{aligned} T_{\mathrm{L}} =\,\frac{T_{\mathrm{Lwheel}}}{i}=\,\frac{r}{i}F_\mathrm{R} \end{aligned}$$
(11)

\({T}_{\mathrm{Lwheel}}\hbox {(N\,m)}\) represents load torque on the wheels, \({F}_{\mathrm{R}}\hbox {(N)}\) the resistive forces.

The vehicle global inertia moment in the motor referential is given by

$$\begin{aligned} J_T =\,\frac{M_\mathrm{e} r^{2}}{i^{2}}. \end{aligned}$$
(12)

4 Proposal for the energy management system

Energy conversion law is used as a base for all EMS meaning that the load power needed is to be supplied by available power sources. For illustration purpose: for an ESS based on battery and SCs, energy conservation law leads to [9]:

$$\begin{aligned} P_\mathrm{Load}=\,P_\mathrm{Sour}=\,P_\mathrm{BT}+P_\mathrm{SC} \end{aligned}$$
(13)

On the other hand, assuming that the sub-system consisting of the inverter and the PMSM operates with an efficiency \(\eta \) of 95%, the power load is calculated by:

$$\begin{aligned} P_{{\mathrm{load}}} =\,V_{{\mathrm{DC}}} \times I_{\mathrm{DC}} =\,\frac{1}{\eta }F_\mathrm{te} \times v \end{aligned}$$
(14)

Table 3 summarizes the equations used to calculate actual powers and reference control variables.

Table 3 Power calculation for the electric system
Fig. 5
figure 5

a Inputs and outputs of EMS, b operating principle of LPF

Fig. 6
figure 6

Flowchart showing the proposed energy management algorithm

Both operations, motor or regenerative braking modes depend on the load; if the acceleration or the slope is positive, then the load torque is positive and the vehicle operates in motor mode, otherwise it operates in regenerative braking mode. The input signals of the EMS are the SOC of the battery bank \((\hbox {SOC}_{\mathrm{BT}})\), SOC of the supercapacitor bank \((\hbox {SOC}_{\mathrm{SCs}})\), vehicle speed (v), acceleration (acc), load torque \(({T}_{\mathrm{L}})\), the rated power of the battery \(({P}_{\mathrm{RBT}})\), the reference source power \({P}^{*}_{\mathrm{Sour}}\), and the load power limit \({P}_{\mathrm{Lm}}\) while the output signals of the EMS are the reference power of the \(\hbox {battery}({P}^{*}_{\mathrm{BT}})\) and the \(\hbox {supercapacitors}({P}^{*}_{\mathrm{SCs}})\) (Fig. 5a).

Table 4 Simulation parameters
Fig. 7
figure 7

a Linear speed of the vehicle; b reference and PMSM torque; c motor currents; d the tractive forces

When the EV ignition is turned on and the vehicle is stopped, prior to an acceleration phase, one needs to fully charge the unit with more HSP (supercapacitors) from the other unit that has more HSE (battery); that is if the speed of the vehicle is equal to zero and the \(\hbox {SOC}_{\mathrm{SCs}}\) is below the threshold 80%, then the SCs can be charged with the surplus power of battery, otherwise the \({P}_{\mathrm{BT}} =\, {P}_{\mathrm{load}}\) and the SCs cannot be charged. If the speed of the vehicle is different from zero, then the sign of the load torque sets the operating mode. For the motor operation, if the acceleration is different from zero a low-pass filter (LPF) is applied to the load power diverting sudden power variation to the supercapacitors:

$$\begin{aligned} \left\{ \begin{array}{ll} P_{\mathrm{BT}}^{*}=\,\frac{1}{1+\tau S}P^*_{\mathrm{Sour}}\\ P_{\mathrm{SC}}^{*}=\,P_{\mathrm{Sour}}^*-P_{\mathrm{BT}}^*\end{array}\right. \end{aligned}$$
(15)

Time constant \(\tau \) of the LPF is fixed considering the dynamic of the batteries as well as supercapacitors size. The latter can fill power gaps during batteries transients (Fig. 5b) [25]. If the acceleration is equal to zero (constant speed), a comparison between the reference source power \({P}^{*}_{\mathrm{Sour}}\) and the load power limit \({P}_{\mathrm{Lm}}\) is applied; if \({P}^{*}_{\mathrm{Sour}} < {P}_{\mathrm{Lm}}\) and \(\hbox {SOC}_{\mathrm{SCs}}<80\%\), then the battery uses its rated power to supply both the load and the SCs, otherwise, a LPF is applied to the load power. For the regenerative braking operation, if the SOC of one of the BTs or SCs is less than 95%, then the ESS is directly charged by the load power, if the SOC of both sources is less than 95%, a LPF is applied to the load power as the case of the motor operation where the battery is the main source that absorb the load power. In the case that both batteries and supercapacitors are fully charged \((\hbox {SOC}>95\%)\), a dynamic braking is used to dissipate the energy of the load. Figure 6 shows the algorithm of the proposed EMS.

5 Simulation results and interpretation

To verify the control of the proposed scheme, a simulation model was built based on Matlab/Simulink software. The simulation parameters are presented in (Table 4).

The vehicle was submitted to a maximum speed of 30 km/h with a 2.135\(\,\hbox {m/s}^{2}\) acceleration; it passes by three phases, an acceleration phase, a phase of constant speed and a deceleration phase. At 15 and 25 s, the car encounters a climbing resistance whose slope is 10 and 13.33%, respectively, then at 30 s the vehicle faces a downhill whose slope is \(-5\)%, after 40 s, the car is moving with no slope. It was considered that the battery SOC is 80% and the SCs have a previous charge corresponding to a 190 V voltage.

The vehicle’s speed evolution shows a good approximation in time domain to the speed requested, as can be seen in Fig. 7a. The vehicle follows almost perfectly the speed set point, with minor fluctuations. The electromagnetic torque, currents of PMSM and the resistance forces of the vehicle are presented, respectively, in Fig. 7b–d. From Fig. 7d, it is clear that the acceleration and the slope forces present the large proportion of the total tractive effort.

The power waveforms of load and sources, the DC bus voltage, and the SOC of the sources are presented in Fig. 8a–d, respectively.

Fig. 8
figure 8

a Power waveform of load, b power waveforms of battery and supercapacitors; c DC bus voltage; d state of charge of the BT and SCs

In the first 4 s, when the vehicle is stopped, the \(\hbox {SOC}_{\mathrm{SCs}}\) is lower than 80% since sharp acceleration is needed while batteries charge the SCs till its SOC reaches 80%.

At \(t =\, 4\) s, the battery begins to provide power but is not able to reach the reference power, a LPF is applied to the load power and the SCs start to help the battery by providing an extra power .

At \(t =\,7.9\) s, the car passes slightly the set-point speed with an overshoot then it decreases to its reference thus providing the regenerative braking mode, enabling the supercapacitor to charge, due to its rapid dynamics. After 0.05 s, the vehicle enters the phase of constant speed cruising, the load power is inferior to the limit power and the \(\hbox {SOC}_{\mathrm{SCs}}\) decreases to lower than 80%, the battery shares its power between the load and the supercapacitors. It is easy to observe that the SCs power becomes negative, it means that the SCs receive some power from the battery and recharges while the EV is moving. At \(t =\,15\) s the vehicle encounters a slope resistance, the load torque increases, the vehicle speed recovers fast and goes back to the reference speed. The current reference rises to about 57 A to generate a higher electromagnetic torque (Fig. 7b, c) to maintain desired speed, the battery is then subjected to a rising power request from the load, a LPF is applied to the load power diverting sudden power variation to the supercapacitors while the two DC–DC converters work in boost-mode. After this transient phase the battery supplies a full load power and the LPF operation is canceled. At \(t = 25\) s while the slope resistance increases, the battery reaches its rated power of 20 kW; the supercapacitor provides more energy to achieve the torque required.

Fig. 9
figure 9

Simulation of an urban drive cycle ECE-15

At \(t = 30\) s, the vehicle encounters a downhill slope, thus the load torque becomes negative; the system passes into regenerative braking mode and reversal of the current flow through the motor takes place. The SCs respond directly to the needs of the load by absorbing current peaks as requested by the EMS and the kinetic energy of the EV is transformed in electrical energy which is stored in the battery. At \(t = 40\) s, when the downhill slope disappears, the \(\hbox {SOC}_{\mathrm{SCs}}\) is higher than 80%, and the battery supplies the motor alone. At \(t = 50\) s, the EV starts to decelerate until it stops. The motor acts as a generator driven by the vehicle’s wheels. The load power is distributed between both power sources according to the law of energy conservation with the battery being the main energy source. At \(t = 54\) s, the battery power is equal to the reference power thus the supercapacitor is no more needed. DC bus voltage (Fig. 8c) remained stable during the simulation; however, there were some brief peaks during the quick transitions of the load power. It may be noted that the \(\hbox {SOC}_{\mathrm{BT}}\) varies slowly and the \(\hbox {SOC}_{\mathrm{SCs}}\) varies rapidly while remaining high depending on the EMS (Fig. 8d).

A simulation is developed using urban drive cycle ECE-15 to test the energy storage system using the proposed EMS. In Fig. 9, the speed, power sharing, SOC and sources energy are presented.

Batteries supply the average power requested by the EV load and receive energy while in braking phase. During accelerations and decelerations phases SCs assist batteries. Moreover SCs receive energy from the batteries when their SOC is below the minimum threshold in order to restore a minimum energy level to help the batteries in the next accelerations and braking phases. The EV reaches the end of the cycle maintaining a high level of energy in its main and auxiliary sources \((\hbox {SOC}_{\mathrm{BT}}=79.68\%,\, \hbox {SOC}_{\mathrm{SCs}}=81.2\%)\).

The results indicate that the energy required to move the EV using the drive cycle ECE15 without using regenerative braking is 445 KJ. This energy consumption is calculated by integrating the sum of the power output at the battery and supercapacitors terminals during the whole cycle. Meanwhile when using the regenerative braking only 289 KJ is needed. On the other hand a 319 KJ is necessary when using battery alone with regenerative braking. These results show the effectiveness of the proposed EMS.

6 Conclusion

In this work we presented a new strategy of an energy management between battery and supercapacitors for an electric vehicle by exploiting the advantages of each source. The goal of this energy management is to increase the autonomy of the vehicle by recovering the energy in the phases of decelerations or downhills and increase the lifetime of batteries by the integration of supercapacitors. The proposed strategy distributes the regulation of DC bus voltage to both sources depending on the needs of the load. This enables efficient energy management. During the transitions of the power load, the SCs directly respond to the needs of the load by providing or absorbing power peaks as requested by the EMS. The simulation results show that the proposed EMS permits to the SCs to have high SOC, allowing for better energy management and provide an extended EV range.