A Halbach cylinder is a magnetized cylinder composed of ferromagnetic material producing (in the idealized case) an intense magnetic field confined entirely within the cylinder with zero field outside.