Water entry of arbitrary two-dimensional sections with and without flow separation