diff options
author | Aaron LI <aly@aaronly.me> | 2019-01-31 16:39:42 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2019-01-31 16:39:42 +0800 |
commit | dd8279a46586d513313c2203c270707d0e567483 (patch) | |
tree | 1a3fb6d7dd388c40c14edcf63b34ad7a1e3e080a /fg21sim | |
parent | 8ca2c36300174a272ea7fbed18f084f9b5eccc47 (diff) | |
download | fg21sim-dd8279a46586d513313c2203c270707d0e567483.tar.bz2 |
clusters/helper: Remove obsolete time_crossing()
Diffstat (limited to 'fg21sim')
-rw-r--r-- | fg21sim/extragalactic/clusters/helper.py | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/fg21sim/extragalactic/clusters/helper.py b/fg21sim/extragalactic/clusters/helper.py index 3f7a964..9c900be 100644 --- a/fg21sim/extragalactic/clusters/helper.py +++ b/fg21sim/extragalactic/clusters/helper.py @@ -473,37 +473,6 @@ def velocity_impact(M_main, M_sub, z=0.0): return vi / AUC.km2cm # [km/s] -def time_crossing(M_main, M_sub, z=0.0): - """ - Estimate the crossing time of the sub cluster during a merger. - - NOTE: The crossing time is estimated to be τ ~ R_vir / v_impact. - - Parameters - ---------- - M_main, M_sub : float - Total (virial) masses of the main and sub clusters - Unit: [Msun] - z : float, optional - Redshift - - Returns - ------- - time : float - Crossing time - Unit: [Gyr] - - References - ---------- - Ref.[cassano2005],Sec.(4.1) - """ - R_vir = radius_virial(M_main, z) # [kpc] - vi = velocity_impact(M_main, M_sub, z) # [km/s] - uconv = AUC.kpc2km * AUC.s2Gyr # [s kpc/km] => [Gyr] - time = uconv * R_vir / vi # [Gyr] - return time - - def draw_halo(radius, nr=2.0, felong=None, rotation=None): """ Draw the template image of one halo, which is used to simulate |