In view of the matching problem of flame pressure wave and velocity with the structure of fire arrester in the process of methane detonation, the authors conducted simulation study to analyses the relationship between the structural change of flame arrester housing and the pressure and speed of flame in the pipeline. During the simulation progress, two-dimensional geometric models and mesh models were built for different sizes of fire arrester shell structure. The RNC k-e turbulence model and the general finite rate combustion model were applied to simulate the detonation process of combustible gas in the coal tube by FLUENT software. We tried to understand the change law of the inner diameter of the flame arrester shell, the porosity of the flame arrester and the pressure and velocity of the detonation flame by analyzing the law of flame velocity and pressure in the flame arrester. The results provide us with an accurate reference for the design and selection of the pipe detonation arrester.