The properties of the foam fluid in porous media depend on its dynamic structure. However, few studies have focused on the dynamic structural change in foam. In this research, a method based on the level set method is proposed for the simulation of aqueous foam transport in porous media. As a first step, we focus on the Jamin effect, and a concise relation is established which reveals that the resultant pressure is proportional to the capillary pressure. Second, the snap‐off process of foam in porous media is studied, and both the two stages, including partial disintegration, are revealed based on the results. Third, the conclusion that foam automatically selects a larger channel in which to continue flowing is obtained by studying the foam selectivity. Finally, experiments are carried out to verify the simulation results using different models. The simulation results are in good agreement with the experimental results. These results are expected to be helpful for further understanding the foam characteristics and their effective applications.