
HIRFLSFC is a SectorFocused Cyclotron, which plays an important role in scientific experiments in IMP. In order to orbit correction and single turn extraction, there are 4 groups of harmonic coils in SFC. But we did not have a program to calculate the current of harmonic coils for different ions. In view of this situation, we developed a program (OrbitPSO) to calculate it. By using the method of Particle Swarm Optimization (PSO) and the code of orbit calculation, we get the parameters for different beam through comparing with the orbit of 7MeV ^{12}C^{4+}. At the same time, we get the injection energy and voltage of Dee for different ions.

