Tutorials#

Each tutorial below is executed automatically during documentation builds—all tables, diagnostics, and Matplotlib figures reflect live openimpala outputs. Click any card to read the rendered notebook with full equations and outputs, or launch it interactively in Google Colab.

01 — Steady-State Diffusion & 3D Fields

Verify exact analytical slab transport (\(\tau = 1\)), load a 3D TIFF tomogram, check percolation, solve \(\nabla \cdot (D_0 \nabla \phi) = 0\), and inspect 3D potential and local flux bottleneck maps.

Steady-State Diffusion and 3D Field Inspection
02 — Microstructure Metrics & Non-Cubic Voxels

Verify the \(2/3\) Cauchy–Crofton specific surface area correction against analytical spheres, extract connected components and particle radii, and evaluate directional tortuosity on non-cubic FIB-SEM voxels.

Microstructural Metrics, Anisotropy, and Non-Cubic Voxels
03 — Periodic Homogenisation & \(3\times 3\) \(\mathbf{D}_{\text{eff}}\)

Solve the periodic corrector cell problems on a tilted laminate to recover off-diagonal coupling (\(D_{xz} = D_{zx}\)) and principal transport axes, and compare periodic homogenisation with Dirichlet flow-through.

Periodic Homogenisation and the 3\times 3 Effective Diffusivity Tensor
04 — Multi-Phase Transport in Composite Media

Benchmark harmonic interface conductances against exact Voigt and Reuss bounds, then model ionic bridging across nanoporous binder shells when primary macropores lose percolation.

Multi-Phase Transport in Composite Media
05 — Representative Elementary Volume (REV)

Quantify scale convergence and spatial uncertainty across cubic subvolume windows \(L \in [16, 64]\) voxels with bootstrap 95% confidence intervals and the 5% coefficient-of-variation criterion.

Representative Elementary Volume (REV) Convergence
06 — Cloud-Native OME-Zarr & Out-of-Core yt Plotfiles

Export chunked OME-NGFF v0.4 Zarr tomograms with physical scale metadata, write AMReX HyperCLaw-V1.1 plotfiles directly from tortuosity and effective_diffusivity, and slice fields lazily with yt.

Cloud-Native OME-Zarr, Out-of-Core yt Plotfiles & ML Datasets

Running Locally or on Google Colab#

To run the notebooks locally:

pip install "openimpala[zarr,viz]" jupyter
jupyter lab tutorials/