Performance Assessment of a Grid-Connected Two-Stage Bidirectional Converter for a Combined PV–Battery Energy Storage System

: This paper presents a comprehensive performance assessment of a two-stage power electronic (PE) converter for interfacing the grid of a lithium-ion battery energy storage system (Li-BESS) for building-integrated PV (BIPV) applications. A performance assessment of the control system was conducted for the two-stage PE interface with a common DC-link, which consisted of a bi-directional boost converter with a cascaded PI controller and an AC/DC converter with proportional-integral (PI) and proportional-resonant (PR) controllers. The assessment covered loss analysis and useful lifetime estimation for the 10 kW PE interface with a wide-bandgap SiC power MOSFET at different loads for both the charging and discharging modes of a 50 kWh lithium-ion battery system. Additionally, a performance comparison of various switching frequencies was performed. It was observed that the system was stable up to a switching frequency of 30 kHz, and that increasing the switching frequency improved the responsiveness of the converter by decreasing the settling time; however, there were diminishing returns at higher switching frequencies. To obtain a proper balance between responsiveness and lower loss, a switching frequency of 10 kHz was selected.


Introduction
Ensuring energy resilience and reaching net zero emissions by 2050 while electricity demands are increasing calls for the faster adoption of renewable sources (e.g., solar PV, wind). The incremental energy demand of the building sector is projected to be 70% by 2050 due to the electrification of heating systems [1]. At the same time, building-integrated PV (BIPV) systems are being increasingly used and interfaced with the grid. The BIPV market has increased substantially, reaching 500 MWp in 2022, and is expected to reach 726 MWp by the end of 2023 [2]. Battery system and PE interfaces are two significant entities to exploit in such combined PV systems. In stationary battery energy storage systems, Li-ion batteries (LIBs) are being increasingly used in comparison with other battery technologies. The relevant studies reveal that 80% of the installed stationary energy storage systems were LIB-based in 2020, and a compound annual growth rate of 17.4% is expected during 2022-2030 [3,4]. This is mainly due to the higher cycle life, lower selfdischarge rate, higher charging and discharging efficiencies, and lower cost trending due to the homogeneous nature of LIBs in stationary and electromobility applications resulting in huge market share [5,6].
However, the performance of PE interfaces, such as AC/DC and DC/DC converters, used in the PV combined with battery energy storage system (BESS) plays a vital role in The design of the two-stage bidirectional converter for interfacing the grid of a stationary energy storage system is illustrated in Figure 1. The battery pack was charged and discharged from the single-phase AC power grid. Full-bridge AC/DC (230 Vrms to 400 Vdc) and half-bridge DC/DC (400 Vdc-200 Vdc) power stages were used by coupling a common DC-link for bidirectional power flow. The DC-link in the topology of the highlighted section was used to inject the PV power by using a boost DC/DC converter to the DC-link voltage. Please note that, in this paper, positive power flow is defined as the charging state and negative power flow is defined as the discharging state of the battery pack. For grid synchronization, generally a phase locked loop (PLL) is used for grid-interfaced converter. The single-phase PLL can be implemented using the Hilbert transformation. In this work, the single-phase feedforward PLL was implemented. Additionally, as shown in Figure 1, the complementary switching signals for the MOSFET(Q) switches-Q1 and Q2-are denoted by S1 and S2, respectively, in the AC/DC converter. Notably, during charging operation, Q1 and Q4 were turned on, whereas during discharging operation, the Q2 and Q3 switches were turned on. It is important to mention that the switching signals were converted into the dq frame during AC/DC converter modeling. In addition, Q5 was turned on during battery charging, and vice versa during battery discharging. The duty cycle, represented by D, served as the control signal for the DC/DC converter. The organization of this paper is as follows: in Section 2, the modeling of the PE interface and battery is discussed. Section 3 covers the corresponding control of the PE interface. In Section 4, the lifetime estimation of the PE converter is detailed. Finally, the results and discussion are presented in the concluding section, which includes the performance of control, electrical parameters, losses, and useful lifetime prediction.

