A Li-ion battery pack comprised of individual Li-ion cell models.
Model Description and References
This model describes a lithium-ion battery pack as a composite of several separate instances of the
LiIonCell model. This setup has the advantage of being able to consider the performance of each individual cell, which may be useful for some investigations such as cell-balancing. However, it can also lead to a very large system of equations for complex models with many cells causing high computational cost.
This class automatically generates instances of the LiIonCell model based on the user's input. The user must determine how many cells are in parallel (parameter p) and in series (parameter s). A series of for loops then connects the cells in series or in parallel based on the requested architecture. The stack voltage is accessible by pin_p and pin_n.
The thermalCollector class automatically gathers all the heatPort outputs from each instance of LiIonCell and connects them to parallel convective and radiative heat transfer blocks. The effective cooling area for the blocks is the same and is assumed equal to the surface area of each cell multiplied by the number of cells in the pack. The ambient temperature T0 is determined by connection to the heatBoundary.
Governing Equations
chargeCapacity = p*liIonCell[1].chargeCapacity;
for i in 1:p loop connect(pin_n, liIonCell[s*(i - 1) + 1].pin_n);
connect(pin_p, liIonCell[i*s].pin_p);
end for;
for i in 1:p loop for j in 1:s - 1 loop connect(liIonCell[s*(i - 1) + j].pin_p, liIonCell[s*(i - 1) + j + 1].pin_n);
end for;
end for;
Parameters
| Name | Type | Unit | Default | Description |
SOC_init | Real | 1 | 0.5 | Initial State of Charge |
p | Integer | 1 | 5 | Number of Cells in Parallel |
s | Integer | 1 | 10 | Number of Cells in Series |
coolingArea | Modelica.Units.SI.Area | m2 | p*s*liIonCell[1].coolingArea | Cooling Area |
heatTransferCoefficient | Modelica.Units.SI.CoefficientOfHeatTransfer | - | 7.8*10^0.78 | HeatTransferCoefficient (W/(m2.K)) |
Interfaces and Connections
| Name | Kind | Type | Unit | Description |
pin_p | Connection | Modelica.Electrical.Analog.Interfaces.PositivePin | V; A | Positive electrical terminal |
heatPort | Connection | Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_a | K; W | |
pin_n | Connection | Modelica.Electrical.Analog.Interfaces.NegativePin | V; A | Negative electrical terminal |
heatBoundary | Connection | Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_b | K; W | |