Model for Vehicle to Home System with Additional Energy Storage for Households

: Smart integration of the upcoming proliferation of electric forms of transport in our energy system is the key in order to make it more robust and ready for a greener future. As such, technologies as Vehicle to Home are key in order to optimize the house consumption on an individual level. This paper develops the key blocks of a modiﬁed Vehicle to Home system, where in addition to the EV, a stationary battery pack is added. The paper presents models for household consumption, bidirectional AC/DC converter, its control system, dc/dc controllers, and their controllers. The goal is to design a system capable of consuming a desired power over time from the AC grid. Any energy difference is used to charge or discharge the available energy sources. As such, optimal control strategies are developed for the control of both the charging/discharging process. The presented optimized models allow for system level simulation for several weeks on a typical computer. Using this model some allows bot sizing the dc energy storage needed, along with comparison of different control algorithms for the power converters.


Introduction
As Europe strives to make its economy more sustainable through support of programs such as the European green deal [1], vast financial support is provided for people to change their preferred ways of transportation and living habits. Incentives to use more forms of electric transport are widely implemented. As for the homes themselves, investments are suggested to make them more smarter and energy efficient [1]. In order to succeed in these endeavors the whole energy generation and transportation system must be rethought. The energy generated thought green sources (such as PV and Wind) is intermittent in nature. This means that in the near future, when the dependence on this kind of energy becomes even more significant, every consumer might need to think about optimal time of energy consumption. For this reason, many ideas are available to interconnect the mobile dc energy sources available in various electric vehicles to the grid. Technologies such as Vehicle to Grid (V2G), Vehicle to Home (V2H), or Vehicle to Vehicle (V2V) are discussed in the literature [2][3][4].
Looking at the problem from the bottom (on the lowest consumer level)-a typical household, technologies such as zero-energy building can lead to very efficient solutions to the above presented problems. Using electric vehicles as an additional energy source in such cases has been presented previously, as for example [5]. In such a scenario the integration of only the EV might not be enough to obtain optimal consumption (including zero) from the grid [6]. The system can be improved by combining the vehicle battery storage, with an additional stationary energy source. This can allow for the whole system to become more robust and reliable on the one hand, and more economically efficient on the other. This strategy might be plausible, provided there is enough incentive to consume energy during specific times of the day. This is the main scenario that will be discussed in this paper.
Models for V2H systems have been presented in numerous papers [7][8][9][10]. These papers are concerned with the optimal energy sizing [5] or algorithm [3,7,8] for controlling such a system, but without detailed simulation models for the power converters. On the other hand, there are papers (for example [11]), where models for individual converters are presented, but without full integration with other models. Controlling the process of energy conversion between the battery of the electric vehicle when used as an energy storage element in a V2H system is the topic of [12][13][14]. Using artificial intelligence for the control implementation, as shown in [15,16] is also an interesting proposition.
The approach adapted in this paper combines the two levels of modeling in a single concept. Individual models for the power converters are presented, along with control algorithm for the whole system. The model is optimized and allows for simulation in the timespan of several days on a standard PC, so it can be used to estimate the required energy from the various energy storage devices or test various charging algorithms for the vehicle [3].
In the general theme of the "Green Deal", and the mission to lower the overall emission levels, the main question of how to integrate various electric transport vehicles in micro-and nanogrids is equally important. These small-scale grids that are decentralized provide many unique problems. Various publications on these topics go into details on how to integrate and control such grids on a more systematic level, the question of their stability and optimization are given in [17][18][19][20][21][22][23][24]. The primary energy sources used in both electric vehicles and stationary battery banks are based on lithium batteries. Their optimal exploitation, methods for overall cost reduction, and ways to improve overall efficacy during conversion is also a topic of scientific interest [25][26][27][28].
This paper proposes the use of a secondary energy source that complements the energy from the electric vehicle. This secondary energy source that is stationary and can be installed on premise can facilitate the consumption of a predetermined waveform from the ac grid, thus providing optimal energy consumption. On the other hand, the introduction of an additional energy storage element allows for optimum energy consumption not only from the grid (or some other decentralized power source) but also from the EV battery. This is an important additional advantage of the topology, as the battery state of health can be improved and allow for longer exploitation period.
The paper is structured as follows: In the next section the main system is presented, along with detailed models for each of the main subsystems. Moreover, the control algorithm for the whole system is presented. A discussion on the designed control algorithm is also given. Section 3 presents a simulation of the developed system for a typical household consumption and system parameters for a 2 day period. Discussion of the obtained results is provided in Section 4, and finally Section 5 concludes the paper.

System Model
The presented V2H system contains three primary subsystems that needs to be modeled. These are-a model for the household (more specifically its power demand), the energy storage blocks and their power converters (the electric vehicle and a battery bank), and finally a power electronic block that can convert energy between the dc and ac bus. A control system for each converter is also shown. The block diagram of the designed system is shown in Figure 1.
The paper presents models for each of the separate subsystems: • Bidirectional AC/DC converter-the block between the ac side and both dc storage sources. • An electric vehicle and the involved power converter charging the battery. This vehicle is assumed to be able to charge itself from a dc bus. • A stationary battery bank. • A model for the power consumption of the typical household.

