Vorticity confinement methods for cavitating flows