Liquid volume in a rectangular tank

The calculator gives the liquid volume in a partially filled rectangular tank, pitched and turned by the given angles.

This page exists due to the efforts of the following people:

Anton

Timur

Timur

Created: 2020-09-18 17:19:56, Last updated: 2021-03-20 20:28:28
Creative Commons Attribution/Share-Alike License 3.0 (Unported)

This content is licensed under Creative Commons Attribution/Share-Alike License 3.0 (Unported). That means you may freely redistribute or modify this content under the same license conditions and must attribute the original author by placing a hyperlink from your site to this work https://planetcalc.com/8870/. Also, please do not modify any references to the original work (if any) contained in this content.

Use this calculator to get the volume of liquid in a rectangular tank. The tank can be tilted along length and width edges.
The tilt angle can be set in three ways:

  • in degrees of tilt angle
  • by the elevation distance of the tank corner
  • by the liquid depth, measured in 3 different points ( the points must not lay on the same straight line ).

Please note, the elevation and the liquid depth must be measured perpendicular to the tank's base, regardless of the angle of its inclination.
The calculation formulas are described just below the calculator.

PLANETCALC, Liquid volume in tilted rectangular tank

Liquid volume in tilted rectangular tank

Tank dimensions

Tilt

Angle in degrees
Angle in degrees

Liquid level at the deepest corner

Liquid level at a corner

Liquid level at the corner adjacent to the first one in length

Liquid level at the corner adjacent to the first one in width

Digits after the decimal point: 2
Liquid volume
 
Liquid volume %
 

Tilted rectangular tank model

Tilted rectangular tank
Tilted rectangular tank

The tank dimensions

L - length
W - width
H - height

Tilt and liquid level

a - distance of the elevation of the corner adjoining the deepest in length
b - a distance of the elevation of the corner adjoining the deepest in width
h - liquid level in the deepest corner

Formulas of the liquid volume in the tilted rectangular tank

Assuming the deepest corner of the rectangle as the origin and the x-axis coincides with the edge L, y-axis coincides with the edge W, and z-axis coincides with the edge H, we can define the liquid surface plane equation as:

a W x + b L y + L W z - h L W = 0

It is not difficult to derive the volume formula for a tank tilted and filled with liquid, as in the picture above.

V=\int \limits _{0}^{L}\int \limits _{0}^{W} h- \frac{a x}{L} - \frac{b y}{W} dx dy=L W \left ( h-\frac{a+b}{2}\right )

If you increase the inclination angles and change the amount of liquid, the problem becomes more complicated.

Different shapes of liquid in the inclined rectangular tank
Different shapes of liquid in the inclined rectangular tank

One edge inclination case(a>0, b=0)

The liquid volume equals area of liquid section multiplied by the tank width:
V=L W k,
where
k =  \left\{ \begin{array}{l l l} h-\frac{a}{2} & \quad h > a , h \leq H \\ H-\frac{(h-H)(H-h+a)}{2a} & \quad  h > a, h >H\\ \frac{h^2}{2a}  & \quad h \leq a, h \leq H \\ \frac{h}{a}-\frac{H^2}{2a}-\frac{H}{a}  & \quad h \leq a, h > H \end{array} \right\}

Two edges inclination case(a>0, b>0)

Instead of deriving the formulas for each possible liquid shape, you may notice that the liquid form in the tank is a truncated pyramid for any combination of liquid amount and inclination angles.

Rectangular water tank. Various degrees of inclination and filling. View from the top base.
Rectangular water tank. Various degrees of inclination and filling. View from the top base.



So the universal formula for the volume of liquid in an inclined rectangular tank is:

 V = V_1-V_2-V_3+V_4

where:
Vi volumes of pyramids (or frustums) formed by three perpendicular planes coinciding with two walls and the base of the tank and one inclined plane coinciding with the surface of the water
V1 - volume of the pyramid (frustum) with the apex at the deepest tank corner x,y =(0,0)
V2 - volume of a pyramid (frustum) with apex at the corner bordering the deepest in length x,y =(L,0)
V3 - volume of a pyramid (frustum) with apex at the corner bordering the deepest in width x,y =(0,W)
V4 -volume of a pyramid with apex in the corner, diagonally opposite the deepest x,y = (L,W)

To find each volume we must calculate

  • the water surface level at the apex:
    h_i(x,y) = h - \frac{a}{L} x + \frac{b} {W} y
  • the length of bottom base (z=0)
    Lb_i(y) = \frac{h L}{a} - \frac{b L} {a W} y
  • the the length of the top base z=H
    Lt_i(y) = \frac{h L}{a} - \frac{b L} {a W} y - \frac{L H}{a}
  • the width of bottom base (z=0)
    Wb_i(x) = \frac{h W}{b} - \frac{a W} {b L} x
  • the width of the top base z=H
    Wt_i(x) = \frac{h W}{b} - \frac{a W} {b L} x - \frac{W H}{b}

Then we calculate the volume by the frustum or pyramid volume formula:
V_i =  \left\{ \begin{array}{l l l} 0 & \quad h_i \leq 0 \\ \frac{1}{6} L_{bi} W_{bi} h_i & \quad  0 < h_i \leq H \\ \frac{H}{3} ( S_{ti} + S_{bi} + \sqrt{S_{ti} S_{bi}}) & \quad h_i > H \end{array} \right\}
where
S_{ti} = \frac{L_{ti} W_{ti}}{2}
S_{bi} = \frac{L_{bi} W_{bi}}{2}

URL copied to clipboard
PLANETCALC, Liquid volume in a rectangular tank

Comments