1 SUBROUTINE induce(IPAIR,EMAX,EMIN,ICIRC,TC2,ANGLE,TG,EDAV)
8 REAL*8 a1(3),a2(3),xrel(3),vrel(3),ei(3),hi(3),ho(3),bhat(3)
15 semi = -0.5d0*body(i)/h(ipair)
16 ecc2 = (1.d0 - r(ipair)/semi)**2 + tdot2(ipair)**2
34 rij2 = rij2 + (x(k,i) - x(k,jcomp))**2
35 vij2 = vij2 + (xdot(k,i) - xdot(k,jcomp))**2
36 rdot = rdot + (x(k,i) - x(k,jcomp))*(xdot(k,i) -xdot(k,jcomp))
41 a1(k) = (x(k1,i1) - x(k1,i2))*(xdot(k2,i1) - xdot(k2,i2))
42 & - (x(k2,i1) - x(k2,i2))*(xdot(k1,i1) - xdot(k1,i2))
43 a2(k) = (x(k1,jcomp) - x(k1,i))*(xdot(k2,jcomp) - xdot(k2,i))
44 & - (x(k2,jcomp) - x(k2,i))*(xdot(k1,jcomp) - xdot(k1,i))
47 a1a2 = a1a2 + a1(k)*a2(k)
49 xrel(k) = x(k,i1) - x(k,i2)
50 vrel(k) = xdot(k,i1) - xdot(k,i2)
51 ri2 = ri2 + xrel(k)**2
52 vi2 = vi2 + vrel(k)**2
53 rvi = rvi + xrel(k)*vrel(k)
58 zmb = body(i) + body(jcomp)
59 semi1 = 2.d0/rij - vij2/zmb
61 ecc1 = sqrt((1.d0 - rij/semi1)**2 + rdot**2/(semi1*zmb))
64 fac = a1a2/sqrt(a12*a22)
68 in = 1 + fac*360.0/(twopi*22.5)
71 IF (semi1.LT.0.0.OR.ecc1.GT.0.9999)
THEN
82 ei(k) = (vi2*xrel(k) - rvi*vrel(k))/body(i) -
91 ei(k) = ei(k)/sqrt(ei2)
92 hi(k) = a1(k)/sqrt(a12)
93 ho(k) = a2(k)/sqrt(a22)
94 cosj = cosj + hi(k)*ho(k)
95 sjsg = sjsg + ei(k)*ho(k)
106 bhat(k) = hi(k1)*ei(k2) - hi(k2)*ei(k1)
107 ah = ah + ei(k)*ho(k)
108 bh = bh + bhat(k)*ho(k)
112 a = cosj*sqrt(1.d0 - ei2)
113 z = (1.d0 - ei2)*(2.d0 - cosj**2) + 5.d0*ei2*sjsg**2
116 z2 = z**2 + 25.d0 + 16.d0*a**4 - 10.d0*z -
117 & 20.d0*a**2 - 8.d0*a**2*z
118 emax = one6*(z + 1.d0 - 4.d0*a**2 + sqrt(z2))
119 emax = max(emax,0.0001d0)
122 em = sqrt(sin(zi)**2 + ei2*cos(zi)**2)
127 az1 = 1.d0 + z - 4.d0*a**2
128 emin2 = one6*(az1 - sqrt(az1**2 - 12.d0*az))
130 emin2 = 1.d0 - 0.5d0*(a**2 + z)
132 emin2 = max(emin2,0.0001d0)
136 pmin = semi*(1.d0 - ecc)
137 pmin2 = semi*(1.d0 - emax)
138 tk = twopi*semi*sqrt(semi/body(i))
139 tk1 = twopi*semi1*sqrt(semi1/zmb)
140 tg = tk1**2*zmb*(1.d0 - ecc1**2)**1.5/(body(jcomp)*tk)
148 yfac = 15.d0*body(jcomp)/(4.d0*zmb)*twopi*tk/tk1**2
149 yfac = yfac*ecc*sqrt(1.d0 - ecc**2)/
150 & (1.d0 - ecc1**2)**(1.5)
156 IF (pmin2.LT.10.0*max(radius(i1),radius(i2)).AND.
157 & kz(27).EQ.2.AND.ecc.GT.0.002)
THEN
158 CALL
tcirc(pmin,ecc,i1,i2,icirc,tc)
159 IF (icirc.GE.0) icirc = -1
161 CALL
tcirc(pmin2,emax,i1,i2,icirc,tc2)
162 ELSE IF (ecc.LT.0.002)
THEN
168 IF (in.GE.4.AND.in.LE.5.AND.tc2.LT.10.0.AND.kstar(i).NE.-2.AND.
169 & ei2.GT.4.0d-06)
THEN
170 WRITE (44,25) sqrt(ei2), em, emax, kstar(i1), kstar(i2),
171 & kstar(i), semi, pmin2, in, tg, tc, tc2, tphys
172 25
FORMAT (
' INDUCE: E EMX EMAX K* SEMI PM2 IN TG TC TC2 TP ',
173 & 3f8.4,3i3,1p,2e9.1,0p,i3,f7.3,3f7.1)