Skip to content

Getting Started

CosmicGrain is distributed as a complete GADGET-4-based simulation code with explicit, on-the-fly dust evolution. It is not intended to be copied into an arbitrary GADGET-4 or AREPO checkout as a drop-in plug-in.

A reliable first run has four prerequisites:

  1. obtain the CosmicGrain source and build it with NTYPES=7, IDS_64BIT, and the required dust, hydrodynamic, star-formation, feedback, and metals options;
  2. use an HDF5 initial condition whose particle-count arrays support seven particle types;
  3. provide every required runtime dust and feedback parameter; and
  4. verify the parsed [DUST_FLAGS] summary before evolving the simulation.

Choose your path

Run the existing model: start with Installation, Compilation, and Quick Start.

Change a dust scenario: after a successful reference run, use Parameter Files, the Dust Physics pages, and the Parameters reference.

Add new dust physics: first reproduce a reference run, then read the Developer Guide and Adding New Physics.

The current research suite uses MUSIC2 zoom initial conditions and seven particle types. Empty PartType6 at the initial redshift is expected: dust particles are created later by the stellar source channels.