Free-vortex formation of the plane rotator model