A potential flow solver for bore impact