The main magnetic fields of mobile nuclear magnetic resonance (NMR) magnets differ from those of conventional NMR and magnetic resonance imaging (MRI) magnets. In the Halbach magnet, the main field B (0) is perpendicular to the longitudinal axis, the symmetry of the current distribution with respect to the symmetry of the magnetic field differs from that in conventional target-field applications, and the current distribution on the coil surface cannot be expressed in terms of periodic basis functions. To obtain the winding pattern of the coil, an efficacious target-field approach. The surface of a coil is divided into small discrete elements, where each element is represented by a magnetic dipole. From the stream function of the elements, t...