diff options
author | Aaron LI <aly@aaronly.me> | 2019-01-10 00:26:28 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2019-01-10 00:26:28 +0800 |
commit | 32c0e42c4b754d118cae26dad99d5844890b72d7 (patch) | |
tree | 6baf504c48c225b9fb67d01c04806ec11ce31cbb /fg21sim/extragalactic | |
parent | 44685ab35cab0d3c9c7aef27bc6be252c7b276e1 (diff) | |
download | fg21sim-32c0e42c4b754d118cae26dad99d5844890b72d7.tar.bz2 |
clusters/halo: Change radius attribute to calc_radius()
Meanwhile remove the angular_radius and volume attributes.
Diffstat (limited to 'fg21sim/extragalactic')
-rw-r--r-- | fg21sim/extragalactic/clusters/halo.py | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/fg21sim/extragalactic/clusters/halo.py b/fg21sim/extragalactic/clusters/halo.py index 8216b2d..e340ec9 100644 --- a/fg21sim/extragalactic/clusters/halo.py +++ b/fg21sim/extragalactic/clusters/halo.py @@ -251,32 +251,13 @@ class RadioHalo: M_sub = self.mass_sub(t) return helper.radius_stripping(M_main, M_sub, z, configs=self.configs) - @property - def radius(self): + def calc_radius(self): """ The estimated radius of the simulated radio halo. Unit: [kpc] """ return self.radius_turbulence(self.age_merger) * self.f_radius - @property - def angular_radius(self): - """ - The angular radius of the radio halo. - Unit: [arcsec] - """ - DA = COSMO.DA(self.z_obs) * 1e3 # [Mpc] -> [kpc] - theta = self.radius / DA # [rad] - return theta * AUC.rad2arcsec - - @property - def volume(self): - """ - The halo volume, calculated from the above radius. - Unit: [kpc^3] - """ - return (4*np.pi/3) * self.radius**3 - @lru_cache() def kT(self, t): """ |