Potential flow in two dimensions