Nbody6
 All Files Functions Variables
rpmin.f
Go to the documentation of this file.
1  REAL*8 FUNCTION rpmin(M1,M2,VSTAR,H,PERI)
2 *
3 * Minimum pericentre distance for energy change (H < 0).
4 * ------------------------------------------------------
5 *
6  IMPLICIT REAL*8 (a-h,m,o-z)
7  DATA fudge /1.0d-02/
8 *
9 * Adopt simplified eccentricity factor valid for ECC = 1.
10  ge = 425.0*3.1415/(32.0*sqrt(2.0d0))
11  clight = 3.0d+05/vstar
12  fac = (1.0/clight)**3.5
13 *
14 * Set mass expression for energy change in N-body units.
15  fm = sqrt(m1 + m2)*m1**2*m2**2
16 * Form scaled energy (without r_min).
17  de = 8.0/15.0*fac*fm*clight**2*ge
18 *
19 * Adopt a fraction of the energy (-MU*H) for determination of RPMIN.
20  mu = m1*m2/(m1 + m2)
21  demax = -fudge*mu*h
22  rpmin = (de/demax)**(2.0/7.0)
23 *
24 * Include some diagnostics (suppressed).
25 * SEMI = -(M1 + M2)/H
26 * WRITE (6,5) SEMI, RPMIN, PERI
27 * 5 FORMAT (' RPMIN A RPM PERI ',1P,3E10.2)
28 *
29  RETURN
30  END