9 common/chreg/ timec,tmax,rmaxc,cm(10),namec(6),nstep1,kz27,kz30
10 REAL*8 m,mb,mb1,r2(nmx,nmx),xcm(3),vcm(3),xx(3,3),vv(3,3)
38 vrel2 = vrel2 + (v(j1) - v(j2))**2
39 rdot = rdot + (x(j1) - x(j2))*(v(j1) - v(j2))
40 xcm(k) = (m(i1)*x(j1) + m(i2)*x(j2))/mb
41 vcm(k) = (m(i1)*v(j1) + m(i2)*v(j2))/mb
42 ri2 = ri2 + (x(j3) - xcm(k))**2
43 vrel21 = vrel21 + (v(j3) - vcm(k))**2
44 rdot3 = rdot3 + (x(j3) - xcm(k))*(v(j3) - vcm(k))
45 xc3 = (m(i3)*x(j3) + mb*xcm(k))/mb1
46 vc3 = (m(i3)*v(j3) + mb*vcm(k))/mb1
47 r4 = r4 + (x(j4) - xc3)**2
48 v4 = v4 + (v(j4) - vc3)**2
49 rdot4 = rdot4 + (x(j4) - xc3)*(v(j4) - vc3)
61 semi = 2.0d0/rb - vrel2/mb
63 ecc = sqrt((1.0d0 - rb/semi)**2 + rdot**2/(semi*mb))
64 semi1 = 2.0/r3 - vrel21/mb1
66 ecc1 = sqrt((1.0d0 - r3/semi1)**2 + rdot3**2/(semi1*mb1))
68 semi4 = 2.0/r4 - v4/mb4
70 ecc4 = sqrt((1.0 - r4/semi4)**2 + rdot4**2/(semi4*mb4))
74 q1 = max(m(i2)/m(i1),m(i1)/m(i2))
77 ar = 1.0 + 3.7/q3 - 2.2/(1.0 + q3) + 1.4/q13*(q3 - 1.0)/(q3 + 1.0)
79 ek = ar*semi*(1.0d0 + ecc)
80 pmin = semi1*(1.0d0 - ecc1)
85 xfac = (1.0 + q0)*(1.0 + ecc1)/sqrt(1.0 - ecc1)
87 xfac = 40.0*(1.0 + q0)
90 pcrit = 2.8*fe*xfac**0.4*semi
93 CALL
inclin(xx,vv,xcm,vcm,alpha)
96 yfac = 1.0 - 0.3*alpha/3.14
101 IF (pmin.GT.pcrit.AND.semi1.GT.0.0.AND.semi4.GT.0.0.AND.
103 g4 = 2.0*m(i4)/mb4*(r3/r4)**3
104 pmin4 = semi4*(1.0 - ecc4)
105 zfac = (1.0 + m(i4)/mb1)*(1.0 + ecc4)/sqrt(1.0 - ecc4)
106 zcrit = 2.8*fe*zfac**0.4*semi4
111 g4 = 2.0*m(i4)/mb1*(r3/pmin4)**3
113 WRITE (6,19) nstep1, ecc4, semi, pcrit, pmin4, g4
114 19
FORMAT (
' CSTAB3 # E4 A PCR PM4 G4 ',
122 IF (pmin4.LT.zcrit.OR.g4.GT.0.2) go to 40
125 WRITE (6,20) ecc, ecc1, semi, semi1, pmin, pcrit, ek, pz
126 20
FORMAT (
' CSTAB3 E =',f6.3,
' E1 =',f6.3,
' A =',1p,e8.1,
127 &
' A1 =',e8.1,
' PM =',e9.2,
' PC =',e9.2,
128 &
' EK =',e9.2,
' P/Z =',0p,f5.2)
129 ri = sqrt(cm(1)**2 + cm(2)**2 + cm(3)**2)
131 WRITE (81,30) timec, ri, namec(i3), ql, q1, ecc, ecc1,
132 & semi, semi1, pcrit/pmin, 180.*alpha/3.14, emax
133 30
FORMAT (f9.5,f5.1,i6,2f6.2,2f6.3,1p,2e10.2,0p,f5.2,f6.1,f6.3)