Random walkers diffuse through one phase of your image or 3D scan, the dark one unless you choose the bright. Voxels of the other phase block them, and the greys in between slow them down. How fast the cloud spreads gives the tortuosity, with no segmentation step.
How far they spread
Mean squared distance travelled along each axis, against steps. The slope is fitted over the solid part of each line, after the dotted mark. Changing the grey map starts a new line from where the walkers are.
Grey levels to phases
How it works
Grey is how open a voxel is
Each grey level is read as how much of the walked phase a voxel holds, between 0 and 1. Walking the dark phase, voxels darker than the first threshold are all dark phase, voxels brighter than the second are none of it, and in between is a ramp, raised to the exponent; walking the bright phase turns that round. A voxel that is partly one phase at the scan's resolution lets walkers through, just more slowly.
With one threshold the map is black and white: every voxel is either open or closed, and the walk is the classic one on a segmented image.
This assumes two phases, pore and one solid, with the thresholds on the two peaks of the histogram. A scan with several solids that show up differently, such as silicon and graphite, can read a weakly showing solid as partly open; segment those, or crop them away, first.
A step between two voxels
A walker picks one of its neighbours at random and moves there with a probability set by how open both voxels are; otherwise it waits a step.
That is the harmonic mean of the two, the same rule as two resistances in series, so a thin wall slows the walk as much as it should.
Tortuosity from the spread
In open space the mean squared distance along each axis grows by 1/n per step, in n dimensions. In the material it grows more slowly, and the ratio of the two slopes is how much the material slows diffusion. The tortuosity factor, as in Deff = D ε / τ, takes the volume fraction out of that.
The slope is fitted over the second half of the line, so the start, before the cloud has spread past the grain of the material, is left out. Changing the grey map keeps the walkers where they are and starts a new line from there, so the slope is measured on the new map alone. The jump rule spreads walkers evenly over the open space whatever the greys, so a cloud that has been running is already settled; any walker left inside a voxel that has just closed is moved to an open one.
Here ε is the volume fraction of the walked phase, counting a part-open voxel as part of it, and εopen is the fraction of voxels open at all, which is where the walkers spread. On a black-and-white map the two are the same and τ is simply one over n times the slope. On a grey map the correction matters: with every voxel half open, and the default exponent, τ comes out as Bruggeman's 1.41 rather than 2.83.
Bursts are for looking, not measuring
A burst released at one point shows where walkers go and how the cloud stretches, but its own spread is not a good measure of τ. Every walker in it explores the same patch of material, so more walkers do not help; the spread only settles on the volume's value once the cloud has crossed many grains, and in most scans it reaches the walls first. Starting the measuring walkers evenly through the whole volume averages over every part of it from the first step instead. A burst's shape is still a fair guide to a local bottleneck, or to which way the material is slower.
The walls of the scan are mirrors, so any data works without padding. More on how it was built in the write-up.
Built by modlit, which makes software for science and engineering.