A numerical approach is developed to simulate detonation propagation, attenuation, failure and re-initiation in hydrogen-air mixture. The aim is to study the condition under which detonations may fail or re-initiate in bifurcated tubes which is important for risk assessment in industrial