Velocity distribution optimization of a duct