Ring magnet and bar magnets with ferrocell