The present invention relates to a modular method and device for an all-permanent-
magnet electron cyclotron resonance ion source, which includes: an
ion source
magnet composed of a first axial
magnet, a second axial magnet, and a radial magnet, with the overall inner
radius of the
ion source being R0; the first axial magnet and the second axial magnet have opposite
magnetization directions, and the first axial magnet and the second axial magnet are composed of magnetic rings with different radii, different axial thicknesses, and capable of providing an axial
magnetic field; the first axial magnet and the second axial magnet are divided into multiple groups according to the axial thickness; the first axial magnet and the second axial magnet are divided into multiple groups according to the radial thickness; the radial magnet adopts a HALBACH structure with three numbers of circumferential magnetic blocks and is divided into multiple groups according to the axial thickness; the radial magnet, the first axial magnet, and the second axial magnet are all divided into n times 12 magnetic blocks along the
angular direction; according to the performance requirements of the
ion source, the first axial magnet, the second axial magnet, and the radial magnet with three numbers of circumferential magnetic blocks are arranged and combined according to n times the axial thickness d and the radial thickness r to form a complete
ion source magnet.