Design and modeling of the multibeam injector