Engineers used smoke machines, physics-based modeling and route optimization algorithms to quantify risk.