aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/extragalactic/clusters/helper.py
Commit message (Collapse)AuthorAgeFilesLines
* clusters/helper: Some cleanupsAaron LI2019-01-311-32/+13
|
* clusters: Use radius_cluster() accordinglyAaron LI2019-01-311-14/+11
|
* clusters/helper: Remove obsolete time_crossing()Aaron LI2019-01-311-31/+0
|
* clusters/helper: Add radius_cluster()Aaron LI2019-01-311-0/+19
| | | | Ignore the cosmic evolution, keeping the radio halo modeling simple.
* clusters/helper: Get rid of CONFIGSAaron LI2019-01-291-37/+7
|
* clusters/helper: Add simple density_number_electron()Aaron LI2019-01-271-0/+8
|
* clusters: Assume equipartition between B field and CRAaron LI2019-01-251-2/+14
| | | | | | Equipartition between the magnetic fields and cosmic rays is assumed, i.e., eta_b == x_cr. Therefore remove "extragalactic/clusters/eta_b" configuration option.
* clusters/helper: Add plasma_beta() functionAaron LI2019-01-231-0/+26
|
* clusters/helper: Do not pass the whole configs to functionsAaron LI2019-01-231-11/+32
|
* clusters/helper: Fix a variable error in density_gas()Aaron LI2019-01-221-1/+1
|
* clusters/helper: Add radius_overdensity() functionAaron LI2019-01-211-4/+29
| | | | e.g., to calculate R200, R500.
* clusters/helper: Improve density_energy_electron() calculationAaron LI2019-01-211-4/+4
|
* clusters/helper: Add density_gas() functionAaron LI2019-01-211-0/+8
|
* clusters/helper: Pass beta to helper.radius_stripping()Aaron LI2019-01-181-5/+6
| | | | | * Add 'beta' parameter to radius_stripping() * Pass 'f_rc' and 'beta' to calc_gas_density_profile()
* Minor tweaksAaron LI2019-01-181-2/+2
|
* clusters/helper: Add f_rc and beta parameters to calc_gas_density_profile()Aaron LI2018-11-081-3/+11
|
* clusters/halo: Update time_turbulence() calculationAaron LI2018-10-301-23/+0
|
* clusters/helper: Remove the obsolete fmass_nfw()Aaron LI2018-10-301-26/+0
|
* clusters/halo: Update calculations of injection and halo radiusAaron LI2018-10-301-35/+0
|
* clusters/help: Add radius_stripping()Aaron LI2018-10-261-6/+73
| | | | | This function calculates the stripping radius of the sub-cluster when it falling through the main cluster.
* clusters/halo: Improve descriptions and commentsAaron LI2018-10-251-1/+1
|
* clusters/halo: most consistent turbulent acceleration and time calculationsAaron LI2018-01-211-1/+1
|
* clusters: minor updatesAaron LI2018-01-161-5/+4
|
* clusters/halo: update radius_halo() calculationAaron LI2018-01-031-6/+6
|
* Minor changesAaron LI2018-01-011-22/+22
|
* clusters/halo: adjust radio halo size estimationAaron LI2018-01-011-3/+3
|
* clusters/halo/helper: Add fmass_nfw() to calc NFW mass profileAaron LI2017-12-311-0/+30
|
* clusters/halo: Add virial_speed() helper functionAaron LI2017-12-301-2/+13
|
* clusters/halo: Estimate turbulence acceleration w.r.t. injection scaleAaron LI2017-12-301-0/+23
| | | | The turbulence injection scale ~ halo size
* cluster/halo: Estimate halo radius ~ 0.33*R_vir (main cluster)Aaron LI2017-12-301-7/+16
|
* clusters/halo: Fix passing the "configs" objectAaron LI2017-10-251-1/+1
|
* clusters/halo: Always pass the using configsAaron LI2017-10-241-6/+6
| | | | | The user-using `configs` object may be different to the global `CONFIGS`, which may be forgotten to load the up-to-date user configurations.
* clusters/halos: Fix halo radius calculationAaron LI2017-10-231-3/+5
| | | | Also change the parameter "nr" default to 2.0 for draw_halo() function.
* 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>