-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathparams.py
161 lines (114 loc) · 4.1 KB
/
params.py
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
from aart_func import *
########################################################
#params in this section:
# - are ignored when running Line-AART via in-line functions
# - are used when running Line-AART via .py files in params_run folder
# - can be change via params_run/Edit_params.py
#BH's Spin
spin_case=0.53
#Observer's inclination
i_case=20
#Velocity Profile for the gas
#Sub-Kepleniarity param
sub_kep=0.9
#Radial velocity param
betar=0.9
#Angular velocity param
betaphi=0.9
#Disk Emissivity I(r) = ( r^(-sigma) - r_0^(-sigma) ) Heaviside( r_0 - r )
#Emissivity fall off
sigma=3
#Emissivity cut off
r_0=200
#Disk Emission Energy, in rest frame of gas
E_s=7
#Disk Geometry, min and max disk radius
r_min=4.114523239768497
r_max=200
# energy bin width for spectrum
E_binwidth=0.05
########################################################
#params in this section:
# - are used when running Line-AART via in-line functions or .py files in params_run folder
# - can be change via params_run/Edit_params.py
PrintStats=1
if PrintStats==True:
print("\nThanks for using Line-AART")
#Limits for the image [M].
limits=15
#Resolution for the n=0 image [M], [radians]
drho0=0.001
dvarphi0=0.001
#Resolution for the n=1 image [M], [radians]
drho1=0.001
dvarphi1=0.001
#Resolution for the n=2 image [M], [radians]
drho2=0.001
dvarphi2=0.001
#Turn on/off the n=0,1,2 in LensingBands, RayTrace, and RedshiftFactors/Intensities
on_l0=1
on_l1=1
on_l2=1
on_r0=1
on_r1=1
on_r2=1
on_g0=1
on_g1=1
on_g2=1
N_on_l=[on_l0, on_l1, on_l2]
N_on_r=[on_r0, on_r1, on_r2]
N_on_g=[on_g0, on_g1, on_g2]
########################################################
#miscellaneous params
# Number of points in the critical curve
npointsS=100
#If equal to 1, the sizes of the grids will be equal and an image can be computed
#by summing the contributions
p_image=0
#Current version is just implemented for equatorial models
i_disk=90
thetad=i_disk*np.pi/180
# Distance to the BH in meters (default: M87)
dBH=5.214795112e23
# BH mass-to-distance ratio (default: 1/psi= 6.2e9 Kg)
psi=1.07473555940836
#Observer's distance in units of M
D_obs=1e50
Gc=6.67e-11 # G constant [m^3 kg^-1 s^-2]
cc= 2.99792458e8 # c constant [m/s]
Msc=1.988435e30 # Solar Mass [Kg]
MMkg= 6.2e9*psi*Msc # [Kg]
MM=MMkg *Gc/cc**2 # Mass of the BH in meters, i.e., for M87(psi*6.2*10^9) psi ("Best fit") Solar Masses
# Size of the real image in meters
sizeim_Real=(limits)*MM
#1 microarcsec in radians
muas_to_rad = np.pi/648000 *1e-6
fov_Real=np.arctan(sizeim_Real/(dBH))/muas_to_rad #muas
#print("FOV= ",np.round(2*fov,2),"muas")
###############################################################################
#results path in this section:
# - can be change via params_run/Edit_params.py
#Path where the results will be stored
path="./Results_Examples_Part2/"
# Create a directory for the results
isExist = os.path.exists(path)
if not isExist:
os.makedirs(path)
print("A Results directory was created to store the results")
###############################################################################
'''
MIT license
Permission is hereby granted, free of charge, to any person obtaining a copy of this
software and associated documentation files (the "Software"), to deal in the Software
without restriction, including without limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of the Software, and to permit
persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies
or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
'''