From 2e089e03fdeb0fc5bde86cd5fd93e16a42983a79 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Wed, 26 Jul 2017 15:58:51 +0800 Subject: clusters/halo.py: Add property "magnetic_field" Signed-off-by: Aaron LI --- fg21sim/extragalactic/clusters/halo.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/fg21sim/extragalactic/clusters/halo.py b/fg21sim/extragalactic/clusters/halo.py index 7c52f97..44d1e1a 100644 --- a/fg21sim/extragalactic/clusters/halo.py +++ b/fg21sim/extragalactic/clusters/halo.py @@ -162,6 +162,17 @@ class RadioHalo: r_halo = helper.radius_halo(mass, self.z_merger) # [kpc] return r_halo + @property + def magnetic_field(self): + """ + The magnetic field strength at the simulated observation + time (i.e., cluster mass of ``self.M_obs``), will be used + to calculate the synchrotron emissions. + + Unit: [uG] + """ + return helper.magnetic_field(self.M_obs) + def calc_electron_spectrum(self, zbegin=None, zend=None, n0_e=None): """ Calculate the relativistic electron spectrum by solving the -- cgit v1.2.2