Prediction of cavitation dynamics in marine applications