the full version of bernoulli's principle includes both the work by the pressure and by the changes in potential energy from changes in height. in this form, the principle says the total of the pressure, kinetic energy, and potential energy is a constant. (bernoulli does not consider viscosity or compressibility.)