discretize

Installation
SKILL.md

discretize

Construct the mesh and location-aware operators before attaching physical data. The library does not determine the CRS or the physical units of its coordinates.

Choose geometry and data locations

Use TensorMesh for separable rectangular grids; choose TreeMesh when local refinement substantially reduces cost. Finalize a tree before using its operators. Pad model boundaries and refine sources, receivers and property contrasts as required by the forward problem, then test domain and resolution sensitivity.

Record axis meanings, origin, units, cell widths and active-cell mask. In a 2D vertical section the second coordinate can mean elevation, but this is a project convention. A vector of length n_cells is not a face or edge vector.

Divergence with an independent answer

Installs
10
GitHub Stars
70
First Seen
Sep 27, 2026