Computation of turbulent flow in a square duct: aspects of the secondary flow and its origins