Hi All,
Below is the playground link I created.
I am new to Babylon and I am trying to fill a tube with sphere and when
I increase the size of sphere / tube it should fill but never protrude out of tube
any help on the same would be great…
rgds
Balaji
I am not sure to fully understand what you are trying to achieve but maybe @JohnK a maths superhero will be able to help ?
JohnK
March 13, 2022, 5:36pm
#3
@Balaji_K
Where r is radius of sphere and R the radius of the tube do you mean when
r = R or
0.5R < r < R or
r = 0.5R or
r < 0.5R or
0 < r <= R
1 Like
@JohnK its 5 , I did played around with Sin theta and cos theta and was able to get it within the circle. But the problem is some spheres just protrude a little out of the tube…
JohnK
March 14, 2022, 2:13pm
#5
Sphere packing within a cylinder is a complex task
You can think of the bottom layer of sphere fitting in the same way as fitting smaller circles with a larger circle - again complex
Circle packing in a circle is a two-dimensional packing problem with the objective of packing unit circles into the smallest possible larger circle.
If more than one equivalent solution exists, all are shown.
Only 26 optimal packings are thought to be rigid (with no circles able to "rattle"). Numbers in bold are prime:
Of these, solutions for n = 2, 3, 4, 7, 19, and 37 achieve a packing density greater than any smaller number > 1. (Higher density records all have rattles.)
2 Likes
Hello @Balaji_K just checking in, was your question answered?
@carolhmj Thanks it did and btw I used the circle equation with increasing x and it served my purpose
2 Likes