Bernoulli equation for unsteady potential flow