Skip to content
Projects
Release 0.2.0

patchwork

Nested rectangular patches, serial arrays or optional MPI-backed arrays, and clear plots of the grid at every level.
  • Nested patches. Build aligned 1D or 2D refinement levels from half-open cell boxes.
  • mpiarray fields. Allocate cell-centered patch fields with halo storage. The same API works in serial without MPI.
  • Patch plots. Plot the active grid at each level or color patches by a field.
  • Small starting scope. Includes a composite finite-volume Poisson solve; particle coupling and dynamic regridding are next.
  • Installation: install Patchwork and its optional plotting tools.
  • Quickstart: create and plot a two-level mesh.
  • Live demo: refine a mesh around charges and solve their potential in your browser.
  • Examples: executed notebooks with their outputs.
  • MPI communication: how the ranks exchange halos, restrict, deposit and regrid, with figures and an explorer.
  • API reference: generated from the docstrings.