8 REAL*8 xi(3),xj(3),vi(3),vj(3),vcm(3),vr(3)
19 vj(k) = (3.0*fdot(k,j)*dt + 2.0*f(k,j))*dt + x0dot(k,j)
20 rdot = rdot + (xi(k) - xj(k))*(vi(k) - vj(k))
21 vrel2 = vrel2 + (vi(k) - vj(k))**2
25 IF (rdot.LE.0.0) go to 100
29 dti = time - t0(i) - step(i)
30 dtj = time - t0(j) - step(i)
32 xi(k) = ((fdot(k,i)*dti + f(k,i))*dti + x0dot(k,i))*dti +
34 xj(k) = ((fdot(k,j)*dtj + f(k,j))*dtj + x0dot(k,j))*dtj +
36 vi(k) = (3.0*fdot(k,i)*dti + 2.0*f(k,i))*dti + x0dot(k,i)
37 vj(k) = (3.0*fdot(k,j)*dtj + 2.0*f(k,j))*dtj + x0dot(k,j)
38 rdot0 = rdot0 + (xi(k) - xj(k))*(vi(k) - vj(k))
42 IF (rdot0.GT.0.0) go to 100
44 zm = body(i) + body(j)
45 erel = 0.5*vrel2 - zm/sqrt(rjmin2)
52 WRITE (6,50) name(i), name(j), semi0, semi, sqrt(rjmin2), dh
53 50
FORMAT (5x,
'NBTIDE: NAMES A0 A RIJ DH ',2i5,2f10.5,f8.4,f8.3)
56 IF (semi.LT.0.0.OR.semi.GT.4.0*rmin) go to 100
65 vcm(k) = (body(i)*xdot(k,i) + body(j)*xdot(k,j))/zm
69 fac = sqrt((vrel2 - 2.0d0*dh)/vrel2)
71 vr(k) = fac*(vi(k) - vj(k))
72 xdot(k,i) = vcm(k) + body(j)*vr(k)/zm
73 xdot(k,j) = vcm(k) - body(i)*vr(k)/zm
78 de = body(i)*body(j)*dh/zm
88 WRITE (6,60) name(icomp), name(jcomp), semi, be(3) + de , de
89 60
FORMAT (
' TIDAL CAPTURE NM A E DE ',2i5,f8.4,2f11.6)