potential flow in two dimensions