aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/extragalactic
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-06-24 21:57:54 +0800
committerAaron LI <aly@aaronly.me>2017-06-24 21:57:54 +0800
commit1c0eb014fb515a344d67de9cddef6db295496b29 (patch)
treef90eeed00de45ec33adade1d6aff037b89752593 /fg21sim/extragalactic
parent546c1ad26b126a377dac67e68d40d802c9fa69e2 (diff)
downloadfg21sim-1c0eb014fb515a344d67de9cddef6db295496b29.tar.bz2
halo.py: Add property "pgrid" as same as it is in slover.py
Diffstat (limited to 'fg21sim/extragalactic')
-rw-r--r--fg21sim/extragalactic/clusters/halo.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/fg21sim/extragalactic/clusters/halo.py b/fg21sim/extragalactic/clusters/halo.py
index 3b66407..76bef99 100644
--- a/fg21sim/extragalactic/clusters/halo.py
+++ b/fg21sim/extragalactic/clusters/halo.py
@@ -114,6 +114,16 @@ class HaloSingle:
step=self.zbinsize)
@property
+ def pgrid(self):
+ """
+ Electron momentum values of the adopted logarithmic grid
+ used for solving the Fokker-Planck equation.
+ """
+ grid = np.logspace(np.log10(self.pmin), np.log10(self.pmax),
+ num=self.pgrid_num)
+ return grid
+
+ @property
def magnetic_field(self):
"""
Calculate the mean magnetic field of this cluster from the