Two-dimensional separated or cavitating flow past a flat plate normal to the stream