A permanent magnet for NMR