VolumeHorizontalTank (Function) |
Top Previous Next |
This function will calculate the amount of fluid in a horizontal tank. The calculation is based on the tank possessing uncurved ends and being perfectly circular in shape.
Input: R : DINT (0..2147483648) Radius of the tank in millimeters.
L : DINT (0..2147483648) Length of the tank in millimeters.
H : DINT (0..2147483648) Height of the fluid in the tank (if "H" equals "R", the tank is completely full) in milliliters.
Returns: DINT The amount of fluid contained in the tank in milliliters.
Declaration: FUNCTION VolumeHorizontalTank : DINT;
Example: //----------------------------------------------------------------------------- |