-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathInput_variables.h
115 lines (79 loc) · 3.02 KB
/
Input_variables.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
/*
SimFast21
*/
#ifndef __INPUT_VARIABLES__
#define __INPUT_VARIABLES__
#define PI 3.1415926535897932385E0
#define RHO_0 2.775e11 /* units of Msun/h/(Mpc/h)^3 */
/*----Declaration of functions for reading params and setting vars-----------*/
void set_cosmology_fromCAMB(char * paramfilename);
void get_Simfast21_params(char * basedir);
void print_parms(void);
/*--------------------Simfast21 variables and parameters---------------------------*/
int global_nthreads;
long int global_seed;
long int global_N_halo; //Linear number of cells of the box for determination of collapsed halos
long int global_N3_halo; //Total number of cells of the box for determination of collapsed halos
long int global_N_smooth; // Linear number of cells of the smoothed boxes
long int global_N3_smooth; // Total number of cells of the smoothed boxes
float global_smooth_factor; //Just N_halo/N_smooth
double global_L; //Physical size of the simulation box
double global_L3;//Physical volume of the simulation box
double global_dx_halo;
double global_dx_smooth;
double global_dk;
int global_vi;
/* simulation range */
double global_Dzsim;
double global_Zmaxsim;
double global_Zminsim;
double global_Zminsfr;
/*-----------------------Cosmological parameters--------------------------- */
double global_sig8_new;
double global_n_index;
double global_hubble;
double global_omega_m;
double global_omega_b;
double global_lambda;
double global_rho_m;
double global_rho_b;
/*------------------------Halo collapse parameters-----------------------------*/
double global_delta_c;
double global_STa;
double global_STb;
double global_STc;
double global_halo_Mmin;
double global_halo_Rmax;
double global_halo_dlm;
/*------------------------Ionization parameters-----------------------------*/
double global_bubble_Rmax;
int global_bubble_Nbins;
double global_xHlim; /* cutoff limit for bubble calculation */
double global_fesc; /* escape fraction */
/*----------Variables for reading matter power spectrum from file-------- */
int global_pk_flag; // Matter power spectrum: 0 - Eisenstein & Hu fitting formulae; 1 - Read form file (Output of CMBFast, CAMB)
char global_pk_filename[99];
char global_camb_file[99];
/*-------------------Flags for output files and algorithm----------------------------------*/
int global_use_sgrid;
int global_save_original_deltanl;
int global_use_Lya_xrays;
int global_use_SFR;
/*--------- Parameters for X-ray heating and Lya coupling----------*/
double global_fstar;
double global_Enu0;
double global_alphas;
double global_L0;
double global_flux_Rmax;
/* Additional variable for Lyalpha coupling and X-ray heating */
#define G 6.67300e-11
#define Msun 1.989e30 /* Kg */
#define mbar 1.67e-27 /* = mproton (Kg) */
#define mH (1.00794e-3/6.02214e23) /* Kg */
#define mHe (4.002602e-3/6.02214e23) /* Kg */
#define YHe 0.24 /* Helium mass fraction - it might be a input of CAMB*/
#define y2s (365.25*24.*3600.) /* s */
#define Mpc2m 3.08568025e22 /* m */
#define H0 3.24078e-18 /* h/sec */
//#define nmax 16 /* put as a parameter ?*/
#endif