aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/extragalactic/clusters/helper.py
Commit message (Collapse)AuthorAgeFilesLines
* clusters/halo: merge halo_rprofile() & draw_halo(); Fix halo radius errorAaron LI2017-10-231-38/+26
| | | | | | | * Fix the error that misses to divide the halo radius by 3 for the e-folding radius, which causes the generated halo image has a 3x size! * Merge function "halo_rprofile()" into "draw_halo()" * Skip transform circular halo into elliptical one if "felong" is None
* clusters/halo: Use "lru_cache()", also improves some performanceAaron LI2017-10-231-1/+1
|
* clusters/halo: Add option "kT_out" to tune cluster temperatureAaron LI2017-10-221-2/+6
|
* clusters/halo: Add function "speed_sound()"Aaron LI2017-10-211-0/+28
| | | | Also add "gamma" the adiabatic index of ideal gas to utils/units.py
* clusters/halo: Determine magnetic field by fraction of its energy densityAaron LI2017-10-201-30/+24
| | | | | | | | | | * Rewrite "magnetic_field()" function to calculate the mean magnetic field strength within ICM according its energy density fraction w.r.t. the ICM thermal energy density. * Remove config options "b_mean" and "b_index", which are replaced with the option "eta_b", the assumed magnetic energy density fraction w.r.t. the ICM thermal energy density.
* clusters/halo: Remove "mass_to_kT()", replaced by "kT_cluster()"Aaron LI2017-10-201-39/+0
|
* clusters/halo: Use "kT_cluster()" instead of "mass_to_kT()"Aaron LI2017-10-191-3/+3
|
* clusters/halo: Add kT_cluster() to calculate the cluster ICM temperatureAaron LI2017-10-191-0/+25
|
* clusters/helper: Add kT_virial() to calculate the virial temperatureAaron LI2017-10-191-0/+36
|
* clusters/halo: rewrite power/flux/Tb calc with k-correction consideredAaron LI2017-10-191-102/+0
|
* clusters: Update radio halo radius estimationAaron LI2017-10-181-19/+17
| | | | | | | | | The simulated radio halo is assumed to have a radius of the falling sub-cluster; while previously it is assumed to be 1/4 of the virial radius of the merged cluster. The new estimation can agree better with the currently observed radio halos, which generally have a angular diameter size of ~2-7 [arcmin].
* Update "Fnu_to_Tb_fast()" to "Fnu_to_Tb()"Aaron LI2017-09-011-2/+2
|
* clusters: Halo templates are normalized to have mean of 1Aaron LI2017-08-131-3/+11
| | | | | | Also update the documents of "draw_halo()" function Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/main.py: Implement "_draw_halos()" methodAaron LI2017-08-121-0/+62
| | | | | | New functions "halo_rprofile()" and "draw_halo()" added to helper.py Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters: Implement calc_{power,flux,brightness_mean} in helperAaron LI2017-08-111-0/+106
| | | | | | Help development & debug ... 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/helper.py: Fix and replace R_halo vs. R_vir relationAaron LI2017-07-231-11/+12
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/helper.py: Fix a bug in "mass_to_kT()"Aaron LI2017-07-231-2/+2
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/helper.py: Add "density_energy_electron()" functionAaron LI2017-07-231-2/+27
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/helper.py: Disable scattering on scaling relationsAaron LI2017-07-231-4/+8
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* Use all uppercase to identify the global CONFIGS and COSMOAaron LI2017-07-221-8/+8
| | | | | | Update to use the global CONFIGS and COSMO Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters: Move "magnetic_field()" function to helper.pyAaron LI2017-07-221-0/+40
| | | | | | Import the global "configs" in helper.py to make parameters lean. Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/helper.py: Add "velocity_impact()" and "time_crossing()"Aaron LI2017-07-221-3/+71
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* Add clusters/helper.pyAaron LI2017-07-211-0/+158
Signed-off-by: Aaron LI <aly@aaronly.me>