A tool for rapid estimation of transport properties of 3D images of porous materials
Project description
Poromics
Poromics is a set of tools for rapid estimation of transport properties of 3D images of porous materials. It is designed to be fast and easy to use. Currently, it can predict the tortuosity factor of an image. The goal is to support more transport properties in the future such as permeability. Poromics is optionally GPU-accelerated, which can significantly speed up the calculations for large images (up to 100x speedup).
Installation
Poromics depends on the Julia package Tortuosity.jl. However, it is not necessary to install Julia separately. The package will be installed automatically when you install poromics.
[!NOTE] We highly recommend using
uvinstead ofpipto installporomics(or any other Python package!) as it's extremely faster. It has lots of useful features, but for all practical purposes, it is a drop-in replacement forpip.
Uv
Install uv, and then run the following command in a terminal/command prompt:
uv pip install poromics
Pip
If you prefer to use pip, run the following command in a terminal/command prompt:
pip install poromics
Basic Usage
[!NOTE] The first time you import
poromics, it will take a few minutes to install Julia and the required packages. This is a one-time setup.
import porespy as ps
import poromics
im = ps.generators.blobs(shape=[100, 100, 1], porosity=0.6) # Test image
result = poromics.tortuosity_fd(im, axis=1, rtol=1e-5, gpu=True)
print(result)
The Result object is a simple container with the following attributes:
im: The tortuosity factor of the image.axis: The axis along which the tortuosity was calculated.tau: The tortuosity factor.c: The concentration field.
CLI
[!WARNING]
The CLI is still in development and not yet functional.
poromics --help
Roadmap
- Speed up matrix assembly by direct assembly on GPU.
- Create Julia sysimage files upon installation for faster startup.
- Add more transport properties (e.g. permeability).
- Add CLI support.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file poromics-0.0.7.tar.gz.
File metadata
- Download URL: poromics-0.0.7.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c6d02fe133eae251e726978438e83ac320265679e7421ed8905a2977d433ba4
|
|
| MD5 |
c8559ffda2c6d3eee382441073892f2d
|
|
| BLAKE2b-256 |
4bbc42f85bfb82e93ddc40e49e66a8d108d6f7d07b64d066e28e49829b79ede7
|
File details
Details for the file poromics-0.0.7-py3-none-any.whl.
File metadata
- Download URL: poromics-0.0.7-py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98c6e9c28d9e7deadeba9adb52dafe05298e27f00daed2dfa2dce25f64ba9468
|
|
| MD5 |
760a2521fa29788b54d687002ab2e9a4
|
|
| BLAKE2b-256 |
f8b3f8b2cffa044e10eb32fe6c9c2e5f464e75e8e2c13ce8f25f98d34a29a6bf
|