Examples#
examples/demonstrate_*.py are runnable, self-contained scripts (flat
top-level ## INPUT style), mostly backed by the small datasets under
mwe_data/. Each maps to a tutorial in Tutorials. The
Needs column: pip only runs from pip install graintrace alone; the rest
need the external tool(s) shown.
Example |
What it shows |
Needs |
|---|---|---|
|
synthetic crystal → overlapping HEDM z-scans → stitch → compare to truth |
NEPER |
|
anisotropic ( |
NEPER |
|
FF Voronoi reconstruction: orientations, initial elastic strain, |
NEPER |
|
EBSD/gridded-NF voxel graph-segmentation + SCULPT hex mesh |
CUBIT/SCULPT |
|
meshing options: SCULPT flags and the no-CUBIT voxel-hex dump |
NEPER, CUBIT/SCULPT |
|
pyzag-adjoint Taylor calibration of 6 crystal-plasticity params |
NEML2 |
|
FF CPFE via NEML2 AOTI + |
NEML2, puma-opt |
|
end-to-end: NF geometry + FF initial strain CPFE |
full stack |
|
field distributions / macroscopic stress-strain / IPF |
pip only |
|
rare-event ID: graph cluster → hierarchical merge → rare VTK |
pip only |
|
REI on 2D / 3D synthetic fields |
pip only |
|
compare two REI point clouds → overlap metrics + classified VTK |
pip only |
|
match grains across load steps via a grain graph |
NEPER |
full stack = NEML2 + puma-opt + NEPER + CUBIT/SCULPT. The minimum
end-to-end check is demonstrate_cpfe_nfff.py; before running, edit the
sculpt_config, moose_run_file, ncore, and device at the top of
the script to match your machine.
To drive your own scan data, copy the demonstrate_*.py script closest to
your workflow and repoint its ## INPUT block at your files. There are no
separate real-experiment driver templates in the repository.