-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathConstants.h
133 lines (83 loc) · 3.12 KB
/
Constants.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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
/****************************************************************************/
/* */
/* TITLE: Preprocessor Macros For The Galactic Background */
/* */
/* ABSTRACT: This header file contains a number of constants used */
/* throughout the making of the galactic backgound realizations. */
/* */
/****************************************************************************/
/* -------------- MATHEMATICAL CONSTANTS -------------- */
/* Set the value of pi */
#define pi 3.141592653589793
#define sq2pi 2.506628274631
#define TPI 6.2831853071795865
/* Square root of 3 */
#define sq3 1.73205080757
/* ---------------- NATURAL CONSTANTS ----------------- */
/* Speed of light (m/s) */
#define clight 299792458.
/* Number of seconds in a sidereal year */
#define year 3.15581498e7
/* Number of seconds in a day */
#define day 86400.0
/* Number of second in hour */
#define hour 3600.0
/* Newton's gravitational constant (mks) */
#define G 6.67259e-11
/* Astronomical unit (meters) */
#define AU 1.49597870660e11
/* Number of meters in a parsec */
#define pc 3.0856775807e16
/* Number of meters in a kiloparsec */
#define kpc 3.0856775807e19
/* Distance bewteen the Sun and the center of the galaxy (kpc) */
#define Rsun 8.5
/* Mass of the Sun (kg) */
#define Msun 1.9889e30
/* Mass of the Sun (s) */
#define TSUN 4.92569043916e-6
#define h22fac 0.31539156525252 // 2.*sqrt(5./(64.*PI)) factor for h22 to h conversion
#define STtoSQD 3282.8063500117437948 // steradians to square degree
/* ---------------- DETECTOR CONSTANTS ---------------- */
/* Observation time (seconds) */
#define Tobs 41943040.0
/* Number of data points */
#define NFFT 4194304
#define dt 10.0
/* how far back in time to start */
#define Tpad 1.0e6
/* Initial azimuthal position of the guiding center */
#define kappa0 0.0
/* Initial orientation of the LISA constellation */
#define lambda0 0.0
/* Orbital radius of the guiding center */
#define Rgc (1.0*AU)
/* Mean arm length of the LISA detector (meters) */
#define Larm 2.5e9
/* Photon shot noise power */
#define Sps 2.25e-22
/* Acceleration noise power */
#define Sacc 9.0e-30
/* Transfer frequency */
#define fstar 0.01908538064
/* LISA orbital eccentricity */
#define ec 0.0048241852175
/* LISA modulation frequency */
#define fm 3.168753575e-8
#define sq3 1.73205080757
#define GEOM 4.92569043916e-6
#define NP 11
#define NI 6
#define NE 7
#define MF 4096
/* set to zero for no noise likelihood */
#define nflag 1
/* set to zero for no cut to data */
#define cut 0
/* length of cosine filter used to cut data */
#define t_rise 5.0e4
#define NC 16
/* set to 1.0e-3 for v1, 0.0 for v2 */
#define PDfref 0.0
/* set to 1 for prior recovery test */
#define lhold 0