•
Control systems for each of the power converters. The implementational details for each of the models will be discussed in the next subsections.

Bidirectional AC/DC Converter Model
The schematic of the modeled converter is shown in Figure 2. It is a typical three-phase full bridge converter that can act as a boost type PFC rectifier, or an inverter depending on the directional of energy flow. The load in the system on the dc side is represented as a current source IL that can come from the battery bank or the vehicle battery and can be both positive or negative. For the system, after introducing the switching functions F a , F b , F c , the following equations can be written: Assuming the system is balanced, so V a + V b + V c = 0 and dI a dt + dI b dt + dI c dt = 0 and summing the three equations for the ac side and extracting U N0 the following set of equations is obtained: Introducing the dq0 transform for steady-state operation: Assuming L a = L b = L c = L the system dynamics in this reference frame can be written as: These equations form the bases of the model, which is shown in Figure 3.

Bidirectional DC/DC Converter Model
The bidirectional converter used in the battery bank subsystem and the vehicle subsystem is a two transistor bidirectional topology shown in Figure 4. For the system, after introducing the switching functions F dc , the following equation can be written: The model for this equation is shown in Figure 5.

Household Model
The household is modeled by its active and reactive power consumption. Based on these tabulated values, assuming the three phase voltages form a balanced set and transforming the equations in the dq0 frame (as in the ac/dc converter) allows for the calculation of the consumed currents: From these the current consumption in the standard abc reference frame can easily be calculated. The model is shown in Figure 6.

Control Algorithms
The control system for both converters that has been implemented in Stateflow is shown in Figure 7. Each of the converters have three levels of control 0, 1 or 2. When its input is 0 the converter returns energy back to the dc bus. When the input is 1, then it does not function (zero current consumed or returned to the dc bus). The third case covers time intervals when current needs to be consumed from the dc bus in order to charge the energy storage. The amount of energy consumed depends on the available energy. Which command signal is generated depends on the difference between the Consumed power from the household and a reference waveform for ac line consumption. This waveform sets the power that the household wants to consume from the electrical grid. This curve can be optimized depending on the electricity prices or some other parameter. The general control strategy proposed is as follows:

•
When the input power is larger than the one needed from the household, the EV is charged first with constant power. Any excess above this is transferred to the battery stack. If there is excess input power, but not enough to charge the EV, then the battery bank is discharged to add the needed power. • When the input power is lower than the one needed for the household, first the battery stack supplies it. The constraints are maximum dept of discharge of its battery and maximum power supplied. When any of these is violated either the EV's battery can supply some additional power (SOC is above 80%, and there is a limit to the maximum power than can be supplied) or the battery bank works with limited discharge power.

Battery Stack Converter Control
As was discussed in the overall control design goal there are three states that the converter can be-off, u = 1; charging the battery, u = 2; or discharging the battery and returning energy to the dc bus, u = 0. The control in each of these cases is made by independent subblocks. A flowchart that shows the basic operation of the control system is shown in Figure 8, while the implemented control algorithm in Figure 9.  When in state 2 (the battery is charged) the control subsystem is shown in Figure 10. The control algorithm charges the battery to 100% SOC with current that is not more than the maximum available. This maximum available current (IbatMax) is calculated by dividing the difference between the consumed and generated power and the dc bus voltage. When the battery is discharged (state 0) the control subsystem is regulating the current out of the battery (again obtained as the difference between the generated and consumed power is divided by the battery bank voltage) until the SOC of the battery is reduced to a predetermined level. The control algorithm is shown in Figure 11.

Vehicle Converter Control
The control system of the vehicle charger has analogous requirements to the one that was presented above. It is shown in Figure 12. The main difference is that when the vehicle is charging its battery (state 2) the consumed power is assumed to be constant as usually the onboard charger has fixed power capabilities. When the battery is discharged the current reference is calculated as the power required from the vehicle (the power set to be consumed by the mains minus the required one from the household and the current one supplied from the battery bank) divided by the dc bus voltage. A simple flowchart that presents the developed model is shown in Figure 13. The main difference is that when the vehicle is charging its battery (state 2) the consumed power is assumed to be constant as usually the onboard charger has fixed power capabilities. When the battery is discharged the current reference is calculated as the power required from the vehicle (the power set to be consumed by the mains minus the required one from the household and the current one supplied from the battery bank) divided by the dc bus voltage. A simple flowchart that presents the developed model is shown in Figure 13.

AC/DC Converter
The control system for the converter is the standard decoupled control presented in Figure 14 [6]. The main idea behind this control algorithm is to remove the disturbance from ωLI d and ωLI q parts and obtain a simplified dependence of current charging the output capacitor only from the DQ transformed currents (that are the control goal). The refences for the Id and Iq currents can be set accordingly to control the Active and Reactive power consumed from the ac bus. As for the current application (small households) the reactive power is not measured, so the Iq and I0 current references are set to zero.

