Since the fluid is in hydrostatic equilibrium, we can use the equation:
pF = grad P ,(p ~ density of fluid, F ~ body force, P ~ pressure)
{Since the form of the velocity is circular flow about z axis, the body force on a volume of water is composed of both gravitational and centrifugal forces:
V = k(-y,x) = kr(-sinQ, cosQ) (r ~ radius, Q ~ angle relative to x axis)
i.e y = rsinQ, x = rcosQ.
(w ~ angular velocity)
|v| = kr, v = w.r -----> w = k; }
using hydrostatic equilibrium equation above:
p F(radial) = dP/dr, p F(axial, z direction) = dP/dz;
F(radial) = Centrifugal component = r.w^2 = r.k^2,
F(Z direction) = -g;
therefore two pde's to solve:
-p.r.k^2 = dP/dr -------> P = (1/2)p.r^2.k^2 + f(z)
-p.g = dP/dz --------> P = -p.g.z + h(r)
therefore P = (1/2)p.r^2.k^2 - p.g.z + constant.
Note (r = 0, z = 0) is the point at which the free surface is at a minimum height, hard to explain in words without a picture. i.e. in middle of barrel (obviously for symmetry purposes) and at bottom of surface described by water, not bottom of the barrel.
If you want to measure from the bottom of the bucket/barrel, switch the z for another variable to compensate for the change of coordinate system.
free surface part:
at the origin (in my coord system) Po ~ atmospheric pressure,
therefore Po = (1/2)p.r^2.k^2 - p.g.z + A ---> A = Po
P = (1/2)p.k^2.r^2 - p.g.z + Po.
On the free surface, insist that P = Po,
Therefore at radius a: z becomes h, the height difference from z = 0
(1/2)p.k^2.a^2 = p.g.h ---> h = k^2.a^2/(2g),
Hope this helps, would be better with a pen and paper and a picture but that is the trouble with internet answers i'm affraid.
Any other probs, don't hesistate to ask