Changelog#
v5.0.0 (2026-11-20)#
Major API consistency, runtime diagnostics, and JOSS 2026 release.
Breaking API clean-up — explicit
phaseparameter —volume_fraction(),percolation_check(),tortuosity(),tortuosity_all(),effective_diffusivity(),connected_components(),particle_size_distribution(),through_thickness_profile(), andrev_study()now requirephaseexplicitly on single-phase calls (eliminating thephase=0vsphase=1default split across functions; multi-phasephase_diffusivities={...}calls continue to require nophase)Automatic OpenMPI discovery & loud fallback diagnostics — compiled Linux wheels embed
$ORIGIN/../../..ELFDT_RUNPATHand preloadpip/uv/Condaopenmpilibraries automatically (pip install "openimpala[openmpi]"), while HPCmodule load openmpi(LD_LIBRARY_PATH) retains precedence; if_coreexists on disk yet fails to load,import openimpalanow emits a one-timeRuntimeWarningwith exactdlopendiagnostics and remediation commandsQuiet default AMReX lifecycle —
AMReXstartup banners,TinyProfilertiming tables, and Arena memory summaries are now silenced by default so scripts and notebooks remain clutter-free; passoi.Session(verbose=True)or setOPENIMPALA_PROFILE=1to enable profiling outputExplicit
downsample_volume()warnings & tie-breaking —downsample_volume()emits aUserWarningwhen truncating non-divisible trailing slices and addstie_break="lowest" | "highest"for deterministic modal tie resolutionEmpirically calibrated
estimate_memory()& wheel analytical V&V — calibratedestimate_memory()against measuredMLMGvsHYPREpeak RAM (~310vs~1,030–1,400B/voxel) and added automated 8-case analytical & cross-backend parity verification on every CI and PyPI wheel buildPyBaMM & Faraday BPX parameterisation helpers — added
.macmullin_numberand.bruggeman_exponentproperties onTortuosityResult, in-memoryto_pybamm_parameters(), BattINFO-alignedexport_bpx_json(), and CLI parity flags (openimpala analyze --downsample --deff --bpx-electrode), plus root.zenodo.jsonarchive metadata
See the v5.0.0 release notes.
v4.7.0 (2026-11-19)#
Cloud-native OME-Zarr I/O, zero-dependency Otsu segmentation, out-of-core yt
plotfile integration, synthetic porous-media ML dataset generators, and JOSS
release polish.
Cloud-native OME-NGFF v0.4 Zarr I/O —
read_zarr_volume(),write_zarr_volume(),VoxelImage.from_zarr()/.to_zarr(), and transparent.zarrstore support inread_image()and all high-level solvers (pip install 'openimpala[zarr]')Zero-dependency Otsu thresholding —
calculate_otsu_threshold()/binarize_otsu(),VoxelImage.from_grayscale_otsu(),read_image(..., threshold="otsu"), and--threshold otsuin theopenimpalaCLIHigh-level AMReX plotfiles &
ytintegration —write_plotfile=Trueontortuosity(),tortuosity_all(), andeffective_diffusivity()pluswrite_amrex_plotfile()for out-of-core slicing and profiling withytand ParaViewSynthetic microstructures & ML surrogate generator (
openimpala.synthetic) —gaussian_blobs(),overlapping_spheres(),multiphase_electrode(),generate_ml_dataset(), andopenimpala generate-datasetCLI subcommandVerified benchmark dataset registry —
datasets.list_datasets(),datasets.fetch_example(), and pinned SHA-256 integrity checks indatasets.fetch_path()Discrete & grayscale volume coarsening —
downsample_volume()andVoxelImage.downsample()with exact majority-vote phase pooling and automatic(dz, dy, dx)scalingZero-dependency CIL &
xarrayingestion — pass STFC Core Imaging LibraryImageData(with automatic.geometryvoxel pitch extraction),xarray.DataArray,zarr.Array, orh5py.Datasethandles directly to any solverMulti-component periodic homogenisation — exact per-component pinning in
EffectiveDiffusivityHypre(CPU/MPI/CUDA) and_solver.pyeliminating near-singular modes on isolated pore pocketsRuntime & packaging hardening — PEP 561
py.typedmarker,OPENIMPALA_BACKEND=auto|cpp|pureoverride,core_load_errordiagnostics inbuild_info(), and graceful pure-Python fallback whenopenimpala-cudaruns on GPU-less login/Colab nodes
See the v4.7.0 release notes.
v4.6.0 (2026-04-17)#
Feature parity across the Python facade and C++ backends, full 3D field export, and multi-phase / non-cubic voxel support.
3D solution and corrector fields —
return_field=Trueontortuosity()(result.solution_field) andreturn_fields=Trueoneffective_diffusivity()(result.corrector_fields)Python
effective_diffusivity()— full symmetric \(3\times 3\) homogenisation tensor exposed in the high-level Python API across both C++ HYPRE and pure-Python solversMulti-phase transport (
phase_diffusivities) — arbitrary per-phase conductivity/diffusivity dictionaries intortuosity()andeffective_diffusivity()Anisotropic & physical
voxel_size— scalar or(dz, dy, dx)voxel pitches propagated consistently throughtortuosity(),specific_surface_area(),particle_size_distribution(),through_thickness_profile(), andrev_study()Complete microstructural suite in pure Python & C++ —
specific_surface_area(with Cauchy–Crofton correction),connected_components,particle_size_distribution,through_thickness_profile, andrev_study
See the v4.6.0 release notes.
v4.5.0 (2026-04-17)#
Boundary-condition accuracy upgrade and universal PyPI wheel distribution.
Exact half-cell harmonic Dirichlet BCs — inlet and outlet boundary conditions enforced at outer voxel faces (\(z = 0\) and \(z = L\)) across
TortuosityMLMG,TortuosityHypre, and the pure-Python solver, eliminating the cell-centred \((N-1)/N\) discretisation offset and matching Voigt/Reuss laminates to machine precisionTortuosityMLMGdefault fast path — matrix-free AMReX geometric multigrid is now the default solver across CPU and CUDA backendsUniversal PyPI fallback wheel —
pip install openimpalaprovides pre-compiled AMReX/HYPRE wheels on Linuxx86_64alongside a pure-Python SciPy/CuPy wheel for macOS, Windows, ARM64, and MPI-free environments
See the v4.5.0 release notes.
v4.0.0 (2026-03-29)#
Major release introducing GPU acceleration, matrix-free geometric multigrid, and C++ kernel modernisation.
CUDA GPU acceleration via
openimpala-cudaPyPI packageTortuosityMLMGsolver — matrix-free AMReX geometric multigridMicrostructural parameterisation engine — SSA, REV study, PSD, connected components
Fortran-to-C++ kernel migration — all compute kernels native C++17 AMReX lambdas
See the v4.0.0 release notes.
v3.1.0 (2026-03-10)#
Replaced
pyamrexdependency with native C++ NumPy ingestion viaVoxelImageSelf-contained PyPI wheels —
pip install openimpalawith zero compilationMemory-safe workflows: ingest data, free Python array, then solve
v3.0.0 — v3.0.2#
Python bindings via pybind11
CMake build system modernisation
scikit-build-core + cibuildwheel integration
Multi-phase transport support
v2.0.0 — v2.1.1#
AMReX upgrade and CI/CD pipeline
Catch2 test framework integration
Code coverage with Codecov
clang-format and clang-tidy enforcement
v1.0.0 — v1.1.1#
Initial public release
HYPRE-based tortuosity and effective diffusivity solvers
TIFF, HDF5, RAW, DAT image readers
Apptainer container builds