The structure of a PECIN MLI represents a complex electrical network due to the large number of switching elements. Efficient network analysis is essential for developing a high-performance inverter model, as it enables the simulation of multiple SMs and phases, while also addressing the frequent computational demands.
The straightforward application of standard methods for analyzing electrical networks, such as the mesh current or nodal voltage method, would involve a computationally intensive matrix inversion. The computational complexity of matrix inversion scales cubically with the number N of independent nodes or meshes in the network.
The following Sections introduce an approach for electrical network analysis of a PECIN MLI with reduced time complexity, as well as a temperature distribution model for PECIN modules to capture thermal interactions between the integrated components.
4.1. Electrical Modeling of the PECIN Phase Arms
A PECIN MLI generally consists of structurally identical phase arms. Each phase arm incorporates the same number of SMs, with a Closing and Termination Unit located at the phase terminals N and L. The electrical modeling of the battery cells and the individual PECIN traces has already been addressed in
Section 3.1 and
Section 3.3. Building on this foundation, the modeling of the individual phase arms is presented in the following.
Each phase arm consists of an equivalent electrical network that incorporates the voltage sources
and resistances
associated with the battery cell current paths, as well as the trace resistances
and
, as illustrated in
Figure 7. The currents within an SM are given by
and
, trace currents within the Closing Unit by
and
, and those within the Termination Unit by
and
.
The electrical behavior of each phase arm with respect to the terminals L and N can be represented by a simplified Thevenin equivalent circuit comprising the resistance and voltage matrices. The resistance matrix is determined through successive electrical circuit transformations, including series-parallel combinations as well as star-delta and delta-star transformations, with the voltage sources treated as short circuits.
Throughout the transformation, additional resistance matrices are calculated and used to derive the equivalent voltage
and to compute the current distribution within each phase arm, as outlined in
Section 4.3. As the cascaded structure of each PECIN MLI phase arm is the same, all calculations are executed concurrently using element-wise operations.
For mathematical notation, the functions
for the star-delta transformation and
for the delta-star transformation, are introduced in the following Equations (30)–(33).
The algorithm developed to execute the successive transformations of the PECIN phase arm electrical network is described below. For clarity, the procedure is decomposed into two sub-algorithms, each addressing a distinct propagation direction within the network.
The first part of the algorithm initiates from the Closing Unit and calculates the equivalent resistance matrices , , up to the Termination Unit at the other end of the phase arm. In contrast, the second algorithm part starts at the Termination Unit and computes the equivalent resistance matrices , , , up to the Closing Unit. For the indices, it holds that , and . For , , and , the matrices , , and belong to . In contrast, , and for each , .
The first algorithm part is detailed in Algorithm 1, with its underlying functional principle depicted in
Figure 8. The main iteration loop in Algorithm 1 consists of three essential transformation steps executed sequentially in a repetitive cycle. The iteration counter
x, ranging from 1 to
, also serves as a subscript for the resistance matrices, thereby indicating the corresponding row index of the matrices. After completion of the iteration loop, the algorithm concludes with the final steps to calculate the remaining resistance entries in the matrices, as well as the equivalent resistances of the phase arms. As all phase arms are computed simultaneously, the column index
is omitted from the subscript. The algorithm incrementally construct the resistance matrices
,
, and
and concludes with the computation of the resistance of each phase arm
. The electrical circuit diagrams in
Figure 8 illustrate the sequential network transformations, with the corresponding resistances highlighted in each step.
| Algorithm 1: PECIN Equivalent Resistance Calculation from the Closing Unit to
the Termination Unit |
![Batteries 12 00181 i001 Batteries 12 00181 i001]() |
The second algorithm part, featuring the opposite propagation direction, is presented in Algorithm 2 and illustrated in
Figure 9. The loop iteration index, given by
, is employed to construct the resistance matrices
,
, and
consistently with the first algorithm part, thereby facilitating subsequent computations.
The main iteration loops in Algorithms 1 and 2 can be executed sequentially or combined into a single for loop, using the iteration index x or y. Each algorithm requires a total of loop iterations, followed by a set of finalization steps to traverse the entire electrical network once, leading to a computational complexity of .
| Algorithm 2: PECIN Equivalent Resistance Calculation from the Termination
Unit to the Closing Unit |
![Batteries 12 00181 i002 Batteries 12 00181 i002]() |
The resistance matrices
and
represent both the resistance of all phase arms and differ only marginally due to limited numerical precision. To reduce numerical errors, the resulting equivalent resistance is taken as the average of both resistances.
Along with the resistance
, the voltage
must be determined to fully characterize the terminal behavior of each phase arm using a Thevenin equivalent. Based on the applied circuit transformations, a uniform equivalent circuit diagram for each SM within a phase arm is derived. The resulting diagram, shown in
Figure 10, facilitates the calculation of the equivalent voltage
using the superposition theorem.
The equivalent circuit illustrates the electrical relationship between the terminals of a single battery cell within an SM and the overall terminal behavior of the phase arm. Additionally, it highlights the structural similarity between the PECIN topology and a Wheatstone bridge configuration. The current source, connected between the phase terminals N and L, represents the instantaneous phase current when the PECIN phase arm is coupled with an external source or load. The resistances within the electrical circuit can be calculated using the Equations (35)–(38).
Using the equivalent circuit, the voltage potential at the N and L terminals for each SM can be determined from Equations (39)–(42). In this analysis, the current source is treated as an open circuit. The equivalent voltage
is obtained as the difference between the voltage potentials, with the contributions of all SMs superimposed.
Based on the electrical circuit shown in
Figure 10, the resistance seen by the battery cells between T1
i,j and T2
i,j with respect to the phase-arm connection can be calculated using Equation (
43). In this context, the current source is regarded as an open circuit.
4.2. Electrical Modeling of the Overall System
The system-level electrical circuit employed in this study is capable of simulating the PECIN MLI under various AC and DC charging configurations. Accordingly, the electrical circuit depicted in
Figure 11 comprises an inverter, a filter and a grid model.
The electrical model of the PECIN MLI consists of multiple phase arms, each modeled with the voltage source
in series with the resistance
, as described in
Section 4.1. In
Figure 11, three individual phase arms (
) are connected in a star configuration with a common neutral point.
To ensure grid operation in accordance with recommended standards [
37] for harmonics in current and voltage at the point of common coupling (PCC), an additional filter is generally required. Passive L, LC, or LCL grid filters are commonly employed in grid-connected inverters [
38,
39,
40]. Therefore, each phase incorporates an L-filter, modeled using the inductances
and resistances
.
The utility grid is comparable to the PECIN MLI, represented by a Thevenin equivalent model, comprising a voltage source and a resistive-inductive impedance for each phase. The grid impedance is characterized by the grid resistance and the grid inductance . Based on the impedance being considered, both weak and strong grid conditions can be studied.
The additional switching elements in each phase are used to connect or disconnect the inverter from the grid. It is assumed that all switching elements maintain the same state at all times. This electrical circuit configuration thus also facilitates the investigation of transient processes during the start-up phase of grid operation, when the inverter’s phase voltages are not yet synchronized with the grid voltages in terms of amplitude, frequency, and phase angle. The electrical interconnections between the individual components are considered via the resistances , , and the inductances , , .
By adjusting the number of phases
and the parameters of the individual sources and passive components, the electrical circuit can be configured for a variety of AC and DC charging applications. An alternative circuit configuration is provided in
Appendix A.
The resistance vectors
,
,
,
,
and the inductance vectors
,
,
,
,
summarize the resistances and inductances of the grid, filter, and electrical interconnections. These elements are assumed to be constant over time but may differ between phases. In contrast, the elements of the resistance vector
and the voltage vectors
and
vary with both time and phase. All vectors have a dimension of
and are combined as follows to facilitate further analysis.
With regard to the phase currents, an open-state configuration of all switching elements eliminates any conductive path between the phases, and it directly follows that . A circuit interruption can also be induced by the switching elements within the PECIN MLI. Accordingly, the current through the phase arm j is interrupted if one or more SMs within the respective phase arm are in the idle switching state. To ensure a closed circuit between phases, at least two PECIN phase arms must not be in the idle state, otherwise would apply. It is further assumed that, for an open circuit, , and for a PECIN phase arm j in the idle state, . These assumptions are made to exclude transient effects arising from the switched-resistor modeling, which do not correspond to physical behavior.
As a result, the applied mesh current method for electrical network analysis only considers cases with a closed electrical system circuit. The analyzed meshes are defined between adjacent phases that do not contain SMs in the idle state.
Figure 11 presents the mesh configuration of the standard operating case, in which all PECIN SMs operate in either bypass, parallel, or positive/negative active switching state. This approach decreases the dimensionality of the matrix-vector operations, reducing the computational effort and preventing numerical instabilities caused by phase resistances approaching infinity when solving the following differential equation.
The numerical stability depends on the eigenvalues
of the differential equation, which are linked via the characteristic polynomial
and
with the matrices
and
. The time discretization of Equation (
47) is performed using the forward Euler method.
For the inductance matrix
, the resistance matrix
, and the voltage vector
applies
and
. The number of independent meshes considered at time step
k is denoted by
. For the sake of simplicity, the explicit time dependence indicated by the index
k for
and consequently
,
, and
is omitted. For the case under consideration with
, the matrices
and
therefore vary in dimension only between
and
. The general structure of the tridiagonal matrices
and
for any
is shown below.
The matrix elements of
and
are defined using the auxiliary vectors
,
,
, which comprise only those elements of
,
, and
corresponding to phases with potentially non-zero phase currents. The voltage vector
is given by
The auxiliary matrix
is defined as follows.
The mesh current vector
is transformed into the corresponding phase current vector
using Equation (
53). The same transformation can also be applied to the mesh current derivative
to obtain the phase current derivative
.
The vectors
and
contain only the phase currents or their time derivatives for phases represented in
,
, and
. To reconstruct the phase current vector
and its time derivative
, the elements of
and
are assigned to their corresponding indices in
and
. Subsequently, the inverter output voltages
and the voltage at the point of common coupling
can be determined.
4.3. Current Distribution Within the PECIN Phase Arms
Once the individual phase currents are determined, the next objective is to evaluate the current distribution within each phase arm. Methods such as the mesh current method and node potential analysis would involve high-dimensional matrix inversions. To circumvent the complexity of these operations, the superposition principle is applied, enabling most calculations to be performed using element-wise matrix operations. Additionally, the previously computed equivalent resistance matrices from the phase-arm Thevenin equivalent transformation are used to reduce the computational effort.
The independent analysis of current and voltage sources also facilitates the partial parallelization of arithmetic operations and provides additional insights into the contribution of each individual source to the overall current distribution. The superposition principle requires the consideration of the voltage sources and the current sources . The voltage sources are assigned to the respective cells within the phase arm, whereas the current sources reflect the influence of an external load or supply.
Initially, the impact of the instantaneous phase current on the individual trace and cell currents within each phase arm is analyzed, while the voltage sources are treated as short circuits. The electrical circuit, illustrated in
Figure 10, serves as the basis for this analysis. The respective currents of the equivalent circuits for all SMs are summarized in the matrices
,
,
,
, and
, each with dimensions
. For the current calculation, the electrical circuit is first transformed using the delta-star transformation, in accordance with Equations (56) and (57).
Subsequently, based on Kirchhoff’s current law, the current matrices are given by
The matrices
and
correspond to the currents at the cell-side terminals of all PECIN SMs. Owing to the cascaded arrangement of the SMs, the currents
and
of SM
i are identical to those at the switching terminals of the subsequent SM
i+1 within each phase. The currents at the cell-side terminals of the
-th SM directly correspond to the currents in the Termination Unit, with
and
. The superscript
indicates that the corresponding variable represents the contribution of the current sources associated with the phase currents. In contrast, the matrices
and
describe the currents from the battery cell to the switch network within each SM. Kirchhoff’s voltage and current laws are applied to determine the trace and cell currents, with Equations (62)–(66) providing the mathematical relationships.
In Equation (63), the shift auxiliary matrix
is employed to define an equation based on Kirchhoff’s voltage law between adjacent SMs and to account for SM
1, which directly interfaces with the Closing Unit. The matrix
performs a one-step downward shift of matrix elements and is defined as
Following the calculation of the phase current contribution, the individual current contributions of the voltage sources in each phase arm are subsequently determined. For this analysis, the current sources are treated as open circuits, while each voltage source is considered independently and all remaining sources are replaced by short circuits. The individual current contributions are obtained using an iterative algorithm that successively applies reverse transformations to the electrical network of the condensed phase arm. By applying Kirchhoff’s voltage and current laws, along with Ohm’s law, the desired currents are determined in a stepwise manner. To eliminate redundant calculations, the algorithm incorporates the resistance matrices , , , , , and , which are obtained using Algorithms 1 and 2.
Similar to the algorithms for calculating the equivalent resistances of the phase arms, the algorithm for calculating the current contributions employs two opposite iteration directions, presented separately in Algorithms 3 and 4. For methodological clarity, the calculation of auxiliary currents is separated from the primary objective of determining the trace and cell current contributions. The auxiliary currents serve only as intermediate results that facilitate the calculation of the cell current contribution and trace current contributions with . The superscript denotes that the contributions are associated with the voltage sources .
| Algorithm 3: Current Contribution originating from to subsequent SMs |
![Batteries 12 00181 i003 Batteries 12 00181 i003]() |
| Algorithm 4: Current Contribution originating from to preceding SMs |
![Batteries 12 00181 i004 Batteries 12 00181 i004]() |
The first part of the algorithm is presented in Algorithm 3, while the fundamental reverse transformation scheme in this direction is illustrated in
Figure 12. The circuit transformation starts at SM
x, including the voltage sources
, where
, and proceeds toward the Termination Units. Throughout the process, the consolidated electrical network is reconstructed sequentially, restoring it to its initial configuration.
In Algorithm 3, the cell currents
serve as starting points and are computed via Ohm’s law from
along with the resistances
and
. The resistance matrix
is defined in Equation (
43). During each iteration cycle, the algorithm calculates the current contributions of the voltage sources
to the subsequent SM
y of each phase arm, with
. The cell currents
computed in the current iteration are then used as the starting points for the next iteration. This process is repeated until the algorithm reaches the final SM. The subscripts
x and
y indicate the row indices of the respective matrices, while the column index
is omitted because all phase arms are processed simultaneously via element-wise operations. The matrices
and
serve as both input and output of Algorithm 3. In each iteration, the algorithm updates the rows indexed by
y, which correspond to the cell and trace currents of the SMs toward the Termination Units.
The second part of the algorithm operates in reverse, computing the current contributions of the voltage sources
to the preceding SM
z with
. The algorithm is detailed in Algorithm 4, and its functional scheme is illustrated in
Figure 13.
Similar to the first algorithm part, the second part starts at SMx, with the cell currents as the initial values. In the first iteration, the algorithm calculates the current contributions from the voltage sources to the trace currents within SMx. The iteration cycle concludes with the computation of the cell currents within SMz−1. After decrementing z, these cell currents become the starting points for the next iteration. This process is repeated until the algorithm reaches SM1 within each phase arm. This corresponds to the same functional scheme as Algorithm 3, but in the reverse direction. However, the calculation of the cell currents for the subsequent iteration is only valid if , which requires an additional case distinction at this point. Furthermore, the index is used to handle the exceptions in the mathematical formulation and to ensure that . The subscripts x, z, or also refer to the row index of the corresponding matrices.
The consecutive execution of Algorithms 3 and 4 enables the determination of the current contributions of the voltage sources for all cell and trace currents within the phase arms. The complete algorithm is presented in Algorithm 5. The individual voltage sources are processed sequentially in this study, using an additional outer iteration loop. In each iteration, the computed current contributions of the corresponding voltage source are superimposed with the cell and trace currents determined in the previous iteration. The execution order of Algorithms 3 and 4 can be chosen arbitrarily.
The matrices and , determined by Equations (62)–(66), are used as initial conditions. After iterations, the current contributions of all current and voltage sources are superimposed, and the overall current distribution within the phase arms is determined by , , , , and . The superposition in each iteration also reduces memory usage. The overall algorithm presented in Algorithm 5 has a time complexity of . This arises from the iterations required to determine all current contributions of the voltage sources using Algorithms 3 and 4. Furthermore, iterations are required to compute the current contributions of all voltage sources within each phase arm. Due to the nesting of the iteration loops, the overall time complexity is the product of the individual loop’s complexities. In the case of parallel execution of the calculations for all voltage sources, the outer iteration loop can be omitted. While the total number of operations—and thus the time complexity—remains , parallelization can reduce the wall-clock execution time by distributing these operations across multiple processing units.
| Algorithm 5: Overall Current Distribution within PECIN Phase Arms |
![Batteries 12 00181 i005 Batteries 12 00181 i005]() |
The remaining currents
and
are determined by applying Kirchhoff’s current law, as given in Equations (68) and (69).
4.4. Temperature Distribution Within and Between PECIN SMs
Thermal interactions between the adjacent SMs in a phase arm are typical during inverter operation. The thermal behavior is also closely linked to the mechanical configuration of the PECIN MLI system. For functional benefits, SMs in a phase arm are often distributed across multiple modules.
The employed temperature distribution model is an extension of the model proposed by Schmid et al. [
21] for conventional battery systems and accounts for thermal coupling between battery cells in modules. The expanded thermal equivalent circuits shown in
Figure 14 capture both the thermal coupling between different heat sources within an SM and the interactions between SMs.
The thermal coupling within an SM, depicted in
Figure 14a, is represented by the thermal resistances
linking the individual PCB trace temperatures
to the cell surface temperature
. Additionally, the resistance
accounts for the thermal connection to a cooling system, with the cooling medium temperature denoted as
. Variation of
enables simplified analysis of system behavior under different thermal boundary conditions, with and without dedicated cooling. Natural or forced convection behavior is be approximated by assigning a large value (e.g.,
KW
−1) to
, thereby effectively decoupling
. Under these conditions, heat can only be dissipated to the ambient via
in
Figure 5 and
Figure 6.
Figure 14b shows the thermal circuit modeling interactions between SMs within the same module. Based on the thermal circuit, both module-to-pack and cell-to-pack systems concepts can be considered. The resistance
characterizes the thermal coupling between adjacent SMs within a module, whereas SMs in different modules are assumed to be thermally isolated. The SM adjacent to the Termination Unit also considers thermal coupling to the heat generation within the Termination Unit through the resistances
, which link the PCB trace temperature potentials
. The thermal coupling, based on the circuit in
Figure 14a, is described using Kirchhoff’s voltage and current laws according to Equations (70)–(72).
The heat flow
serves as the thermal coupling with the model in
Section 3.4, capturing the temperature behavior of each PECIN copper trace along with the temperature dynamics of the single or BtB MOSFET. The coupling with the heat transfer rate
of the Termination Unit is established in the same way and defined in Equation (
73).
The surface temperature of the cell adjacent to the Termination Unit in each phase is denoted by
, where
also corresponds to the associated matrix row index. The thermal interactions between SMs can be evaluated collectively for all SMs in each phase using element-wise operations. Owing to the matrix-vector notation, Equations (76) and (77) are presented for each phase individually, indicated by the subscript
. The number of thermally coupled SMs within a module is given by
, where
denotes the number of modules per phase arm. Therefore,
thermal networks, indexed by
, can be set up for each phase arm, with each network being thermally isolated from the others. Furthermore, the auxiliary matrix
is introduced.
Based on the Kronecker product between the unit matrix
and the auxiliary matrix
, the block diagonal matrix
is defined.
The heat flow
between adjacent SMs of a phase arm can be directly derived by rearranging the mesh equations, applying Kirchhoff’s voltage law.
Kirchhoff’s current law is applied to determine the heat flow for each cell
. In this context, the unit vector
is introduced.
The resulting heat flow for each cell, obtained by superposition, represents the coupling with the thermal model outlined in
Section 3.2.