A magnetic shape-memory alloy composed of nickel, manganese, and gallium responds to magnetic fields and temperature, allowing for the conversion of magnetic-field energy into kinetic energy. Although ...