A Tool for Evaluating the Performance of SiC-Based Bidirectional Battery Chargers for Automotive Applications

: In this paper, a procedure to simulate an electronic power converter for control design and optimization purposes is proposed. For the addressed application, the converter uses SiC-MOSFET technology in bidirectional battery chargers composed of two power stages. The ﬁrst stage consists of a single-phase AC / DC power factor correction synchronous rectiﬁer. The following stage is a DC / DC dual active bridge. The converter has been modulated using a phase-shift technique which is able to manage bidirectional power ﬂows. The development of a model-based simulation approach is essential to simplify the di ﬀ erent design phases. Moreover, it is also important for the ﬁnal validation of the control algorithm. A suitable tool consisting of a system-level simulation environment has been adopted. The tool is based on a block diagram design method accomplished using the Simulink toolbox in MATLAB ™ .


Introduction
Powertrain electrification of electric vehicles (EVs) and plug-in hybrid vehicles (PHVs) has gained the attention of governments, media and the public as a possible alternative mode of supplying power to transport vehicles due to its inherent efficiency advantages, e.g., less CO 2 emissions, in comparison with internal combustion engine vehicles [1,2]. EVs are key elements for the worldwide upgrade to sustainable energy systems. On the one hand, they directly affect the transition to environmentally friendly transportation. On the other, they are useful for compensating for the effects of dispersed generation based on renewable energy resources [3]. In more detail, when the power available from these generators surpasses the local load, it may be necessary to cut the exceeding power to avoid misoperation conditions, or worse yet, service continuity reductions. This limitation in green energy utilization can be overcome with EVs, since they involve an increment in the local load. Moreover, they can be used as energy storage systems which are able to mitigate fluctuations in primary energy resources and, more generally, are useful when coping with optimal power flow [4].
As a consequence of the diffusion of EVs and PHVs, an increasing number of connections to the public electrical grid of smart on-and off-board battery chargers has occurred [5]. These components are of fundamental importance for managing the energy flows between vehicles and the AC grid. Recently, a new EV operating mode, called Vehicle to Grid (V2G), was proposed [6]. V2G enables the use of the EVs as distributed large energy storage systems connected to the grid when parked [7]. The reward for providing ancillary services makes V2G economically convenient which, in turn, enables a wider diffusion of EVs, leading to environmental benefits [8]. On the other hand, the control strategy must take battery degradation into account [9].
Several bidirectional battery chargers (BBCs) for V2G have been already treated in the literature to investigate viable methods to achieve a compact, efficient and inexpensive solution. In [10,11], two designs of single-phase on-board BBCs were proposed, aiming to show the feasibility of reactive power support to the utility grid. In particular, [11] deals with the advantage of using wide band-gap semiconductor devices at high frequencies to reduce the current ripple by implementing both hardware and control solutions, similar to those adopted in converters for fuel cell power units [12]. In [13], a simple and functional BBC topology for stationary application was introduced. This topology was specifically designed to enhance the capabilities of a joint operation with an energy management system exploiting a storage stage in a residential environment. A literature analysis highlighted the fact that a key issue is to design and test a suitable control strategy. More specifically, the evaluation of the modulation, as well as of some features (e.g., current ripple and load step response), requires proper testing of the control strategy in dynamic conditions on small-time scales. On the other hand, appropriate long-timescale tests to evaluate the energy management capabilities of BBCs must be also be performed. In some works [10][11][12][13][14], the development of a feasible converter model was needed to fulfil the specifications through a proper system design, optimizing the structure of the control strategy as well as the correct setting of the parameters for the controllers.
As in many physical system designs, the use of advanced computer-aided design (CAD) systems is important at different project stages [15]. At the beginning, they enable component sizing verification; subsequently, they are useful for offline control validation with uP-based simulators [16], where they are very helpful when applying a user-friendly GUI based simulation interface [17]. Other solutions which are increasingly being adopted in the industry are powerful real-time emulation systems based on FPGA, that are widely used both in power converters [18] and electrical drives applications [19,20], and are particularly useful for the study and testing of dangerous situations, such as systems faults [21].
In this framework, a proper design using an advanced simulator model is proposed in this paper. It enables the evaluation of the feasibility and the performance of the converter using CAD. This approach makes it possible to validate the operation of the BBC in both V2G and Grid to Vehicle (G2V) operating modes. The main contribution of this paper is to propose a tool with which to optimize the BBC design before constructing the converter prototype. Additionally, the model of SiC MOSFET power devices was integrated to exploit their advantages in BBCs. Indeed, such an approach can useful for the optimal design of other converters in automotive applications. Finally, a mock-up was realized and tested, obtaining valuable results. In detail, the converter investigated was a 5-kW, single-phase BBC with two conversion stages: an active front end (AFE) PWM rectifier and a cascade-connected dual active bridge (DAB) with high-frequency isolation. Such an architecture was adopted for its bidirectional power flow, galvanic isolation, high efficiency in a wide operating range and reduced size and weight. The last features are due to the high switching frequency reached thanks to the use of SiC MOSFET power devices [22]. Every apparatus connected to the grid has to meet the power quality standards; therefore, the converter first stage also included power factor correction (PFC) capability. Figure 1 shows a flowchart of the overall tool.
Energies 2020, 13, x FOR PEER REVIEW 2 of 17 enables a wider diffusion of EVs, leading to environmental benefits [8]. On the other hand, the control strategy must take battery degradation into account [9]. Several bidirectional battery chargers (BBCs) for V2G have been already treated in the literature to investigate viable methods to achieve a compact, efficient and inexpensive solution. In [10,11], two designs of single-phase on-board BBCs were proposed, aiming to show the feasibility of reactive power support to the utility grid. In particular, [11] deals with the advantage of using wide band-gap semiconductor devices at high frequencies to reduce the current ripple by implementing both hardware and control solutions, similar to those adopted in converters for fuel cell power units [12]. In [13], a simple and functional BBC topology for stationary application was introduced. This topology was specifically designed to enhance the capabilities of a joint operation with an energy management system exploiting a storage stage in a residential environment. A literature analysis highlighted the fact that a key issue is to design and test a suitable control strategy. More specifically, the evaluation of the modulation, as well as of some features (e.g., current ripple and load step response), requires proper testing of the control strategy in dynamic conditions on small-time scales. On the other hand, appropriate long-timescale tests to evaluate the energy management capabilities of BBCs must be also be performed. In some works [10][11][12][13][14], the development of a feasible converter model was needed to fulfil the specifications through a proper system design, optimizing the structure of the control strategy as well as the correct setting of the parameters for the controllers.
As in many physical system designs, the use of advanced computer-aided design (CAD) systems is important at different project stages [15]. At the beginning, they enable component sizing verification; subsequently, they are useful for offline control validation with uP-based simulators [16], where they are very helpful when applying a user-friendly GUI based simulation interface [17]. Other solutions which are increasingly being adopted in the industry are powerful real-time emulation systems based on FPGA, that are widely used both in power converters [18] and electrical drives applications [19,20], and are particularly useful for the study and testing of dangerous situations, such as systems faults [21].
In this framework, a proper design using an advanced simulator model is proposed in this paper. It enables the evaluation of the feasibility and the performance of the converter using CAD. This approach makes it possible to validate the operation of the BBC in both V2G and Grid to Vehicle (G2V) operating modes. The main contribution of this paper is to propose a tool with which to optimize the BBC design before constructing the converter prototype. Additionally, the model of SiC MOSFET power devices was integrated to exploit their advantages in BBCs. Indeed, such an approach can useful for the optimal design of other converters in automotive applications. Finally, a mock-up was realized and tested, obtaining valuable results. In detail, the converter investigated was a 5-kW, single-phase BBC with two conversion stages: an active front end (AFE) PWM rectifier and a cascade-connected dual active bridge (DAB) with high-frequency isolation. Such an architecture was adopted for its bidirectional power flow, galvanic isolation, high efficiency in a wide operating range and reduced size and weight. The last features are due to the high switching frequency reached thanks to the use of SiC MOSFET power devices [22]. Every apparatus connected to the grid has to meet the power quality standards; therefore, the converter first stage also included power factor correction (PFC) capability. Figure 1 shows a flowchart of the overall tool.

