Battery Pack Short Circuit
This example shows how to model a short-circuit in a lithium-ion battery module. The battery module consists of 30 cells with a string of three parallel cells connected in a series of ten strings. Each battery cell is modeled using the Battery (Table-Based) Simscape Electrical block. In this example, the initial temperature and the state of charge are the same for all cells. There is no coolant flow modeled in this example. The battery module is shorted with a 0.1mOhm resistor. There is an inrush current followed by cell quick discharge and heating up. Once the cell reaches the trigger temperature for thermal runaway and cell venting, the electrical circuit is disconnected to stop the electrical simulation.
Model
Define Parameters and Inputs
To use this module to create a unique battery module, first specify the number of series and parallel-connected cells. Then specify the cell type for all individual cells by choosing one of these options for Choose cell type parameter of the Battery Module block:
Pouch
Can
Compact cylindrical
Regular cylindrical
This example uses pouch-type cells. Module A,B and C consist of 8 series- connected and two parallel-connected cells. Module D consists of 12 series-connected and two parallel-connected cells.
The two output ports, SOC and Temp, provide information regarding the state of charge and the temperature of each cell in the module. The thermal port, Amb is used to define the ambient temperature in the simulation. The electrical ports, pos and neg, define the electrical positive and negative terminals, respectively. The two input ports, FlwR and FlwT, define the battery coolant flow rate control and inlet temperature into the module.
The figure below shows examples of battery cells in Pouch
and Can
configurations.
The figure below shows examples of battery cells in Compact cylindrical
and Regular cylindrical
configurations.
These are the parameters in the battery module:
Vector of temperatures, T - Temperatures at which the cell or module data for temperature-varying properties are tabulated, specified as a vector.
Single cell Ahr rating, baseline - Cell capacity at the temperatures defined in the Vector of temperatures, T parameter, specified as a vector.
Vector of state of charge values, SOC - Range of values between 0 and 1 at which the cell electrical parameters are defined, specified as a vector.
Vector of coolant flowrates, L - Coolant mass flow rate values at which a lookup table for cell cooling is defined. This parameter needs to cover multiple points in the flow range of interest. This parameter defines the size of the Effective rate of coolant heat transfer parameter and is specified as a vector.
No load voltage, V0 - Cell open-circuit potential values at different Vector of state of charge values, SOC and Vector of temperatures, T points, specified as a matrix.
Terminal resistance, R0 - Cell ohmic resistance values at different Vector of state of charge values, SOC and Vector of temperatures, T points, specified as a matrix.
Polarization resistance - Polarization resistance values at different Vector of state of charge values, SOC and Vector of temperatures, T points, specified as a matrix.
Time constant - Time constant at different Vector of state of charge values, SOC and Vector of temperatures, T points, specified as a matrix.
Cell thermal mass - Thermal mass of a single cell, specified as a scalar.
Cell thermal conductivity - Cell through-plane conductivity for pouch and can cells, or the radial conductivity for cylindrical cells, specified as a scalar.
Heat transfer coefficient to ambient - Heat transfer coefficient value, specified as a scalar.
Number of series connected cells Ns - Number of strings in series, specified as an integer.
Number of parallel connected cells Np - Number of parallel-cells in a string, specified as an integer.
Choose cell type - Type of cell, specified as either
Pouch
,Can
,Compact cylindrical
, orRegular cylindrical
.Cell height - Cell height, specified as a scalar.
Cell width - Cell width for
Pouch
andCan
cells, specified as a scalar.Cell thickness - Cell thickness for
Pouch
orCan
cells, specified as a scalar.Cell diameter - Cell diameter for
Compact cylindrical
orRegular cylindrical
, specified as a scalar.Number of cylindrical cells in a straight line - Number of cylindrical cells arranged in a straight line for packaging, specified as an integer.
Accessory total resistance - Resistance that combines all inline resistance in a module, specified as a scalar. This resistance is the sum of cell tab, busbar, cable and/or weld resistances, specified as a scalar.
Cell balancing - Cell balancing method, specified as either
none
orpassive
. In this example, this parameter is set tonone
.
Effective rate of coolant heat transfer from each cell - Estimate of the thermal resistance (W/K) of heat transfer from battery cells to coolant, specified as a 3-D matrix of scalar values. The 3-D matrix size depends on the Vector of temperatures, T, Vector of coolant flowrates, L and NsxNp parameters. The NsxNp parameter is the total number of cells in the module. The battery cooling is represented as a lookup table or 3-D matrix of size [T,L,Ns*Np] and the values are calculated using detailed 3-D methods such as computational fluid dynamics. The values of the matrix depend on the actual hardware design of the cooling system or cold plates in the module. The performance of the cold plate is controlled using input values FlwR and FlwT.
External heat - External heat input to each cell in a module due to a hot component placed near the module, specified as a vector.
Vector of initial cell temperature - Cell initial temperature, specified as a vector.
Vector of initial cell state of charge - Cell initial state of charge, specified as a vector.
Cell Ahr rating variation - Cell-to-cell variations in cell capacity at all Vector of temperatures, T points for each cell, specified as a vector of scalar values. If you set this array to 1, all cell capacity is the same. The array values for a cell are multiplied with the value specified in the Single cell Ahr rating, baseline parameter to calculate the actual capacity or the Ahr rating of the cell.
To define the battery coolant flow rate and temperature, specify these inputs:
FlwR - Value between 0 and 1, specified as a scalar. The FlwR input value is used to dynamically choose the right value of the flow rate during the simulations. The value of the FlwR input defines the actual flow rate in the module. In the Vector of coolant flowrates L parameter, FlwR equal to 0 means no flow, while FlwR equal to 1 means highest flow rate value. In the current example, FlwR is set to a low value of 1e-3.
FlwT - Positive or negative value that, when summed to the ambient temperature, equals the coolant inlet temperature. A value of +15 for the FlwT input and 273.15 K at the Amb port makes the coolant inlet temperature equal to 273.15 + 15 = 288.15K. A value of -15 for the FlwT input and 273.15 K at the Amb makes the coolant inlet temperature equal to 273.15 - 15 = 258.15 K. In this example, FlwT is set to 0.
Simulation Results from Simscape Logging
The switch in the circuit is closed at 30s time in the Switch operation logic subsystem. The circuit is completed and short circuits the system through a resistance of 0.1m-Ohm. As a high current passes through all the cells in the module, the cell temperature rises and quickly attains the trigger temperature for thermal runaway and gas venting. The switch is opened to disconnect the electrical circuit as the cell is now dead.
Results from Real-Time Simulation
This example has been tested on a Speedgoat Performance real-time target machine with an Intel® 3.5 GHz i7 multi-core CPU. This model can run in real time with a step size of 400 milliseconds.