Project 2 Thermal modeling of battery pack
1.
As per the given qustion the model hasbeen developed connecting 10 cells in serise having all the default parameter. These are all all tabular cell and its thermal port in active. in the serise we are connecting current source for charging and discharging purpose.
A current sensor also conncted to read the current source or to evaluate the SoC value of whole cell or the battery pack.
For generating SoC we will use this formula
implementing formula in the for of logic in matlab.(see the left cornor of below image)
as for the thermal response the outcome of thermal connections are connected with the thermal reference and tempreture sensor to sense the tempreture.

Discharging

As it had been observe that dischage in battery increse in heat .
Charging:

same as the charging time SoC level up with respect to tempreture rise so, for rapid chaarging and dischaging the heat hasbeen radiate from the battery.