-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generating a packing with few particles #8
Comments
Hi, one possible reason is that due to historical reasons the final particle diameters saved in the packing.xyzd file are equal to the initial particle diameters (specified in the user-provided packing.xyzd or diameters.txt files) and you have to rescale the diameters linearly to get the "real" final particle diameters. Please see this section for more details and sample code. Hope rescaled particles will have no intersections. Best, |
Hi, |
Hi,
Actually, this is not a problem. The theoretical porosity is the expected porosity, the one calculated from original diameters (which are unity by default). The FBA algorithm uses this expected porosity as a parameter. But it will not always be able to reach it. The LS algorithm doesn't use it at all. So the calculated porosity can have any value. As i tried to explain in the Readme (section referenced before), you have to multiply particle diameters by (finalDensity / theoreticalDensity)^(1/3) = ((1 - finalPorosity) / (1 - theoreticalPorosity))^(1/3). I think it shall be enough. The only other thing that comes to mind is you can make sure that if your visualization function accepts radii, you pass radii there, not diameters. I was using some Visual Molecular Dynamics software for visualization actually, but it's probably an overkill. But you can check this reply. Best, |
Dear Vasili Thanks for your quick reply. I have confused the diameter with radii. Sorry for all this trouble. Cheers |
Hi, I have been using your code to generate a random packing with very few particles (50~100). I have tried this generation.conf
Particles count: 100
Packing size: 10. 10. 10.
generation start: 1
boundaries mode: 1
contraction rate: 1e-4
The particles are overlapped with each other. Could please tell how to fix it? Or, is it possible to use your code to generate a random packing with very few particles?
The text was updated successfully, but these errors were encountered: