Prediction of energy losses in water impacts using incompressible and weakly compressible models