Pedestrian movement and the mutual relation between pedestrians and the environment are studied through crowd simulation, and a method is used for pre-event prediction or post-event inspection for urban infrastructure planning, large public activity planning, emergency evacuation of emergencies and the like. According to the method, common behaviors such as pedestrian avoidance, congestion, congestion, attraction and repulsion in real life can be simulated by constructing mechanical models between pedestrians and between pedestrians and the environment, and the movement mode of pedestrians indifferent scenes can be simulated by combining the particularity of pedestrians in different scenes. According to the method, the inter-group avoidance behavior and the coordination behavior of the sub-group in the group are added into the model; the avoidance behaviors in different environments can be simulated, and if the sub-groups are forced to be separated in the avoidance process, the different rows of sub-groups can be kept in central symmetry by adding the force that the rear row of sub-groups get close to the front row of sub-groups, and a certain distance beneficial to walking is kept. On one hand, the current crowd simulation is widely applied to the fields of travel, fire protection, buildings and the like, and the quality of a crowd simulation result meets the requirements ofreality and rapid visualization; and on the other hand, the model better conforms to real pedestrian behaviors, and special phenomena under different attribute pedestrians and scenes can be simulatedby adjusting parameters, so that the model has very high social application value.