a voxel-based finite-element code to compute elastic moduli of porous structures