aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/extragalactic/clusters/helper.py
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-01-03 23:30:17 +0800
committerAaron LI <aly@aaronly.me>2018-01-03 23:30:17 +0800
commita57a01fab43c6eb692fc04ccb0f0c348a1eba3b1 (patch)
tree6a922a2c984e2415ba02a498c5989a65bd4dce87 /fg21sim/extragalactic/clusters/helper.py
parentb314fbe5084df28e719ec777d575882d625d8f72 (diff)
downloadfg21sim-a57a01fab43c6eb692fc04ccb0f0c348a1eba3b1.tar.bz2
clusters/halo: update radius_halo() calculation
Diffstat (limited to 'fg21sim/extragalactic/clusters/helper.py')
-rw-r--r--fg21sim/extragalactic/clusters/helper.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/fg21sim/extragalactic/clusters/helper.py b/fg21sim/extragalactic/clusters/helper.py
index 88c566a..39cee12 100644
--- a/fg21sim/extragalactic/clusters/helper.py
+++ b/fg21sim/extragalactic/clusters/helper.py
@@ -89,23 +89,23 @@ def radius_virial(mass, z=0.0):
return R_vir
-def radius_halo(M_main, M_sub, z=0.0, configs=CONFIGS):
+def radius_halo(mass, z=0.0, configs=CONFIGS):
"""
- Calculate the (predicted) radius of (giant) radio halo.
+ Estimate the radius of (giant) radio halo.
NOTE
----
The halo radius is estimated to be the same as the turbulence
injection scale, i.e.:
R_halo ≅ L ≅ R_vir / 3
- where R_vir the virial radius of the merged cluster.
+ where R_vir the virial radius of the merged (observed) cluster.
Reference: [vazza2011],Sec.(3.6)
Parameters
----------
- M_main, M_sub : float, `~numpy.ndarray`
- Total (virial) masses of the main and sub clusters
+ mass : float, `~numpy.ndarray`
+ Cluster virial mass.
Unit: [Msun]
z : float, `~numpy.ndarray`, optional
Redshift
@@ -120,7 +120,7 @@ def radius_halo(M_main, M_sub, z=0.0, configs=CONFIGS):
# Turbulence injection scale factor
key = "extragalactic/halos/f_lturb"
f_lturb = configs.getn(key)
- R_halo = f_lturb * radius_virial(mass=M_main+M_sub, z=z) # [kpc]
+ R_halo = f_lturb * radius_virial(mass=mass, z=z) # [kpc]
return R_halo