An analytical study of confined vortex flow