What is a bent cylinder?
A bent cylinder is two right circular cylinders of the same radius r, each cut off at one end by a slanted plane and joined along the two equal ellipses of these cuts, like a mitred pipe bend. Each arm is a cut cylinder: its side line is shortest on the inside of the bend (s₁ on arm 1, s₂ on arm 2) and longest on the outside (l₁, l₂). The ellipses fit only when both arms have the same difference l − s.
This calculator finds the volume, the surface area, the surface-to-volume ratio, the long axis of the joint ellipse (the bend diameter), the angle between the two arm axes, the fourth side line, the curved area and the area of the two flat ends.
How to use it
Enter the radius r and three of the four side lines; the page finds the fourth from l₁ − s₁ = l₂ − s₂. An outer side must not be shorter than the inner side of the same arm, and a found inner side cannot be negative. An inner side may be 0, typed or found: the arm then comes to a point on the inside of the bend, where the cut reaches the wall. The values you enter are shown back rounded like the results, to at most 6 decimal places (their full digits are used in the calculation), and every other measure is solved from them. The length unit is a label only: lengths are shown in that unit, areas in its square and volumes in its cube. The page shows results rounded to at most 6 decimal places and writes values from 10¹² up as a 12-digit number times a power of ten, such as 1.23456789012 × 10¹², and very small values out in full.
Derivation of the formulas
Put arm 1 upright with its flat end at the bottom. Its slanted end is a plane through the side lines of lengths s₁ and l₁ at opposite ends of a diameter, so its height over the diameter rises linearly by l₁ − s₁ across the width 2r. The plane cuts the side in an ellipse with the short half axis r and the long axis
$$x = \sqrt{(2r)^2 + (l - s)^2}$$Two such ellipses are equal exactly when the differences l − s are equal, which is why the fourth side follows from the other three. The side height over the angle φ is the mean (s + l)/2 plus a term in cos φ that averages to zero, so each arm has the volume πr²(s + l)/2 and the curved area πr(s + l):
$$V = \frac{\pi r^2 (s_1 + l_1 + s_2 + l_2)}{2}, \qquad A = \pi r (s_1 + l_1 + s_2 + l_2) + 2\pi r^2$$The joint ellipse lies inside the solid and is not part of its surface. Each cut plane is tilted from the square cross-section by the angle whose tangent is (l − s)/(2r); the second arm is the mirror image of an arm of the same kind, so the arm axes meet at the angle 180° − 2·arctan((l − s)/(2r)). Because arctan t + arctan(1/t) = 90° for positive t, this is the same angle as 2·arctan(2r/(l − s)), and 180° when l = s. The page uses this second form: for a nearly straight bend it keeps all its digits, where the first form would subtract two nearly equal numbers.
Worked example
The default bend has r = 2 and the sides 3 and 6 on arm 1 and 5 and 8 on arm 2 (a difference of 3 on both). The arms meet at about 106.260205 degrees, the bend diameter is 5, the volume about 138.230077 cubic units and the surface area about 163.362818 square units.
FAQ
Why can I give only three of the four sides?
The two cut ellipses must be the same for the arms to fit together, and that happens exactly when l₁ − s₁ equals l₂ − s₂. The fourth side is therefore fixed by the other three.
What does a bend angle of 90 degrees need?
The arms meet at right angles when arctan((l − s)/(2r)) is 45 degrees, that is when l − s equals the diameter 2r.
Does the unit change the numbers?
No. Geometry does not depend on the unit, so the unit only labels the results.
How accurate are the results?
Results are accurate to at least 9 significant digits for ordinary inputs. When a result depends on the small difference of two nearly equal entries (closer than one part in a million), fewer digits are reliable.
Accuracy and input range
Results are accurate to at least 9 significant digits for ordinary inputs. When a result depends on the small difference of two nearly equal entries (closer than one part in a million), fewer digits are reliable.
Enter each length from 0.000001 to 1,000,000,000 and the boxes marked as allowing 0 from 0 to 1,000,000,000. Anything outside is refused with a message naming the range.
References
D. Zwillinger (ed.), CRC Standard Mathematical Tables and Formulae, 33rd ed., CRC Press, 2018, ch. 4 (solids of revolution, spherical and conical solids)
W. Gellert, S. Gottwald, M. Hellwich, H. Kästner, H. Küstner (eds.), The VNR Concise Encyclopedia of Mathematics, 2nd ed., Van Nostrand Reinhold, 1989, ch. 11 (cylindrical hoof (ungula), spherical segment and zone, truncated solids)