Magnetic and Thermal Transport Properties of Permanent Magnets with Anisotropic Grain Structure