Text this: Influence of the configuration of the magnetic field of an ion diode on the parameters of an ion beam