VasiliBaranov / packing-generation

Hard-sphere packing generation in C++ with the Lubachevsky–Stillinger, Jodrey–Tory, and force-biased algorithms and packing post-processing.
MIT License
106 stars 43 forks source link

Getting started with packing-generation #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi!
I am just getting started with packing- generation code. I ran the tests code 
and got the desired results which is "Success". I am using visual studio for 
building configuration. Now, how should i go ahead and actually build the 
model. I am unable to locate generation.conf. What are the input and output 
files for the program and how to supply them to the main program? My objective 
to get a random closedly pack distribution of non-uniform size hard spheres in 
a cube. 
-Shailesh

Original issue reported on code.google.com by kondasha...@gmail.com on 4 Sep 2014 at 7:57

GoogleCodeExporter commented 9 years ago
Hi Shailesh, 

  I am also using this code to generate sphere packings. I am working on Linux. Windows is similar. 
  Firstly, you should change your directory to _Release/ or _Debug/. Then, compile the source file. (In Linux, just use "make". In Windows, you can work with any IDE.) 
  Secondly, you have to create a new file called "generation.conf" and input all the parameters as that in the summary of this project. OR you can just copy the file in the directory ./Docs/Examples. Remember to change the parameters as you want. (The default parameter for generation start is 0, if you are working on this for first time, you should change that to 1.)
  Thirdly, Run the executable file "PackingGeneration.exe". 

  I am just on the third step and it seems to take a long time to finish. So maybe I will add more steps... I am not 100% sure this is correct, but it seems ok.

  Hope it is helpful.

Original comment by zljt3...@gmail.com on 19 Nov 2014 at 3:54

VasiliBaranov commented 7 years ago

If this may still be helpful to anyone, the second reply is more or less right. The initial generation was slow, because the contraction rate in the sample config file was quite low. I've increased the contraction rate in the sample config file so that this sample generation does not take too much time for both the LS and FB algorithms. One can check how the final density depends on the contraction rate for the LS and FB algorithms in Figs. 2a and 2c, respectively, in Baranau and Tallarek, 2014. I've also added MATLAB scripts to read the resulting packings.

Hope this helps, Vasili

VasiliBaranov commented 7 years ago

Reopened just to make it visible for non-experienced github users who open the Issues tab

Tina2020-web commented 4 years ago

Hi ValisiBaranov This is what I need for my project. Thank you for the contribution. As a beginner, l still don't know how to find the script of in.file. So I can run LIGGGHTS<in.file. I am using virtualbox ubuntu. Thank you

VasiliBaranov commented 4 years ago

Hi Tina,

i'm not quite sure what you mean. What do you mean under the "in.file"? Also, this code is not connected to LIGGGHTS in any way and i have no experience with LIGGGHTS, so i can't help you with it.

Best, Vasili

Tina2020-web commented 4 years ago

Hi Vasili, Thank you for your kind reply. Regards Ting

VasiliBaranov notifications@github.com于2020年6月22日 周一上午5:01写道:

Hi Tina,

i'm not quite sure what you mean. What do you mean under the "in.file" Also, this code is not connected to LIGGGHTS in any way and i have no experience with LIGGGHTS, so i can't help you with it.

Best, Vasili

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/VasiliBaranov/packing-generation/issues/1#issuecomment-647167565, or unsubscribe https://github.com/notifications/unsubscribe-auth/APEY5OK4DRSBZNOGBBOYPDLRXZKJVANCNFSM4COKWWTQ .

-- Ting Hu PhD of Chemical Engineering Monash University New horizons, Clayton Campus