Cavitation in fluid mechanics