Skip to content

v5.0.0

Latest

Choose a tag to compare

@jameslehoux jameslehoux released this 20 Nov 11:58
· 4 commits to master since this release
3552827

OpenImpala v5.0.0 — Major Relaunch & JOSS 2026 Release

Major API consistency, runtime diagnostics, electrochemistry interoperability, and JOSS 2026 release.

Breaking API Clean-Up

  • Unified explicit phase parameter — volume_fraction(), percolation_check(), tortuosity(), tortuosity_all(), effective_diffusivity(), connected_components(), particle_size_distribution(), through_thickness_profile(), and rev_study() now require phase explicitly on single-phase calls, eliminating the historical phase=0 vs phase=1 default split (multi-phase phase_diffusivities={...} calls continue to require no phase).

Runtime UX, MPI Lifecycle & Wheel Hardening

  • Zero-config OpenMPI discovery & loud fallback warning — Linux wheels embed $ORIGIN/../../.. ELF DT_RUNPATH and preload pip/uv/Conda openmpi libraries automatically (pip install "openimpala[openmpi]"), while HPC module load openmpi (LD_LIBRARY_PATH) retains precedence. If _core is installed yet fails to load, import openimpala emits a one-time RuntimeWarning with exact dlopen diagnostics and remediation commands.
  • Quiet default AMReX lifecycle & multi-session MPI persistence — AMReX startup banners, TinyProfiler timing tables, and Arena memory summaries are silenced by default (with oi.Session(verbose=True): or OPENIMPALA_PROFILE=1 re-enables profiling), and sequential with oi.Session(): blocks in scripts and Jupyter notebooks now keep MPI alive cleanly until interpreter exit.
  • Explicit downsample_volume() diagnostics — warns via UserWarning when truncating non-divisible trailing slices and adds tie_break="lowest" | "highest".

Battery Parameterisation (PyBaMM & Faraday BPX) & CLI Parity

  • Derived electrochemistry properties — .macmullin_number ($N_{\mathrm{M}} = \tau / \varepsilon_{\text{active}}$) and .bruggeman_exponent ($D_{\text{eff}}/D_0 = \varepsilon_{\text{active}}^b$) on TortuosityResult (#34).
  • One-call PyBaMM & Faraday BPX export — in-memory oi.to_pybamm_parameters() and BattINFO-aligned oi.export_bpx_json() across C++ and pure-Python backends (#65), plus C++ ResultsJSON.H "5.0.0" version & "Separator" parity.
  • CLI v5.0 parity & MPI rank safety — openimpala analyze adds --downsample, --deff, and --bpx-electrode {negative,positive,separator} with rank-0 output gating under mpirun.

Verification, Benchmarks & Citation Metadata

  • Empirically calibrated estimate_memory() & solver benchmarks — measured $32^3$–$256^3$ AMReX MLMG (~304–319 B/voxel) vs HYPRE (~355–1,390 B/voxel) scaling and RAM footprints (#31, #186).
  • Automated 8-case wheel V&V — every CI run and published PyPI wheel (openimpala and openimpala-cuda) is verified against closed-form analytical solutions and cross-backend parity (<1e-8).
  • Zenodo & JOSS 2026 metadata — added .zenodo.json alongside updated CITATION.cff, paper.md, docs/roadmap.md, and CIL / PoreSpy / PyBaMM documentation (#2, #4, #210, #226).

Installation

pip install "openimpala[openmpi]"      # Linux x86_64 C++/MPI wheel (or pure-Python on macOS/Windows/ARM64)
pip install openimpala-cuda openmpi    # Linux x86_64 CUDA 12 GPU wheel

What's Changed

  • feat(v5.0.0): OpenMPI auto-discovery, quiet AMReX UX, explicit phase API & JOSS benchmarks by @jameslehoux in #307

Full Changelog: v4.7.0...v5.0.0