Capacitor and magnetic field combination