A numerical study on the role of geometry confinement and fluid flow in colloidal self-assembly