aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/extragalactic/clusters/main.py
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-01-04 22:37:17 +0800
committerAaron LI <aly@aaronly.me>2018-01-04 22:37:17 +0800
commit339daa8b276c52755eb635acf5771652a422a088 (patch)
tree7e1ed1f80c577f42408b93f13748708859325556 /fg21sim/extragalactic/clusters/main.py
parentc9d0254f243b67ef0c2a9ae5ed8d99ad11b3c69a (diff)
downloadfg21sim-339daa8b276c52755eb635acf5771652a422a088.tar.bz2
clusters/halo: refactor tau_acceleration() to help RadioHaloAM
Change "tau_acceleration" from a attribute to a method with the time parameter, and then simplify "fp_diffusion()" method.
Diffstat (limited to 'fg21sim/extragalactic/clusters/main.py')
-rw-r--r--fg21sim/extragalactic/clusters/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fg21sim/extragalactic/clusters/main.py b/fg21sim/extragalactic/clusters/main.py
index b2ed530..c677f92 100644
--- a/fg21sim/extragalactic/clusters/main.py
+++ b/fg21sim/extragalactic/clusters/main.py
@@ -280,7 +280,7 @@ class GalaxyClusters:
("Rhalo_angular", halo.angular_radius), # [arcsec]
("volume", halo.volume), # [kpc^3]
("Mach_turb", halo.mach_turbulence), # turbulence Mach number
- ("tau_acc", halo.tau_acceleration), # [Gyr]
+ ("tau_acc", halo.tau_acceleration()), # [Gyr]
("Ke", halo.injection_rate), # [cm^-3 Gyr^-1]
("gamma", halo.gamma), # Lorentz factors
("n_e", n_e), # [cm^-3]