This repository contains the codes I used to generate the results for my Master's thesis available here, and a similar journal publication (Ref. [1]). They produce geometries such as the one seen below:
The python script is for use with YADE DEM software to generate periodic domains of spherical-void-phase Representative Elemental Volumes (REVs). It exports text files containing lists of sphere locations and their associated radii.
The porous block macro file is actually a Solidworks .swp
macro file. Just copy-paste the contents into a new Solidworks macro.
Further details on usage and issues are given in the comments of each of the scripts, and the test folder contains example files which can be used to test the solidworks macro. It should produce the model shown in the above image.
I have applied MIT Licencses to both of the scripts.
[1] Dyck, N. J., & Straatman, A. G. (2015). A new approach to digital generation of spherical void phase porous media microstructures. International Journal of Heat and Mass Transfer, 81(0), 470–477. article. Retrieved from http://www.sciencedirect.com/science/article/pii/S0017931014009028