Social force model. Pedestrians are attracted to their goal exit and repelled from walls and each other. Watch bottleneck congestion.