aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/extragalactic/clusters
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-11-02 00:07:58 +0800
committerAaron LI <aly@aaronly.me>2018-11-02 00:07:58 +0800
commitae1b6cec198ec5b1e564265c2628a254a87880af (patch)
tree1c22a8b5684752b97c12c1ea8b5e6490cfd84f8d /fg21sim/extragalactic/clusters
parent3760624fc4a35a81d0d22c22c26282657826126c (diff)
downloadfg21sim-ae1b6cec198ec5b1e564265c2628a254a87880af.tar.bz2
clusters/halo: Fix time argument in _velocity_turb()
Diffstat (limited to 'fg21sim/extragalactic/clusters')
-rw-r--r--fg21sim/extragalactic/clusters/halo.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/fg21sim/extragalactic/clusters/halo.py b/fg21sim/extragalactic/clusters/halo.py
index 7343cb1..113e434 100644
--- a/fg21sim/extragalactic/clusters/halo.py
+++ b/fg21sim/extragalactic/clusters/halo.py
@@ -661,7 +661,7 @@ class RadioHalo:
return helper.magnetic_field(mass=mass, z=z, configs=self.configs)
@lru_cache()
- def _gas_density_profile_f(self, t=None):
+ def _gas_density_profile_f(self, t):
"""
The gas density profile of the merged cluster.
@@ -670,14 +670,13 @@ class RadioHalo:
f(r) : function
A function that calculates the gas density of unit [Msun/kpc^3].
"""
+ z = COSMO.redshift(t)
M_main = self.mass_main(t)
M_sub = self.mass_sub(t)
- t_merger = self._merger_time(t)
- z_merger = COSMO.redshift(t_merger)
- return helper.calc_gas_density_profile(mass=M_main+M_sub, z=z_merger)
+ return helper.calc_gas_density_profile(mass=M_main+M_sub, z=z)
@lru_cache()
- def _velocity_turb(self, t=None):
+ def _velocity_turb(self, t):
"""
Calculate the turbulence velocity dispersion (i.e., turbulence Mach
number).