Based on analysis of regularity of stacking coal,discrete element simultaneous simulation is adopted to predict the process of unloading coal,which is proved to be effcient in the prediction of ash content.The results show that the altitude of new irregular coal is equal to the income coal volume divided by area of cabin.The distribution of infnitesimal flow velocity helps to induce the motion equation of infnitesimal element,which provides the mathematical model for computer simulation.Swarm,a computer programming language,is utilized in this study.Adaptive infnitesimal stacking algorithm helps settle the diffculties in attainment of infnitesimal elements.The result of simulation is similar to the actual situation,which can accurately predict the ash contents of current time and cumulative time.Coal movement in the cabin is a new project,the result of which can also be applied to other solid particles and the widespread of the result will be highly valued.