aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/extragalactic/clusters
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-01-02 22:21:45 +0800
committerAaron LI <aly@aaronly.me>2018-01-02 22:21:45 +0800
commit4ab6f78165855ad961ecf62f07c374465cf1d292 (patch)
tree848ceb6f9f810254babfc2afe396a4426ad049b6 /fg21sim/extragalactic/clusters
parent13bae823e5417ae378c34b2e3d7b59792f2ab831 (diff)
downloadfg21sim-4ab6f78165855ad961ecf62f07c374465cf1d292.tar.bz2
clusters/emission: minor cleanups
Diffstat (limited to 'fg21sim/extragalactic/clusters')
-rw-r--r--fg21sim/extragalactic/clusters/emission.py20
1 files changed, 6 insertions, 14 deletions
diff --git a/fg21sim/extragalactic/clusters/emission.py b/fg21sim/extragalactic/clusters/emission.py
index 4801eba..ddecab3 100644
--- a/fg21sim/extragalactic/clusters/emission.py
+++ b/fg21sim/extragalactic/clusters/emission.py
@@ -1,9 +1,9 @@
-# Copyright (c) 2017 Weitian LI <weitian@aaronly.me>
+# Copyright (c) 2017-2018 Weitian LI <weitian@aaronly.me>
# MIT license
"""
-Calculate the synchrotron emission and inverse Compton emission
-for simulated radio halos.
+Calculate the synchrotron emission for a given relativistic electron
+spectrum, e.g., derived for the simulated radio halos.
References
----------
@@ -151,12 +151,7 @@ class SynchrotronEmission:
@classmethod
def F(cls, x):
"""
- Synchrotron kernel function.
-
- NOTE
- ----
- * Use interpolation to optimize the speed, as well as to
- help vectorize this function for easier calling.
+ Synchrotron kernel function using interpolation to improve speed.
Parameters
----------
@@ -196,11 +191,8 @@ class SynchrotronEmission:
I = int_gmin^gmax f(g) d(g)
= int_ln(gmin)^ln(gmax) f(g) g d(ln(g))
- XXX
- ---
- Assume that the electrons have a pitch angle of ``pi/2`` with
- respect to the magnetic field. (I think it is a good simplification
- considering that the magnetic field is also assumed to be uniform.)
+ The pitch angles of electrons w.r.t. the magnetic field are assumed
+ to be ``pi/2``, which maybe a good simplification.
Parameters
----------