Battery Energy Storage System Modeling
The design of the two-stage bidirectional converter for interfacing the grid of a stationary energy storage system is illustrated in Figure 1. The battery pack was charged and discharged from the single-phase AC power grid. Full-bridge AC/DC (230 Vrms to 400 Vdc) and half-bridge DC/DC (400 Vdc-200 Vdc) power stages were used by coupling a common DC-link for bidirectional power flow. The DC-link in the topology of the highlighted section was used to inject the PV power by using a boost DC/DC converter to the DC-link voltage. Please note that, in this paper, positive power flow is defined as the charging state and negative power flow is defined as the discharging state of the battery pack. For grid synchronization, generally a phase locked loop (PLL) is used for grid-interfaced converter. The single-phase PLL can be implemented using the Hilbert transformation. In this work, the single-phase feedforward PLL was implemented. Additionally, as shown in Figure 1, the complementary switching signals for the MOSFET(Q) switches-Q1 and Q2-are denoted by S1 and S2, respectively, in the AC/DC converter. Notably, during charging operation, Q1 and Q4 were turned on, whereas during discharging operation, the Q2 and Q3 switches were turned on. It is important to mention that the switching signals were converted into the dq frame during AC/DC converter modeling. In addition, Q5 was turned on during battery charging, and vice versa during battery discharging. The duty cycle, represented by D, served as the control signal for the DC/DC converter.  Conceptual system architecture with grid-interfaced battery energy storage system where "*" represents the reference value of the corresponding parameters (battery voltage, v batt ; grid current, i g ; inverter current, i inv ).

Modeling of AC/DC Converter
The active front-end converter was utilized for grid interfacing with a high-order passive filter (LCL filter), as per the topology utilized. The LCL filter comprises two inductances, L s and L c , for the grid and converter sides, respectively, along with the resistances of the series inductance, r s and r c . The filter capacitance is represented by C f , with damping resistance R d . Among these parameters, L c holds the most significance in the voltage source converter [20]. The DC side of the converter is characterized by the DC-side capacitor, C dc , DC-side voltage, v dc , and DC-link current, i dc . The switching operation in the synchronously rotating dq frame is represented by the functions S d and S q . The mathematical model of a single-phase voltage-source converter is formulated in the synchronous dq frame using single-phase feedforward modeling, as presented in Equations (1) to (3) [21,22], where v d and v q serve as the dq components of the AC input voltage; i d and i q are the corresponding currents; and ω is the angular frequency.

Modeling of DC/DC Converter
A bidirectional DC/DC power converter is required to regulate battery voltage (low side), which changes with state of the charge (SoC) and reaches the DC-link voltage (high side) while transferring power in the charging (buck) and discharging (boost) modes. The power stage dynamics of the DC/DC converter are modeled using Equations (4) and (5), utilizing an inductor and capacitor denoted by L 0 and C 0 , respectively, with damping resistor R 0 as a filter while charging the battery. In addition, the duty ratio is denoted by d r , and λ serves as the derived coefficient during discharging mode. When formulating the transfer function (G id ) for the buck and boost modes, the load (battery) is considered with resistance R L . The current through the load and voltage across the load are denoted by i L and v L , respectively. The control transfer functions of the charging and discharging modes for the converter are given below in Equations (6) and (7), where s and G id are the representations of the Laplace operator and open loop transfer function for both modes, respectively. Further details regarding the modeling of the bidirectional DC/DC converter can be found in references [23,24].

Li-Ion Battery
The modeling of a lithium-ion battery involves the use of an electrical equivalent circuit in order to effectively map the various dynamics of this chemistry [25]. A simple internal resistance-based model is widely used for battery voltage, current, and SoC performance [26,27]. The simple lithium-ion/LFP model [28] adopted here is illustrated in Figure 2. In the figure, the V charge and V discharge states are modeled by Equations (8) internal resistance-based model is widely used for battery voltage, current, and SoC performance [26,27]. The simple lithium-ion/LFP model [28] adopted here is illustrated in Figure 2. In the figure, the Vcharge and Vdischarge states are modeled by Equations (8) where V0 represents the constant voltage (V); K denotes the polarization resistance (Ω); * denotes the filtered current (A); and refer to the maximum and extracted capacities (Ah), respectively; A represents the exponential voltage (V); and B represents the exponential capacity (Ah −1 ).

Control Design for the Two-Stage Bidirectional Converter
The stability of a PE converter's operation is heavily dependent on the effectiveness of its control system. Generally, a two-stage power converter can maintain stability within a specific range of switching frequencies, each of which has a unique cut-off frequency closely related to the PE device's switching frequency. This switching frequency, which determines the rate at which devices switch on and off to control the power flow, must be sufficiently below the cut-off frequency to avoid system instability and aliasing. Thus, the cut-off frequency is a critical parameter in the design of PE control systems as it affects the stability, response, and bandwidth of the system. Furthermore, variations in switching frequency can impact system efficiency, as electro-thermal performance differs depending on the frequency of operation. Therefore, careful consideration of the cut-off frequency is essential to ensure the system's performance and reliability.
In line with the two-stage bidirectional converter concept in Section 2, the AC/DC interface used a PI controller for controlling the voltage and a PR controller for controlling the current to improve the system's stability. For the battery side, a PI control was used to control the battery voltage and current. A brief description of the applied control strategy for the assessment is presented in the subsequent sections.
where V 0 represents the constant voltage (V); K denotes the polarization resistance (Ω); I * bat denotes the filtered current (A); Q max and Q ext refer to the maximum and extracted capacities (Ah), respectively; A represents the exponential voltage (V); and B represents the exponential capacity (Ah −1 ).

Control Design for the Two-Stage Bidirectional Converter
The stability of a PE converter's operation is heavily dependent on the effectiveness of its control system. Generally, a two-stage power converter can maintain stability within a specific range of switching frequencies, each of which has a unique cut-off frequency closely related to the PE device's switching frequency. This switching frequency, which determines the rate at which devices switch on and off to control the power flow, must be sufficiently below the cut-off frequency to avoid system instability and aliasing. Thus, the cut-off frequency is a critical parameter in the design of PE control systems as it affects the stability, response, and bandwidth of the system. Furthermore, variations in switching frequency can impact system efficiency, as electro-thermal performance differs depending on the frequency of operation. Therefore, careful consideration of the cut-off frequency is essential to ensure the system's performance and reliability.
In line with the two-stage bidirectional converter concept in Section 2, the AC/DC interface used a PI controller for controlling the voltage and a PR controller for controlling the current to improve the system's stability. For the battery side, a PI control was used to control the battery voltage and current. A brief description of the applied control strategy for the assessment is presented in the subsequent sections.

Control of AC/DC Converter
In this study, a feedforward control strategy was implemented, which consisted of the voltage controller as the external loop and current controller as the inner loop for the d-axis and q-axis current control [21]. The v * d and v * q references can be determined by following Equations (11) and (12), respectively. Consequently, the injected current can be modeled according to Equations (13) and (14). Finally, v d and v q can be represented as a function of v * d and v * q and i d and i q , as shown in Equations (15) and (16), where K p and K i are the gains of the PR controller.
The voltage and current controllers are designed based on the controller time constants, τ v and τ i , respectively. The current controller performs four to five times quicker than the voltage controller. However, the PR controller was adopted because of its advantageous resonant term to grid frequency and simplicity for development. For this reason, the PR controller was used in the current controller to improve controller performance. The gains of the PI and PR controllers are determined following Equations (17)- (22): where K pv and K iv represent the PI controller gain for the voltage control loop, while K pi and K ii are the gains for the current control loop. G n , ω n , and ω c respectively symbolize the controller's proportionality gain, natural oscillation frequency, and cut-off frequency.

Control of DC/DC Converter
A cascaded control structure was used for the bidirectional DC/DC converter. The closed-loop current and voltage controller equations are presented in Equations (23) and (27). This also comprises the voltage controller as an outside level and the current controller as an inside level, where the inside level performs tenfold quicker than the outside level. The inside level regulates the average inductor current, iL 0 , using a PI controller. The continuous duty ratios from the controllers were then sent to the PWM modules to generate the switching signals for the two discrete power MOSFETs. The output voltage was likewise controlled by a PI controller. The basis of the PI controller gains for battery voltage and current control is presented in Equations (24)- (26) and Equations (28)-(30), respectively: where T i and T v respectively denote the closed-loop transfer functions for the current and voltage control loops. G vd and G id respectively represent the transfer functions from voltage to duty for the voltage control loop and from current to duty for the current control loop. G ci and G cv refer to the transfer functions of the PI controllers for the current and voltage loops, respectively. The gain and phase margins were utilized to determine the PI gains using the current and voltage plant transfer functions.

Power Electronics Interface Degradation
This section describes the PE interface degradation towards mean time to failure caused by stress factors generated in the converters. The PE interface lifetime degradation estimation of the two-stage power converter is illustrated in Figure 3. As seen in Figure 3, the approach is composed of three parts: the electrical domain, which comprises the power stage and control part; the electro-thermal domain, which considers losses and resulting temperatures; and the failure domain, which incorporates possible failure rates and part stress factors to enable the inspection of the useful lifetime of the two-stage PE interface. Of these three domains, the electro-thermal domain is of utmost importance for assessing the degradation of the most failure-prone components in the PE interface, namely switches and capacitors [29]. The previously discussed electrical domain modeling was followed by loss modeling, thermal modeling, and finally, failure modeling in the subsequent sections to evaluate the impact of variations on the system response.

Loss Modeling
Accurately estimating the loss incurred by the PE interface during operation is complex but important because of its influence on performance and reliability. The semiconductor switching loss behavioral model is adopted to more accurately assess performance [30].
Owing to the fact that driver losses account for a small share of the total power loss, the total loss incurred is modeled with conduction and switching losses. The MOSFET conduction and switching losses are formulated by Equations (31)- (34). Similarly, Equations (35)-(38) are applied for the diode. To capture the behavior within operational variations of voltage, current, on-state resistance, frequency, and junction temperature, the lookup table approach was utilized for the selected SiC MOSFET switch [31,32].
where M ( ) represents the total losses of the MOSFET; cond ( ) is the conduction losses; & is the sum of turn-on and turn-off losses; Vds is the on-state voltage; Ids is the current drain-source current through the MOSFET; and Tj represents the junction temperature.

Loss Modeling
Accurately estimating the loss incurred by the PE interface during operation is complex but important because of its influence on performance and reliability. The semiconductor switching loss behavioral model is adopted to more accurately assess performance [30].
Owing to the fact that driver losses account for a small share of the total power loss, the total loss incurred is modeled with conduction and switching losses. The MOS-FET conduction and switching losses are formulated by Equations (31)- (34). Similarly, Equations (35)-(38) are applied for the diode. To capture the behavior within operational variations of voltage, current, on-state resistance, frequency, and junction temperature, the lookup table approach was utilized for the selected SiC MOSFET switch [31,32].
where P M (T) represents the total losses of the MOSFET; P cond (M) is the conduction losses; P on&o f f is the sum of turn-on and turn-off losses; V ds is the on-state voltage; I ds is the current drain-source current through the MOSFET; and T j represents the junction temperature. where P rr represents the turn-off power losses; V f is the forward voltage drops; I f is the forward diode current; and E rr is the reverse recovery energy. Additionally, the inductor and capacitor losses can be formulated by Equations (39) and (40): where I rmsy is the average current through the inductor, capacitor; R L is the Litz wire resistance of the inductor; and ESR is the equivalent series resistance of the capacitor.

Thermal Modeling
To obtain a good estimation of the junction and case temperatures, thermal modeling is considered with three key aspects. Firstly, the device case temperature is a direct result of the total loss generated by the device. Secondly, the temperature of the device is subject to variations arising from losses. Lastly, the influence of changes in the ambient temperature is imperative to consider.
The thermal modeling approach for the PE interface is detailed in [33]. With the former aspects, the switch thermal model is formulated by Equations (41)-(44), the capacitor by Equation (45), and the inductor by Equations (46) and (47): where Z th jc is the junction to case thermal resistance ( • C/W), τ th is the response time, ∆T CA is the case to ambient temperature change, T C is the case temperature, T j is the junction temperature, and R th is the thermal resistance.
where T HS(C) and T HS(L) are the hotspot temperatures of the inductor and capacitor, respectively, and A is the radiating surface area of the inductor.

Failure Modeling
The possible failure of the PE interface under the conditions of being in good and degraded states can be described with Equation (48), as per the Markov chain model [34]: where P G denotes the possibility of normal operation with the components being in good state; P D denotes the possibility of being in a degraded state with a failure of any of the components; and λ GD is the failure rate while transitioning from good to degraded states.
Assuming the initial operating state as good, the operational reliability can be expressed by Equation (49): The failure rates of the two-stage converter are calculated using the parts stress method, as formulated by Equation (50) [35]: where λ D , λ S w, λ Cap , λ ind , and n denote the failure rates of the diode, switch, capacitor, inductor, and the number of these components used, respectively. According to MIL-HDBK-217F [36], the failure rate of a device is affected by the quality of the components, the environment, contact construction, capacitance, and temperature.

Results and Discussion
The design of the passive components and the system requirements are presented in [37]. This work extends the design considering the electrical and control performances and regarding lifetime assessment with various switching frequencies for SiC power MOSFETs. The base case system specifications and parameters are shown in Table 1. The discussion of the performance of the various cases is presented in the following subsections.

Controller Performance
The analysis of the voltage and current loop stability for the AC/DC interface is shown in Figure 4 in a comparative view of varying switching frequency. The planttransfer function for both loops is a function of induction and capacitance, which is affected by the switching frequency, thus leading to varied closed-loop system responses. The main objective was to improve the load transient response by varying the switching frequency. The load transient response was better at higher switching frequencies because the bandwidth of the controller could be increased.
The Bode plot regarding the current control loop shown in Figure 4a indicated that the resonance frequency shifted from 9 to 90 kHz within the selected switching frequency range of 5-30 kHz. However, the gain and phase margins for the current loop remained greater than 3 dB and 30 • , respectively.
Similarly, the response of the voltage control loop shown in Figure 4b depicted a positive shift in gain and phase margins for the switching frequency range. Based on the figures, it could be concluded that both control loops remained in the stable region with the variation in switching frequency.
The stability of both control loops was further confirmed by the pole-zero map, as shown in Figure 4c,d. These figures demonstrated that the poles remained in the left half of the plane, even with the variation in frequency.  The analysis procedure for the DC/DC interface at the battery side was similar to the former and the performance of both control loops is shown in Figure 5a,b. It was noted in these figures that the gain margin varied from 30 to 75 dB for both control loops within the switching frequency range of 5 to 30 kHz. Furthermore, it was observed that the magnitude of the plot maintained a 30 dB per decade characteristic. The phase margin was within the range of 45° to 70° for the given switching frequency range. These corresponding gain and phase margin ranges were utilized to calculate the controller gain for the voltage and current loops of the DC/DC stage for the system response assessment.
Moreover, the pole-zero map for the voltage-current loop of the DC/DC converter is depicted in Figure 5c,d. The placement of the poles in the left half of the plane ensured the stability of the system. However, in order to examine the system response and settling time for the DC/DC converter current and voltage controllers, as an example, the unit step response of the studied switching frequency was analyzed. Figure 6a,b illustrates the unit step response for the current controller, demonstrating that the settling time decreased proportionally from 2.5 to 0.3 ms for the current control loop and from 7 to 1 µs for the voltage control loop for the 5 to 30 kHz switching frequency variation. The analysis procedure for the DC/DC interface at the battery side was similar to the former and the performance of both control loops is shown in Figure 5a,b. It was noted in these figures that the gain margin varied from 30 to 75 dB for both control loops within the switching frequency range of 5 to 30 kHz. Furthermore, it was observed that the magnitude of the plot maintained a 30 dB per decade characteristic. The phase margin was within the range of 45 • to 70 • for the given switching frequency range. These corresponding gain and phase margin ranges were utilized to calculate the controller gain for the voltage and current loops of the DC/DC stage for the system response assessment.
Moreover, the pole-zero map for the voltage-current loop of the DC/DC converter is depicted in Figure 5c,d. The placement of the poles in the left half of the plane ensured the stability of the system. However, in order to examine the system response and settling time for the DC/DC converter current and voltage controllers, as an example, the unit step response of the studied switching frequency was analyzed. Figure 6a,b illustrates the unit step response for the current controller, demonstrating that the settling time decreased proportionally from 2.5 to 0.3 ms for the current control loop and from 7 to 1 µs for the voltage control loop for the 5 to 30 kHz switching frequency variation.

System Performance
The simulation outcomes of the battery pack-interfaced converter in the charging and discharging modes are depicted in Figure 7a. The converter's power was negative from

System Performance
The simulation outcomes of the battery pack-interfaced converter in the charging and discharging modes are depicted in Figure 7a. The converter's power was negative from

System Performance
The simulation outcomes of the battery pack-interfaced converter in the charging and discharging modes are depicted in Figure 7a. The converter's power was negative from time t = 0 s to time t = 1 s, which meant that the battery was discharging based on the requested power with voltage and current, accordingly. The requested power range varied from 2 to 10 kW up to 1 s simulation time. During this time, the SoC decreased at different rates. Moreover, the battery voltage decreased from 214.5 to 213 V. The voltage and current in the AC side are also shown in Figure 7b.
Conversely, between the time periods of t = 1 s and t = 2 s, charging power was requested, indicating that the battery system consumed the DC current and was being charged. It was observed that the battery voltage exhibited a high increment rate at 10 kW of requested power, reaching its maximum voltage during charging at a power consumption of 8 kW at t = 1.4 s. In addition, the amount of grid current was consumed in the range of 45 A-55 A (peak) with a total harmonic distortion (THD) of 1.6%.
Energies 2023, 16, x FOR PEER REVIEW 13 of 21 time t = 0 s to time t = 1 s, which meant that the battery was discharging based on the requested power with voltage and current, accordingly. The requested power range varied from 2 to 10 kW up to 1 s simulation time. During this time, the SoC decreased at different rates. Moreover, the battery voltage decreased from 214.5 to 213 V. The voltage and current in the AC side are also shown in Figure 7b. Conversely, between the time periods of t = 1 s and t = 2 s, charging power was requested, indicating that the battery system consumed the DC current and was being charged. It was observed that the battery voltage exhibited a high increment rate at 10 kW of requested power, reaching its maximum voltage during charging at a power consumption of 8 kW at t = 1.4 s. In addition, the amount of grid current was consumed in the range of 45 A-55 A (peak) with a total harmonic distortion (THD) of 1.6%.  The DC-link voltage profile is depicted in Figure 8a. The DC-link voltage fluctuation was more frequent due to changes in the requested power for both modes of operation. Specifically, the voltage ripple was around 1% (4 V) during the steady state period for each requested power. However, the fluctuation was around 25% (100 V) during the power transferring mode transition. It was clearly observed that the voltage controller maintained the DC-link voltage during charging and discharging with the desired voltage ripple. The amount of grid current in the range of 48-60 A (peak) was injected to the grid with 2.9% THD during the discharging period, as shown in Figure 8b. However, the THD varied up to 4% for the 10 to 30 kHz switching frequency variation. The DC-link voltage profile is depicted in Figure 8a. The DC-link voltage fluctuation was more frequent due to changes in the requested power for both modes of operation. Specifically, the voltage ripple was around 1% (4 V) during the steady state period for each requested power. However, the fluctuation was around 25% (100 V) during the power transferring mode transition. It was clearly observed that the voltage controller maintained the DC-link voltage during charging and discharging with the desired voltage ripple. The amount of grid current in the range of 48-60 A (peak) was injected to the grid with 2.9% THD during the discharging period, as shown in Figure 8b. However, the THD varied up to 4% for the 10 to 30 kHz switching frequency variation.

Evaluation of Losses
The simulation outcomes of the two-stage converter losses are discussed in this section. The voltage and current stress on the Q1 switch of the first leg was not uniform for the charging and discharging modes. Thus, the switching losses in the same leg were different for the AC/DC and DC/DC power stages for both modes of operation. The switching losses occurred due to the switching current cycle when the device was turned on.
From Figure 9a, it was observed that the switching losses for the Q1 MOSFET varied up to 0.4 W for the given switching frequency range during 10 kW discharging operation for the AC/DC converter. On the other hand, the conduction losses shown in Figure 9b for the MOSFET were around 120 W. In this assessment work, the switching and conduction losses for the SiC MOSFET switch used in the two-stage bidirectional converter were considered. Therefore, the efficiency map was different at different switching frequencies. The efficiency map in different switching frequencies is depicted in Figure 10. The maximum efficiencies were around 97.8% (discharging) and 98.6% (charging) at 8 kW load power.

Evaluation of Losses
The simulation outcomes of the two-stage converter losses are discussed in this section. The voltage and current stress on the Q1 switch of the first leg was not uniform for the charging and discharging modes. Thus, the switching losses in the same leg were different for the AC/DC and DC/DC power stages for both modes of operation. The switching losses occurred due to the switching current cycle when the device was turned on.
From Figure 9a, it was observed that the switching losses for the Q1 MOSFET varied up to 0.4 W for the given switching frequency range during 10 kW discharging operation for the AC/DC converter. On the other hand, the conduction losses shown in Figure 9b for the MOSFET were around 120 W. In this assessment work, the switching and conduction losses for the SiC MOSFET switch used in the two-stage bidirectional converter were considered. Therefore, the efficiency map was different at different switching frequencies. The efficiency map in different switching frequencies is depicted in Figure 10. The maximum efficiencies were around 97.8% (discharging) and 98.6% (charging) at 8 kW load power.

Evaluation of Losses
The simulation outcomes of the two-stage converter losses are discussed in this section. The voltage and current stress on the Q1 switch of the first leg was not uniform for the charging and discharging modes. Thus, the switching losses in the same leg were different for the AC/DC and DC/DC power stages for both modes of operation. The switching losses occurred due to the switching current cycle when the device was turned on.
From Figure 9a, it was observed that the switching losses for the Q1 MOSFET varied up to 0.4 W for the given switching frequency range during 10 kW discharging operation for the AC/DC converter. On the other hand, the conduction losses shown in Figure 9b for the MOSFET were around 120 W. In this assessment work, the switching and conduction losses for the SiC MOSFET switch used in the two-stage bidirectional converter were considered. Therefore, the efficiency map was different at different switching frequencies. The efficiency map in different switching frequencies is depicted in Figure 10. The maximum efficiencies were around 97.8% (discharging) and 98.6% (charging) at 8 kW load power.

