useful scripts for running and analyzing STARFORGE simulations
Add dust particles to an existing gas-only snapshot
Add a star particle with arbitrary properties to an existing snapshot
Computes density, velocity, and B-field structure functions
Find self-gravitating iso-density contours
Generate snapshots with stars only from gas+stars snapshots
Apply zip compression and trim unnecessary data fields from snapshots
Markov Chain Monte Carlo fits to IMF datasets, including Kroupa, Chabrier, Paravanno forms
Extract accretion histories for stars in a specified mass range
Extract initial masses for all stars that ever form in a simulation
Compute temperature from other thermochemical quantities, use only if Temperature is not available in the data
Tout fitting functions for zero-age main sequence stellar properties
Simple Bayesian power-law posterior estimation for IMF fitting
Some useful special functions: Planck integrals, log-poisson function