A computational technology for direct modeling of the detonation waves interaction with a set of particles at the micro level has been developed. A simulation of the detonation waves passage through a system of particles with their different relative positions was carried out. Stoichiometric hydrogen air mixture is considered. The combustion process is described using a reduced kinetic mechanism. Estimates of the ratios between times of the velocity and thermal relaxation are obtained. Detailed shock-wave patterns of gas flow in the particles vicinity are obtained. The possibility of detonation failure at particles volume fractions of close to the concentrations obtained in modeling at the macro level has been revealed.