Relativistic generation of vortex and magnetic field