This should be simple, at least when I talk it out, but I can’t concoct a formula that works. Please help.
The situation boils down to getting the volume of a container. The contain is a cylinder with three distinct sections: a cone, a tube, and a roof.
/\
/ \
| |
| |
| |
| |
| |
\ /
\/
I can get the volume of an empty container but I need to calculate the volume of product when the bin is partially filled.
I have dimensions as follows:
cone height: ch
cylinder height: h
cylinder area: a
roof height: rh
Assumptions:
- product in bin is level
- product fills bin to point of measurement
- slopes of cone and roof are 45 degrees so volume can be calculated using 1/3
so volume of a bin = (h * a) + ((1/3) * ch * a) + ((1/3) * rh * a)
The only measurement (x) I have is one taken from the top of the roof, measuring straight down to the product in the bin.
How can I calculate the volume of the product?
I get hung up when x > h or x < rh.