Skip to content

v4.5.0

Choose a tag to compare

@jameslehoux jameslehoux released this 17 Nov 15:50
· 9 commits to master since this release
2c5e358

⚠️ Numerical Notice: Tortuosity Values Differ from v4.4.x

v4.5.0 corrects the finite-volume boundary condition discretisation at the inlet and outlet faces (#300). Computed tortuosity (τ) and effective diffusivity (D_eff) values will differ slightly from <= v4.4.9:

Why values changed

  1. Exterior-face vs cell-centre Dirichlet boundary conditions (~1/N domain-length effect): Earlier versions pinned potentials at the centres of the first and last voxel layers (i = 0 and i = N - 1) while normalising flux over the full N-voxel length L = N * dx, yielding τ = (N - 1) / N on an unobstructed uniform cube (0.969 at 32³, 0.990 at 100³). v4.5.0 imposes Dirichlet potentials on the exterior domain faces (x = 0 and x = L) with half-cell boundary conductances (2 * D / dx²), giving exact τ = 1 at any grid resolution and exact analytical agreement on series and parallel laminates.
  2. Unchoked lateral transport in boundary slices: Pinning cell centres at i = 0 and i = N - 1 previously suppressed transverse flux inside the inlet and outlet voxel layers, artificially constricting surface pore throats on lower-porosity structures.

Typical magnitude of change

  • High-porosity / open structures (ε ≈ 0.60–0.89): τ increases by +0.6% to +0.9% on 100³ grids (up to +3.2% on small 32³ grids where the former (N - 1) / N domain-length bias was largest).
  • Lower-porosity, more tortuous phases (ε ≈ 0.40, τ ≈ 3.1): τ decreases by -0.5% to -4.9% on 100³ grids once artificial choking in the inlet/outlet voxel layers is removed.
  • Porosity convention reminder: OpenImpala reports tau.tortuosity = tau.active_volume_fraction / D_eff (using percolating porosity). For bulk-porosity tortuosity (ε_bulk / D_eff), multiply by vf.fraction / tau.active_volume_fraction.

Performance & Solver Improvements

  • Default GMRES(24) + matrix-free MLMG fast path (#300, #301): solver="auto" now uses AMReX MLMG as a 1-V-cycle right preconditioner inside GMRES(24) with $1/L^2$ isolated-row coarse-level scaling, a linear initial potential ramp, O(N) CPU BFS flood-fill percolation, and MPI-rank-aware box sizing — delivering O(N) iteration scaling on porous media (~25× faster and ~3× lower memory than HYPRE pcg+smg at 128³).

Bug Fixes, CLI & Verification

  • Python I/O bindings (#302): Fixed oi.read_image() / Reader.threshold() ghost-cell staging (nGrow == 0 reader buffer → 1-ghost VoxelImage::mf) and inter-box FillBoundary() exchange across MPI ranks.
  • CLI & docs (#302): Updated the openimpala CLI (--version from package metadata, --solver auto|mlmg|..., --preconditioner smg|pfmg, --max-grid-size auto), fixed README.md Quick Example attributes and container binary path, and updated paper.md wheel/backend descriptions.
  • Citations, V&V & MPI CI (#302): Verified and corrected references across all tutorial notebooks (01–07) and paper.bib, replaced the placeholder canonical validation script (tests/validation/fetch_canonical_data.py) with a 100³ X/Y/Z finite-volume cross-verification, and added 2-rank mpirun pytest CI coverage.

What's Changed

  • Correct voxel tortuosity boundary conditions and avoid MLMG cut-face aborts by @jameslehoux in #300
  • perf(tortuosity): GMRES-accelerated MLMG, O(N) CPU flood fill, and auto box sizing by @jameslehoux in #301
  • fix(v4.5.0): verified citations, MLMG-ready CLI, canonical V&V, and 2-rank MPI pytest by @jameslehoux in #302

Full Changelog: v4.4.9...v4.5.0