aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim
diff options
context:
space:
mode:
Diffstat (limited to 'fg21sim')
-rw-r--r--fg21sim/extragalactic/clusters/halo.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/fg21sim/extragalactic/clusters/halo.py b/fg21sim/extragalactic/clusters/halo.py
index a0c49a2..94cb1c0 100644
--- a/fg21sim/extragalactic/clusters/halo.py
+++ b/fg21sim/extragalactic/clusters/halo.py
@@ -767,8 +767,16 @@ class RadioHaloAM(RadioHalo1M):
The halo radius estimated by using the maximum turbulence radius.
Unit: [kpc]
"""
- r_turb = [self.radius_turb(tm) for tm in self.t_merger]
- return self.f_radius * max(r_turb)
+ return self.f_radius * self.radius_turb_max
+
+ @property
+ @lru_cache()
+ def radius_turb_max(self):
+ """
+ The maximum turbulence radius.
+ Unit: [kpc]
+ """
+ return max([self.radius_turb(tm) for tm in self.t_merger])
@property
def t_begin(self):