aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/extragalactic/clusters/halo.py
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-10-19 23:17:55 +0800
committerAaron LI <aly@aaronly.me>2017-10-19 23:17:55 +0800
commit015655947c99f69944143ab2f40b4845bba69c63 (patch)
treee495dd40627d25819a2386c4121fe342733b4a4b /fg21sim/extragalactic/clusters/halo.py
parent4d76511eb8c5e158fd93b1843f0252244acbf8ce (diff)
downloadfg21sim-015655947c99f69944143ab2f40b4845bba69c63.tar.bz2
clusters/halo: Add "kT_obs" and "tback_merger" properties
Diffstat (limited to 'fg21sim/extragalactic/clusters/halo.py')
-rw-r--r--fg21sim/extragalactic/clusters/halo.py17
1 files changed, 16 insertions, 1 deletions
diff --git a/fg21sim/extragalactic/clusters/halo.py b/fg21sim/extragalactic/clusters/halo.py
index ab59db9..e34d91c 100644
--- a/fg21sim/extragalactic/clusters/halo.py
+++ b/fg21sim/extragalactic/clusters/halo.py
@@ -165,6 +165,14 @@ class RadioHalo:
return COSMO.age(self.z_merger)
@property
+ def tback_merger(self):
+ """
+ The time from the observation (``z_obs``) back to the merger
+ (``z_merger``).
+ """
+ return (self.age_obs - self.age_merger) # [Gyr]
+
+ @property
def time_crossing(self):
"""
The time duration of the sub-cluster crossing the main cluster,
@@ -226,7 +234,7 @@ class RadioHalo:
@property
def kT_merger(self):
"""
- The cluster ICM mean temperature at z_merger when the merger
+ The cluster ICM mean temperature at ``z_merger`` when the merger
begins.
Unit: [keV]
@@ -236,6 +244,13 @@ class RadioHalo:
return kT
@property
+ def kT_obs(self):
+ """
+ The cluster ICM mean temperature at ``z_obs``.
+ """
+ return helper.kT_cluster(self.M_obs, z=self.z_obs) # [keV]
+
+ @property
def injection_rate(self):
"""
The constant electron injection rate assumed.