$E = \dfrac{1}{2} \rho v^{2} + P + \rho gh$
The pressure and gravitational potential make up the potential energy.
Bernoulli's principle requires an inviscid fluid (zero viscosity)
Viscosity is really momentum exchange between molecules moving at different speeds. This actually generates heat; some of the kinetic energy is lost to friction
When fast molecules move past slow ones, some of the fast molecules' energy gets transferred to the slow ones, pulling them along the flow (since molecules are really moving in every direction). The dragging force is called viscous shear stress
At the same time, the slow molecules that the slow boundary is attached to are trying to hold it in place.
This leads to a rolling behaviour that makes the vortices
The vortex has a centripetal force
Bernoulli's principle assumes laminar flow (all the molecules are traveling in neat, parallel lines).
When a fluid remains attached to its boundary, it exerts pressure on it. But if it falls away from the boundary, all of a sudden the boundary doesn't have pressure holding it open
the flow will attach to one side of the boundary more than the other