VirtualFCS.Electrochemical.Battery.LiIonCell

An equivalent circuit model for a Li-ion battery cell.

Model Description and References

The LiIonCell class implements a simple 2RC equivalent circuit model for a lithium-ion battery cell. This circuit simulates the impedance due to electrochemical reactions and the internal resistance of a lithium ion cell. The model comes pre-programmed with default parameters for lithium iron phosphate (LFP) battery cells.

The model includes a ChargeCounter block to keep track of the state of charge (SOC) of the battery via a charge-counting method.

The equation for open-circuit voltage as a function of temperature and state of charge is taken from Vichard et al. [1], and is parameterized to the LFP chemistry by default.

The battery pack is assumed to have a uniform temperature with a thermal mass based on its heat capacity, Cp, and mass m_bat_pack. The heat generated from passing current through the battery is calculated according to the Heat Generation equation below. The provided heatPort allows connection to cooling systems or other relevant temperature boundary conditions.

References
1. Vichard, L. et al. A method to estimate battery SOH indicators based on vehicle operating data only. Energy 225, 120235 (2021).

Governing Equations

OCV.v = a1 + b1*(-log(chargeCounter.SOC))^m1 + c1*chargeCounter.SOC + d1*exp(n1*(chargeCounter.SOC - 1));

heatSource.Q_flow = abs((OCV.v - pin_p.v)*abs(sensorCurrent.i));

P_bat = pin_p.v*sensorCurrent.i;

Parameters

NameTypeUnitDefaultDescription
massModelica.Units.SI.Masskg0.08Mass of the cell
coolingAreaModelica.Units.SI.Aream20.00143Surface area for cooling
specificHeatCapacityModelica.Units.SI.SpecificHeatCapacityJ/(kg.K)1000Specific Heat Capacity
SOC_initReal10.5Initial State of Charge
chargeCapacityModelica.Units.NonSI.ElectricCharge_AhAh2.6Battery Cell Capacity

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