Numerical simulation of a cavitating jet