Hi. I'd like to have a central sphere (sphere 1) with 13 tangentially touching spheres covering its surface. All the spheres should be elastic/softbody/squishy. There won't be quite enough room for the 13th sphere so this will cause the 13 spheres to be compressed. I'd then like to simulate the motion of all the spheres caused by the rebound force against the compression. I'm just starting out, so I'm not even sure if I should just do a copy SOP on the central sphere and then I don't know how to get the copies covering the central sphere's surface instead of just extending out in a line away from the central sphere. Or, should I use particles somehow?
Does anyone have any ideas on how to do this? Thanks!
How to simulate spheres packed like oranges in a store?
2889 5 1-
- Roger Granet
- Member
- 8 posts
- Joined: Aug. 2015
- Offline
-
- Enivob
- Member
- 2353 posts
- Joined: June 2008
- Offline
-
- grayOlorin
- Member
- 1781 posts
- Joined: Oct. 2010
- Offline
-
- Roger Granet
- Member
- 8 posts
- Joined: Aug. 2015
- Offline
-
- johner
- Staff
- 796 posts
- Joined: July 2006
- Offline
For your initial configuration, you might look at the Tetrahedral setting for Point Configuration on the PointsFromVolume SOP. This gives a fairly tight sphere-packing and is used for setting up Grain simulations.
Turn on Add Scale Attribute and set the Particle Radius Scale to 0.5, then use the Copy SOP to copy 1-unit spheres onto the points. They should stack together nicely. Increase the Particle Radius Scale slightly and they'll overlap.
Turn on Add Scale Attribute and set the Particle Radius Scale to 0.5, then use the Copy SOP to copy 1-unit spheres onto the points. They should stack together nicely. Increase the Particle Radius Scale slightly and they'll overlap.
-
- Roger Granet
- Member
- 8 posts
- Joined: Aug. 2015
- Offline
Johner,
Thanks! I tried it and was able to get a stacked array of spheres within a larger sphere container; although, some smaller spheres were put in between the bigger ones. I'll also try to make them squishy/elastic. I'm going to try the FEM objects and VDB to spheres methods Enivob and grayOlorin suggested, too in order to simulate the compression and rebounding movement of the spheres. Maybe, I can combine elements from all 3 methods.
Anyways, thank you!
Roger
Thanks! I tried it and was able to get a stacked array of spheres within a larger sphere container; although, some smaller spheres were put in between the bigger ones. I'll also try to make them squishy/elastic. I'm going to try the FEM objects and VDB to spheres methods Enivob and grayOlorin suggested, too in order to simulate the compression and rebounding movement of the spheres. Maybe, I can combine elements from all 3 methods.
Anyways, thank you!
Roger
-
- Quick Links