Development of software for efficient flow distribution during evacuation