From c9f0dbf07992a67591881e5a092b5366b2611939 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sat, 26 Jan 2019 22:13:49 +0800 Subject: clusters/main: Adjust against halo radius --- fg21sim/extragalactic/clusters/main.py | 7 +++---- 1 file 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 -# 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 -- cgit v1.2.2