From fea0272a343ec700505654c6d042538d0db590f9 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 29 Aug 2017 20:53:31 +0800 Subject: clusters/psformalism: Remove config "f_darkmatter" Use "1 - baryon_fraction = 1 - Ob0/Om0" to replace "f_darkmatter". --- fg21sim/utils/cosmology.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'fg21sim/utils') diff --git a/fg21sim/utils/cosmology.py b/fg21sim/utils/cosmology.py index d66de09..cc347e4 100644 --- a/fg21sim/utils/cosmology.py +++ b/fg21sim/utils/cosmology.py @@ -248,6 +248,16 @@ class Cosmology: """ return self.Ob0 / self.Om0 + @property + def darkmatter_fraction(self): + """ + The cosmological mean dark matter fraction (w.r.t. matter), + assumed to be *constant* regardless of redshifts! + + See also: ``self.baryon_fraction`` + """ + return 1 - self.baryon_fraction + def overdensity_virial(self, z): """ Calculate the virial overdensity, which generally used to -- cgit v1.2.2