Bernoulli's equation of total energy