Volume of a bead with square hole- Program approach?
|
06-11-2020, 06:53 PM
(This post was last modified: 06-16-2020 04:16 PM by Albert Chan.)
Post: #21
|
|||
|
|||
RE: Volume of a bead with square hole- Program approach?
Here is a simplied version of Werner's code, assumed diameter = 1
I like dimensionless version because you can get a sense of results. Example, with diameter of 1, sphere volume = Pi/6 ≈ 0.523598775598 ≈ ½ You can sense how big the hole is ... Also, A, B is limited to inside a unit circle. Code: 00 { 83-Byte Prgm } Example, to get sphere - hole, diameter = 20, hole = 2x2 Solve with A=0.1, B=0.1, we have hole = 0.00996658845699, about 2% of sphere Pi/6 - V = 0.513632187141 Scale up by D^3 => sphere - hole = 0.513632187141 * 20^3 = 4109.05749713 Update: Perhaps we should compare volume against maximum possible volume Solve with sphere - 4 caps, or simply solve with A = B = √(0.5), we get V(max) ≈ 0.402001836518 So, above hole ≈ 2½ % of maximum possible volume. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)