Degradation Assessment
The degradation assessment was initiated with the measurement of different estimations. Different stress factors usually affect the power converter. Thermal c stress is most significant for assessing the degradation of power semiconductor sw The junction temperature profiles of the upper MOSFET(Q1) switch and diode are s in Figures 11 and 12, respectively. These figures showed that the thermal cycling i was most significant on the MOSFET switch compared to the diode during the dis ing operation. Moreover, ∆Tj was approximately 20-50 °C for the MOSFET s whereas it was below 5 °C for the diode during the discharging operation of the A converter for the switching frequency variation of 5-30 kHz).

Degradation Assessment
The degradation assessment was initiated with the measurement of different stress estimations. Different stress factors usually affect the power converter. Thermal cycling stress is most significant for assessing the degradation of power semiconductor switches. The junction temperature profiles of the upper MOSFET(Q1) switch and diode are shown in Figures 11 and 12, respectively. These figures showed that the thermal cycling impact was most significant on the MOSFET switch compared to the diode during the discharging operation. Moreover, ∆Tj was approximately 20-50 • C for the MOSFET switch whereas it was below 5 • C for the diode during the discharging operation of the AC/DC converter for the switching frequency variation of 5-30 kHz).

Degradation Assessment
The degradation assessment was initiated with the measurement of different stress estimations. Different stress factors usually affect the power converter. Thermal cycling stress is most significant for assessing the degradation of power semiconductor switches. The junction temperature profiles of the upper MOSFET(Q1) switch and diode are shown in Figures 11 and 12, respectively. These figures showed that the thermal cycling impact was most significant on the MOSFET switch compared to the diode during the discharging operation. Moreover, ∆Tj was approximately 20-50 °C for the MOSFET switch whereas it was below 5 °C for the diode during the discharging operation of the AC/DC converter for the switching frequency variation of 5-30 kHz). For the DC/DC converter, ∆Tj was very low (<1 °C) due to the unidirectiona signal. During the discharge operation, the upper diode temperature was est around 45 °C on average with 0.3 °C ∆Tj, whereas the MOSFET achieved a tempera around 49 °C with 0.5 °C ∆Tj variation, as shown in Figures 13 and 14. During the tions of charging and discharging, the thermal cycling for all semiconductor switch tributed to the case temperature profile. From Figures 15 and 16, it was observed t average case temperature increased over time. This indicated that the losses oc over time were adding heat to the power converter case.  For the DC/DC converter, ∆T j was very low (<1 • C) due to the unidirectional PWM signal. During the discharge operation, the upper diode temperature was estimated around 45 • C on average with 0.3 • C ∆Tj, whereas the MOSFET achieved a temperature of around 49 • C with 0.5 • C ∆T j variation, as shown in Figures 13 and 14. During the operations of charging and discharging, the thermal cycling for all semiconductor switches contributed to the case temperature profile. From Figures 15 and 16, it was observed that the average case temperature increased over time. This indicated that the losses occurring over time were adding heat to the power converter case. For the DC/DC converter, ∆Tj was very low (<1 °C) due to the unidirectional signal. During the discharge operation, the upper diode temperature was esti around 45 °C on average with 0.3 °C ∆Tj, whereas the MOSFET achieved a tempera around 49 °C with 0.5 °C ∆Tj variation, as shown in Figures 13 and 14. During the tions of charging and discharging, the thermal cycling for all semiconductor switche tributed to the case temperature profile. From Figures 15 and 16, it was observed th average case temperature increased over time. This indicated that the losses occ over time were adding heat to the power converter case.           As previously discussed, the operating switching frequency of a semiconductor device can significantly impact the case temperature profile. Higher switching frequencies allow for an increase in the speed at which electrons move through the material, leading to increased heat dissipation and a corresponding rise in temperature. If the temperature rises too high, electronic components may malfunction or fail, posing a significant reliability issue. The degradation of the two-stage converter reliability is demonstrated in Figure 17, which highlights that the PE system was more reliable when operating at lower temperatures. Specifically, if the selected operating switching frequency maintained the PE converter's operating temperature at around 60 • C, the PE system could operate reliably for 98,900 h (approximately 10 years) with a 90% reliability rate. In contrast, if the operating temperature exceeded 100 • C, the PE system's lifetime would degrade to five years (49,700 h). Thus, careful consideration of the operating temperature and switching frequency is necessary to optimize the reliability and lifespan of a PE system. As previously discussed, the operating switching frequency of a semiconductor device can significantly impact the case temperature profile. Higher switching frequencies allow for an increase in the speed at which electrons move through the material, leading to increased heat dissipation and a corresponding rise in temperature. If the temperature rises too high, electronic components may malfunction or fail, posing a significant reliability issue. The degradation of the two-stage converter reliability is demonstrated in Figure 17, which highlights that the PE system was more reliable when operating at lower temperatures. Specifically, if the selected operating switching frequency maintained the PE converter's operating temperature at around 60 °C, the PE system could operate reliably for 98,900 h (approximately 10 years) with a 90% reliability rate. In contrast, if the operating temperature exceeded 100 °C, the PE system's lifetime would degrade to five years (49,700 h). Thus, careful consideration of the operating temperature and switching frequency is necessary to optimize the reliability and lifespan of a PE system.

