A method for accurate force calculations in potential flow