Modelling the Bidirectional Battery Charger
For the application of a single-phase BBC, the proposed converter consists of two stages exploiting three H-bridges with modularity in the power board arrangement. Power devices with the same voltage breakdown should be used since the input and output voltage levels are similar. In this case, the three H-bridges can be identical, thus simplifying the converter design for the proposed converter that exploits identical SiC devices. As shown in Figure 2, the first stage is an AFE connected to the grid through an LCL filter which is useful to ensure both the power quality and the control of the power exchanged with the grid, while the second stage consists of a DAB converter.
The control strategy of the AC/DC converter is composed of a hierarchic control. On the one hand, it regulates the bidirectional power exchange with the grid. On the other, it shapes the current in a sinusoidal waveform. Hence, it consists of an inner loop current control in continuous conduction mode (CCM). The control is implemented on the dq rotating reference frame and is synchronous with the grid voltage. There is an outer loop to maintain constant the DC voltage, V DC , using linear regulators, i.e., standard industrial proportional-integral (PI) control. As usual, the DAB is modulated in phase-shift. In this way, the control algorithm sets a suitable phase-shift for application between the switching signals of the two active bridges while maintaining the duty cycle of every switching pattern at 50%. Such a strategy makes it possible to achieve zero voltage switching (ZVS) upon turning on all of the DAB power switches, thereby increasing the converter efficiency. The phase-shift value sets the energy flow: in G2V mode, the energy flows towards the battery, while in V2G mode, the energy flow is directed from the battery to the AC grid.

Modelling the Bidirectional Battery Charger
For the application of a single-phase BBC, the proposed converter consists of two stages exploiting three H-bridges with modularity in the power board arrangement. Power devices with the same voltage breakdown should be used since the input and output voltage levels are similar. In this case, the three H-bridges can be identical, thus simplifying the converter design for the proposed converter that exploits identical SiC devices. As shown in Figure 2, the first stage is an AFE connected to the grid through an LCL filter which is useful to ensure both the power quality and the control of the power exchanged with the grid, while the second stage consists of a DAB converter.
The control strategy of the AC/DC converter is composed of a hierarchic control. On the one hand, it regulates the bidirectional power exchange with the grid. On the other, it shapes the current in a sinusoidal waveform. Hence, it consists of an inner loop current control in continuous conduction mode (CCM). The control is implemented on the dq rotating reference frame and is synchronous with the grid voltage. There is an outer loop to maintain constant the DC voltage, VDC, using linear regulators, i.e., standard industrial proportional-integral (PI) control. As usual, the DAB is modulated in phase-shift. In this way, the control algorithm sets a suitable phase-shift for application between the switching signals of the two active bridges while maintaining the duty cycle of every switching pattern at 50%. Such a strategy makes it possible to achieve zero voltage switching (ZVS) upon turning on all of the DAB power switches, thereby increasing the converter efficiency. The phaseshift value sets the energy flow: in G2V mode, the energy flows towards the battery, while in V2G mode, the energy flow is directed from the battery to the AC grid. Figure 2. Converter topology. The first stage is the Active Front-End Rectifier; the second stage is the Dual Active Bridge.

Active Front-End Rectifier
The AFE, or synchronous rectifier, is connected via a filter to the utility grid where it performs AC/DC conversion and PFC [23,24]. Figure 3 shows the circuit test-bench emulator implementation using the Simulink Simscape Electrical Toolbox, a typical AFE control strategy based on the voltage oriented control algorithm. Park transformation is considered to obtain the best performance, e.g., zero error in steady-state and high control dynamics [25].
Park transformation is used to convert the two-phase stationary frame (α-β*) (1) into the twophase rotating frame (d-q) which is synchronous with the grid voltage phase θ (2). The two-phase voltages in reference to the dq reference frame are converted in stationary quantities α-β using the inverse matrix of the reference frame transformation [26]:

