Generating an image of a sphere packing from a list of center points and radii #680
Replies: 3 comments 16 replies
-
Note that the above function needs a bit more work. For instance, it can't handle 2D images. I also has no check to enure the generated image is not too large. It might make more sense if the |
Beta Was this translation helpful? Give feedback.
-
Dear Dr. [@jgostick] I used this code for finney_packing.csv and it worked properly. Aslo I could postprocess the results using Paraview that is my desired goal. (attached image) I obtained the position (X,Y,Z) and radii(R) of particles from Yade in a text file and then I converted it to a csv file. But it did not worked and I could not obtain any result.I attached the text file and csv file and the code for your consideration. I think the problem is it can not recognize my packing. Because I gained this results: It should be mentioned that I also tried sphere packing with the same and different sizes of particles. Then I removed the R column and it did not work as well, because there is no R (radii) data in the finney_packing.csv. I am grateful for any hints or insights into this issue. Thank you so much in advance and I look forward to hearing from you. Best regards, |
Beta Was this translation helpful? Give feedback.
-
Dear Dr. @jgostick I tried R=0.03, and voxel_size of 0.003 and fortunately it worked :) But in paraview the pore diameters are equal. I do not know what the mistake is. The throat diameters are different I attached the particle packing for your consideration. I am grateful for any hints or insights into this issue. |
Beta Was this translation helpful? Give feedback.
-
There have been several requests for this lately, so I cooked up a prototype function. We'll be adding something like to PoreSpy in the next release I suppose but for now you can use this:
It would be used like this:
Where the
finney_packing.csv
file was obtained from the digitalrocksportal.org but is also uploaded here: finney_packing.csvBeta Was this translation helpful? Give feedback.
All reactions