PorousGen: An efficient algorithm for generating porous structures with accurate porosity and uniform density distribution
Abstract
This work presents a novel algorithm for generating porous structures as an alternative to the PoreSpy program suite. Unlike PoreSpy , which often produces structures whose porosity deviates from the target value, our proposed algorithm generates structures whose porosity closely matches the specified input, within a defined error margin. Furthermore, parallel computation enables efficient generation of large-scale structures, while memory usage is reduced compared to PoreSpy . To evaluate performance, structures were generated using both PoreSpy and the proposed method with parameters corresponding to X-ray ptychography experiments. The porosity mismatch in PoreSpy led to a relative error exceeding 20 % in the computed gas diffusion coefficients, whereas our method reproduced the experimental values within 5 %. These results demonstrate that the proposed method provides an efficient, high-precision approach for generating porous structures and supports reliable prediction of material properties. The program called “PorousGen” is publicly available under the MIT License from https://github.com/YoshidomeGroup-Hydration/PorousGen .
Fields of Study & Subjects
Enhanced Oil Recovery Techniques
Advanced X-ray Imaging Techniques
Mesoporous Materials and Catalysis
Publication details
- Journal / source
- Computational Materials Science
- Publisher
- Elsevier BV
- Volume
- 264
- Pages
- 114478–114478
- Publication date
- 3 January 2026
- Language
- EN