bwkeller / starbox64

A star in a box IC creation tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Starbox64

A tool for making Initial Conditions For Feedback/ISM Simulations

Starbox64 is a simple python script for generating initial conditions for unit testing stellar feedback. This is a simple tool for making simple ICs: a single star (cluster) particle in the center of a uniform, periodic box of gas. Currently, starbox64 can generate initial conditions in gadget/AREPO HDF5 format, but tipsy support will be added any day now.

Usage

./starbox64 boxSize boxN starMass -n NUM | -d RHO | -g MASS [OPTIONS]

Starbox will generate an HDF5 file named with the box resolution, size, and star mass.

Arguments/Options

By specifying one of -n, -d, or -g, the gas particle mass can be determined.

  • boxSize: The size of the box, in parsecs
  • boxN: The number of particles per box length
  • starMass: The mass of the star particle in solar masses
  • -n NUM: Set the gas density of the box to NUM, in H/cc
  • -d RHO: Set the gas density of the box to RHO, in Msol/pc^3
  • -g MASS: Set the gas particle mass to MASS, in Msol
  • -c: Write out quantities with CGS units.
  • -m: Write out quantities with Msol, pc, and km/s units.

About

A star in a box IC creation tool


Languages

Language:Python 100.0%