Magnetic Field Simulation of Golay Coil


  • Rashdi Shah Ahmad
  • Amiruddin Shaari
  • Chew Teong Han



Magnetic resonance imaging (MRI), Golay coil, simulation, GCC, Gnuplot,


In the field of magnetic resonance imaging (MRI), besides the main magnetic field and the radio frequency (RF) system, the gradient coils system also plays an important role in signal acquisition. Generally, there are 2 transverse gradient coils and 1 longitudinal gradient coil. In this research, the magnetic field (or gradient) generated by the conventional transverse coil, namely the Golay coil was mapped. The calculation algorithm of the magnetic field generated was written in C-programming language, compiled by the GNU-compiler collection (GCC) and was based on a forward analytical approach by using the Biot-Savart Law. The data was then visualized by Gnuplot. The magnetic field was successfully calculated and plotted using open-source softwares running under Ubuntu operating system and will provide valuable data especially for gradient coil designer.


Adamiak, K., Rutt, B. K., and Dabrowki, W. J., Design of Gradient Coils for Magnetic Resonance Imaging, IEEE Transactions on Magnetics, Vol 28, pg 2403-2405, 1992

Rashdi Shah Ahmad and Chew, T. H., Algorithm for Magnetic Field Visualization of a Flat Plane Induced by Finite Dipole Segment Using GCC and Gnuplot, Regional Annual Fundamental Science Seminar, 2007

Sadiku, M., 1995. Elements of Electromagnets. Oxford University Press.