aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-11-08 18:55:43 +0800
committerAaron LI <aly@aaronly.me>2018-11-08 18:55:43 +0800
commit941aa25bf071e6f30522fdcdcc6a539d05573d9f (patch)
tree8a44be0d49c2dbdb1250c36bda491c6a75b5b0e3
parentaf5e91235e53c60feb7245baf55660606ddf8d77 (diff)
downloadfg21sim-941aa25bf071e6f30522fdcdcc6a539d05573d9f.tar.bz2
clusters/halo: Fix radius_turbulence() calculation
-rw-r--r--fg21sim/extragalactic/clusters/halo.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/fg21sim/extragalactic/clusters/halo.py b/fg21sim/extragalactic/clusters/halo.py
index 6b1d4a8..0f2c821 100644
--- a/fg21sim/extragalactic/clusters/halo.py
+++ b/fg21sim/extragalactic/clusters/halo.py
@@ -254,9 +254,9 @@ class RadioHalo:
"""
z = COSMO.redshift(t)
M_main = self.mass_main(t)
- R_vir = helper.radius_virial(M_main, z)
+ r_c = self.f_rc * helper.radius_virial(M_main, z)
r_s = self.radius_stripping(t)
- return (R_vir + r_s) / 2
+ return (r_c + r_s) / 2
@lru_cache()
def radius_stripping(self, t):