-
Notifications
You must be signed in to change notification settings - Fork 75
/
default_config.ini
435 lines (362 loc) · 10.8 KB
/
default_config.ini
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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
# DO NOT alter this file directly
#
# If you want to override options, either create a local copy called
# config.ini in the directory where pynbody is installed, create a local
# copy called .pynbodyrc in your home directory, or a local copy called
# config.ini in the directory where you are running pynbody.
[general]
verbose: False
snap-class-priority: RamsesSnap, GrafICSnap, NchiladaSnap, GadgetSnap, SwiftSnap, EagleLikeHDFSnap, GadgetHDFSnap, SubFindHDFSnap, TipsySnap, AsciiSnap
halo-class-priority: HaloNumberCatalogue, AmigaGrpCatalogue, VelociraptorCatalogue, SubFindHDFHaloCatalogue, RockstarCatalogue, AHFCatalogue, SubfindCatalogue, NewAdaptaHOPCatalogue, AdaptaHOPCatalogue, HOPCatalogue, Gadget4SubfindHDFCatalogue, ArepoSubfindHDFCatalogue, TNGSubfindHDFCatalogue
centering-scheme: ssc
threading: True
number_of_threads: -1
# -1 above indicates to detect the number of processors
gravity_calculation_mode: direct
disk-fit-function: expsech
# number of points to use in cosmological function interpolations e.g. t->a transformations
cosmo-interpolation-points: 1000
# The following section defines the families in the format
# main_name: alias1, alias2, ...
#
# To add your own families, just add lines like this to
# your own local copy.
#
# Note that the alias list can be blank, i.e. if you want
# no aliases for particle family 'main_name', write:
# main_name:
#
[families]
dm: d, dark
star: stars, st, s
gas: g
neutrino: n, neu
bh:
debris:
gas_tracer:
dm_tracer:
star_tracer:
cloud_tracer:
debris_tracer:
cloud:
[sph]
smooth-particles: 32
tree-leafsize: 16
Kernel: CubicSpline
# Note that all smooths are now threaded according to number_of_threads
# in [general] above. The algorithm is now exact.
# This switches on threading for rendering images. There is unlikely to be
# any reason you'd want to turn this off except for testing.
threaded-image: True
# This switches on an approximate rendering algorithm that
# slightly degrades quality but radically speeds things up (especially
# for projected images).
approximate-fast-images: True
[gadgethdf-type-mapping]
gas: PartType0
dm: PartType1, PartType2, PartType3
star: PartType4
bh: PartType5
[gadgethdf-name-mapping]
Coordinates: pos
Velocity: vel
Velocities: vel
ParticleIDs: iord
Masses: mass
Mass: mass
InternalEnergy: u
Temperature: temp
GFM_Metallicity: metals
Metallicity: metals
SmoothedMetallicity: smetals
Density: rho
SmoothingLength: smooth
StellarFormationTime: aform
GFM_StellarFormationTime: aform
Potential: phi
ElementAbundance/Iron: Fe
ElementAbundance/Silicon: Si
ElementAbundance/Magnesium: Mg
ElementAbundance/Oxygen: O
ElementAbundance/Neon: Ne
ElementAbundance/Hydrogen: H
ElementAbundance/Helium: He
ElementAbundance/Carbon: C
ElementAbundance/Nitrogen: N
[swift-name-mapping]
Coordinates: pos
Velocities: vel
FOFGroupIDs: grp
Masses: mass
Potentials: phi
Softenings: eps
ParticleIDs: iord
Densities: rho
InternalEnergies: u
Pressures: p
SmoothingLengths: smooth
[default-cosmology]
# from Planck+WP+highL+BAO, 1303.5076 Table 5
a: 1.0
h: 0.6777
ns: 0.96
running: 0.0
omegaL0: 0.691
omegaM0: 0.309
omegaB0: 0.0482
sigma8: 0.8288
[default-array-dimensions]
pos: cm
vel: cm s^-1
eps: cm
phi: cm^2 s^-2
accg: cm s^-2
mass: kg
temp: K
Tinc: K
tempEff: K
rho: kg cm^-3
den: kg cm^-3
smooth: cm
tform: s
timeform: s
HI: 1
HeI: 1
HeII: 1
FeMassFrac: 1
OxMassFrac: 1
coolontime: s
p: Pa
u: km^2 s^-2
uHot: km^2 s^-2
massform: kg
massHot: kg
MassHot: kg
# ramses RT stores radiation density in flux units:
rad_0_rho: cm^-2 s^-1
rad_0_flux: cm^-2 s^-1
[tipsy]
binary-int-arrays: iord, igasorder, grp
[gadget-type-mapping]
gas: 0
dm: 1,5
star: 2,3,4
[gadget-name-mapping]
HSML: smooth
ID: iord
[gadget-1-blocks]
# The default block order for Gadget-1 files.
# Not all blocks need be present
blocks=HEAD,POS,VEL,ID,MASS,U,NH,NHE,HSML,SFR
[nchilada-name-mapping]
# this maps the nchilada XML names (not filenames) to pynbody names
position: pos
potential: phi
smoothlength: smooth2
temperature: temp
GasDensity: rho
timeform: tform
[ramses-name-mapping]
# For RAMSES format post November 2017: map the names in the part_file_descriptor.txt to pynbody names
position_x: x
position_y: y
position_z: z
velocity_x: vx
velocity_y: vy
velocity_z: vz
identity: iord
levelp: level
birth_time: tform
# map the names in the XXXX_file_descriptor.txt to pynbody names
density: rho
pressure: p
metallicity: metal
[ramses]
# For RAMSES format post November 2017: map the raw particle family ID to the pynbody family type
# families >0 in ascending order (1, 2,..)
# the last family in the list is also assigned to all other positive families
type-mapping-positive: dm, star, cloud, debris
# families ≤0 in descending order (i.e. 0, -1, -2,..)
# the last family in the list is also assigned to all other negative families
type-mapping-negative: gas_tracer, dm_tracer, star_tracer, cloud_tracer, debris_tracer
# family for the additional sink.csv file
type-sink: bh
# For the use of proper (if True) or conformal (if False) time when reading the age of star particles.
# Should be turned to true the namelist flag use_proper_time is set to true
# or for radiative transfer simulations.
# By default, this will be guessed from the dataset.
# proper_time: False
# The default particle blocks for RAMSES files
particle-blocks=x,y,z,vx,vy,vz,mass,iord,level,tform,metal
particle-format=f8,f8,f8,f8,f8,f8,f8,i4,i4,f8,f8
# For RAMSES format up to November 2017:
# particle-distinguisher indicates the particle block which is non-zero for stars (0-based, so 9=age by default)
particle-distinguisher=9,f8
# hydro-blocks in 3D. Anything ending in z will be removed for 2D snapshots.
hydro-blocks=rho,vx,vy,vz,p,metal
gravity-blocks=phi,accg_x,accg_y,accg_z
# rt blocks where %d represents the waveband number
rt-blocks=rad_%d_rho,rad_%d_flux_x,rad_%d_flux_y,rad_%d_flux_z
# The following flag lets RamsesSnaps be read by multiple threads.
# If parallel_read>=2, that is the number of workers used to read
# a file. If parallel_read<=1, single threading is used.
#
parallel-read=8
# specify the locations of RAMSES utilities -- obtain from
# https://bitbucket.org/rteyssie/ramses
ramses_utils = $HOME/ramses/utils/
# If true, use part2birth to convert from conformal to physical time
use_part2birth_by_default = False
[gadget-default-output]
# Gadget files have no intrinsic set of fields, so this defines a
# default set and an ordering too (in terms of the pynbody names,
# not the gadget block names)
all = pos, vel
gas = u, nh, nhe, smooth, sfr
# Any arrays not mentioned in the field ordering below will be
# tacked on the end of the file in an unspecified order
field-ordering = pos, vel, iord, mass, u, nh, nhe, smooth, sfr
[gadget-units]
# The default units for Gadget files. Note that Gadget-HDF files
# store unit information so this is only used for old-style
# Gadget binary files.
#
# Cosmological dependencies (a and h) will be stripped out for non-
# cosmological runs.
vel: km s^-1 a^1/2
pos: Mpc a h^-1
mass: 1e10 Msol h^-1
[tipsy-default-output]
# Tipsy files come with a default set of fields which will be written
# so this just specifies any extra arrays to be written out
[irreducible-units]
# This defines the irreducible units, which cannot be expressed in
# terms of anything more basic. We include in this cosmological
# quantities 'a' and 'h' which are typically substituted for numerical
# values at some point in the calculation.
names: m, s, kg, K, a, h, aform, rad
[named-units]
# The next section defines the named units which are derived from the
# above irreducible units. The file is processed sequentially so that
# later entries can refer to previous named units.
# Times
yr: 3.1556926e7 s
kyr: 1000 yr
Myr: 1000 kyr
Gyr: 1000 Myr
Hz: s^-1
kHz: 1e3 Hz
MHz: 1e6 Hz
GHz: 1e9 Hz
THz: 1e12 Hz
# Distances
angst: 1e-10 m
cm: 0.01 m
mm: 1e-3 m
nm: 1e-9 m
km: 1000 m
au: 1.49598e11 m
pc: 3.08568025e16 m
kpc: 1000 pc
Mpc: 1000 kpc
Gpc: 1000 Mpc
# Solid Angle
sr: rad^2
deg: 0.01745329251 rad
arcmin: 0.01666666666 deg
arcsec: 0.01666666666 arcmin
# Masses
Msol: 1.98892e30 kg
# NB the above value is considerably out of date, and kept for now for backwards compatibility
# a better value is 1.98842e30 kg (see https://iau-a3.gitlab.io/NSFA/NSFA_cbe.html#GMS2012)
g: 1.0e-3 kg
m_p: 1.67262158e-27 kg
m_e: 9.10938188e-31 kg
# Forces
N: kg m s^-2
dyn: g cm s^-2
# Energies
J: N m
erg: 1.0e-7 J
eV: 1.60217646e-19 J
keV: 1000 eV
MeV: 1000 keV
# Pressures
Pa: J m^-3
# Redshift
(1+z): a^-1
# Helpful physical quantities
k: 1.3806503e-23 J K^-1
c: 299792458 m s^-1
G: 6.67300e-11 m^3 kg^-1 s^-2
hP: 6.626068e-34 m^2 kg s^-1
[units-latex]
# Latex code for typesetting named units.
Msol: M_{\odot}
m_p: m_p
m_e: m_e
[AHFCatalogue]
# settings for the AHF Catalogue reader
AutoRun: False
# automatically attempt to run AHF if no catalogue can be found
# on disk
Path: None
# /path/to/AHF, or None to attempt to find it in your $PATH
Config: [AHF]
ic_filename = %(filename)s
ic_filetype = %(typecode)d
outfile_prefix = %(filename)s
LgridDomain = 256
LgridMax = %(gridmax)d
NperDomCell = 5
NperRefCell = 5
VescTune = 1.5
NminPerHalo = 50
RhoVir = 0
Dvir = 200
MaxGatherRad = 10.0
ConfigTipsy: [TIPSY]
TIPSY_OMEGA0 = %(omega0)f
TIPSY_LAMBDA0 = %(lambda0)f
TIPSY_BOXSIZE = %(boxsize)e
TIPSY_VUNIT = %(vunit)e
TIPSY_MUNIT = %(munit)e
TIPSY_EUNIT = %(eunit)e
[RockstarCatalogue]
# settings for the Rockstar Catalogue reader
AutoRun: True
# automatically attempt to run AHF if no catalogue can be found
# on disk
Path: None
# /path/to/rockstar, or None to attempt to find it in your $PATH
AutoGrp: False
# set to true to automatically create a 'grp' array on load
# The grp array
AutoPid: False
# set to true to automatically create a 'pid' array on load
# the PID array is another way to get the particle IDs in the ancestor snapshot,
# but the framework provides h[n].get_index_list(f) for halo catalogue h and
# base snapshot f, so you probably don't need AutoPid
Config: FILE_FORMAT = %(format)s
PARTICLE_MASS = %(partmass)d
SCALE_NOW = %(expfac)f
h0 = %(hub)f
Om = %(omega0)f
Ol = %(lambda0)f
TIPSY_LENGTH_CONVERSION = %(boxsize)e
TIPSY_VELOCITY_CONVERSION = %(vunit)e
TIPSY_MASS_CONVERSION = %(munit)e
FORCE_RES = %(softening)e
OUTPUT_FORMAT = BINARY
[camb]
# To use CAMB live (e.g. to generate consistent power spectra automatically) you will need
# to compile the default version of CAMB (ini-file driver) and set up the path to the
# executable. Download CAMB here: http://camb.info
path: /path/to/camb
[SubfindHDF]
FoF-ignore: SF, NSF, Stars
Sub-ignore: GrNr, FirstSubOfHalo, SubParentHalo, SubMostBoundID, InertiaTensor, SF, NSF, NsubPerHalo, Stars
[shared-array]
# delay in seconds between detecting a buffer is no longer needed and releasing the underlying memory
# This delay is necessitated by implementation details (see pynbody.array.shared)
cleanup-delay: 1e-2