Skip to content

Preconfigured public software to generate ICs.

License

Notifications You must be signed in to change notification settings

Ezequiel92/ic_gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🏭 Galactic ICs generator

Scripts to generate isolated disk galaxy ICs for simulations using Arepo.

Folders

  • GalIC_1.0 (recommended): Version 1.0 of GalIC Yurin et al. (2014), available to download here.
  • GalIC_1.1: Version 1.1 of GalIC from this repo.
  • conversion: Public version of AREPO configured to transform ICs files to the Arepo format, and to add gas cells.

Procedure

  • To generate the dark matter (DM) only ICs, do:
cd GalIC_1.0/code # or `cd GalIC_1.1/code` depending on which version you want
./run.sh N
cd ../..

where N is the number of particles in one dimension (i.e. send 32 will produce $32^3$ DM particles).

  • To convert the DM only ICs to the AREPO format, and to add gas cells, do:
cd conversion/code
./run.sh out_filename

where out_filename is the name of the resulting HDF5 file.

Notes

  • The final IC file will have $N^3$ DM particles and $> N^3$ gas cells (the extra ones are the background cells with negligible density).

  • After both runs all intermediate files should've been removed, and the output folder should have three new files:

    • The final IC file with gas cells and DM particles.
    • The standard output from the conversion process.
    • The DM only IC file generated by GalIC.

Languages