TauFactor is an application for calculating tortuosity factors from tomographic data.
- Free software: MIT license
- Documentation: https://taufactor.readthedocs.io.
Before installing taufactor, download the most recent version of PyTorch.
To install TauFactor via PyPI
pip install taufactor
To extract effective diffusivity and tortuosity factor from your data:
import taufactor as tau
# load image
img = tifffile.imread('path/filename')
# ensure 1s for conductive phase and 0s otherwise.
# create a solver object with loaded image
s = tau.Solver(img)
# call solve function
s.solve()
# view effective diffusivity and tau
print(s.D_eff, s.tau)
# plot steady state maps
s.flux_map()
s.conc_map()
To run unit tests navigate to the root directory and run
pytest
This package was created by the tldr group at the Dyson School of Design Engineering, Imperial College London.