In this work, hydrocarbon pyrolysis is studied; the growth of long carbon chains involves a large number of different reactions and molecules, making this system especially complex. In addition, this system is particularly interesting to study the atmosphere of icy giant planets . However, we foresee that our method could be applied to any dense matter system.