Results
In order to verify the whole system, the following main requirements must be set:

•
The power consumption of the household, along with a targeted power consumption from the ac grid • Battery bank size • Electric Vehicle battery charger nominal power As for the first requirement the load schedule is shown in Figure 15. Other system parameters are given in Table 1. Table 1. Key system parameters.

Parameter Value
BBank Ah 280 (Ah) ∼ = 450 V Vehicle Battery Ah 112 (Ah) ∼ = 500 V BBank peak power 2 (kW) Vehicle Charge power 3.5 (kW) The load profile for 2 days of requested AC grid power is given in Figure 16. The used profile is based on the idea to consume more power from the grid at night, when the price is lower. The load balancing during the day is taken care from the energy sources. Waveforms for the Ordered (blue) and real consumed power compared to the real power consumption of the load (black) based on a 2-day period simulation data from the model are shown in Figure 17. On the left of the graph the back is the real ac consumption of the household (as per Figure 15). On the right side are the currents from the two energy sources. If the current is positive, then power is consumed from the energy source. This means for example that during the first day (5 h to 18 h) power is consumed from the battery bank in order to balance the power demand. The graph also shows the current from the electric vehicle battery. Again, negative values mean that current is delivered (for example during the first night (0 to 5 h). The system state for both converters and battery SOC for both the EV and battery bank are shown in Figure 18. Finally, the DC bus voltage and the energy supplied (positive) and absorbed from the battery of the EV and battery bank are shown in Figure 19.

Discussion
The presented waveforms give results for the required power demand/supply from both converters. As can be seen from the right side of Figure 19 during the first night (0 to around 6 h) energy is delivered to both the battery bank and the EV is charged. Then, as the day tariffs kick of (rapid decrease of the reference ac grid consumption shown in Figure 16) the EV charging is stopped and the battery bank starts discharging, in order to keep the energy balance.
For the first day (6 to 20 h) the SOC of the battery is not enough to allow its discharge, so the only power source is the battery bank. As its peak power is capped at 2 kW, there are two intervals during the day, where the reference curve cannot be reached. In this case some additional power is requested from the ac grid, and the reference curve is not followed. This can be seen in the left side of Figure 17 during 10 h and around the end of the day (18 to 20 h).
When the second night comes an interesting thing happens. In the model, when the EV is charged, it is assumed that it cannot regulate its consumed power (constant charging current, as can be seen from Figure 17). This means that if the sum of the household consumption and EV charging power is greater that the reference curve, the battery bank must be discharged in order to keep the power balance. This happens during the second night, as the household consumption is higher during 20 to 23 h. As the EV battery is charged during the second night all the excess power is transferred into charging the battery bank (until 29 h).
As the battery of the EV is charged during the second day, this allows for its use in load balancing during the peak consumption during the end of the day (around 44 h, and shortly around 35 h) and this allows the system to consume only the reference power from the grid during the day.
A future iteration of the model may include the effects of battery aging on the system. Reserving some capacity (for example not charging the battery to a 100%) might help the charge equalization process as the state of health (SOH) drops over time.

Conclusions
Integration of a typical household with additional energy sources from an electric vehicle and a stationary battery bank allows for single home microgrid. This concept can be useful in a future zero-energy buildings in order to achieve Europe's goal of less emissions. The proposed secondary stationary energy storage that complements the EV battery can greatly reduce the on it. This also simplified the goal of achieving optimal consumption from the AC gird or some other decentralized energy source (such as a fuel-cell, PV panel, or a wind turbine). Such a system is called V2H. With the proposed structure a better integration of the available energy buffers in EVs is achieved. This allows for achieving a more sustainable energy grid by guaranteeing more constant energy consumption during the day.
The paper presented models for the three main subsystems of a V2H system-the power demand for a typical household, one for the energy storages involved (the battery of the electric vehicle and a battery bank), and models for the power converters that connects the dc and ac bus. The paper also presents the control systems for each power converter, along with the general system level algorithm. The one used in the paper is to consume a pre-set waveform from the grid that optimizes the cost of the electricity. The presented models allow for the simulation of the whole system for long interval of time and provides data for both system level demand and average requirements on power converter level. This is in contrast to other approaches taken [5][6][7][8][9]11], where either models that cover the detailed switching behavior of the power converters are used, or a block diagram on a system level is used, thus not including the effects of converter control systems. The advantage of the proposed approach to system research is that it allows a long time for simulation without the need for large computational resources (powerful hardware and work with big data), while obtaining satisfactory accuracy.
Future development of the model can easily incorporate reactive energy supply/demand for industrial sites, also possibly the design of a software system, which based on available data for energy generation to optimally size the energy source that is required. This will help consumers to assess the possible return of investment, when building such a system. Author Contributions: N.H., V.D., and G.V. were involved in the full process of producing this paper including conceptualization, methodology, modelling, validation, visualization, and preparing the manuscript. All authors have read and agreed to the published version of the manuscript.