aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/extragalactic/clusters/halo.py
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-06-23 20:39:27 +0800
committerAaron LI <aly@aaronly.me>2017-06-23 20:39:27 +0800
commit0f4f81d874b7b372c96f5b1398f11a6f2e24367c (patch)
treec494934ed4387700e53d5b7771a572b24e03e5e5 /fg21sim/extragalactic/clusters/halo.py
parent745cc1b0001236242eb4790e71a3b60c0388eb4f (diff)
downloadfg21sim-0f4f81d874b7b372c96f5b1398f11a6f2e24367c.tar.bz2
halo.py + formation.py: Add argument z0
Diffstat (limited to 'fg21sim/extragalactic/clusters/halo.py')
-rw-r--r--fg21sim/extragalactic/clusters/halo.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/fg21sim/extragalactic/clusters/halo.py b/fg21sim/extragalactic/clusters/halo.py
index 3b62d66..3fa9d18 100644
--- a/fg21sim/extragalactic/clusters/halo.py
+++ b/fg21sim/extragalactic/clusters/halo.py
@@ -49,7 +49,10 @@ class HaloSingle:
Parameters
----------
M0 : float
- Present-day (z=0) mass (unit: Msun) of the cluster.
+ Cluster mass at redshift z0
+ Unit: [Msun]
+ z0 : float
+ Redshift from where to simulate former merging history.
configs : `ConfigManager`
A `ConfigManager` instance containing default and user configurations.
For more details, see the example configuration specifications.
@@ -69,8 +72,9 @@ class HaloSingle:
# Merger tree (i.e., merging history) of this cluster
mtree = None
- def __init__(self, M0, configs):
+ def __init__(self, M0, z0, configs):
self.M0 = M0 # [Msun]
+ self.z0 = z0
self.configs = configs
self._set_configs()
@@ -113,7 +117,7 @@ class HaloSingle:
mtree : `~MergerTree`
Generated merger tree of this cluster.
"""
- self.formation = ClusterFormation(self.M0, self.configs)
+ self.formation = ClusterFormation(self.M0, self.z0, self.configs)
self.mtree = self.formation.simulate_mergertree()
return self.mtree