Worked Examples¶
These programs develop the dataset API with analytic answers, independently of a simulation solver. They run with NumPy and a Tack backend; figures are optional.
| Example | Numerical check | Chapter |
|---|---|---|
| data_spaces.py | Construct L2 and quadratic H1 fields; node diagrams, a DG jump and basis profiles | Field construction |
| data_meshes.py | Grid counts, cube volume, polygon area and chain length | Build Meshes |
| data_fields.py | Point/cell projection, a material jump and exact affine gradients | Fields and Spaces |
| data_analysis.py | Threshold/clip volumes, contour area, sampled values and analytic rotation | Filter and Analyze |
| data_mesh_kernels.py | A selected-cell output and an oriented face flux balance | Write Mesh Algorithms |
| data_filters.py | Five built-in filters rewritten with public names, each held to the built-in | Write a Filter |
uv run python docs/examples/data_analysis.py --arch cpu --check
uv run --with matplotlib python docs/examples/data_analysis.py --output filters.png
The pipeline chapter connects these operations to probing, streamline integration and external tools.

