A 3D computational method for determination of pores per inch (PPI) of porous structures