Introduction Magnets are materials that generate a magnetic field and have the ability to attract or repel other magnets or ferromagnetic materials. They are commonly used in a wide range of applications, such as in electric motors, generators, speakers, and magnetic sensors. However, magnets can lose their magnetic properties at high temperatures, which is an