aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/extragalactic/clusters
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2019-01-26 22:13:49 +0800
committerAaron LI <aly@aaronly.me>2019-01-26 22:13:49 +0800
commitc9f0dbf07992a67591881e5a092b5366b2611939 (patch)
tree3f4b13b7ae1d49b85a39fb847879ca3b2c6bba9c /fg21sim/extragalactic/clusters
parent55128a7f3bf5b01f5480b2e29bd2021353cb9991 (diff)
downloadfg21sim-c9f0dbf07992a67591881e5a092b5366b2611939.tar.bz2
clusters/main: Adjust against halo radius
Diffstat (limited to 'fg21sim/extragalactic/clusters')
-rw-r--r--fg21sim/extragalactic/clusters/main.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/fg21sim/extragalactic/clusters/main.py b/fg21sim/extragalactic/clusters/main.py
index 20069bb..a4b63fa 100644
--- a/fg21sim/extragalactic/clusters/main.py
+++ b/fg21sim/extragalactic/clusters/main.py
@@ -1,5 +1,5 @@
# Copyright (c) 2017-2019 Weitian LI <wt@liwt.net>
-# MIT license
+# MIT License
"""
Simulate the diffuse radio emissions from galaxy clusters.
@@ -293,13 +293,12 @@ class GalaxyClusters:
z_merger=clinfo["merger_z"],
merger_num=merger_num,
configs=self.configs)
- radius = halo.calc_radius() # [kpc]
- theta = radius / (clinfo["DA"]*1e3) * AUC.rad2arcsec # [arcsec]
+ theta = halo.radius / (clinfo["DA"]*1e3) * AUC.rad2arcsec # [arcsec]
n_e = halo.calc_electron_spectrum()
haloinfo = OrderedDict(
**clinfo,
- Rhalo=radius, # [kpc]
+ Rhalo=halo.radius, # [kpc]
Rhalo_angular=theta, # [arcsec]
n_e=n_e, # [cm^-3]
gamma=halo.gamma, # Lorentz factors