A novel semi-analytical solution for calculating the temperature distribution of the lithium-ion batteries during nail penetration based on Green’s function method