aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/extragalactic/clusters/halo.py
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-10-30 21:30:30 +0800
committerAaron LI <aly@aaronly.me>2018-10-30 22:04:27 +0800
commit00fccbb7e2491741f82e6603a37fe1a12af74c95 (patch)
treed40f6544629739fd31c881f7ea0f358cfab48750 /fg21sim/extragalactic/clusters/halo.py
parent802985804b795d97aacb7b701fd0aba02cff31f8 (diff)
downloadfg21sim-00fccbb7e2491741f82e6603a37fe1a12af74c95.tar.bz2
clusters/halo: Update calculations of injection and halo radius
Diffstat (limited to 'fg21sim/extragalactic/clusters/halo.py')
-rw-r--r--fg21sim/extragalactic/clusters/halo.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/fg21sim/extragalactic/clusters/halo.py b/fg21sim/extragalactic/clusters/halo.py
index eac9501..baa1a36 100644
--- a/fg21sim/extragalactic/clusters/halo.py
+++ b/fg21sim/extragalactic/clusters/halo.py
@@ -234,7 +234,7 @@ class RadioHalo:
The estimated radius for the simulated radio halo.
Unit: [kpc]
"""
- return helper.radius_halo(self.M_obs, self.z_obs, configs=self.configs)
+ return self.injection_radius
@property
def angular_radius(self):
@@ -363,6 +363,18 @@ class RadioHalo:
return tau
@property
+ @lru_cache
+ def injection_radius(self):
+ """
+ The radius of the turbulence injection regions, and then the
+ injection scale: L_turb ~= 2*R_turb.
+ Unit: [kpc]
+ """
+ rs = helper.radius_stripping(self.M_main, self.M_sub, self.z_merger,
+ configs=self.configs) # [kpc]
+ return self.f_lturb * rs
+
+ @property
@lru_cache()
def injection_rate(self):
"""