Analysis¶
CosmicGrain's explicit dust particles make it possible to connect galaxy-scale dust budgets to the underlying grain population. Analysis should preserve the distinction between where a grain is, what it is now, and where it came from.
Core analysis rules¶
- 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.
- Number versus mass weighting — grain-size and provenance distributions can look very different under the two weightings.
- Birth source versus present composition — the stellar source tag records provenance; later processing can change size and composition.
- Numerical validation versus scientific inference — a conserved whole-box budget does not imply a converged galaxy.
The shared analysis utilities should centralize periodic coordinates, halo centers, spherical-overdensity quantities, unit conversion, and target matching rather than duplicating these operations across plotting scripts.
Recommended workflow¶
- audit the complete snapshot;
- identify and center the target halo;
- measure or load
M200candR200c; - define and record the galaxy/ISM aperture;
- compute baryonic, metal, and dust budgets;
- examine grain size, composition, and stellar provenance;
- construct spatial and radial diagnostics;
- derive extinction diagnostics where appropriate; and
- export controlled inputs for radiative-transfer calculations when needed.