A method for calculating the magnetic field produced by a coil of any shape

This work deals with the design of coils to obtain a desired magnetic field in the axial direction. A computer program has been developed to implement the obtained equations and assist the design. Practical results are given to illustrate the accuracy of theoretical predictions with measured magnetic field curves.