Numerical method to simulate detonative combustion of hydrogen-air mixture in a containment