Conclusions
In this work, a comprehensive performance assessment of a two-stage power electronic (PE) converter for interfacing the grid of a lithium-ion battery energy storage system in BIPV applications has been presented. The control strategy for the AC/DC and DC/DC converters was assessed for a given 5-30 kHz switching frequency range, and the voltage and current loops' robustness was analyzed using Bode plots and pole-zero mapping. It was observed that the poles for the voltage and current loops for both converters were in the left half of the plane for the complex domain up to 30 kHz switching frequency.
It was also further observed that increasing the switching frequency by the same amount offered diminishing returns in terms of reduction in settling time. For example, increasing the switching frequency from 10 to 15 kHz reduced the settling time by 34.6%, whereas increasing the switching frequency from 20 to 25 kHz only reduced the settling time by 23.1%. To obtain a balanced trade-off between a responsive PE converter and to reduce loss, a switching frequency of 10 kHz was selected.
The system's electrical performance was also presented, indicating that the DC-link voltage ripple was lower than 2% in the stable region for the charging and discharging operations within the given switching frequency range. Moreover, the grid current THD was around 2.9% during the discharging operation, indicating that the controller allowed for good-quality power injection by the battery energy storage system through the power converter.

Conclusions
In this work, a comprehensive performance assessment of a two-stage power electronic (PE) converter for interfacing the grid of a lithium-ion battery energy storage system in BIPV applications has been presented. The control strategy for the AC/DC and DC/DC converters was assessed for a given 5-30 kHz switching frequency range, and the voltage and current loops' robustness was analyzed using Bode plots and pole-zero mapping. It was observed that the poles for the voltage and current loops for both converters were in the left half of the plane for the complex domain up to 30 kHz switching frequency.
It was also further observed that increasing the switching frequency by the same amount offered diminishing returns in terms of reduction in settling time. For example, increasing the switching frequency from 10 to 15 kHz reduced the settling time by 34.6%, whereas increasing the switching frequency from 20 to 25 kHz only reduced the settling time by 23.1%. To obtain a balanced trade-off between a responsive PE converter and to reduce loss, a switching frequency of 10 kHz was selected.
The system's electrical performance was also presented, indicating that the DC-link voltage ripple was lower than 2% in the stable region for the charging and discharging operations within the given switching frequency range. Moreover, the grid current THD was around 2.9% during the discharging operation, indicating that the controller allowed for good-quality power injection by the battery energy storage system through the power converter.
Moreover, the overall electro-thermal performance was summarized by assessing the efficiency map for the charging and discharging operations. It was observed that the discharging efficiency was 0.5% lower than the charging efficiency. This phenomenon showed that the power stage faced significant losses during the discharging operation. Additionally, the lifetime was analyzed by considering the component-level stress factors. The system lifetime was estimated to be 10 years, with a system-level reliability of 90%. The MOSFET lifetime was mostly affected by the diode during the discharging operation.
Finally, this work provides valuable insight into the performance assessment of a two-stage bidirectional PE for PV-BESS system application. However, the study's innovation lies in its assessment of the impact of regulating different switching frequencies at partial-to full-load operation. The results presented in this study can aid in the design and development of efficient and robust power converters for BIPV applications.  Moreover, the overall electro-thermal performance was summarized by assessing the efficiency map for the charging and discharging operations. It was observed that the discharging efficiency was 0.5% lower than the charging efficiency. This phenomenon showed that the power stage faced significant losses during the discharging operation. Additionally, the lifetime was analyzed by considering the component-level stress factors. The system lifetime was estimated to be 10 years, with a system-level reliability of 90%. The MOSFET lifetime was mostly affected by the diode during the discharging operation.
Finally, this work provides valuable insight into the performance assessment of a two-stage bidirectional PE for PV-BESS system application. However, the study's innovation lies in its assessment of the impact of regulating different switching frequencies at partial-to full-load operation. The results presented in this study can aid in the design and development of efficient and robust power converters for BIPV applications.