Volume of 4 intersecting cylinders

Volume of 4 intersecting cylinders

Postby Guest » Thu Apr 05, 2018 10:02 pm

Hello.Can you please help me find an expression for the volume of the left body which is actually 4 cylinders with diameter = D placed on the vertices of the cube with side length L (the cylinders are being "cut" by the corners of the cube). Thank you!
20180406_042255.jpg (113.65 KiB) Viewed 210 times

Re: Volume of 4 intersecting cylinders

Postby Guest » Sat Apr 21, 2018 4:10 pm

Is that a homework or you really need to calculate this volume.

Finding analytical expression is possible but tedious. If you just need the volume, draw this figure in some 3D software like Solidworks, NX or Autocad and measure it.

Otherwise, I can suggest an interesting approach using the Monte Carlo method:

Iteratevly generate random points [tex](x, y, z)[/tex] inside the cube [tex]x \le a, y \le a and z \le a[/tex]. Check the distance to either of the diagonals. If it is less than the radius of the cylinder, then count it as "in", otherwise count it as "out". After sufficient number of iterations you wil get the ratio of the volume of the solid to the cube [tex]k = \frac{in}{in + out}[/tex].

I can post a short procedure in Python or JavaScript and you can run it on some of the many online Python/JS interpreters.

Return to Volume & Surface

Who is online

Users browsing this forum: No registered users and 2 guests