2D packing suffers from low packing fraction
Hello,
I am a relative new user of Esys-Particle, and I intend to create a 2D random dense packing in Esys-Particle. But my code always got a packing with a low packing fraction. I have tried to adjust the maximum and minimal radius in my code, when the maximum radius equals the minimal raidus, it got a HCP packing. But when the ratio between the maximum radius and the minimal radius is larger than 1.2, it got a very loose packing. My code is as follows, and thanks in advance.
Huihuang Xia
###############
from gengeo import *
fileName = "2D_RDP"
minPoint = Vector3(
maxPoint = Vector3(
minRadius = 0.0001
maxRadius = 0.000125
box = BoxWithLines2D(
mntable = MNTable2D (
minPoint = minPoint,
maxPoint = maxPoint,
gridSize = 2.5*maxRadius,
numGroups = 1
)
packer = InsertGenerator2D(
minRadius = minRadius,
maxRadius = maxRadius,
insertFails = 100000,
maxIterations = 100000,
tolerance = 1.0e-6,
seed = 0
)
packer.
volume = box,
ntable = mntable,
groupID = 0,
tag = 0
)
#Write data to files
mntable.
mntable.
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Dion Weatherley
- Solved:
- Last query:
- Last reply: