Constrained cavitating flow past simple boundary elements