A permanent magnet or electromagnet bent into the shape of a horseshoe or having a U-shape to bring the two poles near each other.