VirtualFCS.Electrochemical.Battery.LiIonBatteryPack_Composite

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

NameTypeUnitDefaultDescription
SOC_initReal10.5Initial State of Charge
pInteger15Number of Cells in Parallel
sInteger110Number of Cells in Series
coolingAreaModelica.Units.SI.Aream2p*s*liIonCell[1].coolingAreaCooling Area
heatTransferCoefficientModelica.Units.SI.CoefficientOfHeatTransfer-7.8*10^0.78HeatTransferCoefficient (W/(m2.K))

Interfaces and Connections

NameKindTypeUnitDescription
pin_pConnectionModelica.Electrical.Analog.Interfaces.PositivePinV; APositive electrical terminal
heatPortConnectionModelica.Thermal.HeatTransfer.Interfaces.HeatPort_aK; W
pin_nConnectionModelica.Electrical.Analog.Interfaces.NegativePinV; ANegative electrical terminal
heatBoundaryConnectionModelica.Thermal.HeatTransfer.Interfaces.HeatPort_bK; W