Simulations of flow-induced director patterns in nematic liquid crystals through Leslie-Ericksen equations in two dimensions