Melting metal with magnets