aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/extragalactic/clusters/halo.py
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-10-20 10:22:24 +0800
committerAaron LI <aly@aaronly.me>2017-10-20 10:22:24 +0800
commitfd20ab688759f3dfc3f7796ac0b1118e21ee5b22 (patch)
treea75ffd2b7ae280afe65b71e998b0da22c7e7fde1 /fg21sim/extragalactic/clusters/halo.py
parent283ca6c00e5ff6c74b529d0a460115516c16eec7 (diff)
downloadfg21sim-fd20ab688759f3dfc3f7796ac0b1118e21ee5b22.tar.bz2
clusters/halo: Determine magnetic field by fraction of its energy density
* Rewrite "magnetic_field()" function to calculate the mean magnetic field strength within ICM according its energy density fraction w.r.t. the ICM thermal energy density. * Remove config options "b_mean" and "b_index", which are replaced with the option "eta_b", the assumed magnetic energy density fraction w.r.t. the ICM thermal energy density.
Diffstat (limited to 'fg21sim/extragalactic/clusters/halo.py')
-rw-r--r--fg21sim/extragalactic/clusters/halo.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/fg21sim/extragalactic/clusters/halo.py b/fg21sim/extragalactic/clusters/halo.py
index e34d91c..e6fe152 100644
--- a/fg21sim/extragalactic/clusters/halo.py
+++ b/fg21sim/extragalactic/clusters/halo.py
@@ -229,7 +229,7 @@ class RadioHalo:
Unit: [uG]
"""
- return helper.magnetic_field(self.M_obs)
+ return helper.magnetic_field(mass=self.M_obs, z=self.z_obs)
@property
def kT_merger(self):
@@ -716,6 +716,6 @@ class RadioHalo:
"""
z = COSMO.redshift(t)
mass = self._mass(t) # [Msun]
- B = helper.magnetic_field(mass) # [uG]
+ B = helper.magnetic_field(mass=mass, z=z) # [uG]
loss = -4.32e-4 * gamma**2 * ((B/3.25)**2 + (1+z)**4)
return loss