SoftwareX (Jul 2019)

pytrax: A simple and efficient random walk implementation for calculating the directional tortuosity of images

  • T.G. Tranter,
  • M.D.R. Kok,
  • M. Lam,
  • J.T. Gostick

Journal volume & issue
Vol. 10

Abstract

Read online

Given the huge advances in tomographic imaging capability in recent years, image analysis has become a powerful means of measuring transport and structural properties of porous materials. One of the most important material characteristics is the tortuosity, which is difficult to measure experimentally. We present pytrax: (tortuosity from random axial movements) a simple and efficient random walk method implemented in python to calculate the average tortuosity and orthogonal directional tortuosity components of an image. The code works for both two and three-dimensional images and completes a statistically significant number of walks in parallel for large images in a few minutes using a standard desktop computer. By comparison, a Lattice Boltzmann or finite element simulation on similar sized images can take several hours. Keywords: Random walk, Directional tortuosity, Python, Image analysis