Simulation of self-immolation