Analysis¶
CosmicGrain analysis must preserve three distinctions:
- halo versus galaxy apertures —
R200cis not interchangeable with a fixed physical ISM aperture; - gas-phase versus total metals — D/Z depends on which metal reservoir is used; and
- numerical validation versus scientific inference — a conserved whole-box budget does not imply a converged galaxy.
The shared analysis modules are halo_utils.py and zoom_halo_utils.py.
They centralize periodic coordinates, halo centers, spherical-overdensity
quantities, unit conversion, and target matching. New scripts should use
these utilities rather than reimplementing centering or units.
Recommended analysis order:
- audit the complete snapshot;
- identify and center the target halo;
- measure
M200candR200c; - define and record the galaxy/ISM aperture;
- compute baryonic and dust budgets;
- examine grain size, composition, and source tags;
- construct spatial/radial diagnostics; and
- export selected snapshots to SKIRT.