Based on the tube method, taking into account the three second law for the current in each tube, the program EL&ION for preliminary rapid numerical analysis of the electron-optical system was developed, using which the system was developed for generating an ion beam of reactive gases with an energy of up to 50 keV and a current of 10...20 mA in the presence of high-density electron beam.