Nbody6
Main Page
Files
File List
File Members
All
Files
Functions
Variables
rpmax.f
Go to the documentation of this file.
1
REAL*8
FUNCTION
rpmax
(M1,M2,VSTAR,DV,PERI)
2
*
3
*
4
* Maximum periastron distance for GR capture.
5
* -------------------------------------------
6
* Quinlan & Shapiro, Ap.J. 343, 725, 1989.
7
*
8
*
9
IMPLICIT
REAL*8
(a-h,m,o-z)
10
DATA
fac /2.6790/
11
*
12
*
13
* Note M1, M2 and DV are in N-body units.
14
mb = m1 + m2
15
mfac = (m1*m2)**(2.0/7.0)*mb**(3.0/7.0)
16
clight = 3.0d+05/vstar
17
vfac = clight**(10.0/7.0)*dv**(4.0/7.0)
18
rpmax
= fac*mfac/vfac
19
*
20
* Include diagnostics for testing (suppressed).
21
* WRITE (6,5) M1, M2, DV, RPMAX, PERI
22
* 5 FORMAT (' RPMAX M1 M2 DV RPX PERI ',1P,5E10.2)
23
* CALL FLUSH(6)
24
RETURN
25
END
Nbody6
Ncode
rpmax.f
Generated on Sat Nov 30 2013 19:04:37 for Nbody6 by
1.8.2