The solution is easy for a vertical 'cylinder' (i.e. a cylinder with its faces at right angles to the direction of gravity, like barrel standing on a horizontal surface. In this case the volume is given by:
V=h*(1/2)*pi*(r^2)
Where V=Volume, h is the height to which the cylinder is filled, pi is the number Pi (3.142) and r is the radius of the cylinders faces.
If the cylinder is vertical (i.e. a barral lying on the gound so that it could easily be rolled away) it gets a bit more tricky:
V=l*(pi*r^2/2-r^2*arcsin(1-h/r)-(r-h)*sqrt(h*(2r-h))
Where l is the length of the cylinder.
Note:
h is always measured from the lowest point of the fluid contained in the cylinder to the the fluid's surface
arcsin is the inverse of sin
sqrt denotes the squareroot of the following bracket
Good luck!
felixmschubert@Yahoo.de
Chat with our AI personalities
The volume should not change if the cylinder is rigid.
The formula to calculate volume of a cylinder is: V = r2 x Pi x height (r = radius)
Volume of a cylinder = (pi) x (radius of the end)2 x (length)
Volume of a cylinder = (pi) x (Radius)2 x (Length)
Volume = {pi}r2h where r = radius of base, h = height of cylinder.