forked from mariogrs/Simfast21
-
Notifications
You must be signed in to change notification settings - Fork 0
shaoguangleo/Simfast21
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
************************************************************************************************************************* * * * SimFast21 - new version to match code used in arXiv:1510.04280v1 * * * * Copyright 2011 Mario Santos, Luis Ferramacho, Marta Silva, Alexandre Amblard, Asantha Cooray * * * * This program is distributed under the terms of the GNU General Public License (http://www.gnu.org/copyleft/gpl.html) * * * * Contact: mariogrs@gmail.com https://github.com/mariogrs/Simfast21/tree/new_test * * * ************************************************************************************************************************* = Description = This program generates a simulation of the cosmological 21cm signal (see http://arxiv.org/abs/0911.2219 for details). To run just do: "./simfast21 base_dir" where "base_dir" is the base directory where you want your simulation to reside (note that the files can be quite big). This base directory must contain the parameters file simfast21.ini (see the copy that comes with the distribution for further details on how to use this file). The program will create the following directory structure: base_dir/density - contains the matter density (delta) box for z=0 and nonlinear boxes for all redshifts /Velocity - Velocity at z=0 /Halos - halo catalogs and nonlinear collapsed mass boxes /Ionization - ionization fraction boxes /SFR - Star formation rate density boxes /xrays - boxes to calculate heating due to xrays /Lya - Lya coupling /xc - collisional coupling /deltaTb - final 21cm brightness temperature boxes /Output_text_files - Several text files generated during the simulation (averages, etc) The folder "tools/" contains extra tools that can be used to analyse the output boxes. = Compilation = Just run make. You might need to edit "makefile" in order to compile in your system. It requires the Gnu Scientific Library and the FFTW libraries. = Description of the different .c files = --- get_densityfield.c --- It generates a 3d box (a 3d matrix) of size N_halo x N_halo x N_halo. The format is binary - each entry is a float.
About
21cm code
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- C 98.6%
- Makefile 1.4%