12 IMPLICIT REAL*8(a-h,o-z)
14 common/cpcoor/ nvar,ifailf,rcp,zcp,uu(5),df
17 sqrt(xxx) = dsqrt(xxx)
19 IF( nvar .EQ. 1 )
THEN
31 b = (a2*x+a5) / (2.d0*a3)
32 det = b**2 - (a1*x**2+a4*x+a6)/a3
40 det = sqrt( det ) * alf
44 f = (x-rcp)**2 + (y -zcp)**2
45 f2 = (x-rcp)**2 + (y2-zcp)**2
55 IF( nvar .EQ. 11 )
THEN
64 b = (a2*x+a5) / (2.d0*a3)
65 det = sqrt( b**2 - (a1*x**2+a4*x+a6)/a3 )
69 f = (x-rcp)**2 + (y -zcp)**2
70 f2 = (x-rcp)**2 + (y2-zcp)**2
72 IF (f2 .LT. f ) f = f2
84 SUBROUTINE ijmesh( NR,R,NZ,Z, RC,ZC, IC,JC)
86 IMPLICIT REAL*8(a-h,o-z)
93 IF( (rc.LT.r(1)) .OR. (r(nr).LT.rc) )
THEN
100 IF( (zc.LT.z(1)) .OR. (z(nz).LT.zc) )
THEN
109 IF( r(i) .GT. rc )
THEN
117 IF( z(j) .GT. zc )
THEN
137 dimension u(1:n), v(1:n)
152 ang=dacos((du1*du2+dv1*dv2)/(dsqrt((du1*du1+dv1*dv1)*
153 & (du2*du2+dv2*dv2))+reg))
154 IF(du1*dv2-du2*dv1.GT.0.)
THEN
171 dimension u(1:n), v(1:n)
173 sqrt(xxx) = dsqrt(xxx)
178 ttt = (u(i)-uc)**2 + (v(i)-vc)**2
193 * npro, rpro, zpro, fipro,
194 * brpro, bzpro, bpcom )
198 dimension rpro(*), zpro(*), fipro(*),
199 * brpro(*), bzpro(*), bpcom(*)
204 call
probe( rpro(i), zpro(i), fipro(i),
205 * brpr, bzpr, bpnum )
221 101
FORMAT(2x,5e14.7)
230 SUBROUTINE probe( RPR, ZPR, FPR, BRPR, BZPR, BPNUM )
236 sin(xxxx) = dsin(xxxx)
237 cos(xxxx) = dcos(xxxx)
240 CALL
ijmesh( ni,r,nj,z, rpr,zpr, ic,jc )
242 drdz = ( r(ic+1) - r(ic) )*( z(jc+1) - z(jc) )
244 dpsdr = ( (u(ic+1,jc ) - u(ic,jc )) * (z(jc+1) - zpr ) +
245 * (u(ic+1,jc+1) - u(ic,jc+1)) * (zpr - z(jc)) )
247 dpsdz = ( (u(ic ,jc+1) - u(ic ,jc)) * (r(ic+1) - rpr ) +
248 * (u(ic+1,jc+1) - u(ic+1,jc)) * (rpr - r(ic)) )
253 bpnum = brpr*cos(fpr) + bzpr*sin(fpr)
274 dimension rloo(1), zloo(1), psloo(1)
280 call
floop( rloo(i), zloo(i), psnum )
285 psloo(i) = psnum - psloo(1)
300 101
FORMAT(2x,5e14.7)
316 CALL
ijmesh( ni,r,nj,z, rpr,zpr, ic,jc )
318 drdz = ( r(ic+1) - r(ic) )*( z(jc+1) - z(jc) )
320 pspr = ( u(ic ,jc ) * (r(ic+1) - rpr)*(z(jc+1) - zpr) +
321 * u(ic+1,jc ) * ( rpr - r(ic) )*(z(jc+1) - zpr) +
322 * u(ic ,jc+1) * (r(ic+1) - rpr)*( zpr - z(jc) ) +
323 * u(ic+1,jc+1) * ( rpr - r(ic) )*( zpr - z(jc) ) )
REAL *8 function sumang(N, U, V, UC, VC)
subroutine ijmesh(NR, R, NZ, Z, RC, ZC, IC, JC)
subroutine fl_loo(NOUT, NTER, KEYPRI, NLOO, RLOO, ZLOO, PSLOO)
subroutine floop(RPR, ZPR, PSPR)
subroutine probe(RPR, ZPR, FPR, BRPR, BZPR, BPNUM)
REAL *8 function distan(N, U, V, UC, VC)
subroutine bp_prob(NOUT, NTER, KEYPRI, NPRO, RPRO, ZPRO, FIPRO, BRPRO, BZPRO, BPCOM)