An analytical solution for thermal shock analysis of multiwall carbon nanotubes