Run
Use the complete CosmicGrain model for cosmological or galaxy simulations.
CosmicGrain is an open-source dust simulation code built on GADGET-4 for cosmological galaxy simulations. Individual grain populations are represented by explicit superparticles that carry their own dynamics, size, composition, and stellar origin while evolving through creation, transport, growth, collisions, and destruction.
CosmicGrain is distributed as a complete GADGET-4-based simulation code rather than a standalone plug-in. It can be used to run the included dust model, explore alternative dust prescriptions and parameters, or serve as a foundation for new dust-physics implementations.
Motivation
Grain creation, processing, and destruction occur in very different environments. By following those grains directly, CosmicGrain can ask not only how much dust a galaxy contains, but where that dust came from, how its size distribution changed, and where it ultimately survives.
The same evolving grain population can then be connected to galaxy-scale dust scaling relations, grain-size distributions, and extinction properties such as R(V).
Using CosmicGrain
Use the complete CosmicGrain model for cosmological or galaxy simulations.
Change grain sources, sizes, efficiencies, processing rates, destruction prescriptions, and other dust parameters.
Use the existing dust-particle infrastructure as a foundation for implementing and testing new dust physics.
On-the-fly evolution
A controlled physics ladder illustrates how the simulated dust distribution responds as the principal CosmicGrain processes are introduced.
SNII, AGB stars, and luminous red novae inject new grain superparticles.
Gravity and aerodynamic drag transport dust independently of the gas, with optional radiation pressure.
Gas-phase accretion, coagulation, and shattering reshape the grain population.
Thermal sputtering, supernova shocks, and astration remove grains from the population.
Tracked quantities
Dust is represented as a dynamical population rather than a passive scalar attached to gas.
Open source