Active Front-End Rectifier
The AFE, or synchronous rectifier, is connected via a filter to the utility grid where it performs AC/DC conversion and PFC [23,24]. Figure 3 shows the circuit test-bench emulator implementation using the Simulink Simscape Electrical Toolbox, a typical AFE control strategy based on the voltage oriented control algorithm. Park transformation is considered to obtain the best performance, e.g., zero error in steady-state and high control dynamics [25].
Park transformation is used to convert the two-phase stationary frame (α-β*) (1) into the two-phase rotating frame (d-q) which is synchronous with the grid voltage phase θ (2). The two-phase voltages in reference to the dq reference frame are converted in stationary quantities α-β using the inverse matrix of the reference frame transformation [26]: Energies 2020, 13, 6733 The terms , and are state variables, while , and ( ) are control variables. In particular, represents the control variable referring to the synchronous reference frame. This model shows the nonlinearities related with the terms ( ) and the sinusoidal components of the AC system: Using this modelling approach, the purpose of the control is the cancellation of the sinusoidal terms; a phase locked loop "PLL" algorithm is used for this purpose. Applying the AC voltage as the input, the PLL output is ( ) = + , and Equation (2) turns to Equation (3), which contains only DC quantities in steady-state.
In V2G applications, the goal is to suitably manage the flow of active and reactive powers, according to Equation (4). By estimating the phase angle of the AC system through the PLL and imposing = 0, it follows that it is possible to rewrite the power relationships given in Equation (4) according to Equation (5), where the coupling terms have been cancelled. Since in dq-axis, the component is constant, from Equation (5), it is evident that it is possible to obtain the power control = through the direct control of the current = . The terms i d , i q and ρ are state variables, while V td , V tq and ω(t) are control variables. In particular, ω represents the control variable referring to the synchronous reference frame.
This model shows the nonlinearities related with the terms ω(t)Li d and the sinusoidal components of the AC system: Using this modelling approach, the purpose of the control is the cancellation of the sinusoidal terms; a phase locked loop "PLL" algorithm is used for this purpose. Applying the AC voltage as the input, the PLL output is ρ(t) = ω 0 t + θ 0 , and Equation (2) turns to Equation (3), which contains only DC quantities in steady-state.
In V2G applications, the goal is to suitably manage the flow of active and reactive powers, according to Equation (4). By estimating the phase angle of the AC system through the PLL and imposing V sq = 0, it follows that it is possible to rewrite the power relationships given in Equation (4) according to Equation (5), where the coupling terms have been cancelled.
Since in dq-axis, the component V sd is constant, from Equation (5), it is evident that it is possible to obtain the power control PQ re f = PQ f eed through the direct control of the current i dq re f = i dq f eed .
Finally, considering the general model, Equation (6), the command variables are obtained from the dq current control, Equation (7).

of 17
Simple and robust PI current regulators can be used to track references since the dq-axis signals in steady-state are constants (Equation (8)). The result is the controlled model given by Equations (9) and (10), as shown in Figure 4.
Simple and robust PI current regulators can be used to track references since the dq-axis signals in steady-state are constants (Equation (8)). The result is the controlled model given by Equations (9) and (10), as shown in Figure 4.

Dual Active Bridge
The DAB is the DC/DC isolated bidirectional converter of the BBC ( Figure 5). The DAB topology was chosen because of its high efficiency in a wide operating range [27]. It features a symmetrical i dq re f current references, e dq current errors, v dq compensator terms, D dq decoupling terms, V t dq control voltages, m dq modulation index.

