Project 2 Thermal modeling of battery pack
objective -
For a 10 cell series lithium ion battery model, simulate the thermal effects and compare life cycle performance at various temperatures, charge & discharge rates using MATLAB.
theory-
now a days lithium ion battery are mostly used in electric vehicles we must know its charge and discharge rates to operate this batterys in efficient manner and with out damage when this batterys in operation this temperature of it must be kept in limit we simulate the thermal effect of this cell , by knowing the how much temp rise take place we can provide efficient cooling to the batterys so that the life cycle of the battery increases we will see a model on this issue below and explaination as follows
cells connected in series and one of the cell is faulty so what will be thermal effect . This example shows how to simulate a battery pack consisting of multiple series-connected cells in an efficient manner. It also shows how a fault can be introduced into one of the cells to see the impact on battery performance and cell temperatures. For efficiency, identical series-connected cells are not just simply modeled by connecting cell models in series. Instead a single cell is used, and the terminal voltage scaled up by the number of cells. The fault is represented by changing the parameters for the Cell 10 Fault subsystem, reducing both capacity and open-circuit voltage, and increasing the resistance values.
Temperature Source:

The Temperature Sensor block represents an ideal temperature sensor, that is, a device that determines the temperature differential measured between two points without drawing any heat.
Connections A and B are thermal conserving ports that connect to the two points where temperature is being monitored. Port T is a physical signal port that outputs the temperature differential value.
The block positive direction is from port A to port B. The measured temperature is determined as T = TA – TB.
This block represents an ideal energy source in a thermal network that can maintain a constant absolute temperature at the port regardless of the heat flow rate.
This block is used for ambient temperature which we can set and check results .
Convective Heat Transfer:

This block models heat transfer in a thermal network by convection due to fluid motion. The rate of heat transfer is proportional to the temperature difference, heat transfer coefficient, and surface area in contact with the fluid.
this used for 1-4 cells and 6-10 cell
- from and goto blocks
The Goto block passes its input to its corresponding From blocks. The input can be a real- or complex-valued signal or vector of any data type. From and Goto blocks allow you to pass a signal from one block to another without actually connecting them.
The From block accepts a signal from a corresponding Goto block, then passes it as output. The data type of the output is the same as that of the input from the Goto block. From and Goto blocks allow you to pass a signal from one block to another without actually connecting them.


Data :
| Time | Current |
| 0 | 0.245 |
| 1 | 0.98 |
| 2 | 1.32 |
| 3 | 2.85 |
| 4 | 3.33 |
| 5 | 0.58 |
| 6 | 4.41 |
| 7 | 0.88 |
| 8 | 5 |
| 9 | 4.03 |
| 10 | 3 |





conclusion
we simulated the thermal effect and compared at various temperature ,faulty cell temp rise more than normal cell charge and discharge cycle given and due to temp rise it can damage the cell and reduce the performance of the battery.