aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/extragalactic/clusters/main.py
Commit message (Collapse)AuthorAgeFilesLines
* clusters/halo: Rewrite turbulence acceleration & diffusion coefficient!Aaron LI2017-10-211-1/+2
| | | | | | | | | | | | The previous calculation of the turbulence acceleration efficiency has significant problems, which is too low, i.e., the acceleration timescale is too large (~10 Gyr). However, it is reported that turbulent acceleration has a timescale ~100 Myr (0.1 Gyr). I believe this problem is due to the over-simplification to the formula proposed by [cassano2005]. Rewrite the turbulence acceleration and diffusion coefficient calculations, adopting the method proposed by [brunetti2016]. To this end, two new options "f_lturb" and "f_acc" are introduced to tune the results.
* clusters/halos: Add more cluster and halo propertiesAaron LI2017-10-211-5/+9
| | | | | | * Rvir0, Rvir_main, Rvir_sub * kT_main, kT_sub (replace kT_merger) * radius -> Rhalo, angular_radius -> Rhalo_angular, B -> B0
* clusters: Fix a comment about "felong"Aaron LI2017-10-211-2/+1
|
* clusters/halo: Add "kT_obs" and "tback_merger" propertiesAaron LI2017-10-191-1/+3
|
* clusters/halo: rewrite power/flux/Tb calc with k-correction consideredAaron LI2017-10-191-3/+4
|
* clusters/halo: Fix load halos data; fix save halos catalogAaron LI2017-10-191-27/+28
| | | | | The "template" item should be removed before convert the halos data into a Pandas DataFrame to be saved.
* clusters/halo: Force to use cluster catalog if use_dump_halos_data=TrueAaron LI2017-10-191-0/+5
|
* clusters/halo: Support use the previously dumped halos raw dataAaron LI2017-10-191-1/+11
| | | | | | Add option "use_dump_halos_data" to control whether to just use the previously dumped halos data, therefore, the radio emissions at additional frequencies can be simply calculated.
* cluster/halos: Split out "_calc_halos_emission()" methodAaron LI2017-10-191-11/+32
|
* clusters/halo: Add and use attribute "self.halos_data_dumpfile"Aaron LI2017-10-191-2/+4
|
* clusters/halo: Rewrite halos catalog and raw data saveAaron LI2017-10-191-15/+39
| | | | | Replace option "halos_dumpfile" with "halos_catalog_outfile", and use option "dump_halos_data" to control whether to dump the raw data.
* clusters: "catalog_outfile" is requiredAaron LI2017-10-191-3/+1
|
* clusters: More regular shape for radio halosAaron LI2017-10-161-6/+5
|
* clusters: Update the documents/comments a b itAaron LI2017-10-141-9/+4
|
* clusters/psformalism.py: Rewrite sample_z_m() methodAaron LI2017-10-041-0/+2
| | | | | Also update clusters/main.py to calculate the halo mass distributions before sampling the mass and redshifts for clusters.
* clusters: Add option "use_output_catalog" to continue halo simulationAaron LI2017-09-031-4/+19
|
* Return the list of filepath to the written sky filesAaron LI2017-08-261-0/+8
|
* clusters/main.py: Update sky header; update comments etc.Aaron LI2017-08-261-5/+7
|
* configs: Remove option "save"; all enabled components will be savedAaron LI2017-08-261-1/+0
|
* clusters/halo.py: Rewrite electron acceleration coefficient calcAaron LI2017-08-141-0/+2
| | | | | | | | | | * Adopt the electron acceleration coefficient formula from [cassano2005] * Rename method "_tau_acceleration()" to "_chi_acceleration()", and rewrite * Add property "kT_merger" * Also save "kT_merger" and "chi" into halos data Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/main.py: Use OrderedDict to easy keys manipulationAaron LI2017-08-141-29/+31
| | | | | | | Also avoid forgetting to add the newly added item for DataFrame conversion. Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters: Rename property "injection_rate" and save into halos dataAaron LI2017-08-141-0/+1
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* Fix several bugsAaron LI2017-08-131-11/+3
| | | | | | | | | * Brought back "clobber" property * Delete the wrong "self.halos=[]" * Fix the wrong assignment of "cimax0" * Assign default values for {c,r}i{min,max}1 Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/main.py: Implement "simulate_frequency()" and "simulate()"Aaron LI2017-08-131-0/+46
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters: Halo templates are normalized to have mean of 1Aaron LI2017-08-131-1/+1
| | | | | | Also update the documents of "draw_halo()" function Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/main.py: Add method "_outfilepath()"Aaron LI2017-08-131-0/+21
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/main.py: Set sky header propertiesAaron LI2017-08-131-4/+5
| | | | | | | * Clean up the unused configurations * Add "FREQ" keyword to the sky FITS header Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/main.py: Implement "_draw_halos()" methodAaron LI2017-08-121-2/+27
| | | | | | New functions "halo_rprofile()" and "draw_halo()" added to helper.py Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/main.py: Inherent cluster catalog info to halos dataAaron LI2017-08-121-4/+9
| | | | | | Also rename "frequencies" to "frequency" Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/main.py: Add missing columns to DataFrame conversionAaron LI2017-08-121-2/+2
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/halo: "volume" use unit "kpc^3" instead of "cm^3"Aaron LI2017-08-111-1/+1
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/main.py: Calculate and cache more halo dataAaron LI2017-08-061-4/+9
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/main.py: Convert halos data to be a DataFrame and dumpAaron LI2017-08-031-0/+19
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* Improve logging messagesAaron LI2017-08-011-0/+5
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters: Add config "halos_dumpfile" and dump simulate halos dataAaron LI2017-08-011-1/+8
|
* clusters: Fix several small issues on wrong variable namesAaron LI2017-07-311-2/+2
| | | | | | Also update logging message for RadioHalo a bit. Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/main.py: Use PSFormalism to simulate cluster catalogAaron LI2017-07-311-13/+11
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* Add `fg21sim.share` module to hold globally shared "CONFIGS" & "COSMO"Aaron LI2017-07-311-2/+1
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/main.py: Add method "_simulate_halos()"Aaron LI2017-07-311-0/+43
| | | | | | | This method simulates the radio halo properties for each cluster with a recent major merger. Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/main.py: Commit missing changes on CONFIGS and COSMOAaron LI2017-07-231-3/+3
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* Use all uppercase to identify the global CONFIGS and COSMOAaron LI2017-07-221-3/+3
| | | | | | Update to use the global CONFIGS and COSMO Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters: Import global "configs" to simplify parametersAaron LI2017-07-221-20/+3
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters: Move "magnetic_field()" function to helper.pyAaron LI2017-07-221-24/+0
| | | | | | Import the global "configs" in helper.py to make parameters lean. Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters: Rename "last major merger" to "recent major merger"Aaron LI2017-07-221-21/+20
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/main.py: Add property "halo_configs"Aaron LI2017-07-221-1/+31
| | | | | | And update the config specification accordingly with some cleanups. Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/main.py: Add "_magnetic_field()" methodAaron LI2017-07-211-0/+33
| | | | | | Also update the configurations Signed-off-by: Aaron LI <aly@aaronly.me>
* Use the global "cosmo" instance for simplificationAaron LI2017-07-211-12/+3
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/main.py: Add basic "preprocess()" methodAaron LI2017-07-201-1/+23
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/main.py: Implement "_simulate_merger()"Aaron LI2017-07-201-6/+76
| | | | | | | | | | Simulate the formation history of each cluster and identify the last/recent major merger event. Also add new configuration option "tau_merger" and tweak several configurations options. Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/main.py: Add and save catalog comments for columnsAaron LI2017-07-191-6/+18
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>