In cyclotrons, high energies are imparted to particles by accelerating ions through two semi-circular high-voltage electrodes within a magnetic field. An alternating accelerating voltage is applied between the electrodes and repetitive acceleration continues until the particles reach a sufficient energy to move to the edge of the magnet, where a beam can be extracted.