From 1c0eb014fb515a344d67de9cddef6db295496b29 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sat, 24 Jun 2017 21:57:54 +0800 Subject: halo.py: Add property "pgrid" as same as it is in slover.py --- fg21sim/extragalactic/clusters/halo.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'fg21sim') 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 @@ -113,6 +113,16 @@ class HaloSingle: return np.arange(start=0.0, stop=self.zmax+self.zbinsize, 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): """ -- cgit v1.2.2