aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/extragalactic/clusters
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-11-08 15:52:37 +0800
committerAaron LI <aly@aaronly.me>2018-11-08 15:52:37 +0800
commit00979a4da68b1fc3bf5c1693975febc7d066763c (patch)
tree4fefb234a7517c0c4438930778b587a95547c3e5 /fg21sim/extragalactic/clusters
parent450767336f1d37e38f3e71c40695ac4a3cd20162 (diff)
downloadfg21sim-00979a4da68b1fc3bf5c1693975febc7d066763c.tar.bz2
clusters/halo: Add and use 'f_rc' and 'beta' options
Diffstat (limited to 'fg21sim/extragalactic/clusters')
-rw-r--r--fg21sim/extragalactic/clusters/halo.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/fg21sim/extragalactic/clusters/halo.py b/fg21sim/extragalactic/clusters/halo.py
index 113e434..a18aa17 100644
--- a/fg21sim/extragalactic/clusters/halo.py
+++ b/fg21sim/extragalactic/clusters/halo.py
@@ -167,6 +167,8 @@ class RadioHalo:
self.injection_index = configs.getn(comp+"/injection_index")
self.fiducial_freq = configs.getn(comp+"/fiducial_freq")
self.fiducial_factor = configs.getn(comp+"/fiducial_factor")
+ self.f_rc = configs.getn(comp+"/f_rc")
+ self.beta = configs.getn(comp+"/beta")
def _set_solver(self):
self.fpsolver = FokkerPlanckSolver(
@@ -673,7 +675,8 @@ class RadioHalo:
z = COSMO.redshift(t)
M_main = self.mass_main(t)
M_sub = self.mass_sub(t)
- return helper.calc_gas_density_profile(mass=M_main+M_sub, z=z)
+ return helper.calc_gas_density_profile(mass=M_main+M_sub, z=z,
+ f_rc=self.f_rc, beta=self.beta)
@lru_cache()
def _velocity_turb(self, t):