aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/extragalactic/clusters/halo.py
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-10-21 22:10:31 +0800
committerAaron LI <aly@aaronly.me>2017-10-21 22:10:31 +0800
commita8a02a96a78a85ffacf52aa43c158ecc24391af3 (patch)
tree32a65b1aa95d8452f348e7b8644d4fda1c10c7b1 /fg21sim/extragalactic/clusters/halo.py
parent35959e6313295cddb96ec553a06a539a53cc4bd4 (diff)
downloadfg21sim-a8a02a96a78a85ffacf52aa43c158ecc24391af3.tar.bz2
clusters/halos: Add more cluster and halo properties
* Rvir0, Rvir_main, Rvir_sub * kT_main, kT_sub (replace kT_merger) * radius -> Rhalo, angular_radius -> Rhalo_angular, B -> B0
Diffstat (limited to 'fg21sim/extragalactic/clusters/halo.py')
-rw-r--r--fg21sim/extragalactic/clusters/halo.py37
1 files changed, 30 insertions, 7 deletions
diff --git a/fg21sim/extragalactic/clusters/halo.py b/fg21sim/extragalactic/clusters/halo.py
index e6fe152..4bba5a9 100644
--- a/fg21sim/extragalactic/clusters/halo.py
+++ b/fg21sim/extragalactic/clusters/halo.py
@@ -185,6 +185,27 @@ class RadioHalo:
z=self.z_merger)
@property
+ def radius_virial_obs(self):
+ """
+ The virial radius of the "current" cluster (``M_obs``) at
+ ``z_obs``.
+
+ Unit: [kpc]
+ """
+ return helper.radius_virial(mass=self.M_obs, z=self.z_obs)
+
+ @property
+ def radius_virial_main(self):
+ """
+ The virial radius of the main cluster at ``z_merger``.
+ """
+ return helper.radius_virial(mass=self.M_main, z=self.z_merger)
+
+ @property
+ def radius_virial_sub(self):
+ return helper.radius_virial(mass=self.M_sub, z=self.z_merger)
+
+ @property
def radius(self):
"""
The estimated radius for the simulated radio halo.
@@ -232,21 +253,23 @@ class RadioHalo:
return helper.magnetic_field(mass=self.M_obs, z=self.z_obs)
@property
- def kT_merger(self):
+ def kT_main(self):
"""
- The cluster ICM mean temperature at ``z_merger`` when the merger
- begins.
+ The mean temperature of the main cluster ICM at ``z_merger``
+ when the merger begins.
Unit: [keV]
"""
- mass = self.M_main + self.M_sub
- kT = helper.kT_cluster(mass, z=self.z_merger)
- return kT
+ return helper.kT_cluster(mass=self.M_main, z=self.z_merger)
+
+ @property
+ def kT_sub(self):
+ return helper.kT_cluster(mass=self.M_sub, z=self.z_merger)
@property
def kT_obs(self):
"""
- The cluster ICM mean temperature at ``z_obs``.
+ The "current" cluster ICM mean temperature at ``z_obs``.
"""
return helper.kT_cluster(self.M_obs, z=self.z_obs) # [keV]