[Yt-svn] yt: Adding Tinker 2008 to the list of halo mass fitting functions.
hg at spacepope.org
hg at spacepope.org
Mon Jun 7 17:20:03 PDT 2010
hg Repository: yt
details: yt/rev/ea369bed9242
changeset: 1758:ea369bed9242
user: Stephen Skory <stephenskory at yahoo.com>
date:
Mon Jun 07 17:19:44 2010 -0700
description:
Adding Tinker 2008 to the list of halo mass fitting functions.
diffstat:
yt/extensions/HaloMassFcn.py | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diffs (27 lines):
diff -r 2d1ee4cffb59 -r ea369bed9242 yt/extensions/HaloMassFcn.py
--- a/yt/extensions/HaloMassFcn.py Mon Jun 07 11:51:59 2010 -0700
+++ b/yt/extensions/HaloMassFcn.py Mon Jun 07 17:19:44 2010 -0700
@@ -70,6 +70,7 @@
the calculations and generated fit. Default=360.
:param fitting_function (int): Which fitting function to use.
1 = Press-schechter, 2 = Jenkins, 3 = Sheth-Tormen, 4 = Warren fit
+ 5 = Tinker
Default=4.
:param mass_column (int): The column of halo_file that contains the
masses of the haloes. Default=4.
@@ -419,6 +420,15 @@
b=0.2538;
c=1.1982;
thismult = A*( math.pow(sigma, -1.0*a) + b)*math.exp(-1.0*c / sigma / sigma );
+
+ elif self.fitting_function==5:
+ # Tinker et al. 2008, eqn 3, \Delta=300 # \Delta=200
+ A = 0.2 #0.186
+ a = 1.52 #1.47
+ b = 2.25 #2.57
+ c = 1.27 #1.19
+ thismult = A * ( math.pow((sigma / b), -a) + 1) * \
+ math.exp(-1 * c / sigma / sigma)
else:
mylog.error("Don't understand this. Fitting function requested is %d\n",
More information about the yt-svn
mailing list