Thermal analysis of pyrotechnics