Open RajeshC018 opened 4 years ago
Dear Rajesh,
you are right, the "seed" parameter in the config specifies the seed for random number generation. You have to change it to get different results. See http://www.cplusplus.com/reference/cstdlib/srand/
Please refer to this section for the seed and other parameters: https://github.com/VasiliBaranov/packing-generation#13-parameter-description
Best Regards, Vasili
Thank you for your reply!
I have another question regarding your code.
Is it possible to define a particular distance (unique) to be obtained between the spheres? If yes, could you please explain which part of the code should be modified?
Thanks, Rajesh
Hi Rajesh,
if you go to the branch https://github.com/VasiliBaranov/packing-generation/tree/feature/SuccessfulPermutationProbability , you can use an option -nnc, it shall save nearest neighbors for each particle.
You can track how this is calculated by going through these links:
And then distanceService->FillClosestPairs.
But maybe it will be easier for you just to write a small Python script to do whatever post-processing is needed for your task, because the C++ code needs some initial time investment probably.. Maybe the Python code will be slower, and you can even implement it without any optimizations, but if it is a one-time task, it will probably be easier. Hope this helps.
Best Regards, Vasili
Hi Vasili,
I am investigating the microstructure of materials using Voronoi tesselation based on randomized sphere packing. Your work is well programmed and documented for implementation. Thank you!
I need to generate a randomized sphere packing for the same input diameter distribution, i.e., different sphere positions in the packing resulting in the same size distribution. Currently, for a particular diameter distribution, the algorithm always generates the same output. Is there any input parameter to randomize the outputs?
What is the seeds parameter in a 'generation.conf' file responsible for? Does it control the randomization?
Thank you, Rajesh