![horizontal tank volume calculator horizontal tank volume calculator](https://htmlcalculator.com/wp-content/uploads/2021/06/half-filled-horizontal-cylinder-volume-calculator.gif)
Long answer- I wrote the original version of the AOI in a Special Function in an old TI555 PLC. and close enough for what I was dealing with. Short answer- An unimaginably large number of people don't understand what pi is. However, I have to ask why you put PI:=(22.0/7.0) in your code, when you could just have easily put PI:=3.141592654. That's a very English expression, which Wikipedia points to episode 442 of the Australian medical soap "All Saints" !! Loosely translated (in this context) it means that the best method is dependent upon the application. The method used to determine tank contents is always going to be "horses for courses". bottled, canned, etc.), but the process of tank dipping has been eliminated, which is a good thing for sterility and eliminates contamination.
![horizontal tank volume calculator horizontal tank volume calculator](https://www.exceldemy.com/wp-content/uploads/2022/06/Horizontal-Cylindrical-Tank-Volume-Calculator-in-Excel-1-768x478.png)
I'm not sure how duty is calculated for packaged products (eg. Nowadays, duty is paid "at the gate", so tankers are weighed in and out. Customs and Excise would not allow the volume to be "measured" any other way. They would fill the vessel through certified flowmeters and produce the dip-tables incrementally. This meant that each and every excise vessel had to have an accurate "dip-table", produced by certified companies. Many installations just rely on counting flowmeter pulses, Here in the UK, historically, breweries and distilleries had to pay duty on the volumes they actually produced, so vessels had to be accurately "dipped" from the top with a gauging stick. Some installations use a "gauging probe" in the vessel, positioned at a known volume, which automatically adjusts the weight-based volume calculations, but this is only valid for homogenous (constant density) products. Using load cells, and converting to volume is also a tried a trusted method, but it requires knowledge of the average density of the contents. Tanks can also change their dimensions with temperature. Tanks are rarely the exact dimensions and uniformity called out by the design drawings, and they often contain "inclusions" such as heat exchanger coils, mixer paddles, etc., so using liquid head pressure can often be the worst way to measure volume. Yes, Pelly09 sussed me out, 22/7 is probably good enough in the circumstances, especially when you take into consideration the rest of my post. If PV 100.0 THEN PV := 100.00 END_IF PI := (22.0/7.0) H := (PV / 100.0) * D a :=2 * ATAN(H/((2*H*D/2)-H**2)**0.5) Fc := (a-SIN(a)*COS(a))/ PI Vc := 0.25*PI*D**2*L*Fc*7.48 Vh := (3*D*12-2*H*12)*(H*12)**2*0.0000539681*42 G := Vc + Vh B := G / 42.0 Where: a REAL Standardğactor B REAL Standard Tank Barrels on Hand D REAL Standard Tank Diameter in Feet Fc REAL Standardğactor G REAL Standard Tank Gallons on Hand H REAL Standardğluid Height in Feet L REAL Standard Tank Seam to Seam Length in Feet PI REAL Standard Value for Pi PV REAL Standard Tank Level in % Vc REAL StandardĜylinder Volume on Gallons Vh REAL Standard Head Volume in Gallons You're looking for Vc
![horizontal tank volume calculator horizontal tank volume calculator](https://www.engineeringtoolbox.com/docs/documents/1301/tank-content.png)
You can get rid of the 2:1 head calc part and use the math that is in the STX in ladder. I have a structured text file that I turned into an AOI that I use to calculate the volume of a cylinder, laying on it's side, with 2:1 elliptical heads. The methods below will give you cubic measures such as ft 3 or m 3 depending on your units of measure.The beer can on it's side version is a little more difficult (not impossible) than the beer can standing up. Methods to calculate the volume of tanks and the volume of a liquid inside a tank Actual water and oil tanks may not be perfect geometric shapes or might have other features not accounted for here so, these calculations should only be considered estimates. These tank shapes are calculated assuming exact geometric solid shapes such as cylinders, circles and spheres. Tank volume calculations are based on tank geometries shown below. fluid gallons, Imperial (UK) gallons, cubic feet (ft³), metric liters and cubic meters (m³). dimensions in feet (ft) or inches (in), or metric dimensions in meters (m) or centimeters (cm). Estimate the total capacity and filled volumes in gallons and liters of tanks such as oil tanks and water tanks.