Vortex: magnetism meets thermodynamics