In this paper, scalar mixing by several arrays of vortex generators mounted inside a circular pipe is investigated using numerical simulations. Two flow configurations are studied in which the arrays are in-line and rotated periodically by an angle of 90°. Each vortex generator creates a pair of streamwise vortices which enhances the mixing process in the flow cross-section. It is shown that the alternate configuration, in which the vortex generators are rotated periodically by an angle of 90°, enhances the mixing process relative to the in-line one due to the generation of chaotic advection flow, while in the in-line configuration the flow is regular and the mixing process is only caused by the convective motion of the longitudinal vortices. Both Eulerian and Lagrangian analyses are used to investigate the chaotic behavior. From the Poincaré sections, the alternate rotation of the vortex generators is found to better disperse the fluid particles in the flow cross-section, while in the in-line array the particles are trapped into the vortex core. The Lagrangian study shows that initially close fluid particle paths exhibit an exponential remoteness in the alternate configuration, a sign of chaotic advection flow. This chaotic advection enhances the stretching and folding of the fluid particles which are responsible for mixing in laminar flows. The proposed flow configuration can be used as a multifunctional heat exchanger/reactor for industrial applications such as in chemical reaction and food processing.