Arbitrary shapes of magnetic fields are not possible, but divergenceless magnetic fields are physical. Various shapes of magnetic fields can be created by passing various, time dependent currents through a group of adjacent solenoids, but the use of solenoids imposes a significant limitation on spatial resolution of the created magnetic field.
Is there a way to generate time variable magnetic fields with high spatial resolution? Can it be done without solenoids? Without moving parts?