Analysis of passive scalar gradient alignment in a simplified three-dimensional case