Monte-Carlo simulation and random-numbers to find the volume of intersection of the following four spheres. Given a = 2 − 3 , b = 2 − 3 2 3 , c = 3 8 + 2
Use thewith centers ( 1 , a , 2 ) , ( 2 , 2 , 2 ) , ( 3 , a , 2 ) , ( 2 , b , c ) and radii of 2.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
I am generally a fan of Monte Carlo, but I opted for a more conventional approach here. I did a numerical triple integral in spherical coordinates over the entire volume of the first sphere, dividing the volume into N 3 partitions. Each infinitesimal sub-volume is added to a running volume sum if it also simultaneously lies within spheres 2, 3, and 4. There is reasonably good convergence of the result as the spatial resolution increases. With N = 1 0 0 (one million sub-volumes), I get V = 3 . 4 7 . With N = 5 0 0 (125 million sub-volumes), I get V = 3 . 3 7 . With N = 1 0 0 0 (1 billion sub-volumes), I get V = 3 . 3 9 .
Code attached:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
|
Problem Loading...
Note Loading...
Set Loading...