-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsimlists.py
579 lines (534 loc) · 24.2 KB
/
simlists.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
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
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
'''
convenient lists of simulations to avoid copying lists too often
'''
import fire_an.makeplots.tol_colors as tc
import fire_an.utils.opts_locs as ol
# clean: ICs for each noBH/AGN-noCR/AGN-CR run, snapshots down to z=0.5
# 15 IC + phys
m13_nobh_clean1 = [
'm13h206_m3e5_MHD_fire3_fireBH_Sep182021_crdiffc690_sdp1e10_gacc31_fa0.5',
'm13h113_m3e5_MHD_fire3_fireBH_Sep182021_crdiffc690_sdp1e10_gacc31_fa0.5',
]
m13_agnnocr_clean1 = [
('m13h113_m3e4_MHD_fire3_fireBH_Sep182021_hr_crdiffc690_sdp1e-4_gacc31'
'_fa0.5'),
('m13h206_m3e4_MHD_fire3_fireBH_Sep182021_hr_crdiffc690_sdp3e-4_gacc31'
'_fa0.5'),
]
m13_agncr_clean1 = [
('m13h206_m3e5_MHDCRspec1_fire3_fireBH_fireCR1_Oct252021_crdiffc1_sdp1e-4'
'_gacc31_fa0.5_fcr1e-3_vw3000'),
('m13h113_m3e5_MHDCRspec1_fire3_fireBH_fireCR1_Oct252021_crdiffc1_sdp1e-4'
'_gacc31_fa0.5_fcr1e-3_vw3000'),
]
m12_nobh_clean1 = [
'm12f_m7e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690_sdp1e10_gacc31_fa0.5',
'm12i_m7e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690_sdp1e10_gacc31_fa0.5',
'm12m_m7e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690_sdp1e10_gacc31_fa0.5',
]
m12_agnnocr_clean1 = [
'm12f_m7e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690_sdp2e-4_gacc31_fa0.5',
'm12i_m7e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690_sdp2e-4_gacc31_fa0.5',
'm12m_m7e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690_sdp2e-4_gacc31_fa0.5',
]
m12_agncr_clean1 = [
('m12f_m6e4_MHDCRspec1_fire3_fireBH_fireCR1_Oct252021_crdiffc1_sdp1e-4'
'_gacc31_fa0.5_fcr1e-3_vw3000'),
('m12i_m6e4_MHDCRspec1_fire3_fireBH_fireCR1_Oct252021_crdiffc1_sdp1e-4'
'_gacc31_fa0.5_fcr1e-3_vw3000'),
('m12m_m6e4_MHDCRspec1_fire3_fireBH_fireCR1_Oct252021_crdiffc1_sdp1e-4'
'_gacc31_fa0.5_fcr1e-3_vw3000'),
]
# adding m12q
m12_nobh_clean2 = m12_nobh_clean1 + [
'm12q_m7e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690_sdp1e10_gacc31_fa0.5',
] # len 4
m12_agnnocr_clean2 = m12_agnnocr_clean1 + [
'm12q_m7e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690_sdp2e-4_gacc31_fa0.5',
] # len 4
m12_agncr_clean2 = m12_agncr_clean1 + [
('m12q_m6e4_MHDCRspec1_fire3_fireBH_fireCR1_Oct252021_crdiffc1_sdp1e-4'
'_gacc31_fa0.5_fcr1e-3_vw3000'),
] # len 4
# rest: all other sims in the noBH/AGN-noCR/AGN-CR suites.
# ICs are not complete sets for physics models.
# must have run to redshift 0.5
# 22 IC + phys
m13_nobh_rest1 = [
'm13h002_m3e5_MHD_fire3_fireBH_Sep182021_crdiffc690_sdp1e10_gacc31_fa0.5',
'm13h007_m3e5_MHD_fire3_fireBH_Sep182021_crdiffc690_sdp1e10_gacc31_fa0.5',
'm13h029_m3e5_MHD_fire3_fireBH_Sep182021_crdiffc690_sdp1e10_gacc31_fa0.5',
'm13h223_m3e5_MHD_fire3_fireBH_Sep182021_crdiffc690_sdp1e10_gacc31_fa0.5',
'm13h236_m3e5_MHD_fire3_fireBH_Sep182021_crdiffc690_sdp1e10_gacc31_fa0.5',
]
m13_agnnocr_rest1 = [
]
m13_agncr_rest1 = [
('m13h002_m3e5_MHDCRspec1_fire3_fireBH_fireCR1_Oct252021_crdiffc1'
'_sdp1e-4_gacc31_fa0.5_fcr1e-3_vw3000'),
('m13h007_m3e5_MHDCRspec1_fire3_fireBH_fireCR1_Oct252021_crdiffc1'
'_sdp1e-4_gacc31_fa0.5_fcr1e-3_vw3000'),
('m13h009_m3e5_MHDCRspec1_fire3_fireBH_fireCR1_Oct252021_crdiffc1'
'_sdp1e-4_gacc31_fa0.5_fcr1e-3_vw3000'),
('m13h029_m3e5_MHDCRspec1_fire3_fireBH_fireCR1_Oct252021_crdiffc1'
'_sdp1e-4_gacc31_fa0.5_fcr1e-3_vw3000'),
('m13h037_m3e5_MHDCRspec1_fire3_fireBH_fireCR1_Oct252021_crdiffc1'
'_sdp1e-4_gacc31_fa0.5_fcr1e-3_vw3000'),
('m13h236_m3e5_MHDCRspec1_fire3_fireBH_fireCR1_Oct252021_crdiffc1'
'_sdp1e-4_gacc31_fa0.5_fcr1e-3_vw3000'),
]
m12_nobh_rest1 = [
'm12b_m7e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690_sdp1e10_gacc31_fa0.5',
'm12c_m7e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690_sdp1e10_gacc31_fa0.5',
'm12r_m7e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690_sdp1e10_gacc31_fa0.5',
'm12w_m7e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690_sdp1e10_gacc31_fa0.5',
'm12z_m4e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690_sdp1e10_gacc31_fa0.5',
]
m12_agnnocr_rest1 = [
'm12b_m7e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690_sdp2e-4_gacc31_fa0.5',
'm12c_m7e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690_sdp1e-4_gacc31_fa0.5',
'm12r_m7e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690_sdp1e-4_gacc31_fa0.5',
'm12w_m7e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690_sdp1e-4_gacc31_fa0.5',
'm12z_m4e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690_sdp1e-4_gacc31_fa0.5',
]
m12_agncr_rest1 = [
('m12q_m6e4_MHDCRspec1_fire3_fireBH_fireCR1_Oct252021_crdiffc1_sdp1e-4'
'_gacc31_fa0.5_fcr1e-3_vw3000'),
]
# m12q -> clean2
m12_nobh_rest2 = m12_nobh_rest1.copy() # len 5
m12_agnnocr_rest2 = m12_agnnocr_rest1.copy() # len 5
m12_agncr_rest2 = [] # len 0
m12_f2md = ['m12z_r4200',
'm12w_r7100',
'm12r_r7100',
'm12i_r7100',
'm12c_r7100',
'm12b_r7100',
'm12m_r7100',
'm12f_r7100',
'crheatfix_m12f_r7100',
'crheatfix_m12i_r7100',
] # len 10
# m12g_r7100: re-running after snapshots at z > 0 corrupted
m12plus_f3nobh = ['fire3nobh_plus_m12j_r7100',
'fire3nobh_plus_m12n_r7100',
'fire3nobh_plus_m12x_r3500',
] # len 3
# lower-res sims, but hr snapshots
m12plus_f3nobh_lores = ['fire3nobh_plus_m12a_r57000',
'fire3nobh_plus_m12d_r57000',
'fire3nobh_plus_m12e_r57000',
'fire3nobh_plus_m12g_r57000',
'fire3nobh_plus_m12j_r57000',
'fire3nobh_plus_m12k_r57000',
'fire3nobh_plus_m12n_r57000',
'fire3nobh_plus_m12u_r28000',
'fire3nobh_plus_m12x_r28000',
] # len 9
# FIRE-3 tests with FIRE-2 SNe feedback
m12_fire3x_tests = [('m12i_m7e3_HD_fire3_fireBHnorepos_constpterm_nogtidal'
'_Oct242023_hr_crdiffc690_sdp1e10_gacc31_fa0.5_fcr1e-4'
'_vw3e4'),
('m12i_m7e3_HD_fire3_fireBHnorepos_scmodules_constpterm'
'_Oct242023_hr_crdiffc690_sdp1e10_gacc31_fa0.5_fcr1e-4'
'_vw3e4'),
('m12m_m7e3_HD_fire3_fireBHnorepos_scmodules_constpterm'
'_gtidal1_Nov082023_hr_crdiffc690_sdp1e10_gacc31_fa0.5'
'_fcr1e-4_vw3e4'),
('m12q_m7e3_HD_fire3_fireBHnorepos_scmodules_constpterm'
'_gtidal1_Nov082023_hr_crdiffc690_sdp1e10_gacc31_fa0.5'
'_fcr1e-4_vw3e4'),
] # len 4
## experimental m11 selection for C ion series
# phys variations selected by match to m12 series names
# mass res is ~ m12-sr res for all; hr/sr is for snapshot cadence
# z=0: snap 60
m11_sr_nobh_set1 = [
'm11a_m2e3_MHD_fire3_fireBH_Sep182021_crdiffc690_sdp1e10_gacc31_fa0.5',
'm11b_m2e3_MHD_fire3_fireBH_Sep182021_crdiffc690_sdp1e10_gacc31_fa0.5',
'm11c_m2e3_MHD_fire3_fireBH_Sep182021_crdiffc690_sdp1e10_gacc31_fa0.5',
'm11d_m7e3_MHD_fire3_fireBH_Sep182021_crdiffc690_sdp1e10_gacc31_fa0.5',
'm11e_m7e3_MHD_fire3_fireBH_Sep182021_crdiffc690_sdp1e10_gacc31_fa0.5',
'm11f_m1e4_MHD_fire3_fireBH_Sep182021_crdiffc690_sdp1e10_gacc31_fa0.5',
'm11g_m1e4_MHD_fire3_fireBH_Sep182021_crdiffc690_sdp1e10_gacc31_fa0.5',
'm11h_m7e3_MHD_fire3_fireBH_Sep182021_crdiffc690_sdp1e10_gacc31_fa0.5',
'm11i_m7e3_MHD_fire3_fireBH_Sep182021_crdiffc690_sdp1e10_gacc31_fa0.5',
'm11q_m7e3_MHD_fire3_fireBH_Sep182021_crdiffc690_sdp1e10_gacc31_fa0.5',
'm11v_m7e3_MHD_fire3_fireBH_Sep182021_crdiffc690_sdp1e10_gacc31_fa0.5',
] # len 11
# z=0: snap 60
m11_sr_agnnocr_set1 = [
'm11a_m2e3_MHD_fire3_fireBH_Sep052021_crdiffc690_sdp3e-7_gacc31_fa0.5',
'm11b_m2e3_MHD_fire3_fireBH_Sep052021_crdiffc690_sdp1e-6_gacc31_fa0.5',
'm11c_m2e3_MHD_fire3_fireBH_Sep052021_crdiffc690_sdp1e-5_gacc31_fa0.5',
'm11d_m7e3_MHD_fire3_fireBH_Sep052021_crdiffc690_sdp3e-5_gacc31_fa0.5',
'm11e_m7e3_MHD_fire3_fireBH_Sep052021_crdiffc690_sdp1e-5_gacc31_fa0.5',
'm11f_m1e4_MHD_fire3_fireBH_Sep052021_crdiffc690_sdp1e-4_gacc31_fa0.5',
'm11g_m1e4_MHD_fire3_fireBH_Sep052021_crdiffc690_sdp1e-4_gacc31_fa0.5',
'm11h_m7e3_MHD_fire3_fireBH_Sep052021_crdiffc690_sdp1e-5_gacc31_fa0.5',
'm11i_m7e3_MHD_fire3_fireBH_Sep052021_crdiffc690_sdp1e-5_gacc31_fa0.5',
'm11q_m7e3_MHD_fire3_fireBH_Sep052021_crdiffc690_sdp1e-5_gacc31_fa0.5',
'm11v_m7e3_MHD_fire3_fireBH_Sep052021_crdiffc690_sdp3e-5_gacc31_fa0.5',
] # len 11
# z=0: snap 500
m11_hr_agncr_set1 = [
('m11a_m2e3_MHDCRspec1_fire3_fireBH_fireCR1_Oct252021_crdiffc1_'
'sdp3e-7_gacc31_fa0.5_fcr1e-3_vw3000'),
('m11b_m2e3_MHDCRspec1_fire3_fireBH_fireCR1_Oct252021_crdiffc1'
'_sdp1e-6_gacc31_fa0.5_fcr1e-3_vw3000'),
#('m11c_m2e3_MHDCRspec1_fire3_fireBH_fireCR1_Oct252021_crdiffc1'
# '_sdp1e-5_gacc31_fa0.5_fcr1e-3_vw3000'), # last snap 152 (2023-04-12)
('m11d_m7e3_MHDCRspec1_fire3_fireBH_fireCR1_Oct252021_crdiffc1'
'_sdp3e-5_gacc31_fa0.5_fcr1e-3_vw3000'),
('m11e_m7e3_MHDCRspec1_fire3_fireBH_fireCR1_Oct252021_crdiffc1'
'_sdp1e-5_gacc31_fa0.5_fcr1e-3_vw3000'),
('m11f_m1e4_MHDCRspec1_fire3_fireBH_fireCR1_Oct252021_crdiffc1'
'_sdp1e-4_gacc31_fa0.5_fcr1e-3_vw3000'),
('m11g_m1e4_MHDCRspec1_fire3_fireBH_fireCR1_Oct252021_crdiffc1'
'_sdp1e-4_gacc31_fa0.5_fcr1e-3_vw3000'),
('m11h_m7e3_MHDCRspec1_fire3_fireBH_fireCR1_Oct252021_crdiffc1'
'_sdp1e-5_gacc31_fa0.5_fcr1e-3_vw3000'),
('m11q_m7e3_MHDCRspec1_fire3_fireBH_fireCR1_Oct252021_crdiffc1'
'_sdp1e-5_gacc31_fa0.5_fcr1e-3_vw3000'),
('m11v_m7e3_MHDCRspec1_fire3_fireBH_fireCR1_Oct252021_crdiffc1'
'_sdp3e-5_gacc31_fa0.5_fcr1e-3_vw3000'),
] # len 9; left out sim that didn't reach z=1.0.
# z=0: snap 60
m11_sr_agncr_set1 = [
('m11i_m7e3_MHDCRspec1_fire3_fireBH_fireCR1_Oct252021_crdiffc1'
'_sdp1e-5_gacc31_fa0.5_fcr3e-3_vw3000'),
] # len 1
m11_hr_agnnocr_set1 =[]
m11_hr_nobh_set1 = []
# len 9
m11_hr_set1 = m11_hr_agncr_set1.copy()
# len 23
m11_sr_set1 = m11_sr_agncr_set1 + m11_sr_agnnocr_set1 + m11_sr_nobh_set1
## run sets:
# set 1
m13_sr_clean1 = m13_nobh_clean1 + m13_agncr_clean1 # len 4
m13_hr_clean1 = m13_agnnocr_clean1.copy() # len 2
m12_sr_clean1 = m12_agncr_clean1.copy() # len 3
m12_hr_clean1 = m12_nobh_clean1 + m12_agnnocr_clean1 # len 6
m13_sr_rest1 = m13_nobh_rest1 + m13_agncr_rest1 # len 11
m13_hr_rest1 = m13_agnnocr_rest1.copy() # len 0
m12_sr_rest1 = m12_agncr_rest1.copy() # len 1
m12_hr_rest1 = m12_nobh_rest1 + m12_agnnocr_rest1 # len 10
m13_sr_all1 = m13_sr_clean1 + m13_sr_rest1 # len 15
m13_hr_all1 = m13_hr_clean1 + m13_hr_rest1 # len 2
m12_sr_all1 = m12_sr_clean1 + m12_sr_rest1 # len 4
m12_hr_all1 = m12_hr_clean1 + m12_hr_rest1 # len 16
# set 2: added new m12q haloes (only affects m12_sr, really)
m13_nobh_clean2 = m13_nobh_clean1.copy()
m13_agnnocr_clean2 = m13_agnnocr_clean1.copy()
m13_agncr_clean2 = m13_agncr_clean1.copy()
m13_nobh_rest2 = m13_nobh_rest1.copy()
m13_agnnocr_rest2 = m13_agnnocr_rest1.copy()
m13_agncr_rest2 = m13_agncr_rest1.copy()
m13_sr_clean2 = m13_nobh_clean2 + m13_agncr_clean2 # len 4
m13_hr_clean2 = m13_agnnocr_clean2.copy() # len 2
m12_sr_clean2 = m12_agncr_clean2.copy() # len 4
m12_hr_clean2 = m12_nobh_clean2 + m12_agnnocr_clean2 # len 8
m13_sr_rest2 = m13_nobh_rest2 + m13_agncr_rest2 # len 11
m13_hr_rest2 = m13_agnnocr_rest2.copy() # len 0
m12_sr_rest2 = m12_agncr_rest2.copy() # len 0
m12_hr_rest2 = m12_nobh_rest2 + m12_agnnocr_rest2 # len 10
m13_sr_all2 = m13_sr_clean2 + m13_sr_rest2 # len 15
m13_hr_all2 = m13_hr_clean2 + m13_hr_rest2 # len 2
m12_sr_all2 = m12_sr_clean2 + m12_sr_rest2 # len 4
m12_hr_all2 = m12_hr_clean2 + m12_hr_rest2 # len 18
## subsets that ran to z=0 (2023-04-12)
m13_sr_all2_z0 =[
('m13h002_m3e5_MHDCRspec1_fire3_fireBH_fireCR1_Oct252021_crdiffc1'
'_sdp1e-4_gacc31_fa0.5_fcr1e-3_vw3000'),
('m13h007_m3e5_MHD_fire3_fireBH_Sep182021_crdiffc690'
'_sdp1e10_gacc31_fa0.5'),
('m13h007_m3e5_MHDCRspec1_fire3_fireBH_fireCR1_Oct252021_crdiffc1'
'_sdp1e-4_gacc31_fa0.5_fcr1e-3_vw3000'),
('m13h009_m3e5_MHDCRspec1_fire3_fireBH_fireCR1_Oct252021_crdiffc1'
'_sdp1e-4_gacc31_fa0.5_fcr1e-3_vw3000'),
('m13h029_m3e5_MHDCRspec1_fire3_fireBH_fireCR1_Oct252021_crdiffc1'
'_sdp1e-4_gacc31_fa0.5_fcr1e-3_vw3000'),
('m13h037_m3e5_MHDCRspec1_fire3_fireBH_fireCR1_Oct252021_crdiffc1'
'_sdp1e-4_gacc31_fa0.5_fcr1e-3_vw3000'),
('m13h113_m3e5_MHDCRspec1_fire3_fireBH_fireCR1_Oct252021_crdiffc1'
'_sdp1e-4_gacc31_fa0.5_fcr1e-3_vw3000'),
('m13h206_m3e5_MHD_fire3_fireBH_Sep182021_crdiffc690'
'_sdp1e10_gacc31_fa0.5'),
('m13h206_m3e5_MHDCRspec1_fire3_fireBH_fireCR1_Oct252021_crdiffc1'
'_sdp1e-4_gacc31_fa0.5_fcr1e-3_vw3000'),
('m13h236_m3e5_MHDCRspec1_fire3_fireBH_fireCR1_Oct252021_crdiffc1'
'_sdp1e-4_gacc31_fa0.5_fcr1e-3_vw3000')
] # length 10; mostly AGN-CR, a 2x noBH
m13_hr_all2_z0 = [] # none
# all m12s ran to z=0
m12_sr_all2_z0 = [
('m12f_m6e4_MHDCRspec1_fire3_fireBH_fireCR1_Oct252021_crdiffc1'
'_sdp1e-4_gacc31_fa0.5_fcr1e-3_vw3000'),
('m12i_m6e4_MHDCRspec1_fire3_fireBH_fireCR1_Oct252021_crdiffc1'
'_sdp1e-4_gacc31_fa0.5_fcr1e-3_vw3000'),
('m12m_m6e4_MHDCRspec1_fire3_fireBH_fireCR1_Oct252021_crdiffc1'
'_sdp1e-4_gacc31_fa0.5_fcr1e-3_vw3000'),
('m12q_m6e4_MHDCRspec1_fire3_fireBH_fireCR1_Oct252021_crdiffc1'
'_sdp1e-4_gacc31_fa0.5_fcr1e-3_vw3000')
] # length 4; AGN-CR
m12_hr_all2_z0 = [
('m12b_m7e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690'
'_sdp1e10_gacc31_fa0.5'),
('m12b_m7e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690'
'_sdp2e-4_gacc31_fa0.5'),
('m12c_m7e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690'
'_sdp1e10_gacc31_fa0.5'),
('m12c_m7e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690'
'_sdp1e-4_gacc31_fa0.5'),
('m12f_m7e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690'
'_sdp1e10_gacc31_fa0.5'),
('m12f_m7e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690'
'_sdp2e-4_gacc31_fa0.5'),
('m12i_m7e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690'
'_sdp1e10_gacc31_fa0.5'),
('m12i_m7e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690'
'_sdp2e-4_gacc31_fa0.5'),
('m12m_m7e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690'
'_sdp1e10_gacc31_fa0.5'),
('m12m_m7e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690'
'_sdp2e-4_gacc31_fa0.5'),
('m12q_m7e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690'
'_sdp1e10_gacc31_fa0.5'),
('m12r_m7e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690'
'_sdp1e10_gacc31_fa0.5'),
('m12r_m7e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690'
'_sdp1e-4_gacc31_fa0.5'),
('m12w_m7e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690'
'_sdp1e10_gacc31_fa0.5'),
('m12w_m7e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690'
'_sdp1e-4_gacc31_fa0.5'),
('m12z_m4e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690'
'_sdp1e10_gacc31_fa0.5'),
('m12z_m4e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690'
'_sdp1e-4_gacc31_fa0.5'),
] # len 17; noBH and AGN-noCR
# to find matching snaps
snapmatch = {
'm13_sr': set(m13_sr_all2),
'm13_hr': set(m13_hr_all2),
'm12_sr': set(m12_sr_all2),
'm12_hr': set(m12_hr_all2),
'm11_sr': set(m11_sr_set1),
'm11_hr': set(m11_hr_set1),
}
# FIRE-3 higher-res and lower-res runs saved at these snapshots
# for z=1.0, 0.9, 0.8, 0.7, 0.6, 0.5
# fire3 noBH extra runs r7100 also use the snaps_hr values
snaps_z = [1.0, 0.9, 0.8, 0.7, 0.6, 0.5]
snaps_sr = [45, 46, 47, 48, 49, 50]
snaps_hr = [186, 197, 210, 224, 240, 258]
# FIRE-2 noBH snapshots for same z
snaps_f2md = [277, 294, 312, 332, 356, 382]
# m12q AGN-noCR: no snapshot 500 (z=0)
# m12q noBH: does have snapshot 500 (z=0)
# m13_sr_all1:
# snap 60 (z=0) for m13h206_m3e5,
snaps_sr_051 = [45, 50, 60]
snaps_hr_051 = [186, 258, 500]
snaplists = {
'm13_sr': snaps_sr,
'm13_hr': snaps_hr,
'm12_sr': snaps_sr,
'm12_hr': snaps_hr,
}
# simulations which may be affected by bugs (marked in Lindsey's list)
# mostly for plotting selection
buglist1 = [
'm12i_m7e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690_sdp1e10_gacc31_fa0.5',
'm12i_m7e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690_sdp2e-4_gacc31_fa0.5',
'm12z_m4e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690_sdp1e-4_gacc31_fa0.5',
('m12i_m6e4_MHDCRspec1_fire3_fireBH_fireCR1_Oct252021_crdiffc1_sdp1e-4'
'_gacc31_fa0.5_fcr1e-3_vw3000'),
('m12m_m6e4_MHDCRspec1_fire3_fireBH_fireCR1_Oct252021_crdiffc1_sdp1e-4'
'_gacc31_fa0.5_fcr1e-3_vw3000'),
'm12i_r7100',
'm12f_r7100',
]
## update from Lindsey,
## and the m12_f2md sims for which a CR heating fix run is available
# m12b noBH: suspected bug
buglist2 = [
'm12b_m7e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690_sdp1e10_gacc31_fa0.5',
'm12c_m7e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690_sdp1e10_gacc31_fa0.5',
'm12c_m7e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690_sdp1e-4_gacc31_fa0.5',
'm12i_m7e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690_sdp1e10_gacc31_fa0.5',
'm12m_m7e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690_sdp1e10_gacc31_fa0.5',
'm12z_m4e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690_sdp1e-4_gacc31_fa0.5',
'm12i_r7100',
'm12f_r7100',
]
## plotting sync/convenience
_iccolors = tc.tol_cset('muted')
ics_m12 = ['m12f', 'm12i', 'm12m', 'm12q', 'm12b', 'm12c',
'm12r', 'm12w', 'm12z']
m12_iccolors = {ic: _iccolors[i] for i, ic in enumerate(ics_m12)}
ics_m13 = ['m13h002', 'm13h007', 'm13h009', 'm13h029',
'm13h037', 'm13h113', 'm13h206', 'm13h223', 'm13h236']
m13_iccolors = {ic: _iccolors[i] for i, ic in enumerate(ics_m13)}
m13_iccolors['m13h02'] = m13_iccolors['m13h002']
_physcolors = tc.tol_cset('bright')
physcolors = {'AGN-CR': _physcolors.green,
'AGN-noCR': _physcolors.red,
'noBH': _physcolors.blue,
'FIRE-2': _physcolors.yellow}
physlinestyles = {'AGN-CR': 'dotted',
'AGN-noCR': 'dashed',
'noBH': 'solid',
'FIRE-2': 'dashdot'}
## because the FIRE-2 directory = phys. model structure broke my
# 'store by single directory level' setup
# plus modifications for the new FIRE-3 noBH runs with higher Mvir
def dirpath_from_simname(simname):
if simname in m12_f2md:
if simname.startswith('crheatfix'):
_sn = simname.split('_')[1:]
dirpath = ol.simdir_fire2_md + 'cr_heating_fix/' + '_'.join(_sn)
else:
dirpath = ol.simdir_fire2_md + simname
elif simname in m12plus_f3nobh + m12plus_f3nobh_lores:
_sn = simname.split('_')[2:]
dirpath = ol.simdir_fire3_m12plus + '_'.join(_sn)
else:
dp2 = '_'.join(simname.split('_')[:2])
if dp2.startswith('m13h02_'):
dp2 = dp2.replace('m13h02', 'm13h002')
dirpath = '/'.join([ol.simdir_fire3, dp2, simname])
return dirpath + '/'
def simname_from_dirpath(dirpath):
# remove 'output' subdir, trailing slashes
if dirpath.endswith('output'):
simparts = dirpath.split('/')[:-1]
elif dirpath.endswith('output/'):
simparts = dirpath.split('/')[:-2]
elif dirpath.endswith('/'):
simparts = dirpath.split('/')[:-1]
else:
simparts = dirpath.split('/')
if simparts[-2] == 'cr_heating_fix':
simname = 'crheatfix_' + simparts[-1]
elif simparts[-2] in ['m12_new', 'fire3_m12_new']:
simname = 'fire3nobh_plus_' + simparts[-1]
elif simparts[-1].startswith('m1'):
simname = simparts[-1]
else:
simname = simparts[-2]
return simname
def ic_from_simname(simname):
simparts = simname.split('_')
if simparts[0] in ['crheatfix']:
ic = simparts[1]
elif simname.startswith('fire3nobh_plus_'):
ic = simparts[2]
else:
ic = simparts[0]
return ic
def physlabel_from_simname(simname):
if simname.startswith('crheatfix'):
physlabel = 'FIRE-2'
elif len(simname.split('_')) == 2:
physlabel = 'FIRE-2'
elif simname.startswith('fire3nobh_plus_'):
physlabel = 'noBH-m12+'
elif simname in m12_fire3x_tests:
if 'scmodules' in simname:
physlabel = 'FIRE-3x-scmodules'
else:
physlabel = 'FIRE-3x-constpterm'
elif '_sdp1e10_' in simname:
physlabel = 'noBH'
elif '_MHDCRspec1_' in simname:
physlabel = 'AGN-CR'
else:
physlabel = 'AGN-noCR'
return physlabel
plotlabel_from_physlabel_short = {
'FIRE-2': 'F2 NoBH',
'noBH': 'F3 NoBH',
'AGN-noCR': 'F3 BH',
'AGN-CR': 'F3 BH+CR',
'noBH-m12+': 'F3 NoBH m12+',
'FIRE-3x-scmodules': 'F3x NoBH sc',
'FIRE-3x-constpterm': 'F3x NoBH cp',
}
plotlabel_from_physlabel = {
'FIRE-2': 'FIRE-2 NoBH',
'noBH': 'FIRE-3 NoBH',
'AGN-noCR': 'FIRE-3 BH',
'AGN-CR': 'FIRE-3 BH+CR',
'noBH-m12+': 'FIRE-3 NoBH m12+',
'FIRE-3x-scmodules': 'FIRE-3x NoBH scmodules',
'FIRE-3x-constpterm': 'FIRE-3x NoBH constpterm',
}
## info for methods section
# m12r, m12w: Samuel et al. paper says same res as m12b-m12m,
# but spreadsheet says 7130 Msun, not 7070 Msun
# crheatfix: resolution from FIRE-2 spreadsheet
resolutions_Msun = {
'm13h206_m3e5_MHD_fire3_fireBH_Sep182021_crdiffc690_sdp1e10_gacc31_fa0.5': 0,
'm13h113_m3e5_MHD_fire3_fireBH_Sep182021_crdiffc690_sdp1e10_gacc31_fa0.5': 0,
'm13h002_m3e5_MHD_fire3_fireBH_Sep182021_crdiffc690_sdp1e10_gacc31_fa0.5': 0,
'm13h007_m3e5_MHD_fire3_fireBH_Sep182021_crdiffc690_sdp1e10_gacc31_fa0.5': 0,
'm13h029_m3e5_MHD_fire3_fireBH_Sep182021_crdiffc690_sdp1e10_gacc31_fa0.5': 0,
'm13h223_m3e5_MHD_fire3_fireBH_Sep182021_crdiffc690_sdp1e10_gacc31_fa0.5': 0,
'm13h236_m3e5_MHD_fire3_fireBH_Sep182021_crdiffc690_sdp1e10_gacc31_fa0.5': 0,
('m13h206_m3e5_MHDCRspec1_fire3_fireBH_fireCR1_Oct252021_crdiffc1_sdp1e-4'
'_gacc31_fa0.5_fcr1e-3_vw3000'): 0,
('m13h113_m3e5_MHDCRspec1_fire3_fireBH_fireCR1_Oct252021_crdiffc1_sdp1e-4'
'_gacc31_fa0.5_fcr1e-3_vw3000'): 0,
('m13h113_m3e4_MHD_fire3_fireBH_Sep182021_hr_crdiffc690_sdp1e-4_gacc31'
'_fa0.5'): 0,
('m13h206_m3e4_MHD_fire3_fireBH_Sep182021_hr_crdiffc690_sdp3e-4_gacc31'
'_fa0.5'): 0,
('m13h002_m3e5_MHDCRspec1_fire3_fireBH_fireCR1_Oct252021_crdiffc1'
'_sdp1e-4_gacc31_fa0.5_fcr1e-3_vw3000'): 0,
('m13h007_m3e5_MHDCRspec1_fire3_fireBH_fireCR1_Oct252021_crdiffc1'
'_sdp1e-4_gacc31_fa0.5_fcr1e-3_vw3000'): 0,
('m13h009_m3e5_MHDCRspec1_fire3_fireBH_fireCR1_Oct252021_crdiffc1'
'_sdp1e-4_gacc31_fa0.5_fcr1e-3_vw3000'): 0,
('m13h029_m3e5_MHDCRspec1_fire3_fireBH_fireCR1_Oct252021_crdiffc1'
'_sdp1e-4_gacc31_fa0.5_fcr1e-3_vw3000'): 0,
('m13h037_m3e5_MHDCRspec1_fire3_fireBH_fireCR1_Oct252021_crdiffc1'
'_sdp1e-4_gacc31_fa0.5_fcr1e-3_vw3000'): 0,
('m13h236_m3e5_MHDCRspec1_fire3_fireBH_fireCR1_Oct252021_crdiffc1'
'_sdp1e-4_gacc31_fa0.5_fcr1e-3_vw3000'): 0,
'm12f_m7e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690_sdp1e10_gacc31_fa0.5': 0,
'm12i_m7e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690_sdp1e10_gacc31_fa0.5': 0,
'm12m_m7e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690_sdp1e10_gacc31_fa0.5': 0,
'm12q_m7e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690_sdp1e10_gacc31_fa0.5': 0,
'm12b_m7e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690_sdp1e10_gacc31_fa0.5': 0,
'm12c_m7e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690_sdp1e10_gacc31_fa0.5': 0,
'm12r_m7e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690_sdp1e10_gacc31_fa0.5': 0,
'm12w_m7e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690_sdp1e10_gacc31_fa0.5': 0,
'm12z_m4e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690_sdp1e10_gacc31_fa0.5': 0,
'm12f_m7e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690_sdp2e-4_gacc31_fa0.5': 0,
'm12i_m7e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690_sdp2e-4_gacc31_fa0.5': 0,
'm12m_m7e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690_sdp2e-4_gacc31_fa0.5': 0,
'm12q_m7e3_MHD_fire3_fireBH_Sep182021_hr_crdiffc690_sdp2e-4_gacc31_fa0.5': 0,
('m12f_m6e4_MHDCRspec1_fire3_fireBH_fireCR1_Oct252021_crdiffc1_sdp1e-4'
'_gacc31_fa0.5_fcr1e-3_vw3000'): 0,
('m12i_m6e4_MHDCRspec1_fire3_fireBH_fireCR1_Oct252021_crdiffc1_sdp1e-4'
'_gacc31_fa0.5_fcr1e-3_vw3000'): 0,
('m12m_m6e4_MHDCRspec1_fire3_fireBH_fireCR1_Oct252021_crdiffc1_sdp1e-4'
'_gacc31_fa0.5_fcr1e-3_vw3000'): 0,
('m12q_m6e4_MHDCRspec1_fire3_fireBH_fireCR1_Oct252021_crdiffc1_sdp1e-4'
'_gacc31_fa0.5_fcr1e-3_vw3000'): 0,
('m12q_m6e4_MHDCRspec1_fire3_fireBH_fireCR1_Oct252021_crdiffc1_sdp1e-4'
'_gacc31_fa0.5_fcr1e-3_vw3000'): 0,
'm12z_r4200': 4174,
'm12w_r7100': 7067,
'm12r_r7100': 7067,
'm12i_r7100': 7067,
'm12c_r7100': 7067,
'm12b_r7100': 7067,
'm12m_r7100': 7067,
'm12f_r7100': 7067,
'crheatfix_m12f_r7100': 7070,
'crheatfix_m12i_r7100': 7070,
}