From dd8279a46586d513313c2203c270707d0e567483 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Thu, 31 Jan 2019 16:39:42 +0800 Subject: clusters/helper: Remove obsolete time_crossing() --- fg21sim/extragalactic/clusters/helper.py | 31 ------------------------------- 1 file changed, 31 deletions(-) (limited to 'fg21sim') 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 -- cgit v1.2.2