Peclet
A suite of codes for simulation of transport phenomena — Eulerian (CFD/Navier–Stokes), Lagrangian (DEM/particle packing) and mixed (Voronoi) methods — sharing one MPI block domain decomposition with efficient asynchronous ghost-layer exchange, SDF-described solids, a common immersed boundary methodology, GPU support, and Python bindings.
The name nods to the Péclet number — the ratio of advective to diffusive transport, the dimensionless heart of transport phenomena.
📖 Documentation site: https://computational-chemical-engineering.github.io/peclet/ — the suite's front
door (Python API reference, install/deployment guide, design docs, links to each code's Doxygen API).
Built from docs/ via MkDocs (mkdocs.yml).
🧪 Examples gallery: https://computational-chemical-engineering.github.io/peclet-examples/ — runnable, validated notebooks (single-phase and two-phase flow, packings, DEM, CFD-DEM, scaling benchmarks), each with an Open in Colab button.
This is an umbrella repository: each code is a git submodule (its own repo and history); this repo pins compatible commits and holds the shared design docs.
Clone
git clone --recursive git@github.com:computational-chemical-engineering/peclet.git
# or, after a plain clone:
git submodule update --init --recursive
Layout
| Submodule | Role |
|---|---|
core/ |
Shared infrastructure (header-only C++20 + MPI, optional Kokkos): ORB block decomposition, async grid ghost-layer exchange + Lagrangian particle migration/ghosts, SDF geometry, VTI I/O. Every method depends on it. |
flow/ |
Eulerian Kokkos incompressible Navier–Stokes (porous media; staggered MAC grid + cut-cell IBM). Complete, validated, MPI-optional distributed solver on core. |
pnm/ |
Kokkos pore-network extraction from SDF geometry (pores, watershed segmentation, throat topology). Split out of flow. |
dem/ |
Lagrangian Kokkos + ArborX DEM/XPBD particle packing. Full XPBD step with a validated distributed step_mpi (core particle halo). |
voro/ |
Mixed Lagrangian/Eulerian dynamic 3D Voronoi tessellation (Kokkos device tessellator; periodic & Lees–Edwards), mesh generator and Navier–Stokes on the Voronoi mesh. |
coupling/ |
CFD-DEM coupling of flow + dem (Kokkos kernels + Python drivers): unresolved volume-averaged drag and resolved cut-cell coupling. |
morton/ |
Morton/Z-order spatial-index primitive — arithmetic directly in Morton space (header-only C++17 + BMI2/AVX-512, Python). |
The compute codes are Kokkos-based; the same source runs on CUDA, HIP (AMD/LUMI), and OpenMP backends,
chosen by the bootstrapped install prefix (tools/bootstrap_deps.sh). The reusable parts of the original
block_decomposer prototype were extracted into core/.
Shared design docs
docs/ is the cross-code contract every method follows:
ARCHITECTURE · CONVENTIONS · STYLE ·
INTERFACES · ROADMAP ·
PORTABILITY. See CLAUDE.md for an agent-facing overview.
Install & run (Python)
Everything ships under one peclet namespace — installable parts of one family:
| PyPI package | Import | Role |
|---|---|---|
peclet-morton |
peclet.morton |
Morton/Z-order spatial index |
peclet-flow |
peclet.flow |
Eulerian incompressible Navier–Stokes solver |
peclet-pnm |
peclet.pnm |
Pore-network extraction from SDF geometry |
peclet-dem |
peclet.dem |
Lagrangian DEM/XPBD particle packing |
peclet-voro |
peclet.voro |
Dynamic Voronoi tessellation + mesh generator |
peclet-coupling |
peclet.coupling |
CFD-DEM coupling drivers over flow + dem — sdist only (peclet[cfd-dem]) |
peclet-core |
peclet.core (.mpi, .amr, .geom) |
Shared infra (particle halo, AMR, analytic-SDF scenes) — sdist only (peclet[mpi]) |
peclet |
— | metapackage: pip install peclet pulls the CPU family |
peclet-cu13 |
— | metapackage: pip install peclet-cu13 pulls the CUDA family (peclet-{flow,pnm,dem,voro}-cu13) |
Multicore CPU (OpenMP): the compute packages ship self-contained wheels — pip install peclet
(or an individual pip install peclet-flow) just works and runs multi-threaded (OMP_NUM_THREADS).
Single NVIDIA GPU: pip install peclet-cu13 — CUDA wheels of the same family (only the NVIDIA driver is
needed; not alongside peclet in one venv).
AMD/HIP and multi-rank MPI: a wheel cannot carry an MPI ABI, so you build the packages from source
against a Kokkos prefix, or use a container. Because the backend (Serial / OpenMP / CUDA / HIP) is compiled
in, you build for your hardware — docs/DEPLOYMENT.md is the guide: the backend×MPI
matrix, pip install recipes per environment, the Snellius site install (tools/hpc/), and the
Apptainer containers (GHCR, built by CI on every release) for Snellius (CUDA) and LUMI (HIP) in
containers/.
Continuous integration & docs
Each submodule carries its own .github/workflows/: a CI workflow (build + test — core and morton
run full CPU/MPI suites; the Kokkos codes build the OpenMP host backend and run their single-rank suites),
a Documentation workflow that builds the Doxygen API docs and publishes them to that repo's GitHub
Pages, and a Release workflow that builds the sdist + CPU wheels (+ the CUDA wheel) and publishes them
to PyPI on a version tag. The umbrella adds the documentation site (site.yml), the metapackages
(release.yml) and the containers (containers.yml). The whole procedure is written down in
docs/RELEASE.md.
Contributing & community
Contributions are welcome — see CONTRIBUTING.md for the submodule dev setup, build/test, and PR flow. Participation is governed by the Contributor Covenant. Report security issues privately per the Security Policy. Release history lives in the CHANGELOG.
Citing
If you use Peclet in your research, please cite it. Each release is archived on Zenodo:
- All versions (concept DOI): 10.5281/zenodo.21132445 — always resolves to the latest release; use this unless you need to pin an exact version.
- A specific version: the Zenodo record lists a version DOI per release, and each GitHub release links to its own.
Machine-readable metadata is in CITATION.cff — use GitHub's "Cite this repository" button for ready-made BibTeX/APA.
Note on submodule pins
This umbrella pins each submodule to a compatible commit on main. Update to the latest upstream with
git submodule update --remote followed by a commit here that bumps the pointers.
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 peclet_cu13-0.7.0.tar.gz.
File metadata
- Download URL: peclet_cu13-0.7.0.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d51665ef600cbb357c38efc45510b58958cc8078c3e40f27e13918c75ad17109
|
|
| MD5 |
3317504c1cd0e95a844ca43476b0d400
|
|
| BLAKE2b-256 |
db1f92e348569b632269c42a2ef61279f41e59e0b6a87aedd73a9712fbfa2356
|
Provenance
The following attestation bundles were made for peclet_cu13-0.7.0.tar.gz:
Publisher:
release.yml on computational-chemical-engineering/peclet
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
peclet_cu13-0.7.0.tar.gz -
Subject digest:
d51665ef600cbb357c38efc45510b58958cc8078c3e40f27e13918c75ad17109 - Sigstore transparency entry: 2730643067
- Sigstore integration time:
-
Permalink:
computational-chemical-engineering/peclet@cc0920a5219b7500dfd3d95823e6291b5d4a1417 -
Branch / Tag:
refs/tags/v0.7.0 - Owner: https://github.com/computational-chemical-engineering
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@cc0920a5219b7500dfd3d95823e6291b5d4a1417 -
Trigger Event:
push
-
Statement type:
File details
Details for the file peclet_cu13-0.7.0-py3-none-any.whl.
File metadata
- Download URL: peclet_cu13-0.7.0-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26322b918d1fbd969729c8106624260fdd7abeb5312ad21d52a16170007cab10
|
|
| MD5 |
cdcb114dff5ea4ee6ef676383529bbb7
|
|
| BLAKE2b-256 |
c0943ca0b6c09d54870c4a89e3d0c7ee1b2955784465f7f94a7ac4129b5dd93e
|
Provenance
The following attestation bundles were made for peclet_cu13-0.7.0-py3-none-any.whl:
Publisher:
release.yml on computational-chemical-engineering/peclet
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
peclet_cu13-0.7.0-py3-none-any.whl -
Subject digest:
26322b918d1fbd969729c8106624260fdd7abeb5312ad21d52a16170007cab10 - Sigstore transparency entry: 2730643215
- Sigstore integration time:
-
Permalink:
computational-chemical-engineering/peclet@cc0920a5219b7500dfd3d95823e6291b5d4a1417 -
Branch / Tag:
refs/tags/v0.7.0 - Owner: https://github.com/computational-chemical-engineering
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@cc0920a5219b7500dfd3d95823e6291b5d4a1417 -
Trigger Event:
push
-
Statement type: