If you know the height. Calculating the volume of a tube essentially involves the same formula as a cylinder volumepr2h except that in this case the diameter is used rather than the radius and length is used rather than height. H height of a cylinder.
To calculate the volume of a cylindrical shell lets take some real-life example maybe.
Volume of a cylinder ph r12 r22 Where r 1 external radius and r 2 internal radius of a cylinder. Whenever we have a solid whose cross-section is the same along its length we can always find its volume by multiplying the area of the end by its length. A roll of toilet paper because why not. Visual in the figure below.