Repository navigation
v4.5.0
⚠️ 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
- Exterior-face vs cell-centre Dirichlet boundary conditions (
~1/Ndomain-length effect): Earlier versions pinned potentials at the centres of the first and last voxel layers (i = 0andi = N - 1) while normalising flux over the fullN-voxel lengthL = N * dx, yieldingτ = (N - 1) / Non an unobstructed uniform cube (0.969at32³,0.990at100³).v4.5.0imposes Dirichlet potentials on the exterior domain faces (x = 0andx = L) with half-cell boundary conductances (2 * D / dx²), giving exactτ = 1at any grid resolution and exact analytical agreement on series and parallel laminates. - Unchoked lateral transport in boundary slices: Pinning cell centres at
i = 0andi = N - 1previously 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%on100³grids (up to+3.2%on small32³grids where the former(N - 1) / Ndomain-length bias was largest). - Lower-porosity, more tortuous phases (
ε ≈ 0.40,τ ≈ 3.1):τdecreases by-0.5%to-4.9%on100³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 byvf.fraction / tau.active_volume_fraction.
Performance & Solver Improvements
-
Default
GMRES(24)+ matrix-freeMLMGfast path (#300, #301):solver="auto"now uses AMReXMLMGas a 1-V-cycle right preconditioner insideGMRES(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 — deliveringO(N)iteration scaling on porous media (~25×faster and~3×lower memory than HYPREpcg+smgat128³).
Bug Fixes, CLI & Verification
- Python I/O bindings (#302): Fixed
oi.read_image()/Reader.threshold()ghost-cell staging (nGrow == 0reader buffer → 1-ghostVoxelImage::mf) and inter-boxFillBoundary()exchange across MPI ranks. - CLI & docs (#302): Updated the
openimpalaCLI (--versionfrom package metadata,--solver auto|mlmg|...,--preconditioner smg|pfmg,--max-grid-size auto), fixedREADME.mdQuick Example attributes and container binary path, and updatedpaper.mdwheel/backend descriptions. - Citations, V&V & MPI CI (#302): Verified and corrected references across all tutorial notebooks (
01–07) andpaper.bib, replaced the placeholder canonical validation script (tests/validation/fetch_canonical_data.py) with a100³X/Y/Z finite-volume cross-verification, and added 2-rankmpirun pytestCI 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