Calculate volume of a horizontal cylindrical tank

Calculate volume of a horizontal cylindrical tank with YDOC data loggers Calculating the volume of a partially filled horizontal cylindrical tank based on a liquid level is not that straight forward as when having a veritcal cylindrical tank.

The YDOC data loggers are provided with up to 8 calculation channels, which can a/o be used to calculate the volume of a horizontal cylindrical tank based on a measured liquid level.

The equation to calculate the volume in is:

:TL*(PI*pow(:TR;2)-pow(:TR;2)*acos((:TR-(2*:TR-:LEV))/:TR)+(:TR-(2*:TR-:LEV))*sqrt(2*:TR*:LEV-pow(:LEV;2)))

Where: