diff options
author | Aaron LI <aly@aaronly.me> | 2018-10-30 23:13:26 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2018-10-30 23:13:26 +0800 |
commit | 029dc5974f3a3f6c4b5d346f440901b40ba0d73f (patch) | |
tree | 0dd107eecf8fe7793e3ebad4a8495a04e6b428f8 | |
parent | d5fda96940775d37dc07c60b7997697f65a7dbfe (diff) | |
download | fg21sim-029dc5974f3a3f6c4b5d346f440901b40ba0d73f.tar.bz2 |
clusters/helper: Remove the obsolete fmass_nfw()
-rw-r--r-- | fg21sim/extragalactic/clusters/helper.py | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/fg21sim/extragalactic/clusters/helper.py b/fg21sim/extragalactic/clusters/helper.py index 96800e4..d8e231e 100644 --- a/fg21sim/extragalactic/clusters/helper.py +++ b/fg21sim/extragalactic/clusters/helper.py @@ -481,29 +481,3 @@ def draw_halo(radius, nr=2.0, felong=None, rotation=None): # Normalized to have *mean* value of 1 image /= image.mean() return image - - -def fmass_nfw(x, c=5.0): - """ - The normalized total mass profile by integrating from the NFW - density profile. - - Parameters - ---------- - x : float - x = R/R_vir, fractional virial radius - c : float - Concentration parameter - Default: 5.0 (for clusters) - - Returns - ------- - fmass : float - The normalized total mass w.r.t. the virial mass, i.e., - fmass = M(<x*R_vir) / M_vir - - Reference: [lokas2001],Eq.(2,4,5,8) - """ - gc = 1.0 / (np.log(1+c) - c/(1+c)) - fmass = gc * (np.log(1+c*x) - c*x / (1+c*x)) - return fmass |