Dual Active Bridge
The DAB is the DC/DC isolated bidirectional converter of the BBC ( Figure 5). The DAB topology was chosen because of its high efficiency in a wide operating range [27]. It features a symmetrical structure, characterized by two full bridges connected via a high-frequency transformer which also provides galvanic isolation [28]. In Figure 6, a simplified equivalent circuit of the DAB converter is shown. The model of the transformer consists of two elements: the leakage inductor and an ideal transformer that models the voltage ratio. In Figure 7, a simplified circuit where the transformer has been represented on the secondary side to obtain a simple equivalent circuit is shown. The operating states of the converter switches are described in Equation (11).
Energies 2020, 13, 6733 11) structure, characterized by two full bridges connected via a high-frequency transformer which also provides galvanic isolation [28]. In Figure 6, a simplified equivalent circuit of the DAB converter is shown. The model of the transformer consists of two elements: the leakage inductor and an ideal transformer that models the voltage ratio. In Figure 7, a simplified circuit where the transformer has been represented on the secondary side to obtain a simple equivalent circuit is shown. The operating states of the converter switches are described in Equation (11). The H-Bridge on the left produces a square-wave voltage with a 50% of duty cycle on the primary side of the transformer. The right-side H-Bridge performs the AC to DC conversion and implements the current control loop used to shape the current charging profile of the battery. The leakage inductance, Llk, plays a key role in the performance of the power conversion. Among the various modulation strategies suggested in the literature, single phase-shift modulation was used to control the power exchange between the BBC and the main grid.
The phase-shift ( ) is positive when the power flows from the grid to the battery and negative when the it flows in the opposite direction. The relation between the phase-shift and the delivered power is given by Equation (12): structure, characterized by two full bridges connected via a high-frequency transformer which also provides galvanic isolation [28]. In Figure 6, a simplified equivalent circuit of the DAB converter is shown. The model of the transformer consists of two elements: the leakage inductor and an ideal transformer that models the voltage ratio. In Figure 7, a simplified circuit where the transformer has been represented on the secondary side to obtain a simple equivalent circuit is shown. The operating states of the converter switches are described in Equation (11). Figure 6. DAB equivalent circuit W/ transformer. The H-Bridge on the left produces a square-wave voltage with a 50% of duty cycle on the primary side of the transformer. The right-side H-Bridge performs the AC to DC conversion and implements the current control loop used to shape the current charging profile of the battery. The leakage inductance, Llk, plays a key role in the performance of the power conversion. Among the various modulation strategies suggested in the literature, single phase-shift modulation was used to control the power exchange between the BBC and the main grid.
The phase-shift ( ) is positive when the power flows from the grid to the battery and negative when the it flows in the opposite direction. The relation between the phase-shift and the delivered power is given by Equation (12): structure, characterized by two full bridges connected via a high-frequency transformer which also provides galvanic isolation [28]. In Figure 6, a simplified equivalent circuit of the DAB converter is shown. The model of the transformer consists of two elements: the leakage inductor and an ideal transformer that models the voltage ratio. In Figure 7, a simplified circuit where the transformer has been represented on the secondary side to obtain a simple equivalent circuit is shown. The operating states of the converter switches are described in Equation (11). Figure 6. DAB equivalent circuit W/ transformer.  The H-Bridge on the left produces a square-wave voltage with a 50% of duty cycle on the primary side of the transformer. The right-side H-Bridge performs the AC to DC conversion and implements the current control loop used to shape the current charging profile of the battery. The leakage inductance, L lk , plays a key role in the performance of the power conversion. Among the various modulation strategies suggested in the literature, single phase-shift modulation was used to control the power exchange between the BBC and the main grid.
The phase-shift (φ) is positive when the power flows from the grid to the battery and negative when the it flows in the opposite direction. The relation between the phase-shift and the delivered power is given by Equation (12): where −180 • < φ < 180 • , V 1 and V 2 are the input and output voltages of the DAB ( Figure 8); n is the transformer turn ratio; f s is the switching frequency and L lk is the leakage inductance when considering a lossless DAB model. P > 0 denotes a power transfer from DAB1 to DAB2 and P < 0 denotes a power transfer from DAB1 to DAB2. The power transfer as a function of the phase-shift is depicted in Figure 8. The related absolute presents two maxima at two different phase-shift angles. The maximum power occurs for ∂P/∂φ = 0 is: Hence, for a specific active power P, the phase-shift φ that must be imposed between the input-output voltages is: Energies 2020, 13, x FOR PEER REVIEW 7 of 17 where −180° < < 180°, V1 and V2 are the input and output voltages of the DAB ( Figure 8); n is the transformer turn ratio; fs is the switching frequency and Llk is the leakage inductance when considering a lossless DAB model. P > 0 denotes a power transfer from DAB1 to DAB2 and P < 0 denotes a power transfer from DAB1 to DAB2. The power transfer as a function of the phase-shift is depicted in Figure 8. The related absolute presents two maxima at two different phase-shift angles. The maximum power occurs for ∂P/∂ϕ = 0 is: Hence, for a specific active power P, the phase-shift that must be imposed between the inputoutput voltages is: Power [W]

High-Frequency Transformer
The high-frequency transformer is responsible for the power transfer and permits to obtain the galvanic isolation [29]. Different core geometries and materials are widespread and the selection of the most appropriate solution mainly depends on the specific application. It is well known that the use of high switching frequency reduces the core size for a given power, while using suitable ferrite materials effectively eliminates eddy currents losses.
The design method is based on the "core geometry method" [30,31].

Matlab-Simulink Implementation
The model of the BBC and the model of its control were implemented in Matlab-Simulink to simulate the BBC behavior and to evaluate its performance considering different working conditions. The converter model included parasitic elements that affect each power conversion stage. The MOSFETs parameters were considered, as well as the dead-time set in the driving circuit. The closedloop control block diagram for the AC/DC PFC converter is shown in Figure 9.
Using the Park's transformation, the regulation was implemented using the id and iq current components to control, respectively, the active and reactive power. This control structure makes it possible to regulate both the DC voltage value and the PF. During G2V mode, the AFE with the PF

High-Frequency Transformer
The high-frequency transformer is responsible for the power transfer and permits to obtain the galvanic isolation [29]. Different core geometries and materials are widespread and the selection of the most appropriate solution mainly depends on the specific application. It is well known that the use of high switching frequency reduces the core size for a given power, while using suitable ferrite materials effectively eliminates eddy currents losses.
The design method is based on the "core geometry method" [30,31].

Matlab-Simulink Implementation
The model of the BBC and the model of its control were implemented in Matlab-Simulink to simulate the BBC behavior and to evaluate its performance considering different working conditions. The converter model included parasitic elements that affect each power conversion stage. The MOSFETs parameters were considered, as well as the dead-time set in the driving circuit. The closed-loop control block diagram for the AC/DC PFC converter is shown in Figure 9.
Using the Park's transformation, the regulation was implemented using the i d and i q current components to control, respectively, the active and reactive power. This control structure makes it possible to regulate both the DC voltage value and the PF. During G2V mode, the AFE with the PF correction works as an AC to DC converter, and charges the battery while maintaining constant the DC voltage and unitary the PF.  In V2G mode, the battery is discharged and the bridge acts in inverter mode (DC/AC). The control strategy consists of maintaining constant the voltage value on the bus-dc and managing the PF to compensate the amount of reactive power required by the grid. The control loop block diagram for the DAB is shown in Figure 10.

Simulation and Validation of the Model of Bidirectional SiC-Based Battery Chargers
A bipolar PWM was implemented with a switching frequency fs = 100 kHz. The switching frequency was selected as the best compromise between efficiency and high power density due to the reduction of the passives composing the AC grid filter and the DC bus link. The modulating signal was evaluated by the voltage grid angle implementing a grid synchronization algorithm setting a unity Power Factor (PF) in G2V or a stable grid synchronization in V2G. The gate signals used to control the SiC MOSFETs were set by the current control loop.
The technical specification of the filter parameters, DC bus link and grid operating conditions considered in the following analysis are listed in Table 1. The design specifications of the DAB of the proposed BBC are listed in Table 2. Table 1. Technical specification of the AFE parameters. In V2G mode, the battery is discharged and the bridge acts in inverter mode (DC/AC). The control strategy consists of maintaining constant the voltage value on the bus-dc and managing the PF to compensate the amount of reactive power required by the grid. The control loop block diagram for the DAB is shown in Figure 10.  In V2G mode, the battery is discharged and the bridge acts in inverter mode (DC/AC). The control strategy consists of maintaining constant the voltage value on the bus-dc and managing the PF to compensate the amount of reactive power required by the grid. The control loop block diagram for the DAB is shown in Figure 10.

Simulation and Validation of the Model of Bidirectional SiC-Based Battery Chargers
A bipolar PWM was implemented with a switching frequency fs = 100 kHz. The switching frequency was selected as the best compromise between efficiency and high power density due to the reduction of the passives composing the AC grid filter and the DC bus link. The modulating signal was evaluated by the voltage grid angle implementing a grid synchronization algorithm setting a unity Power Factor (PF) in G2V or a stable grid synchronization in V2G. The gate signals used to control the SiC MOSFETs were set by the current control loop.
The technical specification of the filter parameters, DC bus link and grid operating conditions considered in the following analysis are listed in Table 1. The design specifications of the DAB of the proposed BBC are listed in Table 2.

Simulation and Validation of the Model of Bidirectional SiC-Based Battery Chargers
A bipolar PWM was implemented with a switching frequency f s = 100 kHz. The switching frequency was selected as the best compromise between efficiency and high power density due to the reduction of the passives composing the AC grid filter and the DC bus link. The modulating signal was evaluated by the voltage grid angle implementing a grid synchronization algorithm setting a unity Power Factor (PF) in G2V or a stable grid synchronization in V2G. The gate signals used to control the SiC MOSFETs were set by the current control loop.
The technical specification of the filter parameters, DC bus link and grid operating conditions considered in the following analysis are listed in Table 1. The design specifications of the DAB of the proposed BBC are listed in Table 2. For this bidirectional converter, the EE core geometry was chosen with N87 material grade. This choice was related to the high switching frequency (f s = 100 kHz) and high-power density of the transformer, whose characteristics are listed in Table 3. An increment in the switching frequency enabled a reduction of passive component size and weight but at the cost of greater switching power losses that, in turn, involve reduced efficiency. Therefore, the adopted frequency was the best compromise for such an application. A prototype of the converter was designed and realized using components made by STMicroelectronics to validate the proposed tool by testing the performance and efficiency of the BBC designed using the proposed modelling approach. The power devices are SiC MOSFETs SCT50N120 (Table 4). A mixed-signal MCUs STM32G474 was used to generate the phase-shift control signal and to manage the dead-time in each power converter leg exploiting the High-Resolution Timer (HRTIM) with Energies 2020, 13, 6733 10 of 17 184 ps resolution. The digital control signals were conditioned and applied to the power switches using high-performance gate drivers STGAP2S, a galvanically isolated 4 A single gate drivers. This made it possible to achieve more compact and robust solutions for the entire experimental system.
The modular prototype and the test-bench are shown in Figures 11 and 12.
Energies 2020, 13, x FOR PEER REVIEW 10 of 17 The modular prototype and the test-bench are shown in Figures 11 and 12.

Active Rectifier PFC Dual Active Bridge
Hf trafo Figure 11. A prototype of the bidirectional battery charger. The power required from the AFE acts on the phase-shift; by varying this reference, it is possible to reverse the power flow. Some simulated and measured waveforms obtained during the G2V mode are shown below. In Figure 13, the simulated first stage waveforms that are the grid voltage vac and current iac with unitary PF, and the ripple of the DC voltage are shown. The total harmonic distortion for the AC current was close to 7%, which is in accordance with the value measured (less than 10%) using the prototype. The modular prototype and the test-bench are shown in Figures 11 and 12.

Active Rectifier PFC Dual Active Bridge
Hf trafo Figure 11. A prototype of the bidirectional battery charger. The power required from the AFE acts on the phase-shift; by varying this reference, it is possible to reverse the power flow. Some simulated and measured waveforms obtained during the G2V mode are shown below. In Figure 13, the simulated first stage waveforms that are the grid voltage vac and current iac with unitary PF, and the ripple of the DC voltage are shown. The total harmonic distortion for the AC current was close to 7%, which is in accordance with the value measured (less than 10%) using the prototype. The power required from the AFE acts on the phase-shift; by varying this reference, it is possible to reverse the power flow. Some simulated and measured waveforms obtained during the G2V mode are shown below. In Figure 13, the simulated first stage waveforms that are the grid voltage v ac and current i ac with unitary PF, and the ripple of the DC voltage are shown. The total harmonic distortion for the AC current was close to 7%, which is in accordance with the value measured (less than 10%) using the prototype. The voltage and current on the primary side of the transformer are shown in Figure 14. The simulated waveforms were in good agreement with the measured ones. The main difference was the lack of oscillations in the simulated voltage. These oscillations were due to the coupling between the parasitic capacitance of the devices and the parasitic inductances in the power loop that were neglected in the model. The current waveform depends on the phase-shift between the two transformer-ends voltages. The secondary side quantities were pretty similar, as a turn ratio n equal to one was chosen. The leakage inductance, Llk, affected the power delivered in the DAB converter. Therefore, the voltage vL waveform was strictly related to the power direction. The DC output waveforms are shown in Figure 15, where the ripple of the voltage Vo and current Io are highlighted. The voltage and current on the primary side of the transformer are shown in Figure 14. The simulated waveforms were in good agreement with the measured ones. The main difference was the lack of oscillations in the simulated voltage. These oscillations were due to the coupling between the parasitic capacitance of the devices and the parasitic inductances in the power loop that were neglected in the model. The current waveform depends on the phase-shift between the two transformer-ends voltages. The secondary side quantities were pretty similar, as a turn ratio n equal to one was chosen. The leakage inductance, L lk , affected the power delivered in the DAB converter. Therefore, the voltage v L waveform was strictly related to the power direction. The DC output waveforms are shown in Figure 15, where the ripple of the voltage V o and current I o are highlighted. The voltage and current on the primary side of the transformer are shown in Figure 14. The simulated waveforms were in good agreement with the measured ones. The main difference was the lack of oscillations in the simulated voltage. These oscillations were due to the coupling between the parasitic capacitance of the devices and the parasitic inductances in the power loop that were neglected in the model. The current waveform depends on the phase-shift between the two transformer-ends voltages. The secondary side quantities were pretty similar, as a turn ratio n equal to one was chosen. The leakage inductance, Llk, affected the power delivered in the DAB converter. Therefore, the voltage vL waveform was strictly related to the power direction. The DC output waveforms are shown in Figure 15, where the ripple of the voltage Vo and current Io are highlighted. In V2G mode, the power flows from the battery to the grid to satisfy the power demand. In this case, the reference power is modified and acts on the phase-shift value as described above. The transition from G2V to V2G mode at the instant t* requires current inversion, as illustrated in Figure  16. In this case, the PF has been maintained, meaning that no reactive power was requested by the converter thanks to the proper control. The main simulation results are summarized in Table 5, while in Figure 17, the efficiency of the whole converter is shown.  In V2G mode, the power flows from the battery to the grid to satisfy the power demand. In this case, the reference power is modified and acts on the phase-shift value as described above. The transition from G2V to V2G mode at the instant t* requires current inversion, as illustrated in Figure  16. In this case, the PF has been maintained, meaning that no reactive power was requested by the converter thanks to the proper control. The main simulation results are summarized in Table 5, while in Figure 17, the efficiency of the whole converter is shown.  In V2G mode, the power flows from the battery to the grid to satisfy the power demand. In this case, the reference power is modified and acts on the phase-shift value as described above. The transition from G2V to V2G mode at the instant t* requires current inversion, as illustrated in Figure 16. In this case, the PF has been maintained, meaning that no reactive power was requested by the converter thanks to the proper control. The main simulation results are summarized in Table 5, while in Figure 17, the efficiency of the whole converter is shown.  Some other comparisons are reported in Figure 18, confirming the consistency of the proposed modelling approach. Some other comparisons are reported in Figure 18, confirming the consistency of the proposed modelling approach. Some other comparisons are reported in Figure 18, confirming the consistency of the proposed modelling approach.

Conclusions
This paper dealt with SiC MOSFET-based BBC with galvanic isolation. A promising topology was studied as the best choice in terms of efficiency, bidirectional power flow management and complexity. The development of an accurate tool accounting for the model of the converter in computer simulator and which was able to exploit FPGA was proposed. It has been shown that this is a suitable approach to design and test the performance of the complex control algorithm, both in G2V with PFC capability and V2G operation modes. The control strategy of the AC/DC converter is composed of a cascade control. One is able to regulate the power flow with the grid, while control of the DC/DC stage consists of the management of the battery charge/discharge. The design and the proposed approach were validated by comparing the simulation results with some experimental tests, confirming the consistency of the proposed method.

Conclusions
This paper dealt with SiC MOSFET-based BBC with galvanic isolation. A promising topology was studied as the best choice in terms of efficiency, bidirectional power flow management and complexity. The development of an accurate tool accounting for the model of the converter in computer simulator and which was able to exploit FPGA was proposed. It has been shown that this is a suitable approach to design and test the performance of the complex control algorithm, both in G2V with PFC capability and V2G operation modes. The control strategy of the AC/DC converter is composed of a cascade control. One is able to regulate the power flow with the grid, while control of the DC/DC stage consists of the management of the battery charge/discharge. The design and the proposed approach were validated by comparing the simulation results with some experimental tests, confirming the consistency of the proposed method.

Conflicts of Interest:
The authors declare no conflict of interest.