There are several ways that direct magnetization is commonlyaccomplished. One way involves clamping the component between two electrical contacts in a special piece of equipment. Current is passed through the component and a circular magnetic field is established in and around the component.
When the magnetizing current is stopped, a residual magnetic field will remain within the component. The strength of the induced magnetic field if proportional to the amount